Capital Gains Harvesting Calculator
Calculate tax savings from harvesting gains in the 0% LTCG bracket.
By Konstantin Iakovlev · Updated April 2026 · Source: IRS — Forms, Instructions & Publications
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 |
| 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 $99,650 for married filing jointly, $49,800 for single filers, and $74,900 for heads of household (these thresholds are inflation-adjusted estimates). 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 John and Jane have a combined adjusted gross income (AGI) of $80,000 from salaries and other sources. They are married filing jointly and want to harvest some capital gains. They own stock with an unrealized gain of $25,000.
- 2 For 2026, the 0% LTCG bracket for married filing jointly is estimated at $99,650. Their current taxable income before capital gains is $80,000. Therefore, the amount of capital gains they can realize at 0% is $99,650 (0% bracket limit) - $80,000 (taxable income) = $19,650.
- 3 By selling $19,650 of their appreciated stock, John and Jane will incur $0 in federal long-term capital gains tax on that amount. If they had sold the full $25,000, the remaining $5,350 would be taxed at 15%.
- 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.
Source: IRS — Forms, Instructions & Publications · Last updated: April 2026
Frequently Asked Questions
What is capital gains harvesting?
Who benefits from capital gains harvesting?
How is capital gains harvesting different from tax-loss harvesting?
You might also need
Federal Income Tax Calculator 2026 — Free IRS Tax Estimator
Calculate your 2026 federal income tax, bracket, effective rate, FICA, and take-home pay. Free, instant results based on official IRS rates and brackets.
Capital Gains Tax Calculator 2026 — Short & Long-Term Rates
Calculate short-term and long-term capital gains tax on stocks, real estate, and investments. Includes NIIT. Free, instant results based on 2026 IRS brackets.
Child Tax Credit Calculator 2026
Calculate your Child Tax Credit and Other Dependent Credit. See phase-out thresholds and net credit amount for your income.