How to Calculate Capital Gains Tax in 2026

6 min read1,212 words2026-04-01
WiseCalc calculator

Estimate your capital gains tax in under 1 minute

Estimate your capital gains tax in under 1 minute

Open Capital Gains Calculator

You sold an investment - stocks, ETFs, crypto, maybe a rental property. Now you need to know: how much of that profit does the IRS want?

The answer depends almost entirely on one thing: how long you held the asset before selling. That single detail - your holding period - determines whether you pay ordinary income tax rates or the lower long-term capital gains rates. The difference can be thousands of dollars.

📊 Estimate your capital gains tax in under 1 minute →

Short-Term vs. Long-Term: The Only Distinction That Matters

The IRS splits capital gains into two buckets:

  • Short-term capital gains: You held the asset for one year or less before selling. These gains are taxed at your ordinary income tax rate - the same brackets that apply to your salary or freelance income. For high earners, that can mean a federal rate as high as 37%.

  • Long-term capital gains: You held the asset for more than one year before selling. These gains get preferential tax treatment. In 2026, federal long-term capital gains rates are 0%, 15%, or 20%, depending on your taxable income.

That's it. Same profit, same stock, same crypto - but selling one day too early could nearly double your tax bill.

2026 Federal Long-Term Capital Gains Rates

Filing Status0% Rate15% Rate20% Rate
SingleUp to ~$48,350$48,351-$533,400Over $533,400
Married Filing JointlyUp to ~$96,700$96,701-$600,050Over $600,050

These thresholds are inflation-adjusted annually. The brackets above reflect 2026 projected amounts. Your actual bracket depends on total taxable income, not just your gains.

If you're self-employed or have other income streams, your total taxable income pushes your gains into higher or lower brackets. Use the Income Tax Calculator to see where you land overall.

How to Calculate Capital Gains Tax: Step by Step

Here's the formula:

  1. Find your cost basis - what you originally paid for the asset, including purchase commissions or fees.
  2. Determine your sale price - the amount you received, minus any selling fees.
  3. Calculate the gain - sale price minus cost basis.
  4. Identify your holding period - short-term (≤1 year) or long-term (>1 year).
  5. Apply the correct tax rate - ordinary income rates for short-term, preferential rates for long-term.

Worked Example

Let's say you bought 100 shares of a stock in January 2025 for $10,000 total. You sold them in March 2026 for $14,500.

  • Cost basis: $10,000
  • Sale price: $14,500
  • Capital gain: $4,500
  • Holding period: ~14 months → long-term
  • Your taxable income (single): $85,000

At the 15% long-term rate, your estimated federal capital gains tax is $675.

If you'd sold in December 2025 instead - just two months earlier - that same $4,500 gain would be short-term. At a 22% marginal ordinary income rate, you'd owe roughly $990. That's $315 more in federal tax, just for selling too soon.

📈 See how your pre-tax investment return compares to your after-tax outcome → Investment Return Calculator

What Counts as a Capital Asset?

Capital gains tax applies when you sell almost any investment or property for a profit:

  • Stocks, ETFs, and mutual funds - the most common trigger
  • Cryptocurrency - Bitcoin, Ethereum, and all other digital assets are taxed as property
  • Real estate - investment properties and second homes (your primary residence gets a partial exclusion)
  • Collectibles - art, jewelry, precious metals (taxed at a higher 28% rate for long-term gains)
  • Bonds and other securities

If you're unsure whether your situation triggers capital gains, the rule is simple: did you sell something for more than you paid? Then you likely have a taxable gain.

WiseCalc calculator

Compare your pre-tax return with your after-tax outcome

Compare your pre-tax return with your after-tax outcome

Open Investment Return Calculator

Capital Losses: Your Built-In Offset

Not every investment goes up. When you sell at a loss, that loss can offset your gains dollar-for-dollar.

  • Short-term losses offset short-term gains first, then long-term gains.
  • Long-term losses offset long-term gains first, then short-term gains.
  • If your total losses exceed your total gains, you can deduct up to $3,000 of net capital losses against ordinary income per year.
  • Remaining losses carry forward to future tax years - indefinitely.

This is why tax-loss harvesting matters. If you have winners and losers in the same year, selling both strategically can reduce your overall tax bill. Just watch out for the wash-sale rule - you can't claim a loss if you buy the same or substantially identical security within 30 days.

Don't Forget: State Taxes May Apply

The rates above are federal only. Most states also tax capital gains as ordinary income. A few states - like Florida, Texas, and Nevada - have no state income tax at all. Others, like California, can add over 13% on top of federal rates.

Your total capital gains tax bill is federal + state. The WiseCalc Capital Gains Tax Calculator focuses on federal estimation, which is typically the larger share.

Quarterly Estimated Payments

If your capital gains are substantial, don't wait until April to deal with the tax bill. The IRS expects you to pay as you earn through quarterly estimated tax payments. Missing these deadlines can trigger underpayment penalties.

Use the Tax Withholding Calculator to check whether your current withholding covers expected gains - especially if you have a W-2 job and investment income on the side. For more on how paycheck deductions work alongside investment taxes, see our breakdown.

FAQ

How do I calculate capital gains tax on stocks?

Subtract your cost basis (purchase price + fees) from your sale price. That's your gain. Apply short-term rates if you held for one year or less, or long-term rates if you held for more than one year. Use the Capital Gains Tax Calculator to run your specific numbers.

What is the difference between short-term and long-term capital gains tax?

Short-term gains (assets held ≤1 year) are taxed at your ordinary income rate - up to 37% federally in 2026. Long-term gains (assets held >1 year) are taxed at preferential rates of 0%, 15%, or 20%, depending on your income.

Do I pay capital gains tax only when I sell?

Yes. Unrealized gains - the increase in value of an asset you still own - are not taxed. You only owe capital gains tax when you sell, exchange, or otherwise dispose of the asset. For crypto, swapping one coin for another counts as a taxable event.

How much capital gains tax will I owe in 2026?

It depends on your gain amount, holding period, filing status, and total taxable income. Long-term gains are taxed at 0%, 15%, or 20% federally. Short-term gains are taxed at ordinary income rates (10%-37%). Run your numbers through the Capital Gains Tax Calculator for a personalized estimate.

Can capital losses reduce my capital gains tax bill?

Yes. Capital losses offset capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 of net losses against ordinary income per year. Unused losses carry forward indefinitely.


Ready to estimate your capital gains tax? Enter your purchase price, sale price, and holding period - the WiseCalc Capital Gains Tax Calculator gives you a federal estimate in seconds. Know what you owe before you sell or file.

Explore more tax calculators on WiseCalc →

WiseCalc calculator

Run your exact numbers before you sell or file

Run your exact numbers before you sell or file

Open Capital Gains Calculator