Capital Gains Tax Calculator
Estimate your capital gains tax for 2026, 2025, or 2024. Enter your ordinary income and investment gains to see your short-term tax, long-term capital gains rate (0%, 15%, or 20%), and Net Investment Income Tax (NIIT).
Continue with these gains, income and deductions. Add your prior-year tax and expected withholding to check the remaining payment target.
Total tax
Top LTCG bracket
NIIT (3.8%)
Effective rate
Your 12.1% effective rate is below the national median of 15.6% for incomes $100k–$150k.
Based on IRS Statistics of Income data. Individual results vary.
Why this number?
For your income range ($100k–$150k), the national median effective rate is 15.6%. Your rate is 3.5pp below the median.
| Ordinary income | $75,000 |
| Short-term capital gains | $0 |
| Long-term capital gains | $50,000 |
| Total income | $125,000 |
| Federal income tax (ordinary + short-term) | $7,670 |
| Long-Term Capital Gains Tax (15.00% of the gain) | $7,500 |
| Net investment income tax (NIIT, 3.8%) | $0 |
| Total tax | $15,170 |
Sold investments this year? Get a reminder before each federal tax deadline. One email before each quarterly estimated tax payment (Tax Day included), plus one when the IRS publishes next year's numbers. About five a year; you confirm once and can unsubscribe anytime.
Emails are sent with Kit. See our privacy policy.
For a complete breakdown of 2026 rates and thresholds, see our 2026 capital gains tax rates guide or the 2026 capital gains tax rates reference. Also check our NIIT calculator and tax-loss harvesting calculator.
How capital gains tax works
US capital gains tax is governed by IRC §1(h) and reported on Schedule D (with line-item detail on Form 8949). The system splits gains by holding period: assets held ONE YEAR OR LESS produce short-term gains taxed at ordinary rates (10%/12%/22%/24%/32%/35%/37%), while assets held LONGER than one year produce long-term gains taxed at preferential 0%, 15%, or 20% rates.
The holding period starts the day AFTER acquisition and includes the date of sale. For inherited assets, IRC §1223(9) automatically treats the holding period as long-term regardless of how briefly the beneficiary held the asset. Gifted assets carry over the donor's holding period. For stock, the "first-in, first-out" (FIFO) default applies unless you specifically identify shares — the IRS Publication 550 "Investment Income and Expenses" covers the details.
Three additional layers can stack on top of the base 0/15/20% LTCG rate for high-income filers: the 3.8% Net Investment Income Tax (§1411, threshold $200,000 single / $250,000 MFJ), state capital gains tax (varies widely from 0% in states with no income tax to 13.3% in California), and special asset-class adjustments — 28% on collectibles and on the taxable part of §1202 gain, 25% on unrecaptured §1250 depreciation.
2024 → 2026 long-term capital gains brackets
The LTCG bracket boundaries are indexed for inflation each year via IRS revenue procedure. The 20% top rate has been unchanged since the American Taxpayer Relief Act of 2012 — only the threshold creep up.
| Filing status | 2024 (0% / 15% break) | 2025 (0% / 15% break) | 2026 (0% / 15% break) |
|---|---|---|---|
| Single | $47,025 / $518,900 | $48,350 / $533,400 | $49,450 / $545,500 |
| Married Filing Jointly | $94,050 / $583,750 | $96,700 / $600,050 | $98,900 / $613,700 |
| Head of Household | $63,000 / $551,350 | $64,750 / $566,700 | $66,200 / $579,600 |
| Married Filing Separately | $47,025 / $291,850 | $48,350 / $300,000 | $49,450 / $306,850 |
The 20% top rate applies above the 15% threshold. NIIT 3.8% stacks on top whenever MAGI exceeds $200,000 single / $250,000 MFJ — that threshold has been frozen at the 2013 ACA enactment level. Sources: Rev. Proc. 2023-34 (2024), Rev. Proc. 2024-40 §2.03 (2025), Rev. Proc. 2025-32 §4.03 (2026).
Special asset-class rates
Three asset categories carry rates DIFFERENT from the standard 0/15/20% LTCG schedule:
Collectibles — 28% max
IRC §1(h)(4) caps the LTCG rate on collectibles at 28%. Includes art, rugs, antiques, gems, stamps, coins, alcoholic beverages held as investment, and metals such as gold, silver and platinum bullion. Gain from selling an interest in a partnership, S corporation or trust that is due to unrealized appreciation of collectibles is also collectibles gain (IRS Pub. 550). Shares of mining companies use the regular 0/15/20% rates.
Unrecaptured §1250 — 25% max
When you sell depreciated real estate, the portion of gain attributable to prior depreciation deductions ("unrecaptured §1250 gain") is taxed at up to 25%. The remaining gain follows regular LTCG rates. Reported on the Schedule D unrecaptured §1250 worksheet. Critical for landlords selling rental property — depreciation taken along the way comes back as a separate 25% tax tier on sale.
QSBS §1202 — up to 100% exclusion
For Qualified Small Business Stock acquired on or before July 4, 2025 and held 5+ years, IRC §1202 excludes up to the GREATER of $10M or 10× basis from gain — entirely federal-tax-free (issuer's aggregate gross assets of $50M or less at issuance). For QSBS acquired after July 4, 2025, OBBBA §70431 (P.L. 119-21) raises the per-issuer cap to $15M, raises the issuer gross-asset ceiling to $75M, and replaces the fixed 5-year hold with a tiered schedule: 50% exclusion after 3 years, 75% after 4 years, 100% after 5 years. State conformity varies (CA does NOT conform). Reported on Form 8949 with code "Q" and Schedule D.
Six worked 2025 examples
All numbers use 2025 brackets (Rev. Proc. 2024-40) and the standard deduction at 2025 levels. The calculator above runs your exact inputs; these scenarios illustrate the bracket-stacking mechanics.
Retiree, single, $30k ordinary + $50k LTCG
The $15,750 standard deduction leaves $14,250 of taxable ordinary income, so $34,100 of the 0% band (which runs to $48,350) is still open. That much of the gain is taxed at 0%; the remaining $15,900 is taxed at 15%. LTCG tax: $2,385. No NIIT.
MFJ, $150k W-2 + $100k LTCG
Taxable ordinary income is $118,500, already past the $96,700 top of the 0% band, so the gain stacks entirely in the 15% band. LTCG tax: $15,000. No NIIT — MAGI is $250,000, exactly the $250,000 threshold, so nothing sits above it.
High-income single, $400k W-2 + $200k LTCG
Taxable ordinary income is $384,250, leaving only $149,150 of room under the $533,400 top of the 15% band — so that slice of the gain is taxed at 15% and the other $50,850 at 20%. The gain spans two bands; it is not all at 15%. LTCG tax $32,542.50, plus NIIT of 3.8% on the lesser of the $200,000 of investment income or MAGI over $200,000 = $7,600. Total on the $200,000 gain: $40,142.50 (20.1% effective).
Ultra-high income, $1M ordinary + $500k LTCG
Taxable ordinary income of $984,250 is past the $533,400 top of the 15% band, so the whole gain is taxed at 20% = $100,000. NIIT is 3.8% on the lesser of the $500,000 of investment income or the MAGI excess, which is the full gain = $19,000. Total on the $500,000 gain: $119,000 (23.8% effective) — plus state if applicable.
Primary home sale, MFJ, $700k gain
$500k is excluded under §121 (lived in 2 of the last 5 years), leaving $200,000 of taxable long-term gain — all long-term, because the home was owned more than a year. With $120,000 of ordinary income, taxable ordinary income is $88,500, so $8,200 of the 0% band under $96,700 is still open and only $191,800 is taxed at 15%. LTCG tax: $28,770. NIIT does apply — MAGI is $320,000, which is $70,000 over the $250,000 threshold, so 3.8% of that excess = $2,660.
Short-term flip, $40k gain
Sold on day 360 — short-term, so it is taxed as ordinary income. Added to $90,000 of wages it lifts taxable income from $74,250 to $114,250, so the gain straddles the 22% and 24% brackets rather than sitting entirely in the top one. Extra tax: $9,012 vs $6,000 if held one more week to long-term — a $3,012 timing cost.
Planning levers to reduce capital gains tax
- Hold over 12 months. The single biggest lever. Short-term gains taxed at up to 37% vs long-term at up to 20% — a difference of up to 17 percentage points. Check your purchase date before selling near the one-year mark.
- Tax-loss harvesting. Realize losses to offset realized gains, then up to $3,000/year against ordinary income. Watch the §1091 wash-sale rule (30-day window). The /tax-loss-harvesting-calculator/ models the value; /wash-sale-calculator/ handles the trap.
- Specific-share identification. When selling part of a position, identify the highest-basis lots to minimize gain. Your broker requires written instruction — many default to FIFO which often realizes the largest gain. Confirm on the trade confirmation.
- Bunch gains into low-income years. The 0% LTCG bracket $48,350 single / $96,700 MFJ creates an annual "free harvest" window. Retirees between job exit and Social Security claim often have artificially low ordinary income — realize gains to flush them up to the 0% threshold.
- Charitable donation of appreciated stock. Donate long-term-held appreciated shares directly to a §501(c)(3) charity or Donor-Advised Fund — you skip the capital gains tax AND deduct the full FMV (subject to 30%-of-AGI cap for appreciated-property gifts). Cleaner than sell-then-donate which realizes the gain.
- §1031 like-kind exchange (real estate). Defer gain by rolling proceeds into replacement real property. 45-day identification, 180-day close (or your return due date including extensions, if earlier), with the proceeds held by a qualified intermediary rather than received by you. Useful for landlords trading up; gain is deferred until eventual cash-out.
- Step-up at death. §1014 erases all unrealized gain at death. For taxpayers 70+ with highly appreciated low-basis stock, holding until death may be preferred over selling and paying 20% + 3.8% NIIT + state. Estate planning trade-off vs §2010 lifetime exemption ($15M under OBBBA §70106).
- Opportunity Zone deferral. §1400Z-2 defers gain recognition when invested in a QOF within 180 days — until 2026-12-31 for investments made through that date, and a rolling 5-year deferral for investments made after it (OBBBA §70421). A 10-year hold removes appreciation INSIDE the QOF from tax. See /opportunity-zone-calculator/.
Common capital gains mistakes
- Triggering wash sales by accident. Selling a stock or fund at a loss and buying the same security, or one that is substantially identical, within 30 days before or after the sale disallows the loss. It also applies if your spouse buys the replacement, or if you buy it in an IRA. The IRS decides "substantially identical" on the facts and circumstances (Pub. 550), so the safest alternatives are a clearly different holding or waiting out the 30 days.
- Forgetting depreciation recapture on rental sales. Years of depreciation deductions come back as §1250 unrecaptured gain at up to 25% — separate from the LTCG rate on the remaining gain. Many landlords are surprised by a five-figure tax bill on what they thought was a §121-style exclusion.
- Crypto-to-crypto swaps treated as nontaxable. Each swap is a taxable disposition of the OUT coin. Trading BTC for ETH realizes BTC gain; trading ETH for SOL realizes ETH gain. The IRS has clarified this repeatedly since 2014.
- Missing the §121 use test on a converted rental. Property converted from rental to primary residence must still meet 24-month use within the 5 years before sale. Time spent renting it OUT doesn't count — only personal use. Even then, gain allocated to rental years after 2008 (before you moved in) is not excludable. Partial exclusion available only for qualifying hardship.
- Reporting basis from the 1099-B without checking. Brokers must report basis for "covered" securities acquired after 2010 (stocks) / 2011 (mutual funds) — but cost-basis methods, gifted securities, and inherited assets often need manual adjustment on Form 8949. Compare the 1099-B against your own records.
- Ignoring state capital gains tax. Most states tax capital gains at the same rate as ordinary income, on top of the federal rate (California's top bracket is 13.3%). States with no income tax levy nothing on gains, except Washington: its separate excise tax on long-term gains is 7% on the first $1 million and 9.9% above that, after a standard deduction ($278,000 for 2025). Always model state tax alongside federal.
Quick-reference card
Short-term vs long-term
≤1 year = ordinary rates up to 37%. >1 year = preferential 0%/15%/20%.
Net Investment Income Tax
3.8% surtax above $200,000 (Single) / $250,000 (MFJ) MAGI. Form 8960. Thresholds are fixed by statute and not inflation-indexed.
Capital loss deduction
Losses offset gains. Up to $3,000/year against ordinary income; remainder carries forward indefinitely (§1212).
Home sale exclusion (§121)
$250k single / $500k MFJ on primary residence (own + use 24 of last 60 months, no other exclusion in the prior 2 years; gain from nonqualified use after 2008 stays taxable).
Frequently asked questions
What is capital gains tax?
What is the difference between short-term and long-term capital gains?
What are the 2025 long-term capital gains tax rates?
What are the 2026 capital gains rates?
What is the Net Investment Income Tax (NIIT)?
How does ordinary income affect my capital gains rate?
How do I qualify for the §121 home sale exclusion?
What is the wash sale rule?
How does tax-loss harvesting work?
Does inheriting an asset trigger capital gains?
How are qualified dividends taxed?
What's the §1031 like-kind exchange?
How does the Opportunity Zone deferral work?
Does the §121 exclusion stack with state taxes?
Are crypto gains taxed at LTCG rates?
Sources
Related insights
Use these guides for rule explanations, planning context, and follow-up questions beyond the calculator result.
Your capital gains tax also depends on where you live.
State taxes can significantly change your total liability. See how it varies.
Related Calculators
Collectibles Tax Calculator
Art, coins, bullion and antiques with ordinary-rate stacking, the 28% long-term ceiling, and NIIT
State Capital Gains Tax Calculator
Estimate state tax on short- or long-term gains across 10 high-demand states
Cost Basis Calculator
Multiple stock lots, fees, splits, FIFO, partial sales, and holding period
RSU Tax Calculator
Vesting FMV ordinary income + capital gains on sale
Stock Options (ISO vs NSO)
NSO ordinary income at exercise, ISO bargain element, AMT
ESPP Calculator
Qualifying vs disqualifying §423 disposition + 15% lookback
Federal Income Tax Calculator
10–37% brackets, $16,100 standard deduction, progressive calculation
NIIT Calculator
Net Investment Income Tax 3.8%, thresholds $200k / $250k MFJ