Understand your taxes. No accountant required.

What is
Capital Gains Tax?

Investments & Property

Written by the TaxPlain Editorial Team · Reviewed for accuracy · Last updated August 2026

⚠️ Educational only. TaxPlain does not provide tax, legal, or financial advice. Always consult a qualified tax professional about your specific situation.

Capital gains tax is what you owe when you sell an asset — like stock, a home, or cryptocurrency — for more than you paid for it. The profit, or "gain," gets taxed differently depending on how long you owned the asset before selling.

The single biggest factor is your holding period. Sell within a year and the profit counts as a short-term capital gain, taxed at your regular income tax rate. Hold the asset for more than a year and it becomes a long-term capital gain, which gets preferential rates of 0%, 15%, or 20% depending on your income.

That one-day-over-a-year distinction can be worth thousands of dollars, which is why it's the first thing to check before you sell anything.

✓ Applies to

Anyone who sells stocks, mutual funds, ETFs, cryptocurrency, real estate, or other investment property at a profit.

↑ Also applies to

Homeowners selling a house, even if part of the gain ends up excluded — and higher earners who may owe an extra surtax on top.

📅 THE ONE-YEAR LINE

Hold an asset 365 days or less and any profit is a short-term gain taxed like ordinary income. Hold it 366 days or more and it qualifies for long-term rates. The clock starts the day after you acquire the asset.

2026 capital gains tax rates

Short-term gains are taxed at your ordinary federal income tax bracket, which can run as high as 37%. Long-term gains get one of three preferential rates based on your taxable income and filing status. Since brackets shift based on your AGI each year, always confirm the current thresholds before filing.

Selling your primary residence

Selling a home is where most people first run into capital gains questions. The good news: if the home was your primary residence for at least two of the five years before the sale, you can exclude a large chunk of the gain from tax entirely.

Capital gains rarely show up in isolation — they usually connect to a handful of other forms and figures on your return.

⚠️ MISSING THE NIIT SURTAX

If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), an extra 3.8% Net Investment Income Tax can apply on top of your regular capital gains rate. Many filers forget this until they see the bill.

⚠️ SELLING ONE DAY TOO EARLY

Selling an asset at 364 days instead of waiting for day 366 can push the entire gain from a 15% long-term rate into a 24%+ short-term ordinary rate. Always confirm your exact purchase date before selling.

Pull your purchase dates and cost basis for anything you're considering selling, and check whether you're inside or outside the one-year mark. If you're selling a home, confirm how long you lived there and whether the exclusion applies. Losses elsewhere in your portfolio can also offset gains — worth reviewing before year-end using our Schedule D breakdown.
What is the difference between short-term and long-term capital gains?
Short-term capital gains come from assets held one year or less and are taxed as ordinary income at your regular tax bracket. Long-term capital gains come from assets held more than one year and are taxed at lower rates of 0%, 15%, or 20%, depending on your taxable income.
What are the capital gains tax rates for 2026?
For 2026, long-term capital gains are taxed at 0%, 15%, or 20% depending on taxable income and filing status. Short-term capital gains are taxed at your ordinary income tax rate, which can run as high as 37%. Higher earners may also owe the 3.8% Net Investment Income Tax on top of these rates.
Do I pay capital gains tax when I sell my home?
Often not, or only partly. If you owned and lived in the home as your primary residence for at least two of the last five years, you can typically exclude up to $250,000 of gain (single) or $500,000 (married filing jointly). Gain above that exclusion, or gains on a second home or rental property, is generally taxable.
What is the Net Investment Income Tax (NIIT)?
The NIIT is an additional 3.8% tax on investment income, including capital gains, for taxpayers whose modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly). It applies on top of your regular capital gains tax rate.
Can capital losses offset capital gains?
Yes. Capital losses first offset capital gains of the same type, then the other type, and up to $3,000 of any remaining loss can offset ordinary income each year, with the rest carried forward to future tax years.

Decode any tax form instantly

Use our free AI-powered tool to look up any IRS notice or tax term in plain English.

Open the Decoder →