Capital Gains Tax Calculator
A single filer earning $60,000 who sells an investment held over a year for a $20,000 gain owes about $2,167.50 in federal tax for 2026, an effective 10.8%. Sold within a year, the same gain costs $3,750.00. Enter your sale below.
Updated for tax year 2026 · Figures last verified
Federal tax on the gain, 2026
$2,167.50
Effective rate on the gain 10.8% · top rate 15% · you keep $27,832.50 of the sale
| Capital gain | $20,000.00 |
|---|---|
| Taxable gain | $20,000.00 |
| Taxed at 0% | $5,550.00 |
| Taxed at 15% | $14,450.00 |
| Taxed at 20% | $0.00 |
| Taxable income with the sale | $63,900.00 |
| Income tax on the gain | $2,167.50 |
| Total federal tax on the gain | $2,167.50 |
Federal only. Doesn't include state tax, collectibles (28%) or depreciation recapture on rental property.
2026 capital gains tax rates
A capital gain is the profit when you sell an asset for more than you paid: stocks, funds, crypto, a rental property, a business, land. If you held it for more than a year, the gain is long-term and gets lower rates than wages. The rate depends on your total taxable income, including the gain:
| Filing status | 0% up to | 15% up to | 20% above |
|---|---|---|---|
| Single | $49,450 | $545,500 | $545,500 |
| Married filing jointly | $98,900 | $613,700 | $613,700 |
| Head of household | $66,200 | $579,600 | $579,600 |
| Married filing separately | $49,450 | $306,850 | $306,850 |
These are taxable income amounts, after the standard deduction ($16,100 single, $32,200 married filing jointly for 2026). Short-term gains on assets held a year or less have no special rate: they are added to your income and taxed at 10% to 37%.
How the gain is stacked on your income
Your other income fills the brackets first and the long-term gain sits on top. That is why the same gain can be taxed at different rates for different people, and why part of one gain can fall at 0% and the rest at 15%. For a single filer with $60,000 of other income, taxable income before the sale is $43,900. A $20,000 gain fills the rest of the 0% band ($5,550.00) and the remaining $14,450.00 is taxed at 15%, for $2,167.50.
The same $20,000 gain at different incomes, single filer:
| Other income | Held over 1 year | Held 1 year or less |
|---|---|---|
| $30,000 | $0.00 (0.0%) | $2,400.00 (12.0%) |
| $60,000 | $2,167.50 (10.8%) | $3,750.00 (18.8%) |
| $120,000 | $3,000.00 (15.0%) | $4,764.00 (23.8%) |
| $250,000 | $3,760.00 (18.8%) | $7,160.00 (35.8%) |
Holding past the one-year mark is often the single biggest way to cut the tax on a sale.
The 3.8% net investment income tax
Higher earners pay an extra 3.8% on investment income, including capital gains. It applies when modified adjusted gross income is over $200,000 single or head of household, $250,000 married filing jointly or $125,000 married filing separately, and it is charged on the smaller of your investment income or the amount over the threshold. The IRS doesn't adjust these thresholds for inflation, so more people cross them each year. With $250,000 of other income, the $20,000 gain above adds $760.00 of this tax.
Selling your home
Most homeowners pay no federal tax on a home sale. If it was your main home and you owned and lived in it for at least 2 of the 5 years before the sale, you can exclude up to $250,000 of gain, or $500,000 if married filing jointly. You can use the exclusion once every two years. Only the gain above it is taxed, at long-term rates, and the excluded part isn't subject to the 3.8% tax. For example, a single filer earning $90,000 who sells for $650,000 a home bought for $350,000 has a $300,000 gain: $250,000 is excluded and the remaining $50,000 costs $7,500.00. Your cost basis includes the purchase price, improvements and buying costs, so keep those records. A rental or second home doesn't qualify.
Capital losses
If you sell for less than you paid, the loss first offsets your gains. Any net loss left can reduce your other income by up to $3,000 a year ($1,500 if married filing separately), and the rest carries forward to future years. A $10,000 loss for the single filer above uses $3,000 this year, saving $360.00, and carries $7,000 forward.
What this calculator leaves out
- State income tax on gains. Most states tax them as regular income; use the income tax calculator for your state.
- Collectibles such as art and coins (up to 28%) and depreciation recapture on rental property (up to 25%).
- Several sales in one year, qualified dividends, the alternative minimum tax and credits.
- Partial home exclusions for moves due to work, health or unforeseen events.
For a large sale, especially property or a business, a tax professional can check the basis and timing.
Frequently asked questions
What are the capital gains tax rates for 2026?
Long-term gains are taxed at 0%, 15% or 20%, depending on your taxable income. For a single filer, 0% applies up to $49,450 of taxable income and 15% up to $545,500; married filing jointly, $98,900 and $613,700. Short-term gains are taxed as ordinary income at 10% to 37%.
How much tax do I pay on a $20,000 capital gain?
It depends on your other income. For a single filer earning $60,000, a long-term gain of $20,000 costs about $2,167.50 in federal tax in 2026, because part of it falls in the 0% bracket. Sold within a year, the same gain costs about $3,750.00.
How long do I have to hold an investment for long-term rates?
More than one year. If you sell one year or less after buying, the gain is short-term and taxed at your regular income tax rate.
Do I pay capital gains tax when I sell my house?
Usually not on the first $250,000 of gain ($500,000 married filing jointly), if you owned and lived in the home as your main home for at least 2 of the 5 years before the sale and haven't used the exclusion in the past 2 years. Gain above that is taxed at long-term rates.
What is the 3.8% net investment income tax?
An extra 3.8% on investment income, including capital gains, when your modified AGI is over $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately). It applies to the smaller of your investment income or the amount over the threshold. The thresholds are not adjusted for inflation.
Are crypto gains taxed the same way?
Yes, if you hold crypto as an investment. The IRS considers digital assets property, not currency. Selling crypto, trading it for other crypto or using it to pay for goods or services is a disposal, and the result is a capital gain or loss at the same short-term or long-term rates as stocks. You must report digital asset transactions even when there is no gain.
More tax calculators
- Paycheck calculatorTake-home pay after every tax
- Income tax calculatorYour federal and state bill for the year
- Self-employment tax calculator1099 tax and quarterly payments
- Overtime calculatorTime and a half and the overtime deduction
- Monthly income calculatorAny pay as monthly income, gross and net
- Pay raise calculatorNew salary and extra take-home pay
- Gross-up calculatorThe salary you need for a set take-home
- After-tax incomeWhat a salary is worth after tax
- Sales tax calculatorAdd sales tax to any price
- Reverse sales taxTake tax back out of a total
- Taxes by stateEvery calculator, rate and source for a state
Sources
- IRS Rev. Proc. 2025-32 (2026 inflation adjustments: tax rate tables §4.01, capital gains 0%/15% amounts §4.03, standard deduction §4.14, § 199A QBI thresholds and phase-in §4.26, $400 minimum QBI deduction §2.12)
- IRS Publication 15-T (2026), Worksheet 1A and Annual Percentage Method tables, p. 10–12
- IRS Publication 15 (2026), Circular E — social security and Medicare rates, wage base, Additional Medicare Tax
- SSA Contribution and Benefit Base
- IRS Schedule SE (Form 1040) 2026: lines 4a (92.35%), 4c ($400 minimum), 7 ($184,500), 10 (12.4%), 11 (2.9%), 13 (50% deduction)
- IRS: Self-employment tax (Social Security and Medicare taxes), 15.3% rate and Additional Medicare thresholds (updated Oct 30, 2026)
- IRS Instructions for Form 8959: thresholds not indexed; wages and self-employment income combined
- IRS: Qualified business income deduction, up to 20% of QBI (updated Oct 30, 2026)
- IRS Instructions for Form 8995: limit of 20% of taxable income before the deduction minus net capital gain; deductible part of SE tax counts in QBI
- IRS Publication 505 (2026): Worksheet 2-3, 2026 due dates, safe harbor, QBI deduction made permanent
- IRS: Estimated taxes, pay if you expect to owe $1,000 or more
- IRS: Net Investment Income Tax, 3.8% and thresholds (updated Jul 1, 2026)
- IRS: Questions and answers on the Net Investment Income Tax, thresholds not indexed; excluded home-sale gain not included (updated Sep 14, 2026)
- IRS Topic 409, Capital gains and losses: holding period, short-term taxed as ordinary income, $3,000 loss limit (updated Nov 9, 2026)
- IRS Topic 701, Sale of your home: $250,000 / $500,000 exclusion, 2-of-5-year test (updated Nov 9, 2026)
- IRS Publication 523, Selling Your Home: once every 2 years
- IRS: Digital assets, property not currency; disposals taxed as a capital gain or loss (updated Sep 2, 2026)
- U.S. Department of Labor: Overtime pay, time and one-half the regular rate for hours over 40 in a workweek
- IRS FS-2026-13 (Aug 2026): Q&A on the deduction for qualified overtime compensation, premium only, $12,500 / $25,000 maximum, MAGI over $150,000 / $300,000, joint return required if married, W-2 box 12 code TT, still subject to employment taxes
- IRS Schedule 1-A (Form 1040), Part III, lines 15–21: phase-out of $100 per full $1,000 of MAGI over the threshold (2025 form; applies for 2025–2028)
- IRS IR-2025-114: qualified overtime compensation deductible for tax years 2025 through 2028, itemizers and non-itemizers