Capital Gains Tax 2026: Short-Term vs Long-Term Rules, Examples, and How Rates Work

Capital gains tax applies when you sell an investment for more than you paid for it. In 2026, the big difference is still short‑term vs long‑term: hold for more than a year and you may qualify for lower long‑term rates.

This guide gives you the core rules, examples, and the fastest way to estimate your tax using our calculator.

Last updated: Feb 2026

Quick takeaway

Short-term vs long-term gains (the rule that matters most)

If you sell an asset you held for one year or less, the gain is short‑term and taxed as ordinary income. If you held it for more than one year, it’s long‑term and may qualify for lower rates.

How long-term capital gains rates work (in plain English)

Long‑term gains rates apply based on your taxable income. Think of it like stacking blocks: you fill your ordinary income first, then your long‑term gains sit on top. The rate you pay depends on where that stack lands.

Use the Capital Gains Tax Calculator

For a deep dive with bracket tables and examples, see: Capital Gains Tax Rates 2026.

Example: Long-term gain with moderate income

Suppose your ordinary taxable income places you below the threshold for the next long‑term rate band. A portion (or all) of your long‑term gains may be taxed at the lower rate band.

That’s why two investors with the same gain can owe different tax: their ordinary income “base” is different.

Example: Short-term gain (why it hurts)

A short‑term gain is treated like extra salary. If your top bracket is 24%, the short‑term gain can effectively be taxed at 24% (plus state tax, if applicable). This is why holding period planning matters.

What else affects capital gains tax

Common mistakes

FAQ

Do I pay capital gains tax if I don’t sell?

No. In most cases, capital gains tax applies when you sell and realize a gain.

What if I reinvest the money?

Reinvesting doesn’t avoid tax. The sale is still taxable in most cases.

Are long-term gains always low?

Not always. The rate depends on your income and filing status, and NIIT may apply at higher incomes.

Methodology: Our calculator applies 2026 ordinary brackets to short‑term gains and preferential long‑term rates using taxable-income stacking logic. See methodology.

Capital gains “stacking” explained with a mini table

Long-term capital gains rates are determined by where your taxable income lands.

Conceptually:

This is why the same $20,000 long-term gain can be taxed at different rates for different people.

Cost basis and lots (the quiet source of mistakes)

Your gain is sale price minus cost basis. If you bought shares multiple times at different prices, each batch (“lot”) has a different basis. Brokers often default to FIFO unless you pick specific lots.

If you’re selling a position with many lots, choosing specific lots can change your tax bill significantly.

Wash sale rule (losses you can’t claim yet)

If you sell an investment at a loss and buy the same (or substantially identical) investment within the wash sale window, the loss may be disallowed for now and added to your basis.

People often accidentally trigger wash sales through automatic reinvestment or buying in another account.

Tax-loss harvesting (smart, but not magic)

Losses can offset gains. If losses exceed gains, you may be able to deduct a limited amount against ordinary income and carry forward the rest.

Tax-loss harvesting can lower current-year tax, but you’re also changing your future basis and future gain profile. It’s best used as part of a multi-year plan.

Capital gains and NIIT (3.8% surtax)

At higher incomes, the Net Investment Income Tax (NIIT) can add 3.8% on certain investment income, including capital gains. If you’re near the threshold, timing gains across years can help.

Capital gains checklist

Use the calculator to estimate: Capital Gains Tax Calculator.

Qualified dividends vs ordinary dividends

Qualified dividends are generally taxed at the same preferential rates as long-term capital gains (if you meet holding period and other requirements). Ordinary dividends are taxed like regular income.

If your portfolio throws off dividends, it’s worth understanding which type you’re receiving — it can change your effective rate.

How to estimate tax before you sell

  1. Estimate your ordinary income for the year.
  2. Estimate your gain (sale price − basis).
  3. Choose holding period (short vs long).
  4. Run the calculator and sanity-check the result.

Estimate Capital Gains Tax