Capital Gains Tax Calculator

Estimate the capital gains tax you owe when you sell an asset for more than you paid, based on your holding period and income.

What is Capital Gains Tax?

Capital gains tax is a tax on the profit you earn when you sell an asset for more than you paid for it. The “capital gain” is the difference between the sale price and your cost basis (what you originally paid, plus allowable costs). This tax applies to assets such as stocks, bonds, real estate, and collectibles.

The amount of tax you owe depends on two main factors: how long you held the asset (short-term vs long-term) and your taxable income. Understanding these rules helps you plan sales and manage your tax liability effectively.

How to Use the Capital Gains Tax Calculator

The calculator needs four pieces of information:

  1. Purchase price (your cost basis) of the asset.
  2. Sale price of the asset.
  3. Holding period — whether you held it more than one year (long-term) or one year or less (short-term).
  4. Taxable income, which is used to determine your tax bracket.

Press Calculate Tax to see your capital gain, the applied tax rate, the estimated tax due, and your net gain after tax.

Short-Term vs Long-Term Capital Gains

Short-term capital gains (assets held for one year or less) are taxed at your ordinary income tax rates. Long-term capital gains (assets held for more than one year) benefit from preferential rates — typically 0%, 15%, or 20% depending on your income, with 0% often available to low-income earners. This is why holding investments for more than a year is usually tax-advantageous.

Example Calculation

You bought shares for $50,000 and sold them for $75,000 after holding them for two years (long-term). Your taxable income is $80,000.

Item Value
Cost Basis $50,000
Sale Price $75,000
Capital Gain = 75,000 − 50,000 $25,000
Holding Period Long-term
Long-term Rate (income $80k) 15%
Estimated Tax = 25,000 × 0.15 $3,750
Net After Tax = 25,000 − 3,750 $21,250

You would owe $3,750 in tax on your $25,000 gain, keeping $21,250.

Why Capital Gains Tax Matters

Capital gains tax can significantly reduce the return on your investments, so understanding it is vital for investors. Knowing whether you face short-term or long-term rates helps you time sales strategically, and estimating the tax before selling lets you plan your cash flow. It also influences decisions about when to rebalance portfolios or sell property.

How the Calculator Works

The calculator subtracts the cost basis from the sale price to find the capital gain. If the holding period is long-term, it applies the 0%, 15%, or 20% long-term rate based on your income. If short-term, it applies the appropriate ordinary income bracket rate. It multiplies the gain by the rate to find the tax and subtracts it from the gain to report your net after tax.

Important Notes

This tool provides an estimate based on 2024 U.S. federal capital gains rules for single filers. It does not account for state taxes, net investment income tax, special asset rules, or losses that could offset gains. Actual results may differ, so consult a tax professional for your specific situation.

Frequently Asked Questions

What counts as a capital gain?

A capital gain is the profit from selling a capital asset for more than its cost basis. If you sell for less, you have a capital loss, which may be used to offset gains.

How long is “long-term”?

Long-term generally means you held the asset for more than one year before selling. One year or less is considered short-term.

Why are long-term rates lower?

Governments offer preferential long-term rates to encourage long-term investing, which promotes stability in financial markets and rewards patient capital.

Can capital losses reduce my tax?

Yes. Capital losses can offset capital gains, and up to $3,000 of excess loss can be deducted against ordinary income each year.

Start Calculating Now

Use the Capital Gains Tax Calculator above to estimate your tax before you sell an asset. A few inputs give you a clear picture of what you will actually keep.

Category:

Tax Calculations,