Example numbers shown. Tap a box to type your own.
Full breakdown
| Item | Amount |
|---|---|
| Sale price | |
| Cost basis (purchase + improvements) | |
| Selling costs | |
| Capital gain | |
| Home-sale exclusion | |
| Capital losses used | |
| Taxable gain | |
| Federal tax at 0% | |
| Federal tax at 15% | |
| Federal tax at 20% | |
| Federal tax (short-term, ordinary rates) | |
| Depreciation recapture at 25% | |
| Net investment income tax (3.8%) | |
| State tax | |
| Total tax | |
| You keep |
This estimate assumes the standard deduction and no credits. Your final tax is settled on your tax return.
Estimate for education only, not tax advice.
Key takeaways
- Hold an asset for more than a year and the gain is taxed in slices at 0%, 15% or 20%. In 2026 a single filer pays 0% while taxable income stays under $49,450.
- Sell within a year and the gain is taxed like salary — regular rates, up to 37%.
- Your main home is often tax-free: up to $250,000 of gain is excluded, or $500,000 married filing jointly, if you owned and lived there 2 of the last 5 years.
- Once income passes $200,000 single or $250,000 married filing jointly, an extra 3.8% net investment income tax can apply.
- Texas and Florida have no income tax, and Missouri's capital gains tax has been $0 since 2025. Most other states add their own rate on top.
How capital gains are taxed in 2026
Sell something for more than you paid and the profit is a capital gain. Work it out like this: sale price, minus your cost basis (what you paid, plus big improvements), minus selling costs like agent commission.
If you held the asset for more than a year, federal tax comes in three slices. Think of your income as a stack: your salary and other income fill the bottom, and the gain sits on top. Whatever part of the gain lands under the 0% line is tax-free, the next part is taxed at 15%, and anything above the 15% ceiling is taxed at 20%. A single sale can cross all three bands.
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | above $545,500 |
| Married filing jointly | $98,900 | $613,700 | above $613,700 |
| Head of household | $66,200 | $579,600 | above $579,600 |
| Married filing separately | $49,450 | $306,850 | above $306,850 |
Those lines apply to taxable income — that's income after the standard deduction. So the calculator asks for your other income and takes off the 2026 standard deduction for you: $16,100 single, $32,200 married filing jointly, $24,150 head of household.
Short-term vs long-term
How long you held the asset decides the rate. Sell within a year and it's a short-term gain, taxed just like salary at regular rates from 10% up to 37%. Hold it for more than one year and it's long-term, with the friendlier 0%, 15% and 20% slices above.
The gap is not small. In the worked example below, the same $210,000 gain costs about $52,684 in federal tax if it's short-term, but only about $30,668 long-term — waiting past the one-year mark saves roughly $22,016. And careful: exactly one year still counts as short-term. You need more than one year.
Selling your home: the $250,000/$500,000 exclusion
Selling the home you live in is different. Section 121 of the tax code lets you leave up to $250,000 of gain out of your taxes, or $500,000 if you're married filing jointly. To qualify, you generally need to have owned the home and lived in it as your main home for at least 2 of the 5 years before the sale — and you can't have used this exclusion on another home in the last 2 years.
Only the gain above that limit gets taxed. Take a married couple who bought for $300,000, sold for $520,000 and paid $10,000 in selling costs: their gain is $210,000, all of it excluded, tax $0. Pick the main-home option in the calculator and it applies this for you. One catch — if you claimed depreciation, say from renting out a room, that part can't be excluded and comes back as recapture.
Rental property and depreciation recapture
Landlords get a break every year by deducting depreciation, but the IRS takes some of it back when you sell. The slice of your gain that matches the depreciation you claimed is called unrecaptured section 1250 gain, and it's taxed at up to 25% rather than 0%, 15% or 20%.
Type the total depreciation you claimed into the calculator and that slice is taxed at 25%, while the rest of the gain goes through the normal long-term slices. A 1031 like-kind exchange can push this tax into the future for investment property, but the deadlines are strict and it's not modeled here.
The 3.8% net investment income tax
On top of the regular rates, higher earners pay an extra 3.8% net investment income tax (NIIT) on gains and other investment income. It hits whichever is smaller: your net investment income, or the amount your modified adjusted gross income goes over the line — $200,000 single or head of household, $250,000 married filing jointly, $125,000 married filing separately. Those lines haven't moved since 2013 and aren't adjusted for inflation, so more people cross them every year.
A one-off big gain can trigger this tax even when your salary alone wouldn't. In the worked example, $60,000 of salary plus a $210,000 gain makes about $270,000 of income, so $70,000 of the gain sits over the single line and the NIIT comes to $2,660. The calculator only adds this line when your income actually crosses the line, and gain covered by the home-sale exclusion doesn't count toward it.
State tax on capital gains
Most states treat capital gains like regular income, so expect your state to add its own rate on top of the federal bill. Here's how the states in the calculator work:
- Texas and Florida: no state income tax, so $0.
- Missouri: $0. Since January 2025, Missouri allows a 100% deduction for capital gains, so residents pay no state tax on them.
- Illinois: flat 4.95% on the gain. (Illinois also has a $2,925 per-person exemption that disappears entirely above $250,000 of income single or $500,000 married filing jointly; the calculator's flat-rate estimate does not model that exemption.)
- North Carolina: flat 3.99% for 2026.
- Arizona: flat 2.5%.
- Minnesota: graduated 5.35% to 9.85%. The calculator uses Minnesota's real 2026 brackets and standard deduction.
- Any other state: type your state's rate in the rate box.
Treat the state number as an estimate on the gain alone. Your real state bill depends on your whole state return, deductions and credits included.
Capital losses: the $3,000 rule
Sold something else at a loss this year? Those losses cancel out gains dollar for dollar — short-term losses soak up short-term gains first, then long-term ones. If your losses are bigger than your gains, up to $3,000 a year ($1,500 married filing separately) can offset salary and other income, and whatever is left carries forward to future years.
Put your losses in the calculator and they'll shrink the taxable gain. If they wipe the gain out completely, there's no capital gains tax to pay, and the leftover loss can shelter gains in future years.
Worked example
Say you bought an investment property for $300,000 and sold it for $520,000, paying $10,000 in selling costs. Your gain is $520,000 − $300,000 − $10,000 = $210,000. You're single, you held it for more than a year, and you have $60,000 of other income.
- Other taxable income: $60,000 − $16,100 standard deduction = $43,900.
- 0% slice: $49,450 − $43,900 = $5,550 of the gain is tax-free.
- 15% slice: the remaining $204,450 × 15% = $30,668.
- NIIT: income of about $270,000 is $70,000 over the $200,000 single threshold, so $70,000 × 3.8% = $2,660.
- Illinois tax: $210,000 × 4.95% = $10,395.
- Total tax $43,723 — you keep $166,278 of the $210,000 gain (about 79%).
Those are the exact numbers pre-loaded in the calculator above, so you can follow along. And if that same property were your main home and you filed jointly, the whole $210,000 gain would fit inside the $500,000 exclusion — tax $0.
What this calculator does not cover
- The alternative minimum tax (AMT).
- 1031 like-kind exchanges, installment sales and qualified small business stock (QSBS).
- Wash sales and the 28% rate on collectibles.
- Itemized deductions, credits, and the extra standard deduction amount for age 65+ or blindness.
- Local city or county taxes, and state deductions or credits beyond the rates shown.
- Your final tax return, which depends on all of your income and deductions.
Capital gains tax questions
How do I calculate my capital gains tax?
Start with the sale price. Take off your cost basis (what you paid, plus improvements) and your selling costs — what's left is your gain. If it's long-term, the part that fits under the 0% line for your filing status is tax-free, the next part is taxed at 15%, and the rest at 20%. Then add the 3.8% net investment income tax if your income is over $200,000 single or $250,000 married filing jointly, plus whatever your state charges. Or just type your numbers into the calculator above and let it do the slices.
How much capital gains tax will I pay on $100,000?
It depends on your other income. Say you're single with $60,000 of other income and a $100,000 long-term gain: you'd pay about $14,168 in federal tax. The first $5,550 of the gain fits in the 0% band, and the other $94,450 is taxed at 15%. No NIIT at that income. Your state takes its share on top.
How much capital gains tax will I pay on $300,000?
Take a single filer with $60,000 of other income and a $300,000 long-term gain. Federal tax comes to about $44,168 at 15%, plus about $6,080 of NIIT because total income passes the $200,000 line. That's roughly $50,248 federal, leaving about $249,752 before state tax.
Is capital gains tax 15% or 20%?
Both — it comes in slices. In 2026 a single filer pays 0% on long-term gains while taxable income stays under $49,450, then 15% up to $545,500, and 20% above that. Your gain sits on top of your other income, so one sale can be part 0%, part 15% and part 20%.
Do I pay capital gains tax if I sell my house?
Often, no. If the house was your main home and you owned it and lived in it for 2 or more of the last 5 years, you can exclude up to $250,000 of gain, or $500,000 married filing jointly. Only gain above that gets taxed. Pick the main-home option in the calculator and it applies the exclusion for you.
What if I held the asset for exactly 1 year?
One year or less is short-term, so it's taxed at your regular income tax rates, up to 37%. To get the long-term 0%, 15% and 20% rates, you have to hold the asset for more than one year.
Does a capital gain push me into a higher tax bracket?
Only the part of the gain above each line gets the higher rate — your salary and other income keep their own rates. A big gain can still push part of itself into the 20% band and over the NIIT line, and the calculator shows that slice by slice.
Is crypto taxed as a capital gain?
Yes. The IRS treats crypto as property, so selling, swapping or spending it can create a capital gain or loss. Whether it's short-term or long-term depends on how long you held it.
What about inherited property?
Usually not on the full gain. Inherited property gets a stepped-up basis: your cost basis becomes what it was worth on the date the person died, not what they originally paid. That can wipe out most of the gain. The calculator doesn't model step-up, so just enter the stepped-up value as your purchase price.
Can I defer the tax with a 1031 exchange?
For investment real estate, yes — a like-kind exchange under section 1031 can defer the gain if you buy replacement property and hit some strict deadlines. It doesn't work for stocks, crypto or your main home, and this calculator doesn't model it.
When is capital gains tax due?
Nobody withholds tax on most asset sales, so the bill is settled on your tax return. But with a large gain you usually need to make estimated tax payments during the year, or you'll owe an underpayment penalty on top.
What if I have capital losses?
Capital losses cancel out gains dollar for dollar first. If your losses are bigger than your gains, up to $3,000 a year ($1,500 married filing separately) can offset other income, and the rest carries forward to future years.
How this page was checked
The worked example on this page was calculated by hand from the 2026 IRS thresholds and matched against the calculator for single and married filers, a main-home sale under the exclusion, a short-term gain, and a gain large enough to cross into the 20% band and the NIIT.
What to do with your number
- If the tax is large, plan for estimated payments during the year so you aren't hit with an underpayment penalty at filing time.
- If you haven't sold yet, check the calendar: waiting until you've held the asset more than one year can move the gain from salary rates to the 0%, 15% and 20% slices.
- Selling a rental? Depreciation recapture at 25% is often the surprise line — get the depreciation total from your past returns before you list the property.
Sources and review
Last reviewed November 22, 2026. Federal thresholds, brackets and standard deductions are from IRS Revenue Procedure 2025-32 for tax year 2026. The home-sale exclusion follows IRS Topic 701 and Publication 523. The NIIT follows IRS Topic 559. Missouri's capital gains deduction follows Missouri HB 594 (2025). Minnesota brackets are from the Minnesota Department of Revenue 2026 desk reference; Illinois and North Carolina rates are from their state revenue departments.
More calculators
- RSU tax calculator if you are selling company stock that vested
- 1099 tax calculator for freelance and contractor income
- W-2 vs 1099 tax calculator to compare an employee salary with contractor pay
- Bonus tax calculator to see what a bonus leaves you after tax
- RMD calculator to figure your required minimum distribution
- Lottery tax calculator to see what a lottery win leaves you after tax
See what you keep after tax.
Try another calculator