Capital Gains Tax Guide 2026: Rates, Rules, and Strategies

Every time you sell an investment for a profit — a stock, ETF, real estate, cryptocurrency, or even a piece of art — you have a capital gain. The IRS taxes that gain, but the rate depends heavily on two factors: how long you held the asset and your total income. Understanding the difference between short-term and long-term rates, plus a few strategic moves, can save investors thousands of dollars every year. This guide covers everything you need to know about capital gains taxation in 2026.

What Is a Capital Gain?

A capital gain is the profit you make when you sell an asset for more than you paid for it. The amount you originally paid — including commissions and other acquisition costs — is called your cost basis. The gain is calculated as: Sale Price − Cost Basis = Capital Gain.

If you sell an asset for less than your cost basis, you have a capital loss, which can offset gains and provide other tax benefits (discussed below).

Capital gains are realized when you actually sell. If your stock portfolio has grown in value but you have not sold, you have unrealized gains — no taxes owed yet. The tax clock starts ticking only when you sell. Use our capital gains tax calculator to estimate your specific tax bill.

Short-Term vs Long-Term Capital Gains

The most important factor in capital gains taxation is the holding period — how long you owned the asset before selling.

Short-term capital gains: Assets held one year or less. Taxed at ordinary income tax rates — the same brackets as your wages (10% to 37%). If you are in the 22% bracket and sell a stock after 9 months with a $5,000 gain, you owe $1,100 in federal tax.

Long-term capital gains: Assets held more than one year. Taxed at preferential rates of 0%, 15%, or 20%. If you held that same stock for 13 months instead of 9, your tax on the same $5,000 gain might be $750 (at 15%) — a savings of $350 for holding 4 extra months.

The one-year threshold is calculated precisely. An asset purchased on March 15, 2025 becomes long-term on March 16, 2026. Selling on March 15, 2026 (exactly one year) is still short-term. This matters — a single day can change your tax rate by 7–17 percentage points.

2026 Long-Term Capital Gains Tax Rates

Long-term capital gains rates are based on your total taxable income — including the capital gains themselves. Think of your ordinary income as the foundation and your capital gains as sitting on top.

0% Rate (2026):

15% Rate:

20% Rate: Above those thresholds.

The Net Investment Income Tax (NIIT): An Additional 3.8%

High-income taxpayers face an additional 3.8% Net Investment Income Tax on capital gains, dividends, and other investment income. The NIIT applies to the lesser of your net investment income OR the amount by which your modified AGI exceeds:

Combined with the 20% long-term rate, this means the maximum federal capital gains tax rate is 23.8%. For short-term gains, the maximum is 37% (ordinary income) + 3.8% NIIT = 40.8%.

The 0% Rate: Possibly Your Most Powerful Tool

The 0% long-term capital gains rate is an extraordinary opportunity that many investors overlook. If your total taxable income (including the gains) stays below $47,025 (single) or $94,050 (MFJ), you pay zero federal tax on long-term capital gains.

Who can use this:

Example: A married couple with $70,000 in ordinary income and $20,000 in standard deductions has $50,000 taxable income. Their capital gains threshold before hitting 15% is $94,050 − $50,000 = $44,050 in gains. They can sell up to $44,050 in appreciated investments and pay zero federal capital gains tax — completely legally.

Real Estate Capital Gains

Primary Home Sale Exclusion

If you sell your primary residence, you can exclude up to $250,000 in gains from taxes ($500,000 for married filing jointly). To qualify:

Any gain above the exclusion amount is taxed at long-term capital gains rates (if held over a year). A couple with a $600,000 gain on their home would exclude $500,000 and pay capital gains tax on $100,000.

Depreciation Recapture on Investment Properties

When you sell a rental or investment property, you face two layers of tax. The first is standard long-term capital gains tax on the appreciation. The second is depreciation recapture — you must "repay" the tax benefit of depreciation deductions taken over the years, and this portion is taxed at up to 25% (not the standard 0/15/20% rates). This often catches real estate investors by surprise when they sell.

Tax-Loss Harvesting

Tax-loss harvesting is one of the most powerful legal tax reduction strategies available to investors. The idea: sell investments that are currently at a loss to generate tax losses that offset gains.

The netting rules:

  1. Short-term losses first offset short-term gains
  2. Long-term losses first offset long-term gains
  3. Excess losses from either category then offset gains of the other type
  4. Net losses after offsetting all gains can reduce ordinary income by up to $3,000 per year
  5. Remaining unused losses carry forward indefinitely to future tax years

Example: You have $15,000 in long-term gains and $8,000 in long-term losses. Net long-term gain: $7,000. You also have $5,000 in short-term losses. These offset the remaining $7,000 long-term gain, leaving $2,000 net long-term gain taxable. The excess $0 carries forward.

The Wash-Sale Rule

The IRS prevents you from selling a security at a loss and immediately repurchasing it just to generate a tax loss. The wash-sale rule disallows the loss if you buy the same or substantially identical security within 30 days before or after the sale. "Substantially identical" generally means the exact same stock or fund — selling an S&P 500 index fund from one provider and buying a different S&P 500 index fund from another provider may trigger wash-sale treatment.

Strategy: Sell a fund at a loss, immediately buy a similar (but not identical) fund to maintain market exposure while waiting out the 30-day window. Example: sell Vanguard Total Stock Market (VTI) and buy Schwab US Broad Market ETF (SCHB) — different funds tracking similar but not identical indexes.

Cryptocurrency Capital Gains

The IRS treats cryptocurrency as property. Every taxable event — selling crypto for dollars, exchanging one cryptocurrency for another, or using crypto to pay for goods or services — triggers a capital gain or loss calculated from your cost basis in that crypto.

Key rules for crypto:

Record-keeping is critical for crypto. Most exchanges provide year-end tax reports, and tools like Koinly, CoinTracker, or TaxBit can aggregate transactions across multiple wallets and exchanges.

Strategies to Reduce Capital Gains Tax

Frequently Asked Questions

What is the long-term capital gains tax rate in 2026?

0%, 15%, or 20% depending on your total taxable income. Single filers pay 0% up to $47,025, 15% up to $518,900, and 20% above. Married filing jointly: 0% up to $94,050, 15% up to $583,750, 20% above. High earners also owe the 3.8% NIIT, pushing the maximum to 23.8%.

How long do I need to hold an investment to qualify for long-term rates?

More than one year — at least one year and one day from the purchase date. Exactly one year is still short-term. The holding period starts the day after you buy and ends on the day you sell.

What is tax-loss harvesting?

Selling investments at a loss to offset capital gains. Losses offset gains of the same type first, then the other type. Up to $3,000 of net losses can offset ordinary income annually, with unused losses carrying forward. Watch the wash-sale rule: do not repurchase the same or substantially identical security within 30 days before or after the sale.

Sources & further reading

Claims in this article are cross-checked against the following primary sources. Links open on the publisher's site.

  1. IRS — About Form W-2

    Official IRS reference for W-2 wage and tax statements, with current-year instructions.

  2. IRS — Publication 17 (Your Federal Income Tax)

    Comprehensive guide to filing individual federal income taxes.

  3. IRS — Tax Withholding Estimator

    Official tool for verifying paycheck withholding accuracy.

  4. IRS — Tax Topic 409 (Capital Gains and Losses)

    Authoritative source for short-term and long-term capital gains tax treatment.

  5. CFPB — Filing Your Taxes

    Consumer Financial Protection Bureau guidance on tax-filing essentials.