Investment Tax Guide
Capital Gains Tax Guide 2026 —Short-Term vs Long-Term Rates
Understanding capital gains taxes is essential for every investor. Learn how holding periods, tax brackets, and strategies like tax-loss harvesting affect your investment returns.
2026 Long-Term Capital Gains Rates: 0% (single filers up to ~$48,350), 15% (up to ~$533,400), 20% (above ~$533,400). Plus 3.8% NIIT for high earners. Short-term gains are taxed as ordinary income.
When you sell an investment for more than you paid, the profit is called a capital gain, and the IRS wants its share. But not all capital gains are taxed equally. The rate you pay depends primarily on one factor: how long you held the investment before selling.
Understanding capital gains taxes is critical for maximizing your investment returns. The difference between short-term and long-term rates can mean paying 37% versus 20% (or even 0%) on the same gain. Strategic planning around holding periods, tax-loss harvesting, and the primary residence exclusion can save you thousands of dollars.
Short-Term vs Long-Term Capital Gains
The IRS classifies capital gains based on the holding period:
Short-Term Capital Gains
Assets held for one year or less generate short-term capital gains. These gains are taxed at your ordinary income tax rate —the same rates that apply to your wages and salary. For 2026, this means rates ranging from 10% to 37% depending on your tax bracket.
Long-Term Capital Gains
Assets held for more than one year generate long-term capital gains. These receive preferential tax treatment with rates of 0%, 15%, or 20% —significantly lower than ordinary income rates for most taxpayers.
2026 Long-Term Capital Gains Tax Brackets
| Rate | Single | Married Filing Jointly |
|---|---|---|
| 0% | $0 —$48,350 | $0 —$96,700 |
| 15% | $48,351 —$533,400 | $96,701 —$600,050 |
| 20% | $533,401+ | $600,051+ |
The 0% rate is particularly powerful: if your total taxable income (including capital gains) falls within the 0% bracket, you pay zero federal tax on your long-term capital gains. This strategy is commonly used in retirement when income is lower.
Net Investment Income Tax (NIIT)
High-income earners face an additional 3.8% Net Investment Income Tax on top of the standard capital gains rates. The NIIT applies to the lesser of your net investment income or the amount by which your modified AGI exceeds:
- $200,000 for single and head of household filers
- $250,000 for married filing jointly
- $125,000 for married filing separately
For a single filer earning $300,000 with $50,000 in long-term capital gains, the effective rate on those gains would be 15% + 3.8% = 18.8%. For short-term gains, it could be as high as 37% + 3.8% = 40.8%.
Tax-Loss Harvesting
Tax-loss harvesting is the practice of selling investments at a loss to offset capital gains. Here is how it works:
- Capital losses first offset capital gains of the same type (short-term losses offset short-term gains)
- Excess losses can offset up to $3,000 of ordinary income per year
- Unused losses carry forward indefinitely to future tax years
Example: If you have $10,000 in short-term gains and $15,000 in short-term losses, your net loss is $5,000. You can deduct $3,000 against ordinary income this year and carry forward the remaining $2,000 to next year.
The Wash Sale Rule
The IRS prevents taxpayers from claiming a loss and immediately repurchasing the same investment through the wash sale rule. If you sell a security at a loss and buy a "substantially identical" security within 30 days before or after the sale, the loss is disallowed.
The disallowed loss is added to the cost basis of the replacement security, deferring (not eliminating) the tax benefit. To avoid wash sales while maintaining market exposure, investors can purchase a similar but not identical security —for example, selling an S&P 500 ETF and buying a total market ETF.
Primary Residence Exclusion
One of the most generous provisions in the tax code is the primary residence exclusion. If you sell your primary home, you can exclude up to:
- $250,000 of gain if single
- $500,000 of gain if married filing jointly
To qualify, you must have owned and lived in the home as your primary residence for at least 2 of the 5 years preceding the sale. The two years do not need to be consecutive. This exclusion can be used once every two years.
For a married couple who bought a home for $400,000 and sold it for $950,000, the $550,000 gain would result in only $50,000 of taxable capital gain after the $500,000 exclusion.
Strategies to Minimize Capital Gains Tax
- Hold for more than one year to qualify for long-term rates
- Harvest losses to offset gains and up to $3,000 of ordinary income
- Time sales to low-income years to potentially qualify for the 0% rate
- Use the primary residence exclusion when selling your home
- Donate appreciated stock to charity to avoid capital gains entirely while claiming a full fair-market-value deduction
- Hold investments until death —heirs receive a stepped-up basis, eliminating capital gains on appreciation during your lifetime
Frequently Asked Questions
How do I calculate my capital gain or loss?
Capital gain or loss = Sale price - Cost basis. Cost basis is what you paid for the investment, including commissions and fees. If you received a 1099-B from your broker, it will report both the sale price and (in most cases) the cost basis.
Are capital gains from cryptocurrency taxed differently?
No. The IRS treats cryptocurrency as property, not currency. Capital gains rules apply identically: short-term rates for crypto held one year or less, long-term rates for holdings over one year. Every crypto-to-crypto trade is a taxable event.
Do I pay capital gains tax if I reinvest the proceeds?
Yes. Unlike some countries, the US does not have a rollover provision for most capital gains. Selling triggers the tax regardless of what you do with the proceeds. The exception is a 1031 exchange for real estate, which allows deferral if you reinvest in like-kind property.
What is the difference between realized and unrealized gains?
An unrealized gain is the increase in value of an investment you still hold —it is not taxed. A realized gain occurs when you actually sell the investment. Only realized gains are subject to capital gains tax. This is why "buy and hold" is a tax-efficient strategy.
How do capital gains affect my tax bracket?
Long-term capital gains are "stacked" on top of your ordinary income for bracket determination. They do not push your ordinary income into a higher bracket, but large capital gains can push the gains themselves into a higher capital gains bracket (e.g., from 0% to 15%).
ldkong, NumBoxHub Editorial Process
Published: June 10, 2026 —Last Updated: June 11, 2026
NumBoxHub is an independent, single-operator project. All guides are researched and fact-checked against primary sources (IRS publications, BMF releases, SSA / GKV / DRV contribution notices) before publication and updated when the underlying rules change. Verification date and source links are shown on each page.
Calculate Your Capital Gains Tax
Estimate your capital gains tax liability including NIIT with our free calculator.
Disclaimer: This article is for educational purposes only and does not constitute tax or investment advice. Capital gains tax rates and rules are subject to change. Consult a qualified tax professional or financial advisor for advice specific to your situation. Information based on IRS Publication 550 and IRS Publication 544.