Capital Gains Tax Calculator

How long you hold an investment changes your tax bill dramatically. Estimate the tax on a sale and see your true after-tax profit.

$
$
%

Long-term: 0%, 15%, or 20%. Short-term: your ordinary income bracket (10โ€“37%).

Capital Gain

$6,000.00

Estimated Tax

$900.00

Net Profit

$5,100.00

Effective Tax Rate

15.0%

What this means: Your $6,000 long-term gain owes roughly $900 in tax, leaving $5,100 net.

Where Your Gain Goes

Assumptions & limitations
  • A single flat rate is applied โ€” actual liability depends on your bracket, other income, and state taxes.
  • The 3.8% Net Investment Income Tax and state taxes are not included unless you add them to the rate.
  • This is an estimate, not tax advice โ€” consult a tax professional.

Capital gains tax

Tax = max(0, Sale โˆ’ Purchase) ร— Rate

Gains held over one year qualify for preferential long-term rates (0/15/20% federally); shorter holdings are taxed as ordinary income.

How It Works

  1. 1Your gain is the sale proceeds minus your cost basis (purchase price plus commissions and reinvested dividends).
  2. 2Crossing the one-year holding mark can cut your federal rate nearly in half.
  3. 3High earners may owe an additional 3.8% Net Investment Income Tax; states may tax gains as ordinary income.

Frequently Asked Questions

What are the long-term rates?

Federally: 0% for lower incomes, 15% for most investors, 20% for high earners โ€” plus possibly the 3.8% NIIT and state taxes.

Can losses reduce my taxes?

Yes. Losses offset gains dollar-for-dollar, then up to $3,000/year of ordinary income, with the rest carried forward indefinitely.

What is tax-loss harvesting?

Selling losers to realize losses that offset gains โ€” while avoiding the wash-sale rule (no repurchase of a substantially identical asset within 30 days).

Related Calculators

Keep Learning

Disclaimer: These calculators are for informational and educational purposes only and do not constitute financial, tax, or investment advice. Results are estimates based on your inputs. Consult a qualified professional before making financial decisions.