Capital Gains Sale Planner: Sell Now, Wait, or Choose Different Tax Lots

Plan a stock, fund or crypto sale by the tax it actually triggers \u2014 compare selling now, waiting for long-term treatment, harvesting losses, and choosing which tax lots to sell.

Sale details

Income context
Federal brackets and long-term thresholds for the year of sale.
Sets brackets, long-term thresholds and the NIIT threshold.
$
Your taxable income excluding qualified dividends and the net capital gains entered here.
$
Qualified dividends for the year (taxed at long-term rates).
$
Modified adjusted gross income for the year before adding this sale (for NIIT).
$
Net investment income before this sale (interest, dividends, other gains) for NIIT.
Existing gains, losses & carryovers this year
$
Net short-term gain (positive) or loss (negative) already realized this year, before this sale.
$
Net long-term gain (positive) or loss (negative) already realized this year, before this sale.
$
Short-term capital loss carried over from prior years (enter as a positive amount).
$
Long-term capital loss carried over from prior years (enter as a positive amount).
The sale: dates, basis and proceeds
Trade date you acquired the asset. The holding period begins the day after.
$
Total amount paid for the shares, before purchase costs.
$
Commissions and fees paid to acquire, added to your basis.
$
Other adjustments to basis (e.g. reinvested distributions, wash-sale additions). Can be negative.
Trade date you would sell. Long-term if more than one year after purchase.
$
Total proceeds from the sale, before selling costs.
$
Commissions and fees paid to sell, which reduce your proceeds.
%
Optional rough state estimate applied to a positive gain. Not a state-tax engine; shown separately as its own line.

Scenarios

Sell on selected date
$6,000
Long-term · after-tax proceeds $64,000
Wait until long-term
N/A
Already long-term
Harvest losses
$4,500 saved
Offset the gain with $30,000 of losses · mind the wash-sale rule
Use remaining 0% regular federal band
$0
Additional long-term gain before regular federal CG tax applies
✓ Verified U.S. top federal ordinary marginal income tax rate (2025–2026) — 37.00% · U.S. Internal Revenue Service · data as of January 1, 2026 · Source ↗
Engine federal-capital-gains-1 · tax years 2025–2026.

Tax-only break-even price

Break-even applies when a sale is short-term and could still wait for long-term treatment. This sale is already long-term.

Long-term gain by rate band

$30,000
0%: $0 15%: $30,000 20%: $0

Tax waterfall

Proceeds → basis → gain → tax → after-tax proceeds
LineAmountStatus
Sale price minus selling costs net proceeds$70,000Derived
Adjusted basis (purchase + costs + adjustments)$40,000Derived
Realized gain or loss$30,000Derived
Short-term net after sale$0Derived
Long-term net after sale$30,000Derived
Baseline regular federal tax without the sale$14,714Rule
After-sale regular federal tax with the sale$19,214Rule
Incremental regular federal tax the difference$4,500Derived
Incremental NIIT (3.8%)$0Rule
Optional rough state estimate user rate$1,500User input
Total estimated tax impact$6,000Derived
After-tax proceeds$64,000Derived
Educational estimate — not tax advice or a filing.
  • The tax attributed to the sale is the after-sale minus baseline difference, not the gain times a rate.
  • State tax is an optional rough estimate from your entered rate, shown separately — not a state-tax engine.
  • Not modeled: QSBS/§1202, collectibles, §1250 recapture, home-sale exclusion, AMT, kiddie tax, installment sales, Opportunity Zones.
  • Confirm figures against current IRS guidance and consult a qualified professional before acting.

Tax-lot comparison (advanced)

Add up to 50 lots. Choose a target, then compare selection strategies. Uses marginal-rate estimates from your Sale details above.

$
#Acquisition dateSharesCost / share
1
2
The shareable URL encodes your entered values in the link fragment (after the #), which your browser never sends to a server. Anyone with this link can read the values encoded in it. Inputs are never sent to analytics.

Assumptions and Limitations

Assumptions

Limitations

Baseline vs after-sale: why the tax is a difference, not a rate

The tax attributed to a sale is the change it makes to your whole-year federal tax: compute the year without the sale, then with it, and take the difference. That is what this planner does.

This matters because a gain stacks on top of your other income. The same $30,000 long-term gain can be taxed at 0%, 15%, 18.8% (with NIIT) or 20% depending on where it lands \u2014 a single headline rate cannot capture that.

The 0% long-term band and holding period

Long-term gains that stack within the 0% band are taxed at 0% federally. The planner shows how much additional long-term gain you could realize before regular federal capital-gains tax begins, after your ordinary income, qualified dividends and existing long-term gains fill the space first.

A gain is long-term only when held more than one year. When a sale is short-term, the planner shows the first long-term date and the tax you would save by waiting until then at the same price, plus the price decline you could absorb and still net the same after tax.

Tax-loss harvesting and the wash-sale rule

Selling a position at a loss can offset gains and reduce the tax on this sale. The planner shows how much loss would offset the proposed gain and the estimated federal tax that would save.

Beware the wash-sale rule: if you buy a substantially identical security within 30 days before or after the loss sale, the loss is disallowed. This applies across your taxable accounts, purchases by your spouse, and purchases in your IRA. The planner flags the rule but does not suggest specific replacement securities.

Long-term capital gains breakpoints (taxable income) by year and status

Taxable income where the 0% long-term rate ends (15% begins) and where 15% ends (20% begins). The rate on a long-term gain depends on total taxable income, including the gain.

Filing status2025: 0% up to2025: 15% up to2026: 0% up to2026: 15% up to
Single$48,350$533,400$49,450$545,500
Married filing jointly$96,700$600,050$98,900$613,700
Married filing separately$48,350$300,000$49,450$306,850
Head of household$64,750$566,700$66,200$579,600

Short-term gains (held one year or less) are taxed at ordinary rates instead. NIIT adds 3.8% above the statutory MAGI thresholds. State tax is separate and estimated only from a rate you enter.

Frequently Asked Questions

How does this differ from a flat capital-gains calculator?

A flat calculator multiplies the gain by a single rate. This planner computes your federal tax with and without the sale and attributes the difference to the sale, so it captures bracket stacking, the 0%/15%/20% long-term bands and the 3.8% NIIT that a single rate misses.

When is a gain long-term?

A gain is long-term when the asset is held more than one year. The holding period begins the day after your purchase trade date, so the planner shows the first date on which a sale would qualify for long-term treatment.

What is the Net Investment Income Tax (NIIT)?

NIIT is an additional 3.8% on the lesser of your net investment income and the amount your MAGI exceeds a statutory threshold ($200,000 single/head of household, $250,000 married filing jointly, $125,000 married filing separately). It can be zero even above the threshold if you have little net investment income.

How are losses and carryovers handled?

Short-term and long-term gains and losses are netted (short against short, long against long, then across), including any carryovers you enter. A net capital loss offsets ordinary income up to $3,000 ($1,500 if married filing separately); the rest carries forward.

Is state tax included?

Only as an optional rough estimate: your entered rate applied to a positive gain, shown separately. This is not a state-tax engine and does not implement any state\u2019s specific rules.

What does the tax-lot comparison do?

If you hold multiple lots, it compares FIFO, LIFO, HIFO, losses-first and long-term-first selection for a target number of shares or proceeds, and reports the least-cost strategy among those computed. It does not claim a globally optimal answer and does not recommend specific replacement securities.

Is this tax advice?

No. It is an educational estimate calculated from the values you enter, for US individuals with ordinary capital assets. Consult a qualified tax professional before acting, and confirm figures against the current IRS guidance.

Evidence, sources and editorial review

Capital Gains Sale Planner: Sell Now, Wait, or Choose Different Tax Lots groups its evidence and methodology review here so sources, assumptions and responsibility can be checked together.

Methodology & formula

Federal Capital Gains Sale Planner (baseline vs after-sale). incrementalRegularFederalTax = afterSaleRegularFederalTax − baselineRegularFederalTax; incrementalNiit = afterSaleNiit − baselineNiit; total = incremental regular + incremental NIIT + optional state estimate

Regular federal tax uses the ordinary brackets and the Qualified Dividends & Capital Gain worksheet (0%/15%/20% stacked above ordinary taxable income). NIIT = 3.8% × min(net investment income, MAGI over the statutory threshold). Long-term = held more than one year. State is an optional rough estimate = max(0, gain) × entered %.

This planner estimates the federal tax ATTRIBUTED TO A PROPOSED SALE as the difference between a baseline scenario (your year without the sale) and an after-sale scenario — not a single rate multiplied by the gain. It classifies the holding period as short-term or long-term (held more than one year), nets short and long-term gains and losses with any carryovers, applies the ordinary-income brackets and the Qualified Dividends and Capital Gain Tax Worksheet (0%/15%/20% stacked above ordinary taxable income) for tax years 2025 and 2026, and adds the 3.8% Net Investment Income Tax as the lesser of net investment income and MAGI over the statutory threshold. It also models waiting for long-term treatment, a tax-only break-even future price, tax-loss harvesting headroom, remaining 0% long-term band, and a tax-lot comparison across FIFO, LIFO, HIFO, losses-first and long-term-first strategies. State tax is an optional rough estimate from a rate you enter, shown separately. Scope: US individuals with ordinary capital assets (stocks, ETFs, funds, bonds, crypto). It is an educational estimate, not tax advice, a filing, or a guaranteed figure.

Reviewed according to the CalcDomain Editorial Policy & Calculator Methodology. We document formulas, edge cases, sources, update dates, and correction paths for calculator pages.

Updated · engine federal-capital-gains-1

References & Authoritative Sources

Related Calculators

Embed this calculator

Add the Capital Gains Sale Planner to your site. Configure non-financial options and copy the auto-resizing iframe snippet.

Open on CalcDomain

Suggest an improvement

Found a calculation issue, outdated source, unclear assumption, or missing edge case? Send a short note so we can review it.

Please include the inputs you used so we can reproduce the issue.

Feedback is reviewed under our Editorial Policy & Calculator Methodology.

Update history

DateVersionChange
2026-07-041.0Original flat capital gains calculator (realized gain times an entered rate).
2026-07-292.0Rebuilt as a Capital Gains Sale Planner: baseline vs after-sale federal tax, holding-period classification, ST/LT netting with carryovers, NIIT, wait-until-long-term, tax-only break-even price, loss harvesting, 0% band headroom, and a tax-lot comparison engine.

Methodology & Review

Ugo Candido ✓ Editor
Founder & Editor-in-Chief at CalcDomain — responsible for the methodology, sourcing and technical review of this calculator.