Tax · Free calculator

Capital Gains Tax Calculator

Calculate federal capital gains tax including short-term, long-term brackets (0/15/20%), and 3.8% Net Investment Income Tax for high earners.

Disclaimer: Educational only — not tax or legal advice. Federal withholding follows IRS Pub 15-T (2026 brackets); FICA caps reflect SSA's 2026 wage base. State rates mirror each state DOR's published 2026 brackets. Verify with a CPA before filing.

Advertisement
New here? Watch it work in 2 seconds — then tweak it for you.
Try it like this

Tap a scenario to load realistic numbers, then tweak the sliders.

$150,000
$60,000
$0.00
0
5%

CA 13.3%, NY 10.9%, TX/FL/WA 0%, WA 7% on >$262K.

Advertisement
Formula used

LTCG bracket model

Hold > 1 year for LT treatment. LT brackets stack on top of ordinary income — high W2 pushes gains into 20% + NIIT.

LT: 0/15/20% by income · ST: ordinary rates · +3.8% NIIT over $200K/$250K AGI
LTCG 0% (single)
Up to $48,350
LTCG 15% (single)
$48,351–$533,400
LTCG 20% (single)
Over $533,400
NIIT threshold (single)
$200K AGI
Backlink-friendly embed

Embed this calculator

Free to embed on any site. Inputs preserved, link back to RevenueLab. Each format trades polish for SEO juice.

<iframe src="https://www.revenuelab.fyi/embed/capital-gains-tax-calculator?ordinary=150000&ltGains=60000&stGains=0&filing=0&stateRate=5" width="100%" height="680" style="border:0;border-radius:12px;max-width:100%" loading="lazy" title="Capital Gains Tax Calculator"></iframe>
<p style="font:12px/1.4 system-ui;color:#666;margin:6px 0 0">Calculator by <a href="https://www.revenuelab.fyi/capital-gains-tax-calculator?ordinary=150000&ltGains=60000&stGains=0&filing=0&stateRate=5" target="_blank" rel="noopener">RevenueLab</a></p>

Easiest to install — passes referral traffic and a referring-domain signal.

Cite this calculator

Writing about this topic? Grab a citation — every link helps keep these tools free.

APA
RevenueLab. (2026). Capital Gains Tax Calculator. Retrieved from https://www.revenuelab.fyi/capital-gains-tax-calculator
HTML
<p>Source: <a href="https://www.revenuelab.fyi/capital-gains-tax-calculator" target="_blank" rel="noopener">Capital Gains Tax Calculator — RevenueLab</a> (2026).</p>
Markdown
Source: [Capital Gains Tax Calculator — RevenueLab](https://www.revenuelab.fyi/capital-gains-tax-calculator) (2026).

Tax-loss harvesting still works

Realize losses in taxable accounts to offset realized gains dollar-for-dollar. Excess losses up to $3K/yr offset ordinary income; the rest carries forward indefinitely. The wash sale rule (30 days) is the main trap.

Why holding 1 year and 1 day matters

Short-term gains tax at ordinary rates (10–37%). Long-term at 0/15/20%. On a $50K gain, the difference between 35% ST and 15% LT is $10,000. Set calendar reminders for cost-basis lots.

QSBS exclusion (Section 1202)

Founders of C-corps held >5 years can exclude up to $10M or 10× basis in capital gains — federal tax = $0. State varies (CA, PA don't recognize). One of the most valuable tax provisions for startup employees.

FAQ

Does NIIT apply to all gains?

Yes — both ST and LT capital gains count as 'net investment income' when AGI exceeds $200K (single) or $250K (MFJ). The 3.8% is on top of regular tax.

Can I avoid state cap gains tax by moving?

Only if you establish full residency before the gain is realized. Stock options/RSUs vested in CA generally remain CA-taxable even after a move. Sale of a privately held company has more flexibility — talk to a CPA.

What about crypto?

Crypto is treated as property — same LT/ST distinction applies. Every swap (BTC → ETH) is a taxable event. Track basis lot-by-lot or pay the wash-sale-rule penalty (note: wash sale doesn't currently apply to crypto, an open loophole).

How this calculator is built

Independently maintained

Written by Sam Doshi and the RevenueLab editorial team. We don't sell the data feeds this tool is built on.

Sourced from primary data

Benchmarks come from public AdSense / Stripe / IRS disclosures and reader-submitted data — never third-party "$X per view" claims. Full methodology.

Last editorial review

Reviewed on a rolling quarterly cycle. Dated reviews are published on the methodology record for each calculator.

Editorial standards

See our editorial policy and disclaimer. Results are estimates, not advice.