โœ“ Reviewed & updated June 2026 โ€” official IRS figures

Capital Gains Tax on Stocks, Crypto & Home Sales (2026)

Sell an asset for more than you paid and the profit is a capital gain โ€” but how much tax you owe depends almost entirely on one thing: how long you held it. Here is how the 2026 rules treat stocks, crypto, and your home.

Capital gains tax has a reputation for complexity, but its core is simple: profit on an investment is taxed, and patient investors are taxed far less than impatient ones. Master the holding-period rule and the rest is detail. This guide covers stocks, crypto, and real estate under the 2026 rules.

Short-term vs. long-term: the rule that matters most

A capital gain is your sale price minus your cost basis (what you paid, plus commissions and improvements). The tax rate hinges on the holding period:

  • Short-term (held one year or less): taxed as ordinary income, at your marginal rate of up to 37%.
  • Long-term (held more than one year): taxed at preferential rates of 0%, 15%, or 20%.

On a $10,000 gain, a 24%-bracket investor pays $2,400 if short-term but only $1,500 if long-term โ€” a $900 reward for waiting past the one-year mark. That single decision is the highest-value move in investment tax planning.

The 2026 long-term capital gains brackets

RateSingleMarried filing jointlyHead of household
0%Up to $49,450Up to $98,900Up to $66,200
15%$49,450 โ€“ $545,500$98,900 โ€“ $613,700$66,200 โ€“ $579,600
20%Over $545,500Over $613,700Over $579,600

These brackets are keyed to your total taxable income, and gains stack on top of ordinary income. So a portion of a large gain can fall in the 0% band while the rest spills into 15%. The capital gains calculator handles this stacking automatically.

The 0% bracket is real and underused. A retiree or low-income year with little ordinary income can realize tens of thousands in long-term gains at zero federal tax โ€” a powerful reason to harvest gains in lean years.

Cryptocurrency

The IRS treats crypto as property, not currency. Every disposal is a taxable event: selling for dollars, trading one token for another, or using crypto to buy goods. Each triggers a gain or loss measured from your cost basis, with the same one-year holding rule. Buying and simply holding is not taxable; neither is moving coins between your own wallets. Because exchanges now issue 1099 forms, the IRS increasingly sees these transactions โ€” careful basis tracking is essential.

Selling your home

The home-sale exclusion is one of the most generous breaks in the code. If you owned and used the home as your main residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain ($500,000 married filing jointly). Gain above the exclusion is a long-term capital gain. Keep records of improvements โ€” a new roof or kitchen adds to your basis and shrinks the taxable gain. Note that the exclusion does not apply to investment or rental property, which has its own depreciation-recapture rules.

The 3.8% Net Investment Income Tax (NIIT)

High earners face an extra layer. If your modified AGI exceeds $200,000 (single) or $250,000 (joint), a 3.8% surtax applies to the lesser of your net investment income or the amount over the threshold. That pushes the effective top rate on long-term gains to 23.8%. It is built into the calculator's output.

Tax-loss harvesting

Capital losses offset capital gains dollar-for-dollar, and up to $3,000 of net loss can offset ordinary income each year, with the rest carried forward. Selling a losing position to offset a winner โ€” "harvesting" the loss โ€” is a legitimate way to reduce the bill. Beware the wash-sale rule: if you buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed.

Planning checklist

  • Hold more than a year whenever feasible to convert short-term into long-term rates.
  • Realize gains in low-income years to use the 0% bracket.
  • Track cost basis meticulously โ€” especially for crypto and reinvested dividends.
  • Harvest losses before year-end, minding the wash-sale window.
  • Keep home-improvement receipts to raise your basis.

Model any sale before you make it with the capital gains tax calculator, which shows the long-term vs. short-term difference, the bracket stacking, and any NIIT in one view.

Gifts, inheritance, and the step-up in basis

How you acquire an asset shapes its tax. Gifted assets carry over the giver's original cost basis, so the recipient inherits the built-in gain. Inherited assets, by contrast, generally receive a "step-up" to fair market value at the date of death โ€” meaning heirs who sell soon after often owe little or no capital gains tax, because their basis is reset to the current value. This step-up is one of the most powerful features in the code and a central reason some investors hold appreciated assets for life rather than selling. Charitable donations of appreciated stock are another lever: you avoid the gain entirely and may deduct the full market value.

Key takeaways

  • Hold more than a year to convert short-term into long-term rates.
  • Long-term gains are taxed at 0%, 15%, or 20% based on total income.
  • Up to $250k/$500k of home-sale gain can be excluded.
  • Harvest losses to offset gains, minding the 30-day wash-sale rule.
  • Inherited assets get a stepped-up basis; gifts keep the original basis.

Frequently Asked Questions

What are the 2026 long-term capital gains rates?

0%, 15%, or 20%, based on taxable income. For 2026 the 0% rate applies up to $49,450 (single) / $98,900 (joint); 15% up to $545,500 / $613,700; and 20% above those amounts. Short-term gains are taxed as ordinary income instead.

How long must I hold an asset for the lower rate?

More than one year. Hold for one year or less and the gain is short-term, taxed at your ordinary income rate. Hold more than a year and it qualifies for the preferential long-term rates โ€” often a difference of 10โ€“20 percentage points.

Is cryptocurrency taxed as capital gains?

Yes. The IRS treats crypto as property. Selling, trading one coin for another, or spending it are all taxable events, with the same short- vs long-term holding rules as stocks.

How much home-sale profit is tax-free?

Up to $250,000 of gain ($500,000 if married filing jointly) is excluded if you owned and lived in the home as your main residence for at least two of the last five years. Gain above the exclusion is a long-term capital gain.

What is the Net Investment Income Tax?

An additional 3.8% tax on investment income (including capital gains) for taxpayers with modified AGI above $200,000 single or $250,000 joint. It stacks on top of the capital gains rate.