Capital Gains Tax Guide: Rates, Rules & How to Minimize Your Tax Bill
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 Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $48,350 | $48,351 – $533,400 | Over $533,400 |
| Married Filing Jointly | Up to $96,700 | $96,701 – $600,050 | Over $600,050 |
| Head of Household | Up to $64,750 | $64,751 – $566,700 | Over $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
| Feature | Short-Term Gains | Long-Term Gains |
|---|---|---|
| Holding Period | 1 year or less | More than 1 year |
| Tax Rate | 10% – 37% (ordinary income) | 0%, 15%, or 20% |
| Net Investment Income Tax | +3.8% if income > $200K/$250K | +3.8% if income > $200K/$250K |
| Best For | Active traders | Buy-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.
Capital Gains on Different Asset Types
| Asset Type | Tax Treatment | Special Rules |
|---|---|---|
| Stocks | Standard short/long-term rates | Wash sale rule applies |
| Bonds | Interest taxed as ordinary income | Gains on sale taxed at capital gains rates |
| ETFs | Standard short/long-term rates | Generally more tax-efficient than mutual funds |
| Mutual Funds | Distributions may trigger gains | Can generate taxable events even without selling |
| Real Estate | Standard rates + depreciation recapture at 25% | Primary residence exclusion, 1031 exchanges |
| Collectibles | Maximum 28% rate on long-term gains | Includes art, coins, precious metals |
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.