Updated for IRS 2026 Rates

Capital Gains Tax Calculator 2026

A
Written by the USAFinCalc Team
Editorial Policy · Methodology

Calculate your federal capital gains tax on stocks, real estate, crypto, and other investments. Includes short-term vs long-term rates, NIIT, and state tax estimate.

Quick answer: Selling $50,000 in stock (held 2 years) with $20,000 gain as a single filer earning $80,000 total? Your long-term capital gains tax is $3,000 (15%) — vs $4,400 (22%) if held under 1 year.
Investment Details
$
$
$
%
📊
Enter your sale details to see capital gains tax breakdown.

2026 Long-Term Capital Gains Tax Rates

RateSingleMarried JointHead of Household
0%$0 – $48,350$0 – $96,700$0 – $64,750
15%$48,351 – $533,400$96,701 – $600,050$64,751 – $566,700
20%Over $533,400Over $600,050Over $566,700
Short-term gains are taxed as ordinary income (10%–37%). Net Investment Income Tax (NIIT) of 3.8% applies to those with MAGI over $200,000 (single) or $250,000 (married). Source: IRS Publication 550.

State Capital Gains Tax Rates (Selected)

StateCap Gains RateNote
CaliforniaUp to 13.3%Taxed as ordinary income
New YorkUp to 10.9%Plus NYC tax if applicable
Texas, Florida, Nevada0%No state income tax
Washington7%Long-term gains over $262,000
Massachusetts5%Flat rate

Frequently Asked Questions

What is the difference between short-term and long-term capital gains?
If you sell an asset held for 1 year or less, gains are taxed as ordinary income (up to 37%). Assets held more than 1 year qualify for preferential long-term rates of 0%, 15%, or 20% — potentially saving you thousands. Holding for more than a year before selling is one of the most effective ways to reduce your tax bill on investment gains.
What is the Net Investment Income Tax (NIIT)?
The NIIT is an additional 3.8% tax on investment income (including capital gains) for higher earners. It applies when your MAGI exceeds $200,000 (single) or $250,000 (married). So high earners can pay up to 23.8% on long-term gains (20% + 3.8% NIIT).
Is cryptocurrency taxed as capital gains?
Yes — the IRS treats cryptocurrency as property. Every taxable event (sale, exchange, use to purchase goods) triggers capital gains or losses. If held over 1 year, long-term rates apply. Crypto-to-crypto swaps are also taxable events in the US.
What is the home sale exclusion?
If you sell your primary residence after living there for at least 2 of the last 5 years, you can exclude $250,000 of gain (single) or $500,000 (married filing jointly) from capital gains tax. This is one of the most generous tax benefits in the tax code.

What This Capital Gains Tax Calculator Does

This calculator estimates federal and state tax owed when you sell a capital asset — stocks, real estate, mutual funds, cryptocurrency, or other investments. Enter your purchase price (cost basis), sale price, how long you held the asset, and your income, and it computes your short-term or long-term capital gain, the applicable tax rate, and your net after-tax proceeds.

Short-Term vs. Long-Term Capital Gains

The holding period is the most important tax variable for investment sales. Assets held one year or less at sale are short-term gains, taxed at ordinary income rates (10%–37%). Assets held more than one year are long-term gains, taxed at 0%, 15%, or 20% — a permanent tax preference built into the code to incentivize long-term investment.

2024 Long-Term Capital Gains Rates (Single)Income Range
0%Up to $47,025
15%$47,026 – $518,900
20%Above $518,900

Additionally, the Net Investment Income Tax (NIIT) adds 3.8% on net investment income for single filers with MAGI above $200,000 or married filers above $250,000, making the effective top federal rate on long-term gains 23.8%.

Cost Basis and Why It Matters

Cost basis is what you paid for the asset, adjusted for splits, dividends reinvested, and improvements (for real estate). Your taxable gain is sale price minus cost basis, not sale price alone. Keeping accurate records of purchase prices, dates, and adjustments is essential — especially for assets held across multiple purchases at different prices (share lots).

For stocks bought in multiple lots, you can specify which shares you're selling using "specific identification" — often choosing to sell higher-basis shares first to minimize taxable gains, or selling shares held longest to qualify for long-term treatment.

Real Estate Capital Gains

Primary residence sales qualify for a significant exclusion: up to $250,000 in gain (single) or $500,000 (married filing jointly) is excluded from capital gains tax, provided you've owned and used the home as your primary residence for at least 2 of the last 5 years. The gain above the exclusion is taxed at long-term rates.

Example: Buy for $300,000, sell for $650,000 as a married couple — $350,000 gain minus $500,000 exclusion = $0 taxable gain. Same couple with a $900,000 sale — $600,000 gain minus $500,000 exclusion = $100,000 taxable long-term gain.

Strategies to Reduce Capital Gains Tax

Tax-Loss Harvesting

Selling investments at a loss to offset capital gains. Up to $3,000 in net capital losses per year can offset ordinary income; amounts above $3,000 carry forward to future tax years. Used systematically, tax-loss harvesting can defer significant tax liability.

Holding Longer Than One Year

The simplest strategy: delay a sale that would produce a short-term gain by a few weeks or months to cross the one-year threshold and qualify for the lower long-term rate. On a $10,000 gain for a 24% bracket taxpayer, this changes the rate from 24% to 15% — saving $900.

Qualified Opportunity Zone Investments

Investing capital gains in Qualified Opportunity Zone funds can defer and potentially reduce the original gain while providing tax-free growth on the new investment after 10 years.

Common Mistakes

Forgetting wash-sale rules

If you sell a security at a loss and buy the same or substantially identical security within 30 days before or after the sale, the loss is disallowed for tax purposes. The loss is added to the basis of the replacement shares, deferring (not eliminating) the tax benefit.

Not tracking inherited asset basis

Inherited assets receive a "step-up in basis" to fair market value at the date of death. Selling an inherited stock at current market price immediately after inheriting it typically generates zero capital gain — not the gain from the original purchase price. Many heirs don't know this rule and overpay.

Tips and Best Practices

Related Calculators

Frequently Asked Questions

Do I owe capital gains tax if I reinvest the proceeds?

Yes. The taxable event is the sale, not what you do with the proceeds. Reinvesting immediately into a similar investment doesn't defer the gain. Only specific tax-advantaged structures (like 1031 exchanges for real estate or Opportunity Zone funds) allow deferral through reinvestment.

What's the capital gains rate on cryptocurrency?

The IRS treats cryptocurrency as property, not currency. The same short-term/long-term capital gains rules apply. Each sale, trade, or exchange of crypto is a taxable event — including trading one cryptocurrency for another.

How does capital gain affect my tax bracket for ordinary income?

Long-term capital gains don't push ordinary income into higher brackets, but they do "stack" on top of ordinary income for purposes of determining which capital gains rate applies. If your ordinary income is $30,000 and you have $25,000 in long-term gains, the $25,000 gain is taxed starting from where your ordinary income left off on the rate schedule.

Do I owe capital gains tax on collectibles?

Yes, but at a maximum 28% rate (not 20%) for long-term gains on collectibles — art, antiques, coins, wine, and similar assets. Short-term gains on collectibles are taxed at ordinary income rates.

Key Takeaways

Capital gains taxation rewards patience — simply holding an investment beyond one year can cut the tax rate in half. The cost basis is as important as the sale price in determining your actual gain, making accurate record-keeping a necessary part of investment management. And for real estate, the primary residence exclusion is one of the largest tax benefits available to individuals — potentially shielding hundreds of thousands in appreciation from any tax at all.