We use privacy-friendly analytics to learn which calculators help, and nothing loads until you agree. Read our privacy policy.
Business & Tax
Tax-loss harvesting lets you offset gains and reduce taxes — but timing and rules matter. Learn the strategy and implementation.
By FreeCalculators Editorial · Published 2026-01-15 · Updated 2026-09-03 · 8 min read · 1,900 words
Tax-loss harvesting means selling investments at a loss to offset capital gains elsewhere in your portfolio. If you sell Stock A at a $5,000 loss and Stock B at a $5,000 gain, your net taxable gain is $0 — you owe zero capital gains tax on those transactions. You can then reinvest the proceeds in Stock C (similar but not identical to Stock A) to maintain market exposure while locking in the tax benefit.
The IRS wash sale rule prevents claiming a loss if you buy a "substantially identical" security within 30 days before or after the sale. Violating this rule disallows the loss and adds it to the cost basis of the repurchased shares. To avoid wash sales: sell the losing investment, wait 31 days before repurchasing, or immediately repurchase a similar (but not identical) investment — like selling an S&P 500 ETF and buying a total market ETF.
Capital losses first offset capital gains (no limit). If losses exceed gains, you can deduct up to $3,000/year against ordinary income ($1,500 if married filing separately). Excess losses carry forward indefinitely to future years. This makes tax-loss harvesting valuable even in years without gains — the $3,000 annual deduction reduces your taxable income.
Our calculator identifies harvestable losses in your portfolio, calculates the tax savings at your marginal rate, and suggests replacement securities that maintain your target allocation while avoiding wash sales.
Step 1: Review your portfolio for unrealized losses (current value below purchase price). Step 2: Calculate the tax savings (loss × marginal tax rate). Step 3: Sell the losing position. Step 4: Immediately purchase a similar but not identical investment (different index, different fund family). Step 5: After 31 days, optionally swap back to the original holding. Step 6: Repeat quarterly or when significant losses accumulate.
Automated tax-loss harvesting (available through Betterment, Wealthfront, Schwab Intelligent Portfolios) continuously scans for harvestable losses and automatically executes replacements. The estimated value of automated harvesting: 0.5–1.5% annually in after-tax returns. This alone can justify the advisory fee for accounts over $100,000.
Tax-Loss Harvesting: How to Turn Investment Losses Into Tax Savings is a tax and business finance concept that comes up when you are making decisions about money. Understanding how it works — not just the definition, but the actual numbers behind it — is the difference between a decision that holds up over time and one that looks right today but falls apart when your circumstances change. The core idea is that financial outcomes are determined by a few key variables interacting in ways that are not always intuitive. Compound growth, tax treatment, inflation, and timing all interact, and small differences in any of them can produce large differences in the outcome over years or decades.
The practical version of this concept is simpler than the theoretical one. You do not need to understand every formula — you need to know which inputs matter, what a realistic range for each one is, and how sensitive the outcome is to changes in those inputs. That is what this article gives you: the variables, the ranges, and the sensitivity, so you can plug in your own numbers and get an answer that reflects your actual situation rather than a textbook example.
The arithmetic behind tax loss harvesting guide comes down to a few moving parts. First, identify the key variables: these are typically an amount (a dollar figure), a rate (a percentage like a return rate, interest rate, or tax rate), and a time horizon (years or months). The interaction of these three — how a rate compounds over time on a given principal — is what produces the final number. The formulas themselves are standard financial arithmetic; the value is in knowing which formula applies to your situation and what realistic inputs look like.
A useful exercise is to run the calculation with three sets of inputs: a best case, a worst case, and a most likely case. The spread between best and worst tells you how much uncertainty you are dealing with. If the worst case is tolerable — you can live with the outcome even if things go badly — then the decision is safe to make. If the worst case is a disaster, you need either to reduce the size of the bet (save more, borrow less, insure more) or to find a way to shift the risk (diversify, hedge, or buy insurance). This framework — best case, worst case, most likely — works for nearly every financial decision and is more useful than a single point estimate.
For tax loss harvesting guide, the main variables and their typical ranges are as follows. Amounts — whether income, savings, debt, or investment principal — should use your actual figures, not estimates. Pull them from your pay stubs, bank statements, or account dashboards. Rates — return rates, interest rates, inflation, tax brackets — should use realistic long-term expectations, not best-year figures. A 6% investment return is more realistic than 10% for planning purposes, because markets have long flat stretches that pull the average down. Time horizons should reflect your actual timeline, not an idealized one: if you might need the money in 5 years, use 5, not 30.
The most common mistake with tax loss harvesting guide is using optimistic assumptions. People plan for 10% investment returns and 2% inflation, when 6% and 3% are more realistic. Over 30 years, the difference between 10% and 6% returns is not 4% — it is the difference between having $1.7 million and $570,000 on a $100 monthly contribution. Optimism in financial planning does not produce a plan; it produces a shortfall.
The practical application of tax loss harvesting guide is straightforward once you have the numbers. Start with your actual figures — income, savings, debt, rates, and timeline. Run the calculation at your most likely inputs. Then change one variable at a time to see which factor has the largest impact on the outcome. The variable that moves the needle the most is the one worth optimizing — not the one you read about most often. In personal finance, the highest-leverage variable is usually the savings rate, because it affects both the accumulation phase (more principal) and the withdrawal phase (lower expenses). In investing, it is the return assumption, because small differences compound over decades. In debt management, it is the interest rate, because it determines how much of each payment goes to principal versus interest.
The second step is to stress-test the decision. If the outcome changes dramatically when you change one input — say, a 1% change in return rate produces a 40% change in the final balance — then that input is your risk variable. You can reduce the risk by being more conservative on that input, by diversifying the source of that input (e.g., across asset classes), or by buying insurance to cap the downside. If the outcome is relatively insensitive to all inputs, the decision is low-risk and you can proceed with confidence.
Tax-Loss Harvesting: How to Turn Investment Losses Into Tax Savings is not about memorizing formulas or following rules of thumb — it is about understanding which variables matter, plugging in your real numbers, and seeing the result. The arithmetic is exact; the uncertainty is in your inputs. Use conservative assumptions, stress-test the decision by varying the inputs, and focus your energy on the variable that has the largest impact on the outcome. That is the entire framework, and it works for nearly every financial decision you will make. The calculators on this site exist to do the arithmetic for you — all you need to provide is honest inputs.
Comprehensive Guide
Read our business and tax guide for margins, payroll, and tax planning.
Try the calculatorWas this page helpful?
How this guide was created
This guide was written and reviewed by FreeCalculators Editorial, drawing on published formulas, official government sources, and real calculator outputs from our 4 calculators in this category. Every claim is sourced; every formula is auditable. Read our review policy.