What Is Capital Gains Tax?

Capital gains tax is the tax owed on the profit from selling an asset — stocks, real estate, crypto, or a business — for more than you paid. Short-term gains (assets held ≤1 year) are taxed as ordinary income; long-term gains (held >1 year) get lower rates of 0%, 15%, or 20%.

How Capital Gains Are Calculated

Your taxable gain is sale price minus cost basis (what you originally paid, plus certain fees or improvements). Only the profit is taxed — never the full sale amount. If you sell an asset for less than you paid, you have a capital loss instead, which can offset other gains.

The single most important variable is how long you held the asset. Cross the one-year mark and your rate can drop dramatically.

Worked Example: Selling Stock

Say you bought 100 shares of a stock at $50 each ($5,000 total) and later sell all 100 shares at $85 each ($8,500 total). Your gain is $3,500.

ScenarioHolding PeriodTax Rate (24% bracket / 15% LTCG)Tax Owed
Sold after 8 monthsShort-term24% (ordinary income)$840
Sold after 14 monthsLong-term15% (long-term rate)$525

Waiting just 6 extra months to cross the one-year threshold saves this investor $315 in tax on the same $3,500 gain — a real, common outcome of long-term vs. short-term timing.

2024 Long-Term Capital Gains Brackets (Single Filers)

  • 0% rate: Taxable income up to $47,025
  • 15% rate: Taxable income $47,026 – $518,900
  • 20% rate: Taxable income above $518,900

Married filing jointly thresholds are roughly double. State capital gains taxes may also apply on top of federal rates, depending on where you live.

These figures are illustrative estimates based on general 2024 federal brackets and do not account for your full tax situation, state taxes, or the Net Investment Income Tax. This is not tax advice — consult a licensed tax professional.

Estimate Your Tax Refund or Owed Amount

Use our Tax Refund Estimator to see how gains and other income affect your bottom line.

Try the Calculator →

Related

Frequently Asked Questions

What is capital gains tax in simple terms?

It's a tax on the profit from selling an asset for more than you paid. If you buy a stock for $1,000 and sell it for $1,500, you owe tax on the $500 profit, not the full $1,500.

What is the difference between short-term and long-term capital gains?

Short-term gains come from assets held one year or less and are taxed as ordinary income (10-37%). Long-term gains come from assets held more than a year and get preferential rates of 0%, 15%, or 20%.

Do I pay capital gains tax on my primary home?

Often not. Single filers can exclude up to $250,000 of gain ($500,000 married filing jointly) on a primary residence, as long as you owned and lived in it for 2 of the last 5 years.

Are capital losses useful?

Yes. Capital losses offset capital gains dollar-for-dollar, and up to $3,000 of net losses can offset ordinary income per year, with any excess carried forward.

Does selling crypto trigger capital gains tax?

Yes. The IRS treats cryptocurrency as property, so selling, trading, or spending it for more than your cost basis triggers a taxable capital gain.

How can I reduce capital gains tax legally?

Common strategies include holding assets over a year, tax-loss harvesting, using tax-advantaged accounts like IRAs and 401(k)s, and timing sales in lower-income years.