📈 Capital Gains Tax Calculator

Estimate the tax on selling an investment. Long-term gains (assets held over a year) get the 0%, 15% and 20% rates; short-term gains are taxed like wages. Includes the 3.8% net investment income tax and your state rate.

Also known as: Long Term Capital Gains Rate · Short Term Capital Gains · Stock Sale Tax · Crypto Tax · 2026 Capital Gains Brackets · Capital Gains Calculator · Capital Gain Tax Calculator

Loading calculator…

⚑ Report a problem with this calculator

Your current inputs are sent with the report so we can reproduce it.

How to use the Capital Gains Tax Calculator

  1. Enter your values in the fields above — the defaults show a worked example.
  2. The result updates instantly as you type; change any input to compare scenarios.
  3. Copy or share the result, or open a related calculator below.

How it's calculated

Long-term gains are stacked on top of your other taxable income and taxed at 0%, 15% or 20% depending on which threshold band they fall in. NIIT = 3.8% × the lesser of the gain or MAGI above $200,000 ($250,000 joint).

Frequently asked questions

What are the 2026 long-term capital gains brackets?
For single filers: 0% up to $49,450 of taxable income, 15% up to $545,500, 20% above. Married filing jointly: 0% to $98,900, 15% to $613,700. For 2027 the single thresholds rise to $51,050 and $563,200.
How long must I hold an asset for long-term rates?
More than one year. Assets held one year or less produce short-term gains taxed at ordinary income rates.
Can capital losses reduce my tax?
Yes. Losses first offset gains; up to $3,000 of net loss a year ($1,500 married filing separately) can offset ordinary income, and the rest carries forward.
Is the Capital Gains Tax Calculator free?
Yes. The Capital Gains Tax Calculator on CalculatorSprint is completely free with no sign-up. Every calculation runs in your browser, so the numbers you enter are never sent to our servers.
How accurate is the Capital Gains Tax Calculator?
It uses the method described under “How it’s calculated” and keeps full precision internally, rounding only the displayed result. Results are estimates for planning and are not financial, tax or legal advice.

Read more about the Capital Gains Tax Calculator

When to use the Capital Gains Tax Calculator

Use the Capital Gains Tax Calculator for federal and state tax on stock, crypto or property gains — short-term vs long-term 0%/15%/20% rates plus the 3.8% NIIT. It is one of 83 free us tax & social security calculators, and pairs well with the 1031 Like-Kind Exchange Calculator, Effective Tax Rate Calculator, ROI Calculator and Investment Calculator.

Tips for accurate results

Use the rate and fees from your actual offer or statement rather than an advertised rate, run a best case and a worst case, and remember that taxes, insurance and fees can change the real cost. Results are estimates, not financial or tax advice.

Sources and review

Last reviewed

Sources:

Every calculator is checked against published reference values before release and re-reviewed when laws, rates or guidelines change. Read our methodology and editorial policy. Found a problem? Report it — we fix errors quickly.

Was this helpful?

More US Tax & Social Security Calculators

See all US Tax & Social Security Calculators →

Popular calculators

Results are estimates for information only. Calculations run privately in your browser.