blog

Capital Gains Tax Explained: Rates, Rules, and How to Minimize What You Owe

Understand how capital gains tax works in 2026 — short-term vs long-term rates, the 0% bracket, exemptions for home sales, and strategies to legally reduce your tax bill.

· Updated

You sold some stock, flipped a property, or cashed out cryptocurrency — and now you’re wondering how much the IRS gets. Capital gains tax is one of the most misunderstood parts of the tax code, and that misunderstanding costs people real money every year. Some pay more than they need to. Others get blindsided by a bill they didn’t expect.

Here’s how capital gains tax actually works, what the 2026 rates are, and how to legally keep more of your profits.

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 asset can be almost anything: stocks, bonds, mutual funds, ETFs, real estate, cryptocurrency, collectibles, or even a business.

The formula is simple:

Capital Gain = Sale Price − Cost Basis

Your cost basis is what you originally paid, plus any transaction costs (brokerage fees, closing costs on real estate, etc.). If you bought 100 shares of a stock at $50 and sold them at $80, your capital gain is $3,000.

If you sell for less than your basis, that’s a capital loss — and those are valuable too, as you’ll see below.

Short-Term vs Long-Term: The Holding Period Matters

The IRS taxes capital gains differently based on how long you held the asset:

  • Short-term capital gains: Assets held for one year or less. Taxed at your ordinary income tax rate — the same rate you pay on your salary. That can be as high as 37%.
  • Long-term capital gains: Assets held for more than one year. Taxed at preferential rates: 0%, 15%, or 20%.

This single distinction — holding for 366 days instead of 365 — can cut your tax rate in half. It’s one of the most powerful tax planning tools available to individual investors.

2026 Long-Term Capital Gains Tax Rates

The federal long-term capital gains brackets for the 2026 tax year are:

Tax RateSingle FilerMarried Filing JointlyHead of Household
0%Up to $49,450Up to $98,900Up to $66,200
15%$49,451 – $545,500$98,901 – $613,700$66,201 – $579,600
20%Over $545,500Over $613,700Over $579,600

Yes, the 0% rate is real. If your total taxable income (including the gain) falls within the 0% bracket, you pay zero federal tax on that long-term gain. For a married couple with $90,000 in taxable income, long-term capital gains are completely tax-free at the federal level.

Use the capital gains calculator to see exactly where you fall based on your income and filing status.

The Net Investment Income Tax (NIIT)

High earners face an additional 3.8% surtax on investment income — including capital gains. It kicks in when your modified adjusted gross income exceeds:

  • $200,000 for single filers
  • $250,000 for married filing jointly

So if you’re a married couple earning $300,000 and you sell stock for a $50,000 long-term gain, you’d pay 15% capital gains tax plus 3.8% NIIT on part of that gain — an effective rate of 18.8%.

Check your total tax picture with the tax bracket calculator to understand how investment income stacks on top of your regular earnings.

How Home Sales Are Taxed

Real estate gets special treatment. When you sell your primary residence, you can exclude up to:

  • $250,000 in gains (single filers)
  • $500,000 in gains (married filing jointly)

To qualify, you must have owned and lived in the home for at least 2 of the 5 years before the sale. This is the Section 121 exclusion, and it’s one of the most generous tax breaks in the code.

Example: You bought a house for $350,000 and sold it for $700,000. Your gain is $350,000. If you’re married and meet the residency test, the entire gain is tax-free.

If your gain exceeds the exclusion limit, only the excess is taxed. And if your home was also used as a rental property, the rules get more complex — depreciation recapture applies at a 25% rate on the portion you previously deducted.

Crypto and NFT Capital Gains

The IRS treats cryptocurrency as property, not currency. Every sale, swap, or trade is a taxable event. That includes:

  • Selling Bitcoin for dollars
  • Trading Ethereum for another token
  • Using crypto to buy goods or services
  • Receiving airdrop tokens (taxed as income at receipt, then capital gains on later sale)

The same short-term vs long-term rules apply. If you bought Bitcoin in January 2025 and sold it in March 2026, that’s a long-term gain taxed at the preferential rates. If you traded it within the year, it’s ordinary income.

NFTs classified as collectibles may face a higher maximum rate of 28% on long-term gains — the same rate that applies to art, antiques, and precious metals.

Capital Losses: Your Tax Offset

Capital losses aren’t just bad news — they’re a tax tool. You can use losses to offset gains dollar for dollar:

  • $10,000 in gains and $7,000 in losses = $3,000 net taxable gain
  • If your losses exceed your gains, you can deduct up to $3,000 per year ($1,500 if married filing separately) against ordinary income
  • Unused losses carry forward indefinitely to future tax years

This is why tax-loss harvesting — intentionally selling losing positions to realize losses — is a standard year-end strategy. Just watch the wash sale rule: if you repurchase the same or a “substantially identical” security within 30 days before or after the sale, the loss is disallowed.

Seven Strategies to Minimize Capital Gains Tax

1. Hold for More Than One Year

The simplest strategy. Moving from short-term to long-term holding can drop your rate from up to 37% to 0–20%. Before selling, check your purchase date.

2. Harvest Losses to Offset Gains

Review your portfolio before year-end. If you have unrealized losses, consider selling those positions to offset realized gains. Reinvest the proceeds in a similar (but not identical) asset to maintain your market exposure.

3. Use the 0% Bracket Strategically

If you have a low-income year — between jobs, early retirement, sabbatical — you can sell appreciated assets and pay zero federal tax on long-term gains within the 0% bracket. This is especially powerful in the years between retirement and when Social Security and required minimum distributions begin.

4. Donate Appreciated Assets

Donating stock or other appreciated assets directly to a qualified charity lets you deduct the full market value and avoid paying capital gains tax on the appreciation entirely. This is far better than selling the asset, paying tax, and donating the cash.

5. Use Tax-Advantaged Accounts

Assets held inside a 401(k), IRA, or HSA grow tax-deferred (or tax-free in a Roth). You can buy and sell within these accounts without triggering capital gains. Max out your 401(k) contributions and HSA before investing in taxable accounts.

6. Gift to Family in Lower Brackets

You can gift appreciated assets to family members who are in a lower tax bracket. They inherit your cost basis but may pay a lower (or zero) rate when they sell. The 2026 annual gift exclusion is $19,000 per recipient — no gift tax return required.

7. Hold Until Death (Step-Up in Basis)

This sounds morbid, but it’s the biggest capital gains loophole in the tax code. When you die, your heirs receive a “stepped-up” basis equal to the asset’s fair market value at your date of death. All the unrealized gains accumulated during your lifetime are permanently erased for tax purposes.

A stock you bought for $10,000 that’s worth $500,000 at death? Your heirs inherit it with a $500,000 basis. If they sell immediately, they owe zero capital gains tax.

State Capital Gains Taxes

Federal rates are only part of the picture. Most states tax capital gains as ordinary income. Some notable exceptions:

  • No state income tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, Wyoming
  • High state rates: California (up to 13.3%), New Jersey (up to 10.75%), Oregon (up to 9.9%)

Washington state imposes a 7% tax on long-term capital gains exceeding $270,000, despite having no general income tax.

Your total capital gains tax rate is federal + state + potentially the 3.8% NIIT. In California, a high earner could face a combined rate of 37.1% on long-term gains (20% + 3.8% + 13.3%).

Common Mistakes to Avoid

Forgetting about cost basis adjustments: Reinvested dividends, stock splits, and return-of-capital distributions all affect your basis. Use your brokerage’s cost basis reports — don’t just compare sale price to original purchase price.

Ignoring the wash sale rule: Selling a stock at a loss and buying it back within 30 days nullifies the loss for tax purposes. The rule also applies across accounts — selling in your taxable account and buying in your IRA can trigger it.

Not tracking crypto transactions: Every swap is taxable. Use crypto tax software to track your basis across dozens or hundreds of transactions. The IRS receives 1099 forms from major exchanges and actively audits crypto traders.

Selling in December when January would be cheaper: If a sale in late December would create a short-term gain, waiting a few weeks until you cross the one-year threshold could cut your rate significantly.

Calculate Your Capital Gains Tax

The math depends on your filing status, total income, how long you held the asset, and your state. Run your specific numbers through the capital gains calculator to see your federal and state tax liability before you sell.

For broader tax planning, combine this with the tax bracket calculator to understand how investment income interacts with your salary, and use the ROI calculator to measure your after-tax returns on any investment.

Selling an asset should be an investment decision first and a tax decision second — but understanding the tax impact before you sell can save you thousands of dollars you’d otherwise hand to the IRS.