Selling an investment for a profit feels like a win — until tax season. Capital gains taxes can take 20–37% of your profit depending on how long you held the asset and what tax bracket you're in. Understanding the rules before you sell can save you thousands.
Short-Term vs Long-Term Capital Gains
The single most important distinction in capital gains:
| Short-term | Long-term | |
|---|---|---|
| Definition | Held 1 year or less | Held more than 1 year |
| Tax rate | Ordinary income tax rate | 0%, 15%, or 20% |
| Example (22% bracket) | 22% | 15% |
Wait one day past one year and save potentially 7–22 percentage points. This is the simplest legal tax reduction available to investors.
2026 Long-Term Capital Gains Rates
| Tax filing status | 0% rate | 15% rate | 20% rate |
|---|---|---|---|
| Single | Up to $47,025 | $47,026–$518,900 | Over $518,900 |
| Married filing jointly | Up to $94,050 | $94,051–$583,750 | Over $583,750 |
The 0% rate is real: If your taxable income is below $47,025 (single), you pay zero capital gains tax on long-term gains. Low-income years — a gap year, early retirement, job loss — are valuable windows for realizing gains at 0%.
What Counts as a Capital Gain
- Stocks, ETFs, mutual funds
- Real estate (with exceptions — see below)
- Bonds
- Collectibles (taxed at max 28%)
- Crypto (taxed like property, not currency)
What doesn't: income from dividends (qualified dividends have their own rates), interest income, wages.
The Home Sale Exclusion
Home sales get favorable treatment: up to $250,000 in gains (single) or $500,000 (married) are excluded from capital gains tax, provided you've lived in the home as a primary residence for at least 2 of the last 5 years.
Sell a home you bought for $300,000 and sell for $650,000 after 7 years: $250,000 exclusion leaves $100,000 taxable gain.
Tax-Loss Harvesting: Offset Gains With Losses
If you have investments down from where you bought them, selling them realizes a capital loss — which offsets your capital gains dollar for dollar.
Example: $10,000 in realized gains from selling Stock A. You're also down $4,000 on Stock B. Sell Stock B: net taxable gain drops to $6,000.
You can also carry forward losses beyond your gains — up to $3,000/year can offset ordinary income, with the rest carried forward indefinitely.
Watch the wash sale rule: You can't buy back the same security within 30 days of selling it at a loss. You can buy a similar (but not identical) fund immediately.
Strategies to Minimize Capital Gains
- Hold investments 1+ year before selling — drops from ordinary income rate to 15%
- Sell in low-income years — 0% rate applies if income is low enough
- Use tax-advantaged accounts — gains inside a Roth IRA or 401(k) aren't taxed
- Tax-loss harvest — offset gains with losses in your taxable brokerage
- Donate appreciated stock to charity — you avoid the gain and get a deduction
- Stepped-up basis at death — inherited assets reset their cost basis, eliminating unrealized gains
The 3.8% Net Investment Income Tax
High earners pay an additional 3.8% on investment income (including capital gains) when modified AGI exceeds $200,000 (single) or $250,000 (married). Effectively, the top capital gains rate is 23.8%, not 20%.
The Bottom Line
- Long-term gains (1+ year) are taxed at 0%, 15%, or 20% — always better than short-term
- Wait 366 days before selling if you're close to the 1-year mark
- The 0% rate applies to many middle-income earners — check your bracket
- Tax-loss harvesting can legally zero out your gains
- Accounts like Roth IRA eliminate capital gains entirely — prioritize them for your highest-growth holdings
Use our Compound Interest Calculator to model after-tax growth across different account types.
Get free finance tips
Join our newsletter — practical guides, no spam.