QuantCalc Tax-Loss Harvesting Calculator
Retirement Planner All tools

Tax-Loss Harvesting & Capital Gains Calculator (2026)

Full Schedule D netting — short vs long term, the $3,000 loss limit, character-preserving carryforward, NIIT, and your 0% bracket headroom.

Enter this year's gains, losses, and carryovers and the calculator runs the exact Schedule D sequence: same-character netting, cross-character offset, the $3,000 ordinary-income deduction ($1,500 married filing separately), and the character-split carryforward to next year — then prices it all with 2026 federal brackets, the long-term capital-gains stack, and the 3.8% net investment income tax.

Your 2026 capital gains & losses

Losses are entered as positive numbers. Results update as you type.

Wages, interest, pensions (≈ AGI without this year's sales), before the deduction
Optional — leave blank to use the 2026 standard deduction for your filing status
State estimate appears in the tax breakdown for PRO users
Held ≤ 1 year
Enter as a positive number
Held > 1 year
Enter as a positive number
From last year's Schedule D worksheet, short-term line
From last year's Schedule D worksheet, long-term line

Netting summary

Net short-term
gains − losses − carryover
Net long-term
gains − losses − carryover
Taxed as ordinary income
net short-term gain after cross-netting
Taxed at preferential rates
net long-term gain after cross-netting
Loss deducted vs ordinary income
up to the annual limit
Carryforward to 2027
short-term / long-term split

Federal tax breakdown

ComponentAmountNotes
Federal ordinary income tax
Federal long-term capital gains tax
Net investment income tax (3.8%)
State tax estimate PRO🔒 PROUnlock to see the state layer for your selection
Total
Tax from your capital items
total tax with these sales minus total tax without them
Effective rate on included gains
capital-item tax ÷ net gain included in income

0% bracket headroom

How much more long-term gain fits at a 0% federal rate this year, on top of everything entered above.

Gain-harvesting headroom

NIIT threshold check

The 3.8% net investment income tax starts at a statutory MAGI threshold that never inflates.

Wash-sale checker

Check one loss sale against up to three repurchases. The 61-day window is 30 days before through 30 days after the sale (IRC §1091).

Positive number; the rule only applies to losses
Repurchases of the same (or substantially identical) security
Loss disallowed
Loss still deductible
Added to replacement basis
Permanently disallowed (IRA)

    Harvest analyzer — is this loss worth taking? PRO

    Selling at a loss saves tax now but lowers your basis, so more gain is taxed later. This computes the net present value of harvesting a loss on top of everything in the main form above.

    15.0%
    Defaults to your current all-in marginal rate on long-term gains
    Tax saved now
    Future cost (discounted)
    Net present value
    Break-even future rate
    above this future rate, holding beats harvesting
    Where the savings come fromAmount
    Offsetting same-character gains
    Offsetting cross-character gains
    Offsetting ordinary income (the $3,000 / $1,500 lane)

    Unlock the harvest analyzer

    NPV of every harvest, decomposition of the savings, break-even rates, and the state tax layer — all client-side, nothing uploaded.

    Unlock with Tax Tools PRO — $39 once
    Already purchased? Paste your key

    Multi-year carryforward projection PRO

    How your loss carryforward gets absorbed year by year, and what it saves versus having no carryforward at all. Uses your filing status, state, and carryovers from the main form; 2026 brackets are applied to every year.

    Year ST carryover in LT carryover in Loss deducted Total tax Saved vs no carryforward
    Cumulative tax saved by the carryforward
    Carryforward remaining at the end

    Unlock the multi-year projection

    See exactly when a large carryforward runs out and what it saves each year, with the state layer included.

    Unlock with Tax Tools PRO — $39 once
    Already purchased? Paste your key

    Model your whole retirement, not just this year

    This page prices one tax year. The full QuantCalc planner runs a free 10,000-path Monte Carlo over your entire retirement — withdrawals, taxes, Roth conversions, and sequence risk together.

    Model your whole retirement, not just this year — free 10,000-path Monte Carlo →

    Frequently Asked Questions

    How does tax-loss harvesting work in 2026?

    Tax-loss harvesting means selling investments that have fallen below your cost basis to realize a capital loss on purpose. On Schedule D, losses first offset gains of the same character — short-term against short-term, long-term against long-term — and any remainder crosses over to offset the other character. Up to $3,000 of a leftover net loss ($1,500 married filing separately) then reduces ordinary income, and everything beyond that carries forward to future years. Because short-term gains are taxed at ordinary rates up to 37% while long-term gains top out at 20% plus the 3.8% net investment income tax, a harvested loss is worth the most when it lands on short-term gains or ordinary income.

    What is the $3,000 capital loss limit ($1,500 married filing separately)?

    After all gains and losses are netted, a net capital loss can offset at most $3,000 of ordinary income per year — $1,500 if married filing separately (IRC §1211(b)). The limit is per return, not per person, and it is not indexed to inflation. Losses above the limit are not wasted: they carry forward indefinitely, and under the IRS carryover worksheet a loss is only treated as used up to the extent your taxable income was positive before the capital-loss deduction.

    What is the wash-sale rule (61-day window, basis adjustment)?

    If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or 30 days after the sale — a 61-day window centered on the sale date — the loss is disallowed under IRC §1091. For a repurchase in a taxable account the disallowed loss is added to the basis of the replacement shares and the original holding period tacks on, so the loss is deferred rather than destroyed. A repurchase inside an IRA permanently disallows that portion of the loss with no basis adjustment (Rev. Rul. 2008-5). The rule only applies to losses — winners can be repurchased immediately.

    Do losses carry forward and do they keep their short/long-term character?

    Yes. Unused capital losses carry forward indefinitely for individuals and retain their character under IRC §1212(b): a short-term carryover enters next year's short-term netting and a long-term carryover enters the long-term netting. Character matters because short-term gains are taxed at ordinary rates, so a short-term carryover that absorbs short-term gains saves more per dollar than a long-term one. When the $3,000 ordinary-income offset is consumed, short-term loss is treated as used before long-term.

    What is the 0% capital-gains bracket and who can use it?

    For 2026, long-term capital gains are taxed at 0% federal to the extent taxable income stays under $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household). Because the standard deduction ($16,100 single / $32,200 joint) comes off first, a married couple with no other income could realize roughly $131,100 of long-term gains at a 0% federal rate. Low-income years — early retirement, sabbaticals, between jobs — are the classic window, and gain harvesting in those years resets basis upward for free. Note that 0%-rate gains still count toward state tax, the net investment income tax threshold, and ACA/IRMAA income tests.

    Does harvesting always save money?

    No. If the gains a harvest offsets would have been taxed at 0% anyway, the harvest saves nothing today while still lowering your cost basis — so you may simply owe more tax when you eventually sell. Whether a harvest pays off depends on the rate you save now versus the rate you expect on the deferred gain later, and on how long the deferral lasts. The harvest analyzer on this page computes the net present value: tax saved now, minus the discounted future cost of the reduced basis, with a break-even future rate — and treats the future cost as zero if the position will get a step-up in basis or be donated.

    Related QuantCalc tools & guides

    Methodology & scope. 2026 figures follow IRS Rev. Proc. 2025-32 (ordinary brackets, standard deduction, long-term capital-gains breakpoints). Net investment income tax thresholds are statutory (IRC §1411) and not inflation-indexed. State estimates are top-marginal approximations; Pennsylvania's in-year-only netting rules and the Washington long-term capital-gains excise are modeled explicitly — the Washington deduction used is the 2025 indexed figure pending the 2026 Department of Revenue release. The multi-year projection applies 2026 brackets to every projected year. Collectibles (28%), unrecaptured §1250 gain (25%), §1202 QSBS, and AMT are not modeled. Educational tool only — not tax advice; confirm decisions with a CPA.