Tax-loss harvesting lets you sell losing investments in a taxable brokerage account to offset realized capital gains dollar for dollar, plus up to $3,000 of ordinary income per year ($1,500 if married filing separately).
Any remaining net loss carries forward indefinitely to future tax years, though harvesting delivers zero immediate tax savings if your taxable income already falls in the 0% long-term capital gains bracket.
How Capital Gains Offsets and the $3,000 Limit Work
Only realized losses, meaning investments sold for less than their cost basis, reduce your tax bill. Paper drops in holdings you still own do not count, and losses inside tax-advantaged accounts like a 401(k) or IRA cannot be deducted.
The tax savings depend on whether your gains are short-term or long-term, which we break down in our guide to how capital gains are taxed.
Assets held one year or less generate short-term gains taxed at 2026 ordinary rates up to 37%. Investments held longer than one year generate long-term gains taxed at 0%, 15%, or 20% in 2026.
When total realized losses exceed total realized gains for the year, IRS Topic No. 409 limits the ordinary-income deduction to $3,000, or $1,500 if married filing separately. Unused excess losses carry forward into future tax years until exhausted.
Because harvested losses lower your Adjusted Gross Income, they can also help high earners stay below the 3.8% Net Investment Income Tax thresholds. Those Modified AGI cutoffs are $200,000 for single filers, $250,000 for joint filers, and $125,000 for married separate filers.
Keep retirement accounts out of this calculation entirely. Keeping high-turnover or loss-prone assets in the right wrappers starts with tax-efficient fund placement across taxable and retirement accounts.
The IRS Netting Order on Form 8949 and Schedule D
You cannot freely apply a long-term loss straight against a short-term gain if you still have gains in the same category. The IRS requires a strict netting sequence before any crossover occurs.
- Net short-term capital losses against short-term capital gains first.
- Net long-term capital losses against long-term capital gains second.
- Apply any leftover net loss from one category against the remaining net gain in the other.
- Deduct up to $3,000 ($1,500 if married filing separately) of any overall net loss against ordinary income, carrying the rest forward.
A married couple filing jointly in 2026 with $265,000 in taxable income (inside the 24% ordinary bracket and 15% long-term gains bracket) realizes $7,500 in short-term gains, $3,000 in short-term losses, $14,000 in long-term gains, and $17,000 in long-term losses.
First, the $3,000 short-term loss trims short-term gains to $4,500. Second, the $17,000 long-term loss wipes out the $14,000 long-term gain with $3,000 left over.
Third, that $3,000 net long-term loss crosses over to cut the remaining short-term gain to $1,500. That offset saves $720 at the 24% ordinary rate.
Your brokerage reports these sales on Form 1099-B, which you reconcile on Form 8949 for short-term and long-term sales. Short-term trades go in Part I and long-term trades go in Part II, with disallowed wash sales marked Code W in column (f).
Those subtotals transfer directly to Schedule D (Form 1040) for final netting. Part I, Line 7 calculates net short-term gain or loss, Part II, Line 15 calculates net long-term gain or loss, and Part III, Line 16 combines Lines 7 and 15.

Harvesting vs. Holding: Three 2026 Tax-Savings Scenarios
The table below compares three long-term harvesting outcomes for the same 2026 married couple ($265,000 taxable income, 15% long-term gains rate, and 24% ordinary rate) holding $14,000 in realized long-term gains.
| Strategy | Realized Gains (Schedule D, Line 15) | Harvested Losses | Net Taxable Gain or Offset (Schedule D, Line 16) | 2026 Federal Tax Saved | Loss Carryforward |
|---|---|---|---|---|---|
| Hold losing positions | $14,000 | $0 | $14,000 taxable gain | $0 | $0 |
| Partial harvest | $14,000 | $9,000 | $5,000 taxable gain | $1,350 | $0 |
| Full offset plus ordinary cap | $14,000 | $21,000 | $0 gain; $3,000 income deduction | $2,820 | $4,000 |
In the third scenario, the first $14,000 of harvested losses erases $2,100 in tax on the long-term gain at 15%. Deducting $3,000 against ordinary income at 24% saves another $720, while the remaining $4,000 carries forward.
For a taxpayer using Married Filing Separately status under the same $21,000 loss and $14,000 gain, the ordinary-income deduction shrinks from $3,000 to $1,500. That cuts the ordinary-income tax savings in half to $360 and pushes $5,500 into future carryforward.
The 61-Day Wash-Sale Rule Across All Your Accounts
Selling a losing investment and immediately buying it back voids the tax deduction. Under IRS Publication 550 wash-sale rules, the loss is disallowed if you buy the same or a substantially identical security within 30 days before or after the sale.
Counting the sale date itself, that restriction spans a 61-day window. The rule covers stocks, ETFs, mutual funds, and options or contracts to acquire substantially identical shares, plus purchases made by your spouse.
Swapping one S&P 500 index fund for another S&P 500 index fund from a different issuer risks triggering a wash sale because both track the exact same index. Instead, investors commonly switch into a broad total-market fund to keep equity exposure intact.
In a taxable account, a disallowed wash sale adds the blocked loss to your replacement shares’ cost basis, delaying the tax benefit. However, IRS Revenue Ruling 2008-5 permanently disallows the loss if you buy replacement shares inside a Traditional or Roth IRA.
Automatic dividend reinvestments and employer equity vesting can also trip the 30-day clock unexpectedly. See our dedicated guide to avoiding wash-sale traps across IRAs and employer stock plans before placing replacement trades.
When Harvesting Wastes Losses or Costs You Money
Tax-loss harvesting is counterproductive if your taxable income already qualifies for the 0% long-term capital gains bracket. For 2026, IRS Revenue Procedure 2025-32 sets the 0% threshold at $49,450 of taxable income for single or married separate filers and $98,900 for joint filers.
If your long-term gains would already be taxed at 0%, harvesting losses saves nothing today and burns losses you could use in a future higher-income year. Low-income investors often do the reverse, selling appreciated shares to step up cost basis tax-free.
Harvesting is also usually a tax deferral rather than permanent tax elimination. Buying a replacement fund at a lower price lowers your new cost basis, which creates a larger taxable gain when you eventually sell.
A harvested loss acts as a deduction at your marginal rate rather than a dollar-for-dollar credit, a distinction covered in our guide to tax credits versus tax deductions.
Do not wait exclusively until late December to review unrealized losses, because spring or autumn market pullbacks often rebound before year-end. Check quarterly, and skip trades where fund redemption fees or wide bid-ask spreads outweigh the tax savings.
Manual Harvesting vs. Robo-Advisor Tax Loss Tools
Managing tax-loss harvesting yourself is straightforward if you hold a handful of broad ETFs in a single taxable brokerage account. Before selling, turn off automatic dividend reinvestment on the outgoing fund for 31 days and choose a replacement tracking a different index.
Automated robo-advisors scan accounts daily and swap correlated ETFs when losses pass preset thresholds. Still, the SEC Investor Bulletin on Robo-Advisers notes that automated harvesting’s value depends on your tax situation and can trigger wash sales against outside accounts.
Consult a CPA or enrolled agent if you need to reconcile Form 1099-B and Schedule D wash-sale adjustments across spousal accounts, IRAs, and vesting employer RSUs. Separate brokerages rarely flag cross-account wash sales automatically, so you must track them on Form 8949.