Skip to main content
Guide11 min readUpdated January 25, 2026

Capital Gains Tax Explained: Short-Term vs Long-Term

When you sell stocks, real estate, or other assets for a profit, capital gains tax applies. This guide explains the difference between short-term and long-term rates, the 2026 thresholds, and strategies to legally minimize what you owe.

Key Takeaways

  • Short-term gains (held ≤1 year) are taxed as ordinary income at up to 37%
  • Long-term gains (held >1 year) are taxed at 0%, 15%, or 20% — significantly lower
  • Holding an asset just one extra day past 12 months can dramatically reduce your tax bill
  • High earners face an additional 3.8% Net Investment Income Tax (NIIT)
  • Tax-loss harvesting uses investment losses to offset gains and reduce tax owed
  • Primary residence sales exclude up to $250,000 ($500,000 married) of gain from tax

What Is Capital Gains Tax?

A capital gain is the profit you make when you sell an asset for more than you paid for it. Capital gains tax is what you owe the IRS on that profit.

The tax rate depends on two factors: how long you held the asset and your total taxable income.

Short-term capital gains — assets held for 1 year or less — are taxed as ordinary income at your regular marginal tax rate (10%–37%).

Long-term capital gains — assets held for more than 1 year — receive preferential tax rates of 0%, 15%, or 20%, depending on your income.

This distinction matters enormously. A $50,000 gain on a stock held for 11 months could cost you $11,000–$18,500 in tax (at 22%–37%). Wait one more month and the same gain might cost you $0–$10,000 (at 0%–20%).

2026 Long-Term Capital Gains Tax Rates

Long-term capital gains rates for 2026 are based on your total taxable income:

Single filers:

  • 0% rate: taxable income up to $48,350
  • 15% rate: taxable income $48,351–$533,400
  • 20% rate: taxable income over $533,400

Married filing jointly:

  • 0% rate: taxable income up to $96,700
  • 15% rate: taxable income $96,701–$600,050
  • 20% rate: taxable income over $600,050

Important: Your capital gain is "stacked on top of" your ordinary income when determining which rate applies.

The Net Investment Income Tax (NIIT)

High earners may also owe an additional 3.8% Net Investment Income Tax (NIIT) on top of their capital gains rate.

NIIT thresholds (2026):

  • Single: applies to income over $200,000
  • Married filing jointly: applies to income over $250,000

For a single filer earning $250,000 with a $100,000 long-term capital gain: they owe 20% + 3.8% = 23.8% on that gain.

Tax-Loss Harvesting: Using Losses to Offset Gains

Tax-loss harvesting is a strategy where you deliberately sell investments at a loss to offset capital gains and reduce your tax bill.

How it works:

  • You have a $30,000 long-term gain on Stock A
  • You have a $10,000 unrealized loss on Stock B
  • You sell Stock B to realize the $10,000 loss
  • Your net taxable gain is reduced to $20,000
  • At 15% long-term rate, you save $1,500 in tax

Rules to know:

  • Up to $3,000 of net capital losses can offset ordinary income per year
  • Unused losses carry forward to future years indefinitely
  • The wash-sale rule prevents you from buying back the same security within 30 days before or after the sale

Capital Gains on Real Estate

Real estate has a special exclusion that benefits many homeowners. If you sell your primary residence:

  • Single filers can exclude up to $250,000 of gain from tax
  • Married filing jointly can exclude up to $500,000 of gain

To qualify, you must have owned and lived in the home as your primary residence for at least 2 of the last 5 years before the sale.

Example: You bought a home for $300,000 and sell it for $650,000 — a $350,000 gain. As a married couple, you exclude $350,000 and owe zero capital gains tax. Investment properties (rentals) do not qualify for this exclusion.

Frequently Asked Questions

No. Investments inside a traditional 401(k) or IRA grow tax-deferred — you pay ordinary income tax when you withdraw, not capital gains tax. Roth accounts are even better: qualified withdrawals are completely tax-free, including all gains.
Capital gains are reported on Schedule D of Form 1040. Your brokerage will send you a Form 1099-B each year showing your transactions. Tax software (TurboTax, H&R Block) can import this form directly.
When you inherit an asset, your cost basis "steps up" to the fair market value at the date of the original owner's death. This means if someone bought stock for $10,000 and it was worth $200,000 when they died, you could sell it immediately for $200,000 and owe zero capital gains tax.
Yes. The IRS treats cryptocurrency as property, not currency. If you buy Bitcoin for $20,000 and sell it for $50,000, you have a $30,000 capital gain — taxed as short-term if held less than a year, or long-term if held more than a year. This also applies to crypto-to-crypto trades.

Related Calculators

Related Guides

Written by US Finance Lab Editorial Team. Published January 25, 2026.

Accuracy & Methodology

Our calculators use current US tax rates and standard financial formulas. Results are estimates intended for planning purposes and do not constitute financial advice. Learn about our methodology ›