The Idea in One Sentence
Tax loss harvesting means deliberately selling an investment that’s lost value so you can use that loss to offset gains — or even a slice of your ordinary income — on your tax return, while staying invested in the market through a similar (but not identical) replacement asset.
How the Offset Actually Works
Capital losses first offset capital gains of the same type: short-term losses against short-term gains, long-term against long-term. If losses exceed gains, the excess — up to $3,000 per year ($1,500 if married filing separately) — can offset ordinary income like wages. Any loss beyond that carries forward to future tax years indefinitely.
Example: You have $8,000 in realized long-term capital gains this year and also harvest $11,000 in losses from a declining position. The losses fully offset the $8,000 in gains, and the remaining $3,000 offsets your ordinary income — reducing your taxable wages by $3,000 this year, with $0 carried forward in this scenario.
The Wash-Sale Rule Is the Catch
The IRS disallows the loss if you buy the same security — or one that’s “substantially identical” — within 30 days before or after the sale. This applies across all your accounts, including your spouse’s and even your IRA. Violating it doesn’t just delay the deduction; it can permanently disallow it in some cases.
How to Harvest Without Leaving the Market
Most investors harvest a loss and immediately buy a similar-but-not-identical fund (e.g., selling an S&P 500 index fund and buying a total market fund) to stay invested and avoid missing a rebound, while sidestepping the wash-sale rule.
Short-Term vs Long-Term Matters
| Holding period | Tax rate on gains | Priority for harvesting |
|---|---|---|
| Short-term (≤1 year) | Ordinary income rates (up to 37%) | Highest value to offset first |
| Long-term (>1 year) | 0%, 15%, or 20% | Lower value, offset second |
Harvesting short-term losses is generally more valuable because short-term gains are taxed at your full ordinary rate, while long-term gains already enjoy preferential rates.
When It Doesn’t Make Sense
- In a tax-advantaged account (401(k), IRA) — there are no capital gains taxes to offset in the first place
- If you’re in the 0% long-term capital gains bracket already (taxable income under about $48,350 single / $96,700 MFJ in 2025)
- If transaction costs or bid-ask spreads outweigh the tax benefit on small positions
A Year-Round, Not Just December, Strategy
While “tax loss harvesting season” gets attention in December, losses can be harvested any time a position is down — waiting until year-end risks a market recovery erasing the opportunity.
Use Our Calculator
Capital gains and losses flow into your overall tax picture alongside your wages. Use our free US Paycheck Calculator to see how your regular paycheck withholding interacts with your total expected tax liability.
Figures reflect 2025 tax year rules. Tax laws change — verify with the IRS or a tax professional.