How Capital Gains Are Taxed: Short-Term vs. Long-Term, the 0% Bracket, and the 3.8% Surtax
Sell an investment at a profit and you owe capital gains tax, but how much depends on how long you held it and on your total income. Here's how the rates work, how to calculate gains, and how to legally pay less.
Key takeaways
- 01.Hold for more than a year—Long-term gains get lower rates; short-term gains are taxed like wages.
- 02.Long-term rates are 0%, 15% or 20%—Which one depends on your total taxable income, not just the gain.
- 03.A 3.8% surtax applies at higher incomes—Above $200,000 single / $250,000 married filing jointly (not indexed).
- 04.Basis is everything—Keep records of what you paid, including reinvested dividends.
A capital gain is the profit when you sell an asset (stocks, funds, crypto, property) for more than you paid. The federal tax on it depends on two things: how long you held it and your total taxable income.
Short-term vs. long-term
- Short-term: held one year or less. Taxed at your ordinary income rates, the same as wages.
- Long-term: held more than one year. Taxed at lower rates: 0%, 15% or 20%.
The holding period starts the day after you buy and includes the day you sell. Selling a day too early can double the rate on a gain.
The long-term rates
The 0% and 15% brackets are set by income thresholds that rise with inflation each year. For example, for 2025 the IRS says the 0% rate applied to single filers with taxable income up to $48,350 (married filing jointly: $96,700), and the 15% rate applied up to $533,400 for single filers, with 20% above that. Check IRS Topic 409 for the current year's thresholds for your filing status.
The key point people miss: your gain is stacked on top of your other taxable income. If your salary already uses up the 0% range, your gains start in the 15% range. If your income is low (a gap year, early retirement), you may be able to realise some gains at 0%.
A few assets have different long-term rates: collectibles (art, coins, precious metals held directly) up to 28%, and the part of a real estate gain that reflects past depreciation ("unrecaptured Section 1250 gain") up to 25%.
The 3.8% net investment income tax
On top of capital gains tax, the net investment income tax (NIIT) adds 3.8% on the lesser of your net investment income or the amount your modified AGI exceeds:
| Filing status | Threshold |
|---|---|
| Single / head of household | $200,000 |
| Married filing jointly | $250,000 |
| Married filing separately | $125,000 |
These thresholds are not indexed for inflation, so more people cross them every year. Combined with the 20% rate, the top federal rate on long-term gains is effectively 23.8%. State income taxes may apply on top.
How to calculate a gain
Gain = sale price − cost basis − selling costs
Your cost basis is generally what you paid, including commissions. Watch for:
- Reinvested dividends: each reinvestment adds to your basis. Forgetting this means paying tax twice.
- Inherited assets: basis is usually "stepped up" to the value at the date of death.
- Gifts: you generally take the giver's original basis.
- Real estate: improvements add to basis; depreciation reduces it.
Brokers report basis for most securities bought after 2011 on Form 1099-B. For older holdings, it's up to you.
Legal ways to pay less
- Hold for more than a year when practical.
- Use the 0% bracket in low-income years by realising gains deliberately ("gain harvesting"), which also resets your basis higher.
- Offset gains with losses (tax-loss harvesting). Losses offset gains, and up to $3,000 a year of extra losses offset ordinary income; the rest carries forward.
- Give appreciated shares instead of cash to charity: you generally avoid the gain and may deduct the full value.
- Hold investments in tax-advantaged accounts (401(k), IRA, HSA), where trading doesn't create taxable gains.
- Choose which lots to sell. If you bought the same fund at different prices, selecting high-basis lots ("specific identification") can reduce the gain. Set this with your broker before you sell.
- Exclude gains on your home. Up to $250,000 ($500,000 for married couples) if you meet the ownership and use tests.
Reporting
Gains and losses go on Form 8949 and Schedule D. Your broker's 1099-B provides most of the information.
General information, not tax advice. Rates and thresholds change; check the IRS's current figures.
Sources
Not advice: this article is general information, not personal financial, tax or legal advice. Rules change and depend on your circumstances, so check with a qualified professional before acting.
Spotted an error? Email corrections@dailyinfo.tech. See our editorial standards.