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
| Rate | Single | Married filing jointly | Head of household |
|---|---|---|---|
| 0% | Up to $49,450 | Up to $98,900 | Up to $66,200 |
| 15% | $49,450 โ $545,500 | $98,900 โ $613,700 | $66,200 โ $579,600 |
| 20% | Over $545,500 | Over $613,700 | Over $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.
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.