Tax Calculator
Free 2026 capital gains tax calculator

Capital Gains Tax Calculator 2026: Long-Term & Short-Term Capital Gains Tax

Estimate federal and state capital gains tax on stocks, crypto, a home sale, or rental property, at this year's long-term capital gains tax rates and short-term rates.

Start here
What did you sell?
Your positions
How long you held it

+$20,000

Your capital gain stacks on top of this number, which decides your tax rate.

Add any other investment sales from the same year, plus loss carryforwards from prior years. Gains and losses offset each other before tax is calculated. Enter every amount as a positive number, and leave out the sale above — it's already included.

Choose your state to see your full capital gains tax

These figures cover federal capital gains tax only. State tax on a gain ranges from nothing at all to over 13%, so pick your state in the form to finish the picture.

Capital gain

+$20,000

before any taxes

Total tax

$0

Net proceeds

$50,000

sale price minus fees & tax

Effective tax rate

0.0%

of your taxable profit

How your profit is figured

ItemAmount
What you sold it for$50,000
What you paid-$30,000
Profit$20,000
Tax on this sale$0
Profit you keep$20,000

The $30,000 you originally paid isn't taxed. It's just your own money coming back.

2026 long-term rates (Single)

Only $3,900 of your $20,000 profit gets taxed in these bands:

  • Covered by your standard deduction first-$16,100
  • Left for the bands below$3,900
RateYour taxable incomeTaxed at this rate
0%Up to $49,450$3,900
15%$49,450 to $545,500–
20%Over $545,500–

Tax on this sale

TypeTax
Long-term gain at 0%on $3,900$0
Total tax$0

Held over a year, so your gain gets the lower 0%, 15%, or 20% long-term rates. Yours reaches 0%, which comes to $0. We don't have state tax data for yet.

How capital gains tax works

What is capital gains tax?

  • It's tax on the profit when you sell something for more than you paid.
  • You only owe it when you sell, not while it's just gone up in value.
  • Your profit: $50,000 sold − $30,000 paid = $20,000. That's what gets taxed, not the full sale price.

You held it more than a year

  • It's a long-term gain, taxed at 0%, 15%, or 20%, which is lower than regular income rates.
  • Yours tops out at 0%, or $0 of federal tax.
  • All of it fits in one band: $3,900 at 0%.
  • Your gain sits on top of your other income, after the $16,100 standard deduction for a single filer. Leftover deduction covers $16,100 of the gain.

What this means for these shares

  • Only the shares you sold are taxed, not the ones you still hold.

On top of the federal tax

  • State tax: not included yet for your state, so your real total may be higher.
  • Total: $0 in tax, leaving you $20,000 of your $20,000 profit.

Ways to pay less

  • Tax-loss harvesting: sell losing investments to cancel out gains. Up to $3,000 a year of extra losses can also lower your other income.
  • Spread a big sale over several years.
  • Donate investments that have gained value instead of selling them.
  • Trade inside an IRA or 401(k).

Not covered: wash sales, 1031 exchanges, installment sales, and the alternative minimum tax.

FAQ

Frequently asked questions

Quick answers about capital gains tax.

  • It's the tax on the profit when you sell something for more than you paid, like stocks, crypto, a home or rental property.
  • Only the gain is taxed: the sale price minus what you paid and certain costs.
  • Gains on things held over a year get lower long-term rates. Gains held a year or less are taxed like wages.

This is an estimate for the 2026 tax year, not tax, legal, or financial advice. Figures are simplified and don't include every credit or deduction. Talk to a tax professional before making decisions.