Capital Gains Harvesting Calculator

Calculate tax savings from harvesting gains in the 0% LTCG bracket.

By Konstantin Iakovlev · Updated September 2026 · Source: IRS Rev. Proc. 2025-32 §4.03 — 2026 0% and 15% capital gains thresholds

$
$
$

Net Gain

$7,000.00

Tax Savings

$1,200.00

Harvesting Summary

Gains Offset by Losses$8,000.00
Net Taxable Gain$7,000.00
Room Left in the 0% Bracket$0.00
Deductible Excess Loss$0.00
Loss Carryforward$0.00
Tax on Net Gain (15%)$1,050.00

Use the Capital Gains Harvesting Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.

How It Works

Selling appreciated assets at exactly the right moment can let you cash in gains and owe nothing, and this tool estimates how much that timing is worth. The strategy hinges on the 0% long-term capital gains (LTCG) bracket, which for 2026 covers taxable income up to $98,900 for married filing jointly, $49,450 for single filers, and $66,200 for heads of household (IRS Rev. Proc. 2025-32). Staying under your threshold is the whole game when it comes to trimming tax on investment gains.

The math starts from your estimated taxable income before any capital gains. From there it works out how much gain you can realize inside the 0% LTCG bracket without breaching the income limit tied to your filing status. In practice that means taking the difference between your 0% bracket ceiling and your current taxable income excluding capital gains, which is the largest gain you can harvest tax-free.

Overlooking an income source when you tally taxable income is the quickest way to slip out of the 0% bracket without realizing it. Capital losses can offset gains, though only up to $3,000 against ordinary income in a single year. The Wash Sale Rule deserves attention too: when you sell for a loss, repurchasing a substantially identical security within 30 days before or after that sale disqualifies the loss.

Example: Married Filing Jointly, Harvesting Gains

  1. 1 John and Jane are married filing jointly. After the $32,200 standard deduction, their taxable income from salaries and other sources is $80,000. They own stock with an unrealized long-term gain of $25,000.
  2. 2 For 2026, the 0% LTCG bracket for married filing jointly ends at $98,900 of taxable income. $98,900 (0% bracket limit) - $80,000 (taxable income before gains) = $18,900 of room.
  3. 3 By selling enough shares to realize $18,900 of gain, John and Jane owe $0 in federal long-term capital gains tax on it. If they realized the full $25,000, the remaining $6,100 would be taxed at 15%, or $915.
  4. 4 This strategic harvesting allows them to realize a portion of their investment gains completely tax-free, effectively reducing their overall tax burden. This strategy is particularly effective for those with fluctuating incomes or those who can control their income in a given year.

Frequently Asked Questions

What is capital gains harvesting?
Capital gains harvesting means intentionally selling appreciated investments in years when you fall in the 0% long-term capital gains bracket (taxable income under $49,450 single or $98,900 married filing jointly for 2026). You realize gains tax-free and rebuy immediately to reset your cost basis higher.
Who benefits from capital gains harvesting?
It benefits people in lower income years, such as early retirees living on savings before Social Security, students, people between jobs, or anyone whose taxable income falls below the 0% LTCG threshold. It is essentially free money from a higher cost basis.
How is capital gains harvesting different from tax-loss harvesting?
Tax-loss harvesting sells losers to offset gains (reducing taxes now). Capital gains harvesting sells winners when your rate is 0% (paying no tax now). Loss harvesting defers taxes; gains harvesting eliminates them permanently by resetting cost basis.