Capital Gains Tax Calculator
Finance & InvestmentEstimate 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 Anurag Rath ยท Reviewed by the thecalcu.com team ยท Last updated June 22, 2026
Capital Gain
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
- Choose the Tax Year: 2026 or 2025.
- Enter your Purchase Price (Cost Basis).
- Enter the Sale Price.
- Enter your Taxable Ordinary Income, your income after deductions, not counting this sale.
- Choose the Holding Period: Short-Term (one year or less) or Long-Term (more than one year).
- Pick your Filing Status: Single, Married Filing Jointly, or Head of Household.
- 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
- IRS Topic 409: Capital gains and losses: holding periods, rates, and loss rules.
- IRS Rev. Proc. 2025-32: the 2026 capital gains thresholds used on this page.
- IRS: Net Investment Income Tax: who owes the 3.8% surtax and how it's figured.
- IRS Publication 550: investment income and expenses, including cost basis.