Capital Gains Harvest
Calculator 2026
Maximize tax-free LTCG harvest in the 0% federal bracket. 2026 brackets: $48,475 single / $96,950 MFJ taxable income. Sell + immediately repurchase appreciated holdings to step up cost basis at $0 federal tax. No wash sale rule on gains.
Quick answer: Capital Gains Harvesting realizes long-term capital gains in 0% LTCG bracket years to step up cost basis tax-free. 2026 IRS 0% LTCG bracket: $48,475 single / $96,950 MFJ / $64,750 HoH (taxable income). Plus standard deduction $15,750 single / $31,500 MFJ / $23,625 HoH. Gross-income 0% ceiling effectively ~$64,225 single / $128,450 MFJ with no other income. 15% LTCG up to $533,400 single / $600,050 MFJ; 20% above. §1091 wash sale rule does NOT apply to gains — sell and immediately rebuy same security to lock in stepped-up basis. NIIT 3.8% surtax applies above $200k single / $250k MFJ MAGI. Source: IRC §1, §1411, §1091, §1014, Rev. Proc. 2024-40.
Wages, business, interest, rental — NOT LTCG. Taxable ordinary after standard deduction: $8,500
Max tax-free harvest with your inputs: $88,450
Tax-Free (0%)
$60,000
basis stepped up free
Taxed at 15%
$0
tax $0
Taxed at 20% + NIIT
$0
tax $0
Net Gain Kept
$60,000
effective 0.0%
Harvest summary
- • Taxable ordinary income (after std deduction): $8,500
- • 0% LTCG bracket headroom: $88,450 of taxable income capacity
- • Max tax-free GROSS harvest: $88,450
- • Total federal capital gains tax: $0
- • Effective rate on harvested gain: 0.0%
- • Step-up benefit: future sales taxed only on appreciation above the new basis — wash sale rule does NOT apply to gains
⚠ State tax may apply on top — PA, FL, TN, WA, AK, NV, SD, WY, NH have no state LTCG. CA, NY, HI tax LTCG as ordinary income at state rates. Watch for late-December mutual fund distributions that stack on harvested gains. Execute via specific identification under Treas. Reg. §1.1012-1(c) — choose which tax lots to sell.
This is the textbook answer. Want to see this calculated against your actual accounts?
Connect them to Richify →Track Your Finances With Felix
Get personalised AI-powered financial insights. Free to download, no ads.
Download Richify — It’s FreeHow It Works
Capital Gains Harvesting realizes long-term capital gains in low-income years to step up cost basis at 0% federal tax. Three mechanics:
- 0% LTCG bracket — 2026 taxable income up to $48,475 single / $96,950 MFJ. Plus standard deduction (~$15,750 single / $31,500 MFJ) extends the gross income that fits in this bracket.
- Step-up basis — sell at current price, rebuy immediately at the same price. Future taxable gain only on appreciation above the new basis.
- No wash sale on gains — §1091 wash sale rule applies to losses only. Gains can be repurchased same-day with no waiting period.
- NIIT 3.8% surtax — applies if MAGI exceeds $200k single / $250k MFJ. Most 0%-bracket harvesters are below this threshold.
Source: IRC §1, §1411, §1091, §1014, Treas. Reg. §1.1012-1(c) (specific identification). 2026 brackets per IRS Rev. Proc. inflation adjustments.
How To Use This Calculator
- Enter your filing status (single, MFJ, HoH) and projected ordinary income for the year (wages, business income, interest, rental — NOT capital gains/qualified dividends).
- The calculator subtracts the standard deduction and shows your taxable ordinary income. This consumes the lower brackets first.
- The remaining headroom in the 0% LTCG bracket = available tax-free harvest capacity. Harvest more than this and you spill into 15% LTCG.
- Specify the LTCG you want to harvest. The calculator splits between 0% (tax-free), 15%, and 20% portions based on bracket fill — and adds 3.8% NIIT if MAGI exceeds the threshold.
- Sell + immediately repurchase the same security (no wash sale on gains) to step up cost basis. Future sales will be taxed only on appreciation above the new basis.
❓ Frequently Asked Questions
What is capital gains harvesting?
Capital gains harvesting (or 'gain harvesting') is a tax strategy where investors deliberately realize long-term capital gains in years their taxable income falls within the 0% LTCG bracket — typically FIRE retirees with no W-2 income, sabbatical years, or years between jobs. Selling appreciated holdings and immediately repurchasing them at the same price 'steps up' the cost basis at zero federal capital gains tax, locking in future tax-free recovery if the asset is held to a higher basis. Unlike loss harvesting (subject to the §1091 wash sale rule), the wash sale rule does NOT apply to gains — you can sell and immediately rebuy the same security without restriction.
What are the 2026 LTCG brackets?
2026 IRS Long-Term Capital Gains brackets (per Rev. Proc. inflation adjustments, applied to taxable income — not gross): Single / Married Filing Separately: 0% on taxable income to $48,475, 15% on $48,476-$533,400, 20% above $533,400. Head of Household: 0% to $64,750, 15% on $64,751-$566,700, 20% above. Married Filing Jointly: 0% to $96,950, 15% on $96,951-$600,050, 20% above. The 0% bracket effectively extends by the standard deduction (which subtracts from gross to get to taxable income): $15,750 single, $31,500 MFJ, $23,625 HoH. So the gross-income 0% LTCG ceiling is approximately $64,225 single / $128,450 MFJ for a household with no other income except qualified dividends and LTCG.
How much LTCG can I harvest tax-free?
Depends on your other ordinary income for the year. The 0% LTCG bracket is FILLED FIRST by ordinary income, then by LTCG/qualified dividends. Example: married couple with $40,000 ordinary income (after $31,500 standard deduction = $8,500 taxable ordinary) can harvest up to $88,450 of LTCG tax-free ($96,950 0% bracket cap − $8,500 already used by ordinary income). Same couple with $0 ordinary income can harvest the full $128,450 (the 0% bracket cap + standard deduction). State income tax may still apply — Pennsylvania, Tennessee, Florida, and several other states don't tax LTCG at the state level; California, New York, Hawaii tax LTCG as ordinary income at state rates.
Does the wash sale rule apply to capital gains harvesting?
No. The wash sale rule (§1091) prohibits claiming a LOSS if you buy a 'substantially identical' security within 30 days before or after the loss sale. The rule explicitly does NOT apply to gains — you can sell appreciated holdings and immediately repurchase the same security with no restriction, locking in the higher cost basis. This is what makes gain harvesting practical: sell SPY at $400, immediately buy SPY at $400 (same day, same broker), your cost basis updates from (e.g.) $300 to $400 with $100/share gain realized at 0% federal — but you still hold SPY at the new $400 basis. Future sale at higher prices is taxed only on the appreciation above $400.
What is NIIT and does it apply to harvested gains?
NIIT (Net Investment Income Tax, IRC §1411) is a 3.8% federal surtax on the lesser of net investment income or excess MAGI over $200,000 single / $250,000 MFJ (thresholds unchanged since 2013 enactment). It applies to LTCG including harvested gains — but ONLY if your MAGI for the year exceeds the threshold. For most FIRE retirees harvesting in 0% bracket years, MAGI stays well below $200k/$250k, so NIIT doesn't apply. Edge case: a household with $250k+ MAGI (due to e.g. one-off Roth conversion, large rental income, business sale) cannot use the 0% LTCG bracket anyway and faces 15% LTCG + 3.8% NIIT on harvested gains — defeating the strategy. NIIT planning: keep MAGI below threshold via retirement contributions, muni bonds, or timing income across years.
Can I harvest gains in an IRA or 401(k)?
No. Gain harvesting is a TAXABLE-ACCOUNT strategy. Inside a Traditional or Roth IRA, 401(k), or other tax-advantaged retirement account, capital gains are not currently taxed — withdrawals are taxed at ordinary income rates (Traditional) or tax-free (Roth). No basis step-up occurs because no tax event happens. The strategy applies only to: (a) taxable brokerage accounts, (b) UTMA/UGMA accounts, (c) ESPP shares held >1 year and >2 years from grant in qualified status. Tax-loss harvesting is similarly limited to taxable accounts. Inside retirement accounts, the equivalent strategy is Roth conversion (paying tax on conversion at low brackets), not gain harvesting.
What happens to step-up basis at death?
Inherited assets receive a 'step-up in basis' to fair market value at the decedent's date of death (IRC §1014). Beneficiaries can sell immediately with $0 capital gain. This is sometimes called the 'free step-up' — appreciation accumulated during the decedent's life escapes capital gains tax entirely. Implication: if you're elderly and plan to leave assets to heirs, harvesting gains during your lifetime may be UNNECESSARY (the step-up at death achieves the same outcome). However, harvesting still has value: (a) if you'll spend the money before death, (b) if you want to relocate assets to a different state, (c) if you anticipate the step-up being repealed (proposed multiple times in recent legislation). The Inflation Reduction Act 2022 and Build Back Better Act 2021 both proposed limiting or eliminating step-up — neither passed.
Is gain harvesting better than tax-loss harvesting?
Different goals, both valuable. Gain harvesting LOCKS IN basis at the current price in a 0% bracket year — useful when you have unrealized gains and a low-income year. Loss harvesting REALIZES LOSSES to offset other gains or up to $3,000 of ordinary income annually (§1211) — useful when you have unrealized losses and a high-income year. Many FIRE practitioners do both: harvest losses in working years (high income, 15-20% LTCG bracket avoided) and harvest gains in retirement years (low income, 0% LTCG bracket). The wash sale rule applies to losses (30-day repurchase prohibition) but NOT to gains — so the operational complexity differs significantly. Both strategies are administrative — neither generates new wealth, only timing optimization.
When is the best time of year to harvest gains?
December — for two reasons: (1) Income visibility — by mid-December you have a clear picture of your year's other income (W-2, business, rental, etc.), so you can calculate exactly how much LTCG fits in your 0% bracket without spilling into 15%. (2) Mutual fund distribution timing — funds typically distribute capital gains in late December; harvesting before these distributions avoids stacking your harvested gain on top of the distribution. Plan calculation: by November, project your full-year taxable income, then in December execute the harvest order. Watch for ESPP/RSU vesting events that add to ordinary income. Avoid: harvesting in January based on prior year's income (too speculative for the new year), or harvesting in market dips (the lower price means less gain — but also less basis step-up).
What records should I keep after harvesting?
Maintain for 6+ years (covering IRS scrutiny window): (1) Brokerage statements showing the sale date, sale price, and shares of each lot sold — must specify HIGH-COST tax lot if available (use specific identification under §1.1012-1(c) — sell oldest/highest-basis first or specifically identify). (2) Repurchase confirmation showing the rebuy date and price (proves no wash sale concern for any embedded losses in different lots). (3) Form 1099-B from broker (issued in January for prior year) — must reconcile your harvested amounts to broker reporting. (4) Schedule D and Form 8949 attached to Form 1040 — Form 8949 lists each lot, Schedule D summarizes. (5) Updated cost basis records — many brokers reset automatically but verify the new basis is recorded for future sales. CRA-Schedule-D equivalent ITR for harvest tracking annually.
More Free Financial Calculators
Mortgage Calculator
Estimate monthly repayments, interest, and amortisation.
🔄Refinance Calculator
See how much you could save by switching lenders.
📈Compound Interest Calculator
Visualise how your savings grow over time.
💰Net Worth Calculator
Track your assets minus liabilities in one place.
🔥FIRE Calculator
Find out when you can reach financial independence.
💱Currency Converter
Convert between currencies with live exchange rates.
Further Reading
Track Your Finances With Felix
Get personalised AI-powered financial insights. Free to download, no ads.
Download Richify — It’s Free