Skip to main content
taxintermediate8 min

Capital Gains Tax Calculator

Calculate your capital gains tax liability for stocks, real estate, and other investments. Compare short-term vs long-term rates.

Enter Your Details
$
$
years
$

Total Capital Gain

-

Full Results

Capital Gains Tax Owed

-

After-Tax Proceeds

-

Effective Tax Rate on Gain

-

Where Your Proceeds Go

What is Capital Gains Tax Calculator?

A capital gains tax calculator estimates the tax you'll owe when you sell investments, real estate, or other assets for a profit.

How It Works

Enter your purchase price, sale price, holding period, and filing status. The calculator determines if your gain is short-term or long-term and applies the appropriate tax rate.

The Formula

Capital Gain = Sale Price - Cost Basis Short-term (<1 year): Taxed as ordinary income Long-term (>=1 year): Taxed at 0%, 15%, or 20% based on income

The tax rate on capital gains depends on how long you held the asset. Short-term gains are taxed at your ordinary income rate. Long-term gains benefit from lower rates (0%, 15%, or 20%) depending on your taxable income.

Examples

Example: $15,000 gain on stocks held 3 years

Single filer, $85k income, $10k invested -> $25k

Your $15,000 gain is long-term (held >1 year). With $85k income, your LTCG rate is 15%. You owe $2,250 in tax. After-tax proceeds: $22,750. Effective rate: 15%.

Pros & Cons

Pros

  • Plan for tax liability before selling
  • Compare short vs long-term holding strategies
  • Understand your after-tax returns
  • Make smarter investment timing decisions

Cons

  • Simplified tax calculation
  • Doesn't include NIIT (3.8%)
  • State capital gains not included
  • Individual circumstances may vary

Common Mistakes to Avoid

  • !Selling before the 1-year LTCG threshold
  • !Not accounting for state taxes
  • !Forgetting about wash sale rules
  • !Ignoring step-up in basis for inherited assets

Expert Tips

  • Hold assets for at least 1 year for lower rates
  • Use tax-loss harvesting to offset gains
  • Consider tax-advantaged accounts first
  • Time sales for low-income years if possible

Frequently Asked Questions

What's the difference between short-term and long-term capital gains?
Short-term gains (assets held <1 year) are taxed at your ordinary income tax rate, which can be up to 37%. Long-term gains (held >=1 year) are taxed at lower rates of 0%, 15%, or 20%, making long-term investing much more tax-efficient.
How do I avoid capital gains tax?
You can avoid capital gains tax by holding assets in tax-advantaged accounts (401k, IRA, HSA). For taxable accounts, consider tax-loss harvesting to offset gains, or hold assets for over a year to qualify for lower long-term rates. If your income is below certain thresholds, you may pay 0% on long-term gains.
Does capital gains tax apply to primary home sales?
If you've lived in your home for 2 of the last 5 years, you can exclude up to $250,000 of gain ($500,000 for married couples filing jointly). Gains above those limits are taxed at long-term capital gains rates.
When do I pay capital gains tax?
Capital gains tax is due in the tax year you sell the asset. You don't pay tax on unrealized gains (gains on assets you still hold). The tax is reported on Schedule D of your Form 1040 when you file your annual tax return.

Related Calculators

Was this helpful? Share it with others: