Calculate federal and state capital gains taxes on investments, real estate, and other assets. See short-term vs long-term rates and NIIT impact.
What you originally paid
Total Tax
$60,400
30.2% effective rate
Capital Gain
$200,000
Long-term
Federal Tax
$33,800
State Tax
$26,600
Effective Rate
30.2%
California Capital Gains:
California taxes capital gains as ordinary income at rates up to 13.3%
Net Investment Income Tax Applied
Your income exceeds $200,000, triggering the 3.8% NIIT on investment income.
$0 - $47K
Single filers
$0 - $94K married joint
$47K - $519K
Single filers
$94K - $584K married joint
$519K+
Single filers
$584K+ married joint
+3.8% NIIT for high earners. Short-term gains taxed at ordinary income rates (10-37%).
Compare capital gains tax rates across top states
CA
California
Up to 13.3%
NY
New York
Up to 10.9%
TX
Texas
No state tax
FL
Florida
No state tax
NJ
New Jersey
Up to 10.75%
MA
Massachusetts
Up to 9%
WA
Washington
Up to 7%
CO
Colorado
Up to 4.4%
AZ
Arizona
Up to 2.5%
NV
Nevada
No state tax
Long-term capital gains (assets held more than 12 months) receive preferential tax rates under IRC Section 1(h). For the 2026 tax year, the three rate tiers are 0%, 15%, and 20%, determined by your total taxable income (not just the gain):
| Rate | Single | Married Filing Jointly | Head of Household |
|---|---|---|---|
| 0% | $0 - $48,350 | $0 - $96,700 | $0 - $64,750 |
| 15% | $48,351 - $533,400 | $96,701 - $600,050 | $64,751 - $566,700 |
| 20% | Over $533,400 | Over $600,050 | Over $566,700 |
Short-term capital gains (assets held 1 year or less) are taxed at ordinary income rates of 10% to 37%. This means a short-term gain on a $100,000 stock sale could cost $37,000 in federal tax at the top bracket, compared to $20,000 maximum for a long-term gain. Holding an asset for just one extra day past the 12-month mark can save thousands.
Collectibles such as art, antiques, coins, and precious metals are taxed at a maximum rate of 28% regardless of holding period, under IRC Section 1(h)(4). Section 1250 unrecaptured gain on real estate depreciation is taxed at a maximum of 25%.
The Net Investment Income Tax under IRC Section 1411 imposes an additional 3.8% tax on the lesser of net investment income or the amount by which MAGI exceeds the threshold. The NIIT thresholds are not indexed for inflation and have remained fixed since 2013:
| Filing Status | MAGI Threshold | Effective Max Rate (LTCG + NIIT) |
|---|---|---|
| Single | $200,000 | 23.8% |
| Married Filing Jointly | $250,000 | 23.8% |
| Married Filing Separately | $125,000 | 23.8% |
| Head of Household | $200,000 | 23.8% |
Net investment income includes capital gains, dividends, interest, rental income, royalties, and passive business income. It does not include wages, self-employment income, Social Security, or distributions from qualified retirement plans. For a single filer with $250,000 in MAGI and $80,000 in capital gains, the NIIT applies to the lesser of $80,000 (investment income) or $50,000 ($250,000 - $200,000 threshold) = $50,000 x 3.8% = $1,900 additional tax.
Your cost basis is the original purchase price plus any adjustments (commissions, fees, reinvested dividends). The IRS allows several methods for determining which shares you sold:
The wash sale rule under IRC Section 1091 disallows a capital loss if you purchase a substantially identical security within 30 days before or after the sale. The disallowed loss is added to the cost basis of the replacement shares. This rule applies across all your accounts (brokerage, IRA, spouse accounts). It does not apply to gains -- only losses.
Section 1031 like-kind exchanges allow deferral of capital gains on real property (but not stocks or personal property since 2018). The replacement property must be identified within 45 days and closed within 180 days. Section 1202 QSBS allows up to 100% exclusion of gain (up to $10 million or 10x basis) on qualified small business stock held for at least 5 years.
Learn more about capital gains taxes:
Official IRS guidance on capital gains taxation
Primary residence exclusion rules
This calculator provides estimates. Tax situations vary and you should consult a tax professional for advice on your specific situation.