HomePersonal FinanceTaxes › Capital Gains Tax Guide

Capital Gains Tax Guide: Rates, Rules & How to Minimize Your Tax Bill

Capital gains tax is the tax you owe on profits from selling an investment or asset for more than you paid. The rate depends on how long you held the asset and your taxable income. Long-term gains (held over one year) are taxed at 0%, 15%, or 20% — significantly lower than short-term gains, which are taxed as ordinary income.

How Capital Gains Tax Works

When you sell a stock, real estate, or other asset at a profit, the IRS wants its share. Your capital gain is simply the difference between your sale price and your cost basis (what you originally paid, plus adjustments). If you sell at a loss, that’s a capital loss — and it can actually help you at tax time through tax-loss harvesting.

The critical distinction is holding period. Sell an asset you’ve held for one year or less, and the gain is short-term — taxed at your ordinary income rate, which can be as high as 37%. Hold it for more than a year, and you qualify for the lower long-term capital gains rates.

2025 Capital Gains Tax Rates

Filing Status0% Rate15% Rate20% Rate
SingleUp to $48,350$48,351 – $533,400Over $533,400
Married Filing JointlyUp to $96,700$96,701 – $600,050Over $600,050
Head of HouseholdUp to $64,750$64,751 – $566,700Over $566,700

These thresholds are based on taxable income, not gross income. So after deductions, many middle-income investors land in the 0% or 15% bracket for long-term gains.

Short-Term vs Long-Term Capital Gains

FeatureShort-Term GainsLong-Term Gains
Holding Period1 year or lessMore than 1 year
Tax Rate10% – 37% (ordinary income)0%, 15%, or 20%
Net Investment Income Tax+3.8% if income > $200K/$250K+3.8% if income > $200K/$250K
Best ForActive tradersBuy-and-hold investors

The Net Investment Income Tax (NIIT)

High earners face an additional 3.8% surtax on investment income — including capital gains — if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). This means the effective top rate on long-term gains is actually 23.8%, not 20%.

Strategies to Reduce Capital Gains Tax

1. Hold Investments for Over One Year

The simplest move. By holding past the one-year mark, you drop from ordinary income rates (up to 37%) to the preferential long-term rates (0–20%). That patience alone can save thousands.

2. Tax-Loss Harvesting

Tax-loss harvesting lets you sell losing positions to offset gains. You can offset unlimited gains with losses, plus deduct up to $3,000 of net losses against ordinary income each year. Unused losses carry forward indefinitely.

3. Use Tax-Advantaged Accounts

Investments inside a 401(k), Roth IRA, or HSA grow tax-free or tax-deferred. Roth accounts are especially powerful — qualified withdrawals are completely tax-free, including all gains. See our full guide on tax-advantaged accounts.

4. Donate Appreciated Assets

Donating stocks or funds you’ve held over a year to charity lets you deduct the full market value without paying capital gains tax on the appreciation. It’s one of the most tax-efficient ways to give.

5. Use the Primary Residence Exclusion

If you’ve lived in your home for at least 2 of the last 5 years, you can exclude up to $250,000 in gains ($500,000 for married couples) from capital gains tax when you sell.

Analyst Tip
If you’re sitting on big unrealized gains, consider spreading sales across multiple tax years. Staying below the 15% → 20% threshold each year can save you thousands compared to selling everything at once.

Capital Gains on Different Asset Types

Asset TypeTax TreatmentSpecial Rules
StocksStandard short/long-term ratesWash sale rule applies
BondsInterest taxed as ordinary incomeGains on sale taxed at capital gains rates
ETFsStandard short/long-term ratesGenerally more tax-efficient than mutual funds
Mutual FundsDistributions may trigger gainsCan generate taxable events even without selling
Real EstateStandard rates + depreciation recapture at 25%Primary residence exclusion, 1031 exchanges
CollectiblesMaximum 28% rate on long-term gainsIncludes art, coins, precious metals
Watch Out: The Wash Sale Rule
If you sell an investment at a loss and buy a “substantially identical” security within 30 days before or after, the IRS disallows the loss. This trips up many investors trying to harvest losses while maintaining their portfolio allocation. See our wash sale rule guide for the details.

Key Takeaways

  • Long-term capital gains (held > 1 year) are taxed at 0%, 15%, or 20% — far below ordinary income rates.
  • Short-term gains are taxed at your regular income tax rate, up to 37%.
  • High earners may owe an additional 3.8% Net Investment Income Tax.
  • Tax-loss harvesting and tax-advantaged accounts are the most effective strategies to minimize capital gains taxes.
  • The primary residence exclusion can shelter up to $500,000 in home sale gains for married couples.

Frequently Asked Questions

How much capital gains tax will I owe on stock sales?

It depends on your holding period and taxable income. If you held the stock over one year, you’ll pay 0%, 15%, or 20% based on your income bracket. Held one year or less, the gain is taxed at your ordinary income rate (10%–37%). Use the rate tables above to estimate your bracket.

Do I pay capital gains tax if I reinvest the proceeds?

Yes. The IRS taxes the realized gain when you sell, regardless of what you do with the money afterward. Reinvesting doesn’t defer or eliminate the tax — unless you’re using a strategy like a 1031 exchange for real estate.

Can capital losses offset ordinary income?

Partially. You can use capital losses to offset all your capital gains first. If you still have net losses remaining, you can deduct up to $3,000 per year against ordinary income ($1,500 if married filing separately). Unused losses carry forward to future years.

Are capital gains taxed at the state level too?

In most states, yes. States like California tax capital gains as ordinary income (up to 13.3%), while states like Florida, Texas, and Nevada have no state income tax at all. Your total tax burden depends heavily on where you live.

What’s the difference between realized and unrealized gains?

An unrealized gain is a profit that exists on paper — your investment has increased in value, but you haven’t sold it yet. A realized gain occurs when you actually sell. You only owe capital gains tax on realized gains, which is why buy-and-hold strategies are tax-efficient.