Tax-Loss Harvesting Strategies to Offset Capital Gains
Learn how tax-loss harvesting works, when to use it, wash-sale rules to avoid, and how to strategically offset short- and long-term capital gains.
Harvesting a $3,000 Deduction Costs Nothing Except Discipline
Tax-loss harvesting is the deliberate act of selling investments at a loss to generate a tax deduction, then immediately reinvesting the proceeds to maintain market exposure. Done correctly, it converts paper losses into real tax savings without permanently abandoning any position. Vanguard research estimates the strategy can add 0.4% to 0.9% in after-tax annual returns, a figure researchers call "tax alpha." The mechanics are not complicated, but the rules that govern when a loss is disallowed — and how losses offset gains — require careful navigation.
How Capital Gains and Losses Are Categorized
The IRS taxes capital gains based on how long you held the asset before selling. The holding period threshold is exactly one year.
| Gain Type | Holding Period | 2025 Tax Rate (Single Filer) | 2025 Tax Rate (MFJ) |
|---|---|---|---|
| Short-term | 1 year or less | 10%–37% (ordinary income rates) | 10%–37% |
| Long-term (0% bracket) | More than 1 year | $0–$48,350 | $0–$96,700 |
| Long-term (15% bracket) | More than 1 year | $48,351–$533,400 | $96,701–$600,050 |
| Long-term (20% bracket) | More than 1 year | Above $533,400 | Above $600,050 |
When you harvest a loss, the IRS requires you to first offset losses against gains of the same type. Short-term losses offset short-term gains first, then any excess offsets long-term gains. Long-term losses follow the reverse order. This netting sequence matters because short-term gains are taxed at higher ordinary income rates — so short-term losses are the most valuable to harvest.
The $3,000 Ordinary Income Deduction
After all gains are offset, any remaining net capital loss can be deducted against ordinary income — but only up to $3,000 per year ($1,500 if married filing separately). Losses beyond $3,000 carry forward indefinitely to future years. There is no expiration on carryforward losses, and they retain their character (short-term or long-term) as they roll forward. A significant loss in one year can shield gains for a decade.
- Net capital losses exceeding $3,000 carry forward to the next tax year automatically
- Carryforward losses are reported on Schedule D and Form 8949
- Losses from a deceased taxpayer's final return do not pass to heirs — they expire
- Passive activity losses follow different rules under Section 469 and cannot be freely combined
The Wash-Sale Rule: The 61-Day Window
Section 1091 of the Internal Revenue Code disallows a loss if you buy a "substantially identical" security within 30 days before or 30 days after the sale date — a total 61-day window. The IRS created this rule to prevent investors from manufacturing tax losses while maintaining the same economic exposure.
If a wash sale occurs, the disallowed loss is added to the cost basis of the replacement shares, effectively deferring rather than permanently eliminating the deduction. But deferral is only useful if you eventually sell the replacement shares in a non-wash-sale context.
| Scenario | Wash Sale? | Result |
|---|---|---|
| Sell VTSAX at a loss, buy VTSAX 20 days later | Yes | Loss disallowed; added to new cost basis |
| Sell VTSAX at a loss, buy VTI immediately | Likely no | Loss allowed (different fund, similar index) |
| Sell AAPL at a loss, buy MSFT immediately | No | Loss allowed |
| Sell losing fund in IRA, buy same fund in taxable account | Yes (cross-account) | Loss permanently disallowed |
Note that the wash-sale rule applies across all accounts held by the same taxpayer — including IRAs. A loss sold in a taxable brokerage and immediately repurchased in an IRA triggers the rule, and because IRAs don't recognize basis adjustments the same way taxable accounts do, the loss is permanently lost rather than deferred.
Replacement Security Strategies
The art of tax-loss harvesting lies in selling a losing position while replacing it with something different enough to avoid the wash-sale rule but similar enough to preserve intended market exposure. Common substitution pairs include:
- S&P 500 index fund → Total market index fund (different index, similar exposure)
- One large-cap growth ETF → A different issuer's large-cap growth ETF tracking a different index
- Individual stock → Sector ETF covering that industry
- Developed international fund → A different issuer's EAFE index fund
Mutual funds and ETFs tracking the same index from different providers may still be considered substantially identical if their portfolios are nearly identical. The IRS has not issued definitive guidance on this point, and tax professionals disagree. Using funds from different index families reduces risk.
When Tax-Loss Harvesting Makes Sense
Not every loss is worth harvesting. Transaction costs, tax bracket, and portfolio complexity all affect the calculus.
- Harvesting is most valuable in high-income years when short-term gains are taxed at 32%–37%
- Investors in the 0% long-term capital gains bracket gain little from harvesting long-term losses
- Harvesting near year-end is common, but losses can be captured any time market dislocations occur
- Robo-advisors like Betterment and Wealthfront automate daily harvesting across large portfolios, generating more frequent opportunities than manual monitoring allows
This article is for informational purposes only and does not constitute financial or tax advice.
Related Articles
taxation
Disability Tax Credits: Federal and State Benefits for Disabled Americans
Federal tax credits available to disabled Americans and their caregivers: EITC, the Credit for the Elderly or Disabled, medical deductions, ABLE accounts, and state-level programs.
9 min read
taxation
Foreign Tax Credit Explained: Avoiding Double Taxation on Overseas Income
How the foreign tax credit works, Form 1116, passive vs. general basket rules, the credit vs. deduction choice, and who qualifies for the simplified method.
9 min read
taxation
Net Investment Income Tax: The 3.8% Medicare Surtax on Passive Income
How the 3.8% net investment income tax works, MAGI thresholds, what counts as NII, real estate professional exception, and strategies to reduce exposure.
9 min read
taxation
Self-Employed Tax Deductions: Every Write-Off You Can Legally Claim
A complete guide to self-employment tax deductions including home office, health insurance, retirement contributions, vehicle expenses, and the SE tax deduction.
9 min read