2026 Capital Gains Tax Calculator

Estimate taxes on a sale of stocks, crypto, real estate, collectibles, or other investment assets.

Your entries are calculated in your browser and are not saved.

Sale details

Use the asset type that best matches the sale. Real estate and primary residence calculations are simplified planning estimates.

Use what you paid, plus basis adjustments you know. This may come from brokerage, exchange, or closing records.

Use the gross sale amount before subtracting selling expenses.

Include commissions, transaction fees, broker fees, real estate agent commissions, transfer fees, and other selling costs if known.

Assets held more than one year are generally treated as long-term. Assets held one year or less are generally short-term.

Leave this on “Use dates” for the normal estimate. Choose long-term or short-term to test a what-if scenario or override the date-based result.

Enter capital losses you expect to use against this gain. If you are not sure, leave this blank.

This calculator can estimate a basic real estate sale using sale price, basis, selling expenses, holding period, and optional depreciation recapture. It does not handle installment sales, 1031 exchanges, full depreciation schedules, passive activity rules, or Form 4797-level treatment.
This calculator handles a simplified single crypto sale. It does not import exchange records, reconcile wallets, calculate FIFO/LIFO/specific-identification lots, handle staking rewards, mining income, airdrops, DeFi transactions, NFTs, stablecoin transactions, wallet transfers, crypto-to-crypto swaps, or full Form 8949 reporting.

Tax profile

Enter your estimated taxable income for the year before adding this capital gain. This is not just income earned before the sale date.

Used for NIIT. If blank, the calculator estimates MAGI from taxable income before this gain plus this sale’s taxable gain and labels the NIIT result as simplified.

State and local tax

Many states tax capital gains as regular income, while some states have no broad individual income tax or special rules.

Most users can leave this section closed. Use these fields only if you have more detailed tax information.

Use this if basis differs because of improvements, return of capital, depreciation, inheritance, gifts, stock splits, or reinvestments.

Most stock, crypto, and personal-use home sales can leave this at zero. Use it only if you sold rental real estate or business property and know the recapture amount from your records or tax preparer.

Optional. Use this only if you know the state or local rate that should apply to this gain. In many states, capital gains are taxed as ordinary income, so this may be your marginal state/local income tax rate on additional income. This replaces the built-in state/local estimate; it does not add to it.

Primary residence exclusion

The home sale exclusion has eligibility rules. This calculator uses a simplified estimate and does not determine full eligibility.

Disclaimer

This calculator is a simplified self-help planning tool. It does not prepare a tax return and is not tax, legal, accounting, or investment advice. Results are hypothetical estimates based on the information entered and simplified tax assumptions. Capital gains taxes can depend on exact taxable income, holding period, basis, losses, depreciation, exclusions, state law, local tax rules, and other facts. IncomeTaxBill.com does not guarantee that the result applies to your individual circumstances. Confirm your tax obligations before relying on the result.

Advertisement

How to use this calculator

Start with the asset type, sale price, cost basis, dates, filing status, taxable income before this gain, and state of residence. Then calculate the estimate. Some choices, such as crypto, real estate, primary residence, or collectibles, will show extra notes or fields when they matter.

Required fields are marked. Most users can leave Advanced options closed.

2026 calculator notes

Updated for 2026: federal long-term capital gains thresholds, Net Investment Income Tax assumptions, and state/local planning inputs where supported.

This calculator estimates federal capital gains tax, Net Investment Income Tax, state tax, local tax where applicable, total estimated tax, and after-tax proceeds.

How This Capital Gains Tax Calculator Works

This calculator estimates your gain, determines whether the gain appears short-term or long-term, applies federal capital gains or ordinary income tax rules, estimates Net Investment Income Tax when applicable, and then estimates state and local tax where supported.

For long-term gains, the calculator does not apply one flat rate to the entire gain unless the entire gain falls within one bracket. Long-term gains may stack across the 0%, 15%, and 20% federal capital gains brackets depending on filing status and other taxable income for the year.

For short-term gains, the calculator estimates the additional ordinary income tax caused by adding the short-term gain to your taxable income.

What This Calculator Does Not Handle

  • Full 1031 exchange calculations
  • Installment sales, QSBS exclusions, AMT, wash sales, or full depreciation schedules
  • Partnership K-1 capital gains, trusts, estates, or nonresident alien rules
  • State part-year residency, every state credit or deduction, or every local tax rule
  • Crypto exchange imports, wallet imports, multiple lots, FIFO, LIFO, specific identification, DeFi, NFTs, or full Form 8949 reporting

Example Capital Gains Tax Scenarios

These simplified examples show how the calculator can be used. Final tax can vary based on total income, losses, basis adjustments, state law, and special asset rules.

  • Stock sale with a $25,000 long-term gain: enter sale price, basis, holding period, filing status, and other taxable income to estimate whether the gain falls in the 0%, 15%, or 20% federal bracket.
  • Crypto sale with a short-term gain: short-term gains are generally estimated through ordinary income tax rates rather than the long-term capital gains brackets.
  • Home sale planning: the primary residence option can model a simplified exclusion estimate, but the full home-sale exclusion rules should be checked separately.

Related Tax Calculators and Guides

FAQs

What is capital gains tax?

Capital gains tax is tax on profit from selling an asset for more than its tax basis. Stocks, ETFs, mutual funds, crypto, real estate, collectibles, and other investments may create capital gains when sold.

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

Short-term capital gains generally apply to assets held for one year or less and are usually taxed like ordinary income. Long-term capital gains generally apply to assets held for more than one year and may qualify for lower federal tax rates.

How do capital gains tax brackets work?

Federal long-term capital gains brackets are graduated. Part of a gain may fall in the 0% bracket, another part may fall in the 15% bracket, and high-income gains may reach the 20% bracket. This calculator estimates the gain across brackets instead of applying one flat rate to the entire gain.

Does this calculator include state capital gains tax?

Yes, where state data is available. Many states tax capital gains as ordinary income, some states have no broad individual income tax, and some states have special capital gains rules. State results are labeled as simplified when appropriate.

Does New York tax capital gains?

New York generally taxes capital gains through its regular income tax system. New York City residents may also owe New York City resident income tax.

Do states without income tax have capital gains tax?

States without a broad individual income tax generally do not tax capital gains through a regular state income tax in this simplified model. Other taxes or special rules may still apply.

Does this calculator include Net Investment Income Tax?

Yes. The calculator estimates the 3.8% Net Investment Income Tax when income appears to exceed the applicable threshold. If modified adjusted gross income is not entered, the NIIT result is simplified.

Does this calculator handle home sale exclusions?

It includes a simplified primary residence exclusion estimate for users who indicate they may qualify. The full home sale exclusion has detailed eligibility rules, so the result should not be treated as a tax return calculation.

Does this calculator handle crypto gains?

Yes, basic crypto sales can be entered like other investment sales. The calculator estimates gain based on sale price, basis, expenses, holding period, and tax profile. It does not import exchange records or prepare Form 8949.

Does this calculator handle collectibles?

It includes a simplified collectibles estimate. Collectibles may be taxed differently from ordinary long-term capital gains, so users should confirm treatment before relying on the result.

Why is this only an estimate?

Capital gains tax can depend on exact income, basis, holding period, losses, asset type, depreciation, exclusions, state law, local tax rules, and other facts. This calculator is a planning tool, not a tax return.