NumberSwift.
US
UNITED STATES · TAXES

US Capital Gains Tax Calculator

Estimate federal tax attributable to an asset gain, separating holding-period rates from a limited NIIT calculation using your MAGI.

Rule year: 2026 · USD · Sources checked

YOUR NUMBERS

◎ Calculations stay in your browser.

A LITTLE CLARITY

Estimated federal tax attributable to the gain

$82.50
Capital-gain income tax$82.50
NIIT on the gain under entered MAGI$0.00
Long-term gain in the 0% slice$9,450.00
Long-term gain in the 15% slice$550.00
Long-term gain in the 20% slice$0.00

Ordinary capital assets only; no qualified dividends, collectibles, depreciation recapture, home-sale eligibility, AMT, other investment income or state taxes. Loss netting and exclusions are supplied in the entered gain. MAGI is not inferred from taxable income. No filing or timing advice is provided.

For informational purposes only. This estimate is not financial advice, a tax return, a payroll calculation or a lender decision. See the supported circumstances and exclusions below.

BEHIND THE NUMBERS

How this calculator works

Long-term ordinary-asset gains stack above your other ordinary taxable income and can cross the 0%, 15% and 20% thresholds. The preferential calculation is compared with ordinary-income tax on the combined amount, using the lower result within this simplified scope. Short-term gains use the ordinary-income increment. A separate 3.8% NIIT estimate uses entered MAGI, assuming this gain is the only net investment income. Capital losses must already be netted and any relevant exclusion applied before you enter the gain.

Formula and rules

Long-term gain slices fill the remaining 0% and 15% bands, with the rest at 20%, capped by the ordinary-tax increment. Short-term tax = tax(other income + gain) − tax(other income). NIIT = 3.8% × min(gain, max(0, entered MAGI − filing threshold)).

Assumptions and limitations

Ordinary capital assets only; no qualified dividends, collectibles, depreciation recapture, home-sale eligibility, AMT, other investment income or state taxes. Loss netting and exclusions are supplied in the entered gain. MAGI is not inferred from taxable income. No filing or timing advice is provided.

Worked example

For a Single filer with $40,000 other ordinary taxable income and a $10,000 long-term gain, $9,450 fills the 2026 zero-rate band and $550 is in the 15% slice. The simplified gain tax is $82.50; at $66,100 MAGI the model adds no NIIT.

Estimated federal tax attributable to the gain
$82.50
Capital-gain income tax
$82.50
NIIT on the gain under entered MAGI
$0.00
Long-term gain in the 0% slice
$9,450.00

Official sources and review

Reviewed against the sources below on 2026-10-06. Rates are held in versioned rule modules. Versioned rules, official source review and year-specific calculation tests.

Our calculation review process ↗
GOOD TO KNOW

Common questions

Can I enter a home-sale gain directly?

Only after establishing your taxable gain and any exclusion independently. The tool does not decide whether a home-sale exclusion applies.

Is taxable income the same as MAGI?

No. MAGI for NIIT and ordinary taxable income are different measures. The tool asks for both and does not reconstruct your tax return.

Are state capital-gain taxes included?

No. The result covers the stated federal model only. State rules, credits and special asset treatments need separate calculations.