Skip to content
Toolcroft

Capital Gains Tax Estimator

Financial Calculators

Estimate US capital gains tax with 2024–2026 brackets, optional NIIT, progressive stacking, and short- vs long-term scenarios for all four filing statuses.

Your inputs are saved in this browser only. No data is ever sent to a server, and saved values won't be visible in other browsers or devices.

After deductions; exclude the gain entered above.

Optional NIIT estimate

Estimate

Gain / Loss

$5,000.00

Term

Long-term

>1 year

Tax Year

2026

Effective Federal Rate

15.00%

Estimated Federal Tax

$750.00

NIIT

$0.00

Combined Tax

$750.00

Net Profit

$4,250.00

Long-term gain by 0%, 15%, and 20% bands

Tax rateGain in bracketTax from slice
0%$0.00$0.00
15%$5,000.00$750.00
20%$0.00$0.00
Total$5,000.00$750.00

Short-term vs. long-term federal tax

ScenarioEstimated federal tax
Short-term$1,100.00
Long-term$750.00

Both scenarios use the same gain, taxable income, filing status, and tax year. The comparison leaves your holding-period input unchanged and assumes the same sale price and gain; market prices can change before a later sale.

How to use this tool

  1. Enter cost basis, sale price, and holding period.
  2. Enter taxable income before this gain, filing status, and tax year.
  3. See estimated tax owed and net profit.

How this calculator stacks a gain

Enter taxable income after deductions but before the gain entered here, then select the filing status and tax year. The calculator finds the extra federal tax created by adding the gain to that income. It does not multiply the whole gain by the final bracket rate, which would overstate tax whenever a gain crosses a bracket boundary.

Short-term gains (held one year or less) are treated as incremental ordinary income. Long-term gains (held more than one year) fill any remaining 0% long-term-gain band first, then the 15% band, then the 20% band if applicable. The displayed rate is the resulting effective federal tax rate on this gain, not a marginal rate.

2026 long-term capital-gains brackets

RateSingle filersMarried filing jointly
0%Up to $49,450Up to $98,900
15%$49,451 – $545,500$98,901 – $613,700
20%Over $545,500Over $613,700

These are the default 2026 limits. The calculator also includes 2024 and 2025 tables, so the output remains tied to the selected tax year. IRS long-term-gain thresholds apply after the ordinary taxable income entered in the tool has already occupied its portion of the bands.

Optional Net Investment Income Tax estimate

You can turn on an optional 3.8% Net Investment Income Tax (NIIT) estimate and enter your total modified adjusted gross income (MAGI), including the gain in this calculator. The estimate applies 3.8% to the smaller of the positive gain or the amount by which MAGI exceeds the filing-status threshold: $200,000 for Single or Head of Household, $250,000 for Married Filing Jointly, and $125,000 for Married Filing Separately. These thresholds are not inflation-indexed. MAGI is not inferred from taxable income.

This simplified, single-gain estimate is not Form 8960 preparation: actual NIIT depends on net investment income and other tax details this tool does not collect. The calculator also excludes state tax, the special rules for collectibles and qualified small-business stock, depreciation recapture, primary-residence exclusions, and loss carryforwards.

Wash-sale rule

A loss may be disallowed when you buy a substantially identical security within 30 days before or after its sale. That rule and netting gains against losses can change the gain that belongs in this calculator; determine your net reportable gain before using this single-gain estimate.

Frequently asked questions

How does this estimate apply capital-gains brackets?

Enter taxable income after deductions but before this gain. Long-term gains stack on top of that income and are taxed only in the 0%, 15%, or 20% bands they reach. Short-term gains are estimated as the incremental ordinary-income tax using the selected filing status and year. The term comparison keeps the entered gain and other inputs the same.

Browse all financial calculators