OpenTaxCalculator

Capital Gains Tax Calculator 2025 & 2026

Choose 2025 or 2026, enter your adjusted gross income before the gain, then use either a net gain or sale proceeds and adjusted cost basis. Long-term gains use the 0%, 15% and 20% bands; short-term gains use ordinary rates. NIIT is calculated separately using modified AGI.

Updated 2026-10-15 · 2026 IRS figures

Start with income after adjustments such as pre-tax retirement contributions, before the standard or itemized deduction. Include ordinary investment income here, but exclude this gain. This model assumes no other qualified dividends or preferential-rate gains.

NIIT uses modified AGI before the standard/itemized deduction. Add applicable foreign-income adjustments above. Other net investment income is already part of your income, so it is not added again.

Estimated 2026 tax added by this gain$3,00015.0% effective rate on the gain
Gain before tax$20,000
Deduction applied$16,100
Other ordinary taxable income$58,900
Gain included in taxable income$20,000
Federal long-term gains tax$3,000
NIIT MAGI including this gain$95,000
Additional net investment income tax (3.8%)$0
Gain kept after estimated tax$17,000

For ordinary investment gains held outside retirement accounts. Enter an adjusted basis and net losses/exclusions yourself. The calculation holds deductions fixed; it excludes qualified-dividend interactions, AMT, credit and deduction phase-outs, collectibles, small-business stock and depreciation recapture.

Sources reviewed October 15, 2026: IRS capital gains and losses, IRS NIIT rules, 2025 rate thresholds and 2026 thresholds and updated deductions.

Gain kept: $17,000 (85.0%)Federal: $3,000 (15.0%)
  • Gain kept $17,000 85.0%
  • Federal $3,000 15.0%

Your result is ready

Key 2026 federal tax facts

Related

How to use the capital gains calculator

Choose the year in which you realize the gain. Enter your other adjusted gross income after income adjustments, but before the standard or itemized deduction. Do not enter gross salary if your pre-tax contributions reduce the income you report, and do not subtract the standard deduction yourself: the calculator does that once.

Enter the net gain after allowable losses and exclusions, or select sale proceeds and adjusted cost basis. In the proceeds mode, subtract selling costs only if they have not already reduced the proceeds. Adjust basis for items such as purchase commissions, improvements and depreciation where applicable. The proceeds mode does not automatically net losses from other assets or apply a main-home exclusion.

The result estimates the extra tax caused by this gain. It assumes the same deduction before and after the sale, with no other preferential-rate gains or qualified dividends. It does not calculate capital-loss deductions, depreciation recapture, AMT or the effect of income on credits and deduction phase-outs. State estimates are available for 2026 and use ordinary-income tables, with state-specific capital-gain rules excluded.

Short-term or long-term: the one-year line

Hold an asset for more than one year before you sell it and the gain is long-term; hold it one year or less and it is short-term. The holding period starts the day after you acquire the asset and includes the day you sell. Buying a stock on March 10 and selling it on March 10 of the following year is still short-term; selling on March 11 makes it long-term.

Short-term gains are added to your wages and taxed at ordinary rates up to 37%. Long-term gains get their own lower rate schedule. Inherited property is always treated as long-term, no matter how soon after inheriting you sell it.

2026 long-term capital gains rates by filing status

The thresholds apply to total taxable income, including the gain itself, not to the gain alone.

RateSingleMarried filing jointlyHead of household
0%$0 – $49,450$0 – $98,900$0 – $66,200
15%$49,450 – $545,500$98,900 – $613,700$66,200 – $579,600
20%Over $545,500Over $613,700Over $579,600

2025 versus 2026 capital gains thresholds

These limits apply to total taxable income after deductions. Select either year in the calculator above to use that year’s ordinary-income brackets, capital-gains thresholds and standard deduction.

Filing status2025: 0% through2026: 0% through2025: 15% through2026: 15% through
Single$48,350$49,450$533,400$545,500
Married filing jointly$96,700$98,900$600,050$613,700
Head of household$64,750$66,200$566,700$579,600

How gains stack on top of your other income

Long-term gains are taxed as if they sit on top of your ordinary taxable income. Your wages fill the brackets first; the gain then fills whatever room is left in the 0% band before spilling into 15%.

Example: a single filer with $40,000 of wages has $23,900 of ordinary taxable income. That leaves $25,550 of room in the 0% band (which ends at $49,450). A $30,000 long-term gain is taxed at 0% on the first $25,550 and 15% on the rest, for $668 of federal tax, an effective 2.2% on the gain. Had the same asset been sold after eleven months, the gain would be taxed as ordinary income and cost $3,950.

This is why retirees and people between jobs sometimes realize gains in low-income years: the 0% band can absorb a meaningful amount of gain tax-free.

NIIT applies to short-term and long-term gains

The 3.8% net investment income tax uses modified adjusted gross income, not taxable income after the standard deduction. It applies to the smaller of net investment income or MAGI above $200,000 for single and head-of-household filers, or $250,000 for married couples filing jointly. These thresholds are the same in 2025 and 2026.

For example, a single filer has $190,000 of other AGI and a $20,000 gain, with no NIIT MAGI additions and no other net investment income. MAGI becomes $210,000: $10,000 is above the threshold, so NIIT is $380. The same NIIT applies whether the gain is short-term or long-term. The standard deduction reduces regular taxable income but does not reduce this MAGI.

If you already have net investment income, enter it in the separate field as well as including it in other AGI. The calculator compares NIIT before and after the gain and shows the increase. Foreign-income exclusions and certain other adjustments can make NIIT MAGI differ from AGI; use the MAGI additions field where applicable.

Gains that don’t follow the 0/15/20 schedule

  • Collectibles such as coins, precious metals held as collectibles, and art are taxed at a maximum 28% rate on long-term gains.
  • The taxable part of a gain on qualified small business stock under section 1202 is also subject to the 28% maximum rate.
  • Unrecaptured section 1250 gain — the depreciation you claimed on real estate such as a rental property — is taxed at up to 25% when you sell.
  • The 3.8% net investment income tax applies on top of these rates to the smaller of your net investment income or the amount by which modified AGI exceeds $200,000 ($250,000 married filing jointly).

Using losses, and the wash-sale trap

Capital losses first offset capital gains of the same type, then the other type. If losses exceed gains, up to $3,000 a year ($1,500 married filing separately) can be deducted against wages and other income, and anything left over carries forward to future years with no expiry.

If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the wash-sale rule generally disallows the loss. In a taxable replacement account, the disallowed loss generally increases the replacement shares’ basis, deferring it. If the replacement purchase is in your IRA or Roth IRA, the loss is disallowed without increasing the IRA’s basis, so that loss is not recovered through a replacement-share basis adjustment.

Crypto, gifts and your home

Digital assets are property for US tax purposes, not currency, so selling, swapping or spending crypto is a taxable disposal measured against your cost basis. Brokers report digital asset sales on Form 1099-DA for transactions on or after January 1, 2025, and every Form 1040 asks whether you received, sold or exchanged a digital asset during the year.

Gifted property generally uses the donor’s adjusted basis to calculate a gain, with any required adjustments. If its value when gifted was below that basis, a separate loss basis generally uses the gift-date value; a sale between the two figures can produce neither gain nor loss. Certain gift-tax payments can also adjust basis. Inherited property generally receives a date-of-death value basis, subject to exceptions.

Gain on a main home is excluded up to $250,000 ($500,000 joint) only if you owned it and lived in it for at least two of the five years before the sale, and you haven’t used the exclusion on another home in the previous two years. You still report the sale if you receive Form 1099-S or if part of the gain is taxable.

How to report a sale

List each sale on Form 8949 with the dates, proceeds and cost basis from your broker’s Form 1099-B (or 1099-DA for crypto), then carry the totals to Schedule D of Form 1040. Gains are not withheld at sale, so a large gain may require an estimated tax payment for the quarter in which you sell.

Frequently asked questions

What are the 2026 long-term capital gains brackets?

Single: 0% up to $49,450, 15% up to $545,500, 20% above. Married jointly: 0% up to $98,900, 15% up to $613,700.

Do I pay capital gains tax when I sell my home?

You can exclude up to $250,000 of gain ($500,000 married jointly) on a main home you owned and lived in for 2 of the last 5 years. This calculator does not apply that exclusion — subtract it from your gain first.

Is crypto taxed as a capital gain?

Yes, when you hold it as an investment. The IRS treats digital assets as property, so selling, trading one coin for another or paying for something with crypto creates a capital gain or loss. Coins received as payment or rewards are ordinary income when received.

Can capital losses reduce the tax on my salary?

Up to $3,000 a year ($1,500 married filing separately) after losses have offset all your gains. Unused losses carry forward indefinitely.

I inherited shares and sold them a month later. Is that short-term?

No. Inherited property is treated as held long-term regardless of how long you owned it, and its basis is generally its value on the date of death.

Do short-term capital gains also attract NIIT?

Yes, net short-term investment gains can attract the same 3.8% NIIT as long-term gains when modified AGI exceeds the applicable threshold. Holding the asset longer changes regular federal tax treatment, but does not remove NIIT.

Do I pay state tax on capital gains?

Many states tax capital gains, but exclusions and rates vary. The 2026 state selector estimates the increase using ordinary-income tax tables. It does not apply state-specific capital-gain rules or Washington’s separate capital-gains excise tax. The 2025 result is federal only.

Sources

Figures are taken from official government publications and were last reviewed on 2026-10-15.

  1. IRS Rev. Proc. 2025-32: 2026 rates and updated deductions
  2. IRS: Tax inflation adjustments for tax year 2026, including OBBBA amendments
  3. IRS: 401(k) limit increases to $24,500 for 2026, IRA limit increases to $7,500
  4. Rev. Proc. 2025-19 (2026 HSA limits)
  5. IRS: Correction to SALT deduction amount in the 2026 Form 1040-ES
  6. IRS Topic No. 560, Additional Medicare Tax
  7. IRS Topic 559: NIIT thresholds and MAGI definition
  8. IRS: Working Families Tax Cuts (OBBBA) deductions for working Americans and seniors
  9. IRS: Child Tax Credit
  10. IRS Publication 15 (2026), Employer’s Tax Guide (supplemental wage withholding)
  11. IRS Instructions for Forms W-2G and 5754 (gambling withholding)
  12. SSA 2026 Cost-of-Living Adjustment Fact Sheet
  13. IRS Topic No. 409, Capital gains and losses
  14. IRS Publication 550, Investment Income and Expenses
  15. IRS: Digital assets
  16. IRS Topic No. 701, Sale of your home
  17. IRS: Net Investment Income Tax questions and answers (reviewed October 15, 2026)
  18. IRS Topic 703: Basis and adjusted basis of assets
  19. IRS: Gifted-property basis, including the separate loss-basis rule
  20. IRS Rev. Proc. 2024-40: 2025 capital-gains thresholds

Reviewed by Kashif Nazir Khan on 2026-10-15 · software engineer and developer with an interest in accounting and taxation