Capital gains tax is the single biggest tax most investors will pay — and it’s also the most avoidable with the right strategy. New to investing? Start with our How to Start Investing Guide. This guide covers 2026 rates, how gains are calculated, and legal strategies that can save you thousands or even eliminate your capital gains tax entirely.

2026 Long-Term Capital Gains Tax Rates

Long-term capital gains (assets held more than 1 year):

Tax Rate Single Filer Married Filing Jointly Head of Household
0% Up to $48,350 Up to $96,700 Up to $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

Net Investment Income Tax (NIIT): An additional 3.8% surtax applies to investment income if your modified AGI exceeds $200,000 (single) or $250,000 (married). This means the effective top rate is 23.8%.

Short-Term vs. Long-Term: Why It Matters

Factor Short-Term (<1 year) Long-Term (1+ year)
Tax rate 10-37% (ordinary income) 0%, 15%, or 20%
Example: $50K gain, $100K salary ~$11,000 tax ~$7,500 tax
Example: $100K gain, $200K salary ~$32,000 tax ~$15,000 tax
Planning value Low Very high

The 366-day rule: Selling an investment on day 365 means paying up to 37% tax. Waiting one more day drops the rate to 0-20%. That single day of patience can save thousands.

How to Calculate Your Capital Gains

Formula: Sale Price − Cost Basis = Capital Gain (or Loss)

Term What It Means
Sale price What you received for the asset
Cost basis What you paid (purchase price + fees + improvements)
Capital gain Profit — taxed at the rates above
Capital loss Loss — can offset gains + $3,000 of ordinary income
Wash sale Selling at a loss and buying same/similar asset within 30 days — loss is DISALLOWED

Example Calculation

Amount
Purchased 500 shares at $40 $20,000
Plus: trading commission $0
Cost basis $20,000
Sold 500 shares at $75 $37,500
Capital gain $17,500
Tax (15% long-term rate) $2,625

Use our Capital Gains Tax Calculator for your specific situation.

Capital Gains Tax by State

State capital gains taxes add significantly to your total bill:

State Capital Gains Tax Rate Combined Federal+State (15% bracket)
California 13.3% 28.3%
New York 10.9% 25.9%
New Jersey 10.75% 25.75%
Oregon 9.9% 24.9%
Minnesota 9.85% 24.85%
Hawaii 11.0% 26.0%
Washington 7.0% (long-term only) 22.0%
Texas 0% 15.0%
Florida 0% 15.0%
Nevada 0% 15.0%
Tennessee 0% 15.0%
Wyoming 0% 15.0%

States with no income tax = no state capital gains tax. See Capital Gains Tax by State and States With No Income Tax.

Real Estate Capital Gains

Primary Residence Exclusion

Filing Status Exclusion Amount Live-In Requirement
Single $250,000 2 of last 5 years
Married filing jointly $500,000 2 of last 5 years

Example: Married couple buys home for $400,000, sells for $850,000. Gain = $450,000. Tax owed = $0 (under $500K exclusion).

Investment Property Capital Gains

No exclusion applies. Investment properties are subject to:

  • Capital gains tax (0-20% on long-term gains)
  • Depreciation recapture (25% on previously deducted depreciation)
  • Net Investment Income Tax (3.8% for high earners)
  • State income tax (varies)

1031 Exchange: Allows deferral of capital gains tax by reinvesting proceeds into a like-kind property within 180 days. No limit on how many times you can exchange.

See Capital Gains Tax on Real Estate.

Cryptocurrency Capital Gains

The IRS treats crypto as property. Every sale, trade, or use triggers a taxable event:

Crypto Event Taxable? Type
Buy crypto with USD No Not a taxable event
Hold crypto No Not a taxable event
Sell crypto for USD Yes Capital gain/loss
Trade crypto for crypto Yes Capital gain/loss
Buy goods with crypto Yes Capital gain/loss
Receive crypto as payment Yes Ordinary income
Mining/staking rewards Yes Ordinary income
Airdrop/fork Yes Ordinary income

See Cryptocurrency Tax Guide and I Forgot to Report Crypto.

Tax-Loss Harvesting

Tax-loss harvesting means selling investments at a loss to offset capital gains:

Scenario Without Harvesting With Harvesting
Capital gains $30,000 $30,000
Capital losses realized $0 ($18,000)
Net taxable gain $30,000 $12,000
Tax (15% rate) $4,500 $1,800
Tax savings $2,700

Rules:

  • You can offset unlimited gains with losses
  • Excess losses offset up to $3,000 of ordinary income per year
  • Remaining losses carry forward indefinitely
  • Watch the wash sale rule: Can’t buy the same or “substantially identical” security within 30 days before or after the sale

See Tax-Loss Harvesting Guide and Tax-Efficient Investing.

Strategies to Reduce Capital Gains Tax

Strategy How It Works Potential Savings
Hold 1+ year Qualify for 0/15/20% rate vs. 10-37% Major
Tax-loss harvesting Offset gains with losses $1K-$10K+/year
Use retirement accounts No capital gains in 401(k)/IRA All gains tax-free or deferred
0% bracket harvesting Sell gains when income is low $0 tax on gains
Donate appreciated stock Avoid gains + get deduction Double benefit
Invest in spouse’s lower bracket Hold gains in lower-income spouse’s accounts Lower rate
Primary residence exclusion $250K/$500K exclusion on home sale Enormous
1031 exchange Defer investment property gains Full deferral
Qualified Opportunity Zones Invest gains in QOZ fund Deferral + partial exclusion
Step-up in basis at death Heirs inherit at current value Eliminates lifetime gains

Stock Options and RSU Capital Gains

Compensation Type When Taxed How Taxed
RSUs At vesting (as ordinary income) Ordinary income at vest; capital gains on subsequent appreciation
ISOs At sale (if qualified) Long-term capital gains if held 2+ years from grant, 1+ year from exercise
NSOs At exercise Spread taxed as ordinary income; subsequent gains are capital
ESPP At sale Qualifying disposition: mix of ordinary + capital gains

See RSU Tax Guide and Stock Options Tax Calculator.

Quick Reference Table

Question Answer
Long-term rate (most people) 15%
Short-term rate Your ordinary income rate (10-37%)
Hold period for long-term More than 1 year (366+ days)
Home sale exclusion $250K single / $500K married
Loss deduction limit Offset all gains + $3,000 ordinary income
Crypto taxation Same as stocks (property)
When to report Tax return for the year you sold
Wash sale window 30 days before/after sale

The Bottom Line

The two most important capital gains tax strategies are free: hold investments for more than one year and use tax-advantaged accounts. Beyond that, tax-loss harvesting, strategic timing of sales around income levels, and the $250K/$500K home sale exclusion can eliminate or dramatically reduce your capital gains bill. Don’t let taxes drive your investment decisions entirely — but a 30-second check of your holding period before selling can save you thousands. If your portfolio has grown significantly, consult a CPA once a year to plan your sales strategically.

WealthVieu
Written by WealthVieu

WealthVieu researches and writes data-driven personal finance guides using primary sources including the IRS, Bureau of Labor Statistics, Federal Reserve, and Census Bureau.

The content on Wealthvieu is for informational purposes only and should not be considered financial, tax, or investment advice. Consult a qualified professional before making financial decisions. Full disclaimer · Editorial policy