Skip to content
S SmartTaxCalcs

Capital Gains Tax Calculator

Estimate short-term vs long-term capital gains tax, detected automatically.

Updated for the 2026 tax year · Last data update May 19, 2026
$
$
$
Share this result:

How to Use

  1. Enter the purchase and sale prices.
  2. Choose short-term or long-term.
  3. Enter your other taxable income.
  4. Select your filing status and review the tax.

Calculation Method

Gain = sale − purchase. Short-term gains (held ≤ 1 year) are taxed at ordinary income rates, stacked on top of your other income. Long-term gains (held > 1 year) use the preferential 0% / 15% / 20% rates based on your taxable income.

The Net Investment Income Tax (3.8%) may also apply at higher incomes and is not included here.

Data source: IRS (2026 capital gains breakpoints).

Examples

Long-term, \$20,000 gain, \$70,000 income (single)

Falls in the 15% long-term bracket.

≈ \$3,000 tax

Frequently Asked Questions

If you held the asset more than one year before selling, the gain is long-term and gets preferential rates. One year or less is short-term and taxed as ordinary income.

No. The Net Investment Income Tax can apply at higher incomes and should be considered separately with a professional.

If the sale price is below the purchase price you have a capital loss, which may offset gains or income — consult a tax professional.

Disclaimer

This calculator provides estimates for informational and educational purposes only. SmartTaxCalcs does not provide tax advice. Your actual tax liability may differ based on your specific situation, recent law changes, and circumstances not modeled here (e.g., AMT, NIIT, special credits). We strongly recommend consulting a qualified tax professional (CPA, Enrolled Agent, or tax attorney) before filing or making financial decisions.

Data source: IRS Revenue Procedure / state Departments of Revenue. Last data update: May 19, 2026.

We value your privacy

We use necessary cookies to make the site work. With your consent we also use analytics and advertising cookies. See our Privacy Policy.