Skip to content

Capital Gains Tax Calculator — Stocks, Property & QSBS

2026 federal brackets, depreciation recapture, losses, QSBS, NIIT, state and local tax.

Tax & PayrollUpdated October 31, 2026
Tables verified Oct 31, 2026

Your Inputs

The position
05,000,000
02,000,000
0100,000
0240
Tax profile
02,000,000
Filing Status
State
Incremental Tax vs Not Sellinglive

$6,017

21.2% of the $28,380 economic gain · $28,380 recognized federally

Compositionone-off sale
Federal: $4,257State (CA): $1,760Net Proceeds: $40,363
Net sale proceeds$46,380
  • Federal$4,2579%
  • State (CA)$1,7604%
  • Net Proceeds$40,36387%
Breakdown
Economic Capital Gain$28,380
Federally Recognized Gain$28,380
Incremental Federal Tax$4,257
NIIT ($200,000 MAGI threshold)None · $10,520 headroom
State Tax (CA at 6.20%)$1,760
Effective Rate on Economic Gain21.2%
After-Tax Sale Proceeds$40,363
Rate Treatment15% bracket
Assessment
010054TAX EFFICIENCY — COSTLY
DStretched

Incremental tax

$6,017

21.2% of economic gain; ordinary-loss tax value is shown separately

What you keep

$40,363

$46,380 net sale proceeds less $6,017 estimated tax

Holding period

2 yr 2 mo

More-than-one-year requirement met

Basis ledger — $46,500 sale − $120 selling costs − $18,000 adjusted basis = $28,380 realized result

Held 26 months, so the long-term computation stacks recognized gain on $145,000 of other taxable income. Federal tax compares this sale with not selling while retaining your other losses; those losses may otherwise offset ordinary income. State tax is 6.20% (default estimate) and local tax is 0.00%.

Where the recognized gain lands — 2026

Single

TREATMENTRATE / MAXIMUMGAINSHARE
15% bracket15.0%$28,380100%

Regular long-term gain and special-rate categories are allocated with the Schedule D Tax Worksheet rather than a flat-rate shortcut. The engine uses the 2026 thresholds, calculates the preferential and all-ordinary sides, and takes the smaller result; 25% and 28% are maximum rates, not universal flat rates.

Verdict: Costly

The sale has a 21.2% all-in incremental tax cost. Timing and genuine deductible losses are the remaining planning levers.

The long-term holding test is met

The regular long-term bands use 2026 thresholds: $49,450 at 0% and $545,500 at the top of 15% for Single filers; other statuses differ. Special §1245, §1250, collectibles and QSBS amounts remain explicit. Your current treatment is 15% bracket.

NIIT uses MAGI and net investment income

Estimated MAGI is $189,480, leaving $10,520 below the $200,000 threshold, so no NIIT applies. The starting MAGI is estimated from taxable income plus the standard deduction; enter actual MAGI in Advanced for a precise result.

Scope keeps the estimate honest

This is a single-sale estimate, not Form 8949. It does not determine wash-sale adjustments, qualified opportunity fund deferral, 1031 eligibility, actual AMT, or every state-specific capital-gain regime. Remove disallowed losses before entering them.

Saved capital gains scenarios

No saved scenarios yet

Save up to three configurations from the results panel and Swiftly will line them up side by side, flagging the best value automatically.

What this calculator does

Estimate the incremental 2026 tax on a sale of stock, crypto, property, collectibles or qualified small business stock. Model basis, depreciation recapture, capital losses, the home exclusion, NIIT, state and local tax — with the simple inputs first and the special rules in Advanced.

Figures this model assumes

Sources & method →
  • 012026 Single 0% / 15% ceilings: $49,450 / $545,500
  • 022026 Head of Household 15% ceiling: $579,600
  • 03NIIT thresholds: $200K / $250K / $125K MFS
  • 04Ordinary capital-loss deduction: $3,000 / $1,500 MFS
  • 05New QSBS: 50% / 75% / 100% at 3 / 4 / 5 years
  • 06Principal-home exclusion: $250K / $500K qualifying joint

The complete guide

Capital Gains Tax

Updated October 31, 2026

01The holding-period line is more than one year

An asset held for one year or less produces a short-term gain taxed at ordinary federal rates of 10% to 37%. More than one year produces a long-term gain. The holding period generally begins the day after acquisition and includes the disposition day, so use exact dates at the anniversary rather than assuming that “one year” is enough.

For a Single filer with $60,000 of other taxable income, a $20,000 short-term gain in the 22% bracket adds $4,400 before other taxes. The same long-term gain falls in the 15% band and adds $3,000. That $1,400 difference is why the calculator shows a waiting comparison, not just a rate label.

A single day can matter. Verify the acquisition and sale dates before relying on a long-term result.

022026 thresholds and the stacking order

Ordinary taxable income fills the rate structure first. Regular long-term capital gain then uses the remaining 0% and 15% space before reaching 20%. The following are total taxable-income thresholds, not the amount of gain alone.

Source: Rev. Proc. 2025-32 §4.03. Special 25% and 28% buckets follow the Schedule D Tax Worksheet, including its smaller-of comparison with all-ordinary tax.

  • Single: 0% through $49,450; 15% through $545,500; 20% above.
  • Married Filing Jointly: 0% through $98,900; 15% through $613,700; 20% above.
  • Married Filing Separately: 0% through $49,450; 15% through $306,850; 20% above.
  • Head of Household: 0% through $66,200; 15% through $579,600; 20% above.

03Basis, capital losses and carryforwards

Start with the amount realized: sale proceeds minus selling costs. Adjusted basis generally includes the purchase price, qualifying acquisition costs and capital improvements, minus allowed-or-allowable depreciation. Economic gain is not always federally recognized gain: exclusions and deductible capital losses come next.

Deductible capital losses offset capital gains, then up to $3,000 of ordinary income in 2026 — $1,500 for Married Filing Separately. Any remaining loss generally carries forward, but the exact amount and its short- or long-term character come from the Schedule D Capital Loss Carryover Worksheet. A loss on a personal residence is nondeductible and cannot offset other gains.

The wash-sale rule can disallow a loss on stock or securities when substantially identical replacements are acquired within the 61-day window beginning 30 days before the sale. An IRA purchase can also create a problem. Remove disallowed losses before entering a loss total; the calculator does not scan transactions or repair basis.

04NIIT uses MAGI, not taxable income

The 3.8% Net Investment Income Tax applies to the smaller of net investment income or modified adjusted gross income above the statutory threshold: $200,000 for Single and Head of Household, $250,000 for Married Filing Jointly, and $125,000 for Married Filing Separately. These thresholds are not indexed for inflation.

Recognized investment gain can enter both NII and MAGI, while gain excluded under §121 or §1202 does not enter NII merely because the sale was large. Depreciation recapture that is recognized can remain in the NII base. Taxable income is after deductions and is not a substitute for MAGI, so Advanced accepts an actual pre-sale MAGI override.

Gain from a genuinely active, non-passive trade or business can be outside NII in some circumstances. That exception is fact-specific; it is not a blanket exemption for landlords, QSBS shareholders or anyone who describes a property as a business.

05Property: recapture before the home exclusion

Equipment, appliances and some cost-segregated components can create §1245 recapture taxed as ordinary income. Long-term unrecaptured §1250 gain from real-property depreciation has a 25% maximum rate. If the property was not held long term, the gain does not receive that special long-term treatment. Use depreciation allowed or allowable, even if it was not actually claimed.

A qualifying principal-residence sale can exclude up to $250,000 of gain, or $500,000 on a qualifying joint return. The general rule requires two years of ownership and use during the five years before sale, with additional limits on prior exclusions and nonqualified use. Depreciation that cannot be excluded is separated before §121 is applied. Married Filing Separately does not receive the $500,000 joint ceiling.

  • §1245 recapture: ordinary income, entered separately from building depreciation.
  • Unrecaptured §1250: 25% maximum for eligible long-term gain.
  • §121 exclusion: applied only after non-excludable depreciation is separated.
  • A personal-home loss is not a deductible capital loss.

06Collectibles and crypto are not the same rate problem

Long-term gains on collectibles such as art, rugs, antiques, metals, gems, stamps and certain coins fall into the 28%-rate gain category. That is a maximum, not a promise that every taxpayer pays a flat 28%. The Schedule D Tax Worksheet compares the preferential computation with tax on all taxable income at ordinary rates and uses the smaller result.

Digital assets generally follow property rules. Selling for dollars, exchanging one token for another and spending crypto can all be dispositions with gain or loss. Basis and holding records must follow units across wallets and platforms. Staking or other receipts can create ordinary income before a later capital-gain calculation.

The statutory wash-sale rule refers to stock or securities; do not extend it automatically to every digital asset or assume every token is outside it. Tokenized securities, related contracts and later legislation require current professional review.

07QSBS now depends on acquisition era

Section 1202 qualified small business stock is not a universal five-year checkbox. It requires original-issue stock in an eligible C corporation, active-business and gross-asset tests, and other issuer and taxpayer conditions. The calculator lets you assume those tests are met; it cannot verify them.

The per-issuer limitation is generally the greater of the applicable dollar cap or 10 times qualifying basis. Prior same-issuer excluded gain reduces the dollar cap. The non-excluded portion of a qualifying 50% or 75% exclusion can be 28%-rate gain; cap overflow is not automatically in that same bucket.

Some pre-September 2010 exclusions create a 7% AMT preference. The tool reports that preference but does not pretend it is additional AMT liability. State conformity is separate: California does not conform to §1202, and the state treatment control must be checked for the relevant state and tax year.

Source for the new tiers and caps: P.L. 119-21 §70431. The $15M amount begins inflation indexing only for tax years after 2026.

  • Acquired after July 4, 2025: 50% exclusion at 3 years, 75% at 4 years and 100% at 5 years; $15M dollar cap, or $7.5M MFS.
  • Acquired September 28, 2010 through July 4, 2025: 100% after more than 5 years; $10M dollar cap, or $5M MFS.
  • Acquired February 18, 2009 through September 27, 2010: 75% after more than 5 years.
  • Acquired before February 18, 2009: 50% after more than 5 years.

08State, local and return-level limits

Most states include capital gains in taxable income, but rates, deductions, preferential treatment and federal exclusions vary. Washington can tax certain capital gains despite having no broad wage-income tax. The state and local inputs are explicit rate estimates, not a complete resident, part-year or nonresident allocation.

This is a one-sale planning calculator, not Form 8949, Schedule D, Form 4797 or Form 8960. It does not determine wash sales, 1031 exchanges, opportunity-zone deferrals, installment sales, at-risk or passive-loss limitations, actual alternative minimum tax, or every state-specific rule. Use the detailed breakdown as a planning worksheet and reconcile it to transaction records before filing.

Frequently asked

Capital Gains Calculator FAQ

15 answers

Short-term applies when the asset was held one year or less and uses ordinary rates up to 37%. Long-term requires more than one year and generally uses 0%, 15% or 20%, with special treatment for recapture, collectibles and some QSBS. Use exact dates at the anniversary.

Subtract selling costs from proceeds and adjusted basis from the amount realized. Apply deductible losses and valid exclusions, then stack recognized gain on other taxable income. The calculator compares the preferential Schedule D computation with all-ordinary tax, adds any NIIT, and applies the entered state and local rates.

The 0% ceilings are $49,450 Single or MFS, $98,900 MFJ and $66,200 HoH. The 15% ceilings are $545,500 Single, $306,850 MFS, $613,700 MFJ and $579,600 HoH. Income above those ceilings generally uses 20%. These are taxable-income thresholds, not gain-only limits.

It is 3.8% of the smaller of net investment income or MAGI above $200,000 Single/HoH, $250,000 MFJ or $125,000 MFS. It is not based on taxable income alone, and federally excluded §121 or §1202 gain is not automatically NII.

After offsetting capital gains, the general annual limit is $3,000, or $1,500 for Married Filing Separately. Remaining deductible losses generally carry forward. The exact character and amount require the Schedule D carryover worksheet.

No. A loss on a personal residence is nondeductible. It cannot offset stock gains or ordinary income and does not create a capital-loss carryforward. Different rules may apply to property held for business or investment rather than personal use.

A qualifying principal-residence sale can exclude up to $250,000, or $500,000 on a qualifying joint return. Ownership, use, prior-exclusion and nonqualified-use rules matter. Allowed-or-allowable depreciation can be recognized before the exclusion, and a personal-home loss is not deductible.

For stock acquired after July 4, 2025, the exclusion is 50% at three years, 75% at four and 100% at five. Older stock generally requires more than five years and uses the acquisition-era percentage and cap. Original-issue C-corporation, active-business, gross-asset, per-issuer cap and state-conformity rules still apply.

No. Section 1245 recapture is ordinary income. Unrecaptured §1250 gain has a 25% maximum for qualifying long-term real-property gain, subject to the Schedule D worksheet. Short-term property gain does not receive that special long-term treatment.

No. Long-term collectibles gain is in the 28%-rate category, which is a maximum. The Schedule D Tax Worksheet uses the smaller of the preferential calculation and all-ordinary tax, so lower-income taxpayers can pay less than 28%.

Digital assets generally use property rules. Selling, exchanging and spending can realize gain or loss, with short- or long-term treatment based on the holding period. Ordinary-income receipts such as some rewards can establish a new basis before a later disposition.

For stock or securities, it can disallow a loss when substantially identical replacements are acquired during the 61-day window beginning 30 days before the sale. Replacement through an IRA can also matter. The calculator does not detect wash sales; exclude disallowed losses from the loss input.

Often, but the base and rate vary. Some jurisdictions prefer certain gains, some do not follow federal exclusions, and local tax may also apply. California does not conform to the federal QSBS exclusion. Use the state, local and QSBS-treatment controls as estimates and verify the current jurisdiction rules.

Reinvesting in a taxable account does not generally undo a realized gain. Tax-advantaged accounts, qualifying 1031 real-property exchanges and opportunity-zone rules have separate requirements and deadlines. Buying a similar asset can also create a wash-sale problem when the sale produced a loss.

Inherited property often receives a basis adjusted to fair market value at death or an alternate valuation date, but exceptions and reporting rules apply. Keep the estate valuation and documentation rather than assuming every inherited asset receives the same adjustment.

Related searches

Keep calculating

All 24 tools
Works EverywhereResponsive on any device
100% PrivateMath never leaves your browser
Always FreeNo sign-up, no paywall

Swiftly calculations are educational estimates generated from published 2026 tax brackets, Federal Reserve rate data and state-level averages. They are not an offer of credit, tax advice or a guarantee of terms. Confirm results with a licensed lender, CPA or advisor before making financial decisions.