Selling an investment for a profit feels great — right up until tax season, when a surprising number of investors discover they owe more than expected. Capital gains tax isn’t optional or avoidable once you sell, but it is predictable, and knowing the rules ahead of time can meaningfully change both your timing and your bill.
What Are Capital Gains? (Short-Term vs Long-Term)
The IRS splits capital gains into two categories based purely on how long you held the asset:
- Short-term (held 1 year or less): taxed as ordinary income, at your regular federal tax bracket
- Long-term (held more than 1 year): taxed at preferential rates — 0%, 15%, or 20%, depending on your total taxable income
That single distinction — crossing the one-year mark — can be the difference between paying your ordinary income rate (potentially 22%, 24%, or higher) and paying a flat 15%. Full details are available in IRS Topic 409, the official guidance on capital gains and losses.
2025 Long-Term Capital Gains Tax Rate Table
Approximate 2025 thresholds for single filers:
| Taxable Income (Single) | Long-Term Capital Gains Rate |
|---|---|
| Up to ~$48,350 | 0% |
| ~$48,350 – $533,400 | 15% |
| Above ~$533,400 | 20% |
Married filing jointly thresholds are roughly double these amounts. Tax Foundation’s capital gains data tracks these brackets each year as they’re adjusted for inflation.
Capital Gains Tax Example
Let’s run real numbers:
- Bought: $10,000 of stock
- Sold for: $28,000 after 18 months (long-term)
- Taxable income: $80,000 (single filer)
Gain: $18,000
At $80,000 taxable income, this filer falls in the 15% long-term capital gains bracket:
$18,000 × 15% = $2,700 tax owed
Compare that to what would happen if the same $18,000 gain were short-term (sold before the 1-year mark) and taxed as ordinary income at a 22% bracket: $3,960 — nearly $1,300 more, purely for selling six months earlier.

How to Reduce Capital Gains Tax Legally
- Hold for over a year whenever feasible to access long-term rates
- Tax-loss harvesting — selling losing positions to offset gains elsewhere in your portfolio
- Maximize tax-advantaged accounts (401(k)s and IRAs grow without triggering capital gains tax on internal trades)
- 1031 exchanges for real estate investors, allowing gains to be deferred by reinvesting in a similar property
- Timing sales around lower-income years, since your rate depends on total taxable income — Kiplinger’s capital gains guide has more on year-end timing strategies
State Capital Gains Taxes — An Added Layer
Federal rates are only part of the picture. Many states also tax capital gains, often at the same rate as regular state income tax, while a handful of states (like Texas, Florida, and Nevada) have no state income tax at all — meaning no additional state-level capital gains tax either. Schwab’s guide to lowering capital gains taxes covers state-level strategy in more detail.
Capital Gains on Real Estate (The Primary Home Exclusion)
Selling your primary residence comes with a valuable exclusion: single filers can exclude up to $250,000 of gain, and married couples filing jointly can exclude up to $500,000, provided you’ve owned and lived in the home for at least 2 of the last 5 years. This is one of the most generous tax breaks available to everyday homeowners and often means no capital gains tax is owed at all on a home sale.
Calculate exactly what you’ll owe on your next sale. Use the Capital Gains Tax Calculator →
Frequently Asked Questions
How do you avoid capital gains tax?
Legal strategies include holding assets longer than a year, using tax-loss harvesting to offset gains, investing through tax-advantaged retirement accounts, and using the primary home sale exclusion — but capital gains tax generally can’t be avoided entirely on taxable investment sales.
Do you pay capital gains tax every year?
Only in years you actually sell an asset for a gain. Unrealized gains — investments that have grown in value but haven’t been sold — aren’t taxed until the sale occurs.
What is the capital gains tax rate for 2025?
Long-term rates are 0%, 15%, or 20% depending on your taxable income, while short-term gains (assets held one year or less) are taxed at your regular federal income tax bracket.
Is capital gains tax the same as income tax?
Not exactly. Short-term capital gains are taxed as ordinary income using the same brackets as your salary, but long-term capital gains use a separate, generally lower rate schedule.