Retirement & investing · free calculator
Tax-loss harvesting benefit
After-tax benefit of harvesting a paper loss — federal, state, and $3,000 ordinary-income offset.
Tax savings this year
$1,950
Offset $5,000 of gains + $3,000 ordinary
Show the work
- Gains offset$5,000
- Ordinary income offset ($3k cap)$3,000
- Carryforward to future years$7,000
- Savings on gains offset$1,050
- Savings on ordinary offset$900
- Future savings from carryforward$2,100
- Total potential savings$4,050
Tax-loss harvesting — turning paper losses into real savings
Tax-loss harvesting (TLH) is selling an investment at a loss to offset taxable gains or ordinary income, thereby reducing your tax bill. In taxable brokerage accounts, it's one of the highest-leverage tax moves available to individual investors — and it doesn't require changing your underlying investment thesis. You just swap into a similar-but-not-identical security for 30 days, realize the loss, and continue.
The three layers of offset
Capital losses work through the tax code in this priority order:
- Offset same-type gains — short-term losses first offset short-term gains; long-term losses offset long-term gains.
- Offset other-type gains — if short-term losses exceed short-term gains, the excess offsets long-term gains (and vice versa).
- $3,000 ordinary income — excess losses can offset up to $3,000 of ordinary income per year ($1,500 if married filing separately). Taxed at your marginal rate — so for a 24% bracket, that's $720 of federal savings, plus state.
- Carryforward — any remaining losses carry forward to future years indefinitely. If you realize $20,000 of losses this year against no gains, you use $3,000 this year and carry $17,000 to future years.
The $3,000 ordinary-income cap hasn't been inflation-adjusted since the 1970s, so it's relatively small today. Most TLH value comes from gain offset and carryforward.
The wash sale rule
The big constraint on TLH is the wash sale rule. If you sell a security at a loss and buy the "same or substantially identical" security within 30 days before or after, the IRS disallows the loss. The disallowed loss gets added to the cost basis of the replacement shares (so you don't lose it forever, but you defer it).
"Substantially identical" is not bright-line defined. Safe interpretations:
- Same CUSIP — clearly substantially identical
- Different ETFs tracking the same index — probablysubstantially identical (e.g., VTI and ITOT both track similar broad US markets). Conservative practice: wait 30 days.
- Different ETFs tracking different indexes — not substantially identical. You can sell VTI (CRSP US Total Market Index) and buy SCHB (Dow Jones US Broad Stock Market Index) without triggering wash sale. Both are US total-market but track different indexes.
- Stock vs ETF of its sector — stock of Apple vs QQQ is not substantially identical.
The 30-day windows
The wash sale window is 30 days before the sale AND 30 days after — a 61-day window in total. Buying the security just before selling it at a loss (e.g., DCA-ing in) also triggers wash sale on the earlier purchase shares. And the rule applies across all your accounts — buying in your IRA within 30 days of a loss sale in taxable triggers wash sale with no basis- adjustment path. You've permanently lost the loss.
TLH pairs for broad-market exposure
Common TLH pair setups used by DIY investors and robo- advisors:
- US total market: VTI ↔ ITOT ↔ SCHB. Each tracks a slightly different total-market index. Conservatively, hold a 30-day gap before returning.
- US large-cap: VOO ↔ SPY ↔ IVV. All track S&P 500 — same underlying. Many practitioners still swap these but it's a gray area.
- International developed: VXUS ↔ IXUS. Different indexes; cleaner TLH pair.
- Emerging markets: VWO ↔ IEMG.
- Bonds: BND ↔ AGG. Very similar but different indexes.
When to harvest
The main heuristic: harvest when a position is down 5%+ below your basis, assuming you have at least a 6-month holding period on the loss. Harvesting a 2% loss usually isn't worth the transaction cost or wash-sale risk. Market corrections (2020 Q1, 2022 Q4, 2025 bond-market selloff) are peak TLH opportunity windows.
The real economic value of TLH
Vanguard research suggests TLH can add 0.5–1.0% to after-tax returns for taxable accounts over long periods. The benefit comes from deferring taxes, letting the money compound longer before it's paid. TLH doesn't eliminate taxes — it shifts them. When you eventually sell, the lower cost basis (from wash-sale-adjusted replacement shares) means a larger gain at that point.
But if you hold until death, the step-up in basis eliminates the deferred gain entirely. TLH becomes permanent tax savings for estate planners. This is why wealthy families aggressively TLH — the deferred taxes are never paid.
TLH is retail investing alpha
One of the few areas where individual investors have an advantage over institutions is tax management. Mutual funds and ETFs distribute gains to shareholders in December, and can't TLH for individuals. You can do it for yourself. Over 20+ years in a taxable account, disciplined TLH might add $100,000–$500,000 of value for a mid-six-figure portfolio — real money created with spreadsheet work, not market timing.
The robo-advisor option
If manually harvesting is too much work, robo-advisors like Wealthfront, Betterment, and Schwab Intelligent Portfolios do daily TLH across ETF holdings. The service fee (0.25–0.35%) eats into the TLH benefit, but for hands-off investors it's usually net positive above $50k in taxable assets.
Related calculators
Keep the math moving
Retirement & investing
401(k) match optimizer
How much to contribute per paycheck to capture the full employer match — and how much you're leaving on the table.
Retirement & investing
Roth vs traditional IRA breakeven
Find the retirement tax rate at which a Roth and a traditional IRA break even.
Retirement & investing
Retirement savings gap calculator
Project your nest egg at retirement age vs what you need — see the monthly gap.
Retirement & investing
Social Security claiming age calculator
Compare lifetime benefit at 62, full retirement age, and 70 — including breakeven age.
Retirement & investing
RMD (required minimum distribution)
Your required minimum distribution from a traditional IRA / 401(k) using the IRS Uniform Lifetime Table.
Retirement & investing
Dividend reinvestment growth
Compound a dividend-paying portfolio with reinvestment over N years — income vs total return.