Homeโ€บCalculatorsโ€บFinance & Investmentโ€บCapital Gains Tax Calculator

Capital Gains Tax Calculator

Finance & Investment

Estimate US federal capital gains tax for 2026 or 2025. Covers short-term and long-term gains for single, married filing jointly and head-of-household filers.

Written by ยท Reviewed by the thecalcu.com team ยท Last updated June 22, 2026

๐Ÿ‡บ๐Ÿ‡ธThis tool is specific to United States
$0$2,000,000
$0$2,000,000
$0$1,000,000

Capital Gain

+$0
Applicable Tax Rate
0.00%
Federal Tax Owed
$0
Net Proceeds After Tax
$0

Rates shown are 2026 federal rates. State capital gains taxes are additional. NIIT (3.8%) may apply if your income exceeds $200K (single) or $250K (married).

What is a Capital Gains Tax?

The Capital Gains Tax Calculator estimates how much federal tax you'll owe when you sell an investment for more than you paid. It handles both short-term and long-term gains for single filers, married couples filing jointly, and heads of household, and it covers tax years 2026 and 2025.

How long you held the asset decides the tax. Anything held a year or less is taxed like wages, while longer holdings get preferential rates of 0%, 15%, or 20% that depend on your total taxable income. For high earners, a 3.8% surtax can stack on top. Because the answer depends on the rest of your income, the calculator asks for your taxable ordinary income, and you can compare it with the Federal Income Tax Calculator to see your wider tax picture. If you're judging the return on a sale before tax, the ROI Calculator is a good companion.

How to use this Capital Gains Tax calculator

  1. Choose the Tax Year: 2026 or 2025.
  2. Enter your Purchase Price (Cost Basis).
  3. Enter the Sale Price.
  4. Enter your Taxable Ordinary Income, your income after deductions, not counting this sale.
  5. Choose the Holding Period: Short-Term (one year or less) or Long-Term (more than one year).
  6. Pick your Filing Status: Single, Married Filing Jointly, or Head of Household.
  7. Read the Capital Gain / Loss, the Applicable Tax Rate, and Federal Tax Owed, then check Net Proceeds After Tax. Open the step breakdown to see how the rate was chosen.
Show formula & methodology โ†“Hide formula & methodology โ†‘

Formula & Methodology

  • Gain = sale price โˆ’ cost basis
  • Short-term tax = tax on (ordinary income + gain) โˆ’ tax on ordinary income, using the year's ordinary brackets
  • Long-term rate = 0%, 15%, or 20%, based on where (ordinary income + gain) falls against the year's thresholds
  • Net Investment Income Tax = 3.8% ร— the lesser of the gain or the income above $200,000 (single or head of household) or $250,000 (married filing jointly)
  • Net proceeds = sale price โˆ’ tax

Worked example (single filer, $20,000 basis sold for $50,000, $75,000 taxable ordinary income, 2026):

  • Gain: $50,000 โˆ’ $20,000 = $30,000
  • Long-term: total income $105,000 is between $49,450 and $545,500, so the rate is 15% and the tax is $4,500
  • Short-term: the gain is taxed in the 22% bracket (which ends at $105,700), so the tax is $6,600
  • Holding the asset past a year saves $2,100

Run the short-term case for 2025 and the tax is $6,633, because part of the gain crosses into the 24% bracket, which starts at $103,350.

Common Mistakes to Avoid

  • Counting the holding period wrong. The year starts the day after you buy and the asset must be held more than one year. Selling on the one-year anniversary is still short-term.
  • Entering gross pay as ordinary income. Use taxable income after deductions. A gross figure moves you into a higher rate than you'd actually pay.
  • Forgetting the NIIT. High earners owe 3.8% on top of the 15% or 20%, which makes the top rate 23.8%.
  • Ignoring losses. Selling losers in the same year offsets gains, and the calculator only shows one sale at a time.
  • Using an old year's thresholds. The 0% and 15% breakpoints rise every year. A sale in 2026 follows the 2026 numbers.

Quick Reference

Filing status 0% up to (2026) 15% up to (2026) 0% up to (2025) 15% up to (2025)
Single $49,450 $545,500 $48,350 $533,400
Married filing jointly $98,900 $613,700 $96,700 $600,050
Head of household $66,200 $579,600 $64,750 $566,700

Gains above the 15% band are taxed at 20%. For other investment planning, the Compound Interest Calculator projects growth, the Rental Property ROI Calculator covers property investments, and the Tax Refund Estimator shows how total tax compares with withholding.

Authoritative references

Frequently Asked Questions

What does the Capital Gains Tax Calculator estimate?

It estimates the US federal tax on a gain from selling an investment such as stock, a fund, or property. You enter what you paid, what you sold for, how long you held it, your filing status, and your other taxable income. It returns the gain, the rate applied, the tax, and what you keep.

What's the difference between short-term and long-term gains?

A short-term gain comes from an asset you held one year or less, and it's taxed at your ordinary income rates. A long-term gain comes from an asset held more than a year, and it gets lower rates of 0%, 15%, or 20%. Holding a winner a few extra days past the one-year mark can cut the rate sharply.

What are the long-term capital gains rates for 2026?

For a single filer, the rate is 0% up to $49,450 of taxable income, 15% up to $545,500, and 20% above that. For married couples filing jointly the breakpoints are $98,900 and $613,700. Heads of household use $66,200 and $579,600.

What were the 2025 long-term rates?

The rates are the same, but the thresholds were lower. For 2025, a single filer paid 0% up to $48,350 and 15% up to $533,400. Married couples filing jointly paid 0% up to $96,700 and 15% up to $600,050.

Which income do I enter in the ordinary income field?

Enter your taxable ordinary income for the year, meaning wages and other income after the standard or itemized deduction, not including this sale. The capital gain rate depends on where your total taxable income falls. Using gross income instead of taxable income will overstate your tax.

What is the Net Investment Income Tax?

It's an extra 3.8% on investment income for people whose income passes $200,000 (single or head of household) or $250,000 (married filing jointly). It applies to the lesser of your investment income or the amount over the threshold. The calculator adds it to long-term gains when it applies.

Can I use a capital loss to reduce my taxes?

Yes. Capital losses first offset capital gains, and up to $3,000 of any remaining net loss can reduce ordinary income each year. Unused losses carry forward to later years. The calculator shows a loss as zero tax.

Do state taxes apply to capital gains?

Most states tax capital gains as ordinary income, and a few don't have an income tax at all. This calculator covers the federal tax only. Check your state's rules and add that tax to the total.

How is the cost basis figured?

It's generally what you paid, plus purchase fees and improvements for property. Reinvested dividends raise the basis of fund shares. Inherited assets usually take a basis equal to value on the date of death.

Does this work for selling a home?

Partly. Many homeowners can exclude up to $250,000 of gain, or $500,000 for a married couple, if they lived there two of the last five years. Enter only the gain above the exclusion in the price fields, since the calculator doesn't apply it.

Which tax year should I choose?

Choose 2026 for sales you're planning now and 2025 for a sale you've already made. The brackets and the 0% and 15% thresholds change every year. Make sure the year matches the date of the sale.

Take a quick quiz

Capital Gains Tax Knowledge Quiz

3 min ยท 12 questions

Take the quiz โ†’
Also known as
capital gains tax calculatorlong term capital gains calculatorshort term capital gains taxstock gains tax calculatorinvestment tax calculatorCGT calculator