Capital Gain Harvest vs Loss Harvest Calculator

Model both strategies: realize long-term gains at 0% while income is low (gain harvesting), or offset gains with losses to reduce your tax bill (loss harvesting). Applies 2026 LTCG brackets and IRC §1211 netting rules.

Gains on assets held >12 months
Gains on assets held ≤12 months (taxed as ordinary income)
Unrealized losses you could harvest; include carryforward losses
Ordinary income AGI before capital gains (Line 11 of Form 1040)
Tax Saved by Loss Harvesting
Using available losses to offset gains
LT Cap Gain Rate
Tax Without Harvesting
Tax After Loss Harvest
Net Capital Gain Left
Ordinary Income Offset
0% LTCG Headroom
Ad Space

How Capital Gain and Loss Harvesting Works in 2026

Capital gain harvesting and tax-loss harvesting are two strategies using the same mechanism — the deliberate realization of capital gains or losses — but toward opposite goals. Loss harvesting sells underperforming positions to generate losses that offset taxable gains, reducing your 2026 tax bill. Gain harvesting intentionally realizes long-term gains when your income is low enough to qualify for the 0% LTCG rate, resetting your cost basis with no immediate tax cost.

The netting rules under IRC §1211 require short-term gains/losses to net against each other first, and long-term gains/losses to net separately. After same-type netting, a net loss in one category can offset a net gain in the other. Net losses exceeding all gains can offset up to $3,000 of ordinary income per year, with excess carrying forward indefinitely. Source: irs.gov/taxtopics/tc409, IRS Schedule D instructions. Last updated: May 2026. Note: OBBB (P.L. 119-21, signed July 4, 2025) made the 2026 LTCG rate thresholds permanent.

2026 Long-Term Capital Gain Tax Brackets

Filing Status0% Rate15% Rate20% RateNIIT Applies If MAGI Exceeds
SingleUp to $47,025$47,025–$518,900Above $518,900$200,000
Married Filing JointlyUp to $94,050$94,050–$583,750Above $583,750$250,000
Head of HouseholdUp to $63,000$63,000–$551,350Above $551,350$200,000

Remember: LTCG stacks on top of ordinary income to determine which rate applies. If your taxable ordinary income is $40,000 (single), the first $7,025 of LTCG fits in the 0% bracket ($47,025 − $40,000). Any LTCG above $7,025 is taxed at 15%. Modeling this stacking effect is essential for accurate harvesting decisions. Source: IRS Revenue Procedure 2025-40.

Gain Harvesting vs Loss Harvesting — When to Use Each

Use gain harvesting when: Your taxable income (including gains) will stay below the 0% threshold ($47,025 single / $94,050 MFJ). This applies in early retirement, low-income transition years, years with large deductions (business losses, high itemized deductions), or for children with low income (watch kiddie tax rules). You realize gains, pay zero federal tax, and immediately repurchase — resetting basis with no wash-sale risk since the rule only applies to losses. Use loss harvesting when: You have realized or unrealized gains to offset, your marginal LTCG rate is 15% or 20%, and you have positions with unrealized losses. Each dollar offset saves 15–23.8 cents (15% + up to 3.8% NIIT). Reinvest in a similar-but-not-identical fund to maintain exposure and avoid the wash-sale rule (IRC §1091). Source: irs.gov/publications/p550.