Skip to main content
capitalgaintaxcalc.com
Updated for 2025 & 2026 tax years · IRS Rev. Proc. 2025-32

US Capital Gains Tax Calculator 2026

Rates last verified: August 2026

Free capital gains tax calculator for all 50 US states. Stocks, crypto, real estate, and collectibles. LTCG/STCG rates, NIIT, depreciation recapture — all in one calculation. No sign-up required.

States
50
Tax years
2

Capital Gains Calculator

Federal · NIIT · All 50 states

2026 ratesIRS verified

Follow the three steps, save the sale, then calculate. Required fields are marked with *.

Your tax profile

These apply to every sale in this estimate.

What you sold

Prices and quantity for this lot. Give it a name if you will add more than one sale.

Asset type

When you bought and sold

The IRS uses these dates to decide short-term vs long-term rates.

Next: Save this sale to the order log, then click Calculate now. Tax results do not update until you calculate.

Order log

Sales included in this tax estimate.

Please fill in the details to see your results. Follow the three steps on the left, then save a sale here.

What’s included

Every US capital gains tax scenario, covered

One free capital gains tax calculatorfor stocks, crypto, real estate, and collectibles. Models long-term vs short-term holding periods, all 50 state rates, the 3.8% NIIT, Section 121, and depreciation recapture in a single estimate. New to this tax? Read what capital gains tax is.

Holding period

> 1 year

Long-term vs short-term capital gains

Uses exact buy and sell dates to classify STCG (ordinary rates up to 37%) vs LTCG (0%, 15%, or 20%). Flags sales within 30 days of the one-year mark so you can see the tax difference before you sell.

Open this calculator

State tax

50 states

Capital gains tax rates in all 50 states

Adds state tax on top of federal. Covers zero-tax states such as Texas and Florida, California’s top rate, Washington’s capital gains tax, North Dakota’s deduction, and Montana’s credit — each with a cited source.

Open this calculator

Securities

Form 8949

Stocks, ETFs, and collectibles

Models share sales with wash-sale notes for securities. Collectibles such as art and certain metals can face a 28% long-term federal ceiling instead of the usual 20% cap.

Open this calculator

Digital assets

IRS property

Crypto capital gains tax calculator

Treats Bitcoin, Ethereum, and other crypto as IRS property. Each sale, swap, or crypto-funded purchase can be a taxable event, with the same federal STCG/LTCG brackets as stocks.

Open this calculator

Home & rentals

$250K / $500K

Real estate capital gains and Section 121

Estimates the primary-residence exclusion under IRC Section 121 (up to $250,000 single / $500,000 joint). Investment sales include unrecaptured Section 1250 depreciation recapture at a maximum 25%.

Open this calculator

High earners

3.8% NIIT

Net Investment Income Tax (Form 8960)

Adds the 3.8% NIIT when MAGI exceeds $200,000 (single / HOH), $250,000 (married jointly), or $125,000 (married separately). Stacked on long-term gains, that can raise the top federal rate to 23.8%.

Open this calculator

How it works

The same rules the calculator uses, in plain language — then jump back up and estimate your sale.

How capital gains tax is calculated in the United States

A capital gain is the profit you realise when you sell a capital asset — such as stocks, ETFs, mutual funds, cryptocurrency, real estate, or collectibles — for more than your adjusted cost basis. The IRS taxes realised gains; unrealised paper gains in a brokerage account are generally not taxable until you sell. That timing flexibility is why planning around holding periods and income brackets can matter so much.

The basic federal formula is straightforward: capital gain equals sale proceeds minus adjusted cost basis minus selling expenses. Adjusted basis starts with what you paid and can increase for commissions, reinvested dividends, or capital improvements (for real estate), and can decrease for depreciation claimed on investment property.

Short-term vs long-term capital gains

The single most important federal factor is the holding period. Assets held 365 days or less generally produce short-term capital gains taxed as ordinary income at rates up to 37%. Assets held more than one year generally qualify for preferential long-term rates of 0%, 15%, or 20%, depending on your taxable income and filing status.

If you are within about 30 days of crossing the one-year mark, waiting can convert a short-term gain into a long-term gain and materially reduce federal tax. Our calculator flags that cliff and estimates the difference so you can see the trade-off before you sell.

Federal brackets, NIIT, and state tax layers

Long-term gains are stacked on top of your other taxable income. That “gain stacking” method means part of a large gain can fall into the 0% bracket, part into 15%, and part into 20%. Short-term gains simply increase ordinary taxable income and move through the progressive ordinary brackets.

High earners may also owe the 3.8% Net Investment Income Tax under IRC Section 1411 when MAGI exceeds the applicable threshold. NIIT stacks on top of the regular capital gains tax and can push the effective top federal long-term rate to 23.8%.

State tax is a separate layer. Some states impose no income tax on capital gains. Others use flat rates or tax gains as ordinary income under graduated brackets. A few — notably Washington, North Dakota, and Montana — apply special capital gains rules. Combined federal-plus-state effective rates can exceed 37% for top earners in high-tax states such as California.

Asset-class rules that change the math

Not every asset uses the same maximum rate. Collectibles can face a 28% long-term federal ceiling. Primary residence sales may qualify for the Section 121 exclusion of up to $250,000 ($500,000 MFJ). Investment real estate can trigger depreciation recapture taxed at up to 25%. Qualified Small Business Stock may qualify for a Section 1202 exclusion after a five-year hold — though state conformity varies.

Cryptocurrency is treated as property. Trades, swaps, and spending crypto can each be taxable events. Wash-sale disallowance currently applies more clearly to securities than to crypto, which is an important planning distinction for loss harvesting.

How to use this free calculator

Enter your asset type, buy and sell prices, quantity, dates, filing status, approximate taxable income before the gain, and state. The tool estimates federal tax, NIIT when applicable, state tax, total tax owed, effective rate, and after-tax proceeds — then suggests personalised optimisation ideas such as holding for long-term treatment or checking Section 121 eligibility.

Use the state hub to open a calculator pre-selected for your state, or jump to asset-specific pages for stocks, crypto, real estate, and collectibles. For the calculation methodology, data sources, and update process, see our methodology page. Estimates are informational only; confirm figures with IRS publications and a licensed tax professional before filing.

Step 1

Your tax profile

Year, filing status, state, and income before the gain.

Step 2

What you sold

Asset type, optional name, prices, and quantity.

Step 3

Buy and sell dates

We classify short-term vs long-term from those dates.

Open the calculator

IRC sections this calculator models

  • Section 121Primary residence exclusion

    May exclude up to $250,000 of gain ($500,000 if married filing jointly) on a qualifying primary home if ownership and use tests are generally met for two of the five years before the sale.

  • Section 1031Like-kind exchanges

    May defer gain on qualifying investment or business real property swapped for other qualifying US real property, subject to identification and 45/180-day timing rules and a Qualified Intermediary. This calculator estimates a taxable sale; it does not model a completed 1031 exchange.

  • Section 1411Net Investment Income Tax (NIIT)

    Adds 3.8% on net investment income, including capital gains, when MAGI exceeds $200,000 (single / head of household), $250,000 (married filing jointly), or $125,000 (married filing separately). Reported on Form 8960.

  • Section 1250Unrecaptured depreciation

    Depreciation claimed on real property may be taxed as unrecaptured Section 1250 gain at a maximum 25% federal rate when you sell investment or converted property.

  • Section 1202Qualified Small Business Stock (QSBS)

    May exclude a large share of gain on qualifying C-corporation stock held more than five years, subject to dollar and basis caps. State conformity varies — California generally does not follow the federal exclusion.

For 1031 timing rules see the1031 exchange guideand thereal estate calculator.

Long-term capital gains brackets (2025 vs 2026)

Thresholds are taxable-income ceilings for the 0% and 15% long-term rates. Amounts above the 15% ceiling are taxed at 20%. 2026 cutoffs follow IRS Revenue Procedure 2025-32 — the same tables the calculator engine uses.

Long-term capital gains 0% and 15% taxable-income ceilings for 2025 and 2026 by filing status
Filing status2025 0% up to2025 15% up to2026 0% up to2026 15% up to
Single$48,350$533,400$49,450$545,500
Married filing jointly$96,700$600,050$98,900$613,700
Married filing separately$48,350$300,000$49,450$306,850
Head of household$64,750$566,700$66,200$579,600

Short-term gains as ordinary income (2026, Single)

Assets held one year or less are stacked as ordinary income at 10% through 37%. Other filing statuses use the same engine tables with different cutoffs.

Ordinary income tax brackets for single filers in tax year 2026
RateTaxable income up to
10%$12,400
12%$50,400
22%$105,700
24%$201,775
32%$256,225
35%$640,600
37%No limit

Capital loss carryover

Capital losses offset capital gains dollar-for-dollar. If losses exceed gains, you may deduct up to $3,000 ($1,500 if married filing separately) against ordinary income in that year and carry remaining losses forward.

Annual ordinary-income deduction cap $3,000 or $1,500 if married filing separately.

IRS forms that report capital gains

  • Form 8949. Lists each sale or disposition of a capital asset (dates, proceeds, and basis adjustments) before totals move to Schedule D.
  • Schedule D. Summarizes net short-term and long-term gains or losses from Form 8949 and applies capital-loss carryovers.
  • Form 8960. Computes the 3.8% NIIT under IRC Section 1411 when MAGI exceeds the applicable threshold.
  • Form 1099-B. Broker proceeds and often cost basis for securities sales, which you reconcile on Form 8949.
  • Form 1099-DA. Digital asset proceeds reporting from brokers and exchanges; still reconcile each disposal as property for federal capital gains.

Explore calculators

Jump by state, asset, or filing status — or read how we model the numbers.

FAQ

Frequently asked questions

What is the long-term capital gains tax rate for 2025?

For tax year 2025, long-term capital gains are generally taxed at 0%, 15%, or 20% depending on your taxable income and filing status. Single filers stay in the 0% bracket with taxable income up to $48,350, pay 15% up to $533,400, and 20% above that. High earners may also owe the 3.8% Net Investment Income Tax (NIIT).

What changed for long-term capital gains brackets in 2026?

IRS Revenue Procedure 2025-32 inflation-adjusted the 2026 thresholds. For single filers, the 0% long-term bracket generally runs through $49,450 and the 15% bracket through $545,500, with 20% above that. Married filing jointly thresholds are roughly double the single amounts.

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

You generally need to hold the asset for more than one year. The holding period typically starts the day after you acquire the asset. Selling on or before the one-year anniversary is usually short-term; selling after that date can qualify for long-term rates.

What is the Net Investment Income Tax (NIIT)?

NIIT is an additional 3.8% federal tax on net investment income, including capital gains, when modified adjusted gross income exceeds $200,000 for single/head of household, $250,000 for married filing jointly, or $125,000 for married filing separately. It is calculated on Form 8960.

Does this calculator include state capital gains tax?

Yes. Select your state to estimate state tax on top of federal tax. Zero-tax states such as Texas and Florida show $0 state tax. Flat-rate and graduated states apply their modeled rates. Special-rule states (Washington, North Dakota, Montana) use their unique rules.

How is crypto capital gains tax calculated?

The IRS treats cryptocurrency as property. Each sale, swap, or purchase made with crypto can be a taxable event. Gains use the same federal short-term and long-term rate structure as stocks, but wash-sale rules currently do not apply to crypto the same way they apply to securities.

What is the Section 121 home sale exclusion?

If you owned and used a home as your primary residence for at least 2 of the last 5 years, you may exclude up to $250,000 of gain ($500,000 if married filing jointly) from federal tax, subject to IRS rules and exceptions. Gain above the exclusion is taxed at capital gains rates.

What is depreciation recapture on rental property?

When you sell investment real estate, depreciation previously claimed may be taxed as unrecaptured Section 1250 gain at a maximum 25% federal rate — often higher than the standard long-term capital gains rate on the remaining appreciation.

Are collectibles taxed differently?

Yes. Long-term gains on collectibles such as art, coins, stamps, antiques, and certain precious metals can be taxed at a maximum 28% federal rate, which is higher than the standard 20% long-term cap for most other assets. Short-term collectibles gains use ordinary income rates.

What is Qualified Small Business Stock (Section 1202)?

Section 1202 may allow exclusion of up to $10 million or 10× basis of gain on qualifying C-corporation stock held more than five years. Not all states conform — California, for example, generally does not recognize the federal QSBS exclusion for state tax.

Which IRS forms report capital gains?

Most investors report transactions on Form 8949, summarize totals on Schedule D, and report NIIT on Form 8960 when applicable. Business property and installment sales may use Forms 4797 or 6252.

Is this calculator tax advice?

No. Results are estimates for educational purposes only and do not constitute tax, legal, or financial advice. Always consult a licensed CPA or tax attorney for advice specific to your situation and verify rates with IRS and state sources.

How does the $3,000 capital loss carryover work?

Net capital losses offset capital gains first. If losses remain, you may deduct up to $3,000 against ordinary income in that tax year ($1,500 if married filing separately) and carry the rest forward to later years on Schedule D.

Does this calculator model a 1031 exchange versus an outright sale?

No. A Section 1031 like-kind exchange can defer tax on qualifying investment real estate when strict timing rules are met. This tool estimates tax on a taxable sale (including Section 121 when you mark a primary residence). For exchange mechanics see /blog/1031-exchange-rules/ and work with a Qualified Intermediary and CPA.

What is Form 1099-DA for crypto and digital assets?

Form 1099-DA reports digital asset proceeds from brokers and exchanges. Federal tax still treats crypto as property: each sale, swap, or crypto-funded purchase can be a taxable event you reconcile on Form 8949 and Schedule D, the same way a 1099-B supports securities sales.