Capital Gains Calculator 2026 – Short-Term & Long-Term Tax Estimator

Estimate capital gains taxes on stocks, crypto, real estate, and other investments. Enter purchase price, sale price, holding period, and your income to see exact tax liability and net profit after taxes.

What is Capital Gains Tax and How Does It Work?

Capital gains tax is the tax you pay on profits from selling assets such as stocks, bonds, cryptocurrency, real estate, or mutual funds. The gain is calculated as the difference between your sale price and your purchase price (cost basis). The tax rate depends on two key factors: how long you held the asset (holding period) and your total taxable income. Our capital gains calculator helps you estimate exactly what you'll owe to the IRS after selling investments.

📊 2026 Long-Term Capital Gains Tax Rates:

Filing Status0% Rate15% Rate20% Rate
SingleUp to $47,025$47,026 - $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,051 - $583,750Over $583,750
Head of HouseholdUp to $63,000$63,001 - $551,350Over $551,350

Short-Term vs Long-Term Capital Gains: Key Differences

Short-term capital gains apply to assets held for one year or less. These are taxed as ordinary income at your marginal tax rate (10%, 12%, 22%, 24%, 32%, 35%, or 37%). Long-term capital gains apply to assets held for more than one year. These receive preferential tax rates: 0%, 15%, or 20% for most taxpayers — significantly lower than ordinary income rates. For example, a high-income earner in the 37% bracket pays only 20% on long-term gains, saving 17% on taxes.

How to Calculate Capital Gains Tax: Step-by-Step

  • Step 1: Calculate your total gain: Sale Price - Purchase Price - Fees = Gross Capital Gain.
  • Step 2: Apply any exemptions (e.g., primary home exclusion up to $250,000/$500,000).
  • Step 3: Determine holding period — short-term (under 1 year) or long-term (over 1 year).
  • Step 4: Identify your taxable income and filing status to find applicable tax rate.
  • Step 5: Multiply taxable gain by tax rate to estimate tax owed.
  • Step 6: Subtract tax from proceeds to get net after-tax profit.

Capital Gains on Different Asset Types

  • Stocks & ETFs: Standard capital gains rules apply. Dividend reinvestment increases cost basis.
  • Cryptocurrency: IRS treats crypto as property. Selling, trading, or spending crypto triggers capital gains tax.
  • Real Estate: Primary residence exclusion ($250k/$500k) can eliminate tax. Investment property has no exclusion.
  • Collectibles (art, gold, antiques): Long-term gains taxed at 28% maximum (higher than standard 20%).
  • Mutual Funds: Capital gains distributions are taxable even if reinvested.
  • Business Sale: May qualify for Section 1202 exclusion (up to $10M or 10x basis).

Primary Home Sale Exclusion (Section 121)

If you've owned and lived in your home for at least 2 of the last 5 years, you can exclude up to $250,000 of capital gains ($500,000 for married couples filing jointly). This is one of the most valuable tax breaks for homeowners. For example, if you bought a home for $300,000 and sold for $700,000, your gain is $400,000. Married filing jointly: $400,000 - $500,000 exclusion = $0 taxable gain. Our calculator applies this exclusion automatically when selected.

2026 Tax Brackets for Short-Term Gains

Tax RateSingle IncomeMarried Joint Income
10%$0 - $11,600$0 - $23,200
12%$11,601 - $47,150$23,201 - $94,300
22%$47,151 - $100,525$94,301 - $201,050
24%$100,526 - $191,950$201,051 - $383,900
32%$191,951 - $243,725$383,901 - $487,450
35%$243,726 - $609,350$487,451 - $731,200
37%Over $609,350Over $731,200

How to Reduce Capital Gains Tax Legally

  • Hold assets over 1 year: Long-term rates are much lower than short-term ordinary income rates.
  • Tax-loss harvesting: Sell losing investments to offset gains. Up to $3,000 can offset ordinary income.
  • Use retirement accounts: IRAs and 401(k)s grow tax-deferred; Roth accounts have tax-free withdrawals.
  • Leverage primary home exclusion: Up to $500k tax-free gain for married couples.
  • Donate appreciated stock: Avoid capital gains tax and claim charitable deduction for full value.
  • Consider Opportunity Zones: Invest gains in qualified opportunity funds to defer or reduce tax.
  • Time sales to lower-income years: Realize gains when your income is lower to qualify for 0% bracket.

State Capital Gains Taxes

Most states also tax capital gains as ordinary income. States without capital gains tax include: Florida, Texas, Nevada, Washington, Wyoming, South Dakota, Tennessee, and Alaska. California and New York have high state capital gains taxes (up to 13.3% and 10.9% respectively). Our calculator focuses on federal taxes — consult your state tax agency for state liability.

Frequently Asked Questions About Capital Gains Calculator

Q: Do I pay capital gains tax if I reinvest the proceeds?
A: Yes. Reinvesting does NOT avoid capital gains tax. The tax is triggered at the time of sale regardless of what you do with proceeds.

Q: What is the capital gains tax on crypto?
A: Same as stocks. Short-term (under 1 year) = ordinary income rates. Long-term (over 1 year) = 0%/15%/20%.

Q: How much capital gains is tax-free for low-income earners?
A: Single filers with income under $47,025 pay 0% on long-term capital gains in 2026 — completely tax-free up to that threshold.

Q: What is the net investment income tax (NIIT)?
A: An additional 3.8% tax on investment income for high earners (MAGI over $200k single / $250k married). Not included in basic calculator.

Q: Can I deduct capital losses?
A: Yes. Capital losses offset capital gains dollar-for-dollar. Excess losses up to $3,000 can offset ordinary income yearly.

Q: What is the holding period start date?
A: The day after you acquire the asset. For example, buy on Jan 15, holding period starts Jan 16. Sell on Jan 15 next year = short-term (364 days).

Q: Does selling a rental property trigger capital gains?
A: Yes. Depreciation recapture (taxed at 25%) plus capital gains tax on remaining profit. No primary home exclusion for rentals.

Use our capital gains calculator before selling any investment — stocks, crypto, real estate, or business assets. Plan your sales strategically to minimize taxes and maximize after-tax returns. Always consult a tax professional for personalized advice.

📈 2026 LONG-TERM RATES
0%: Income under $47k
15%: Income $47k-$519k
20%: Income over $519k
Short-term = Ordinary rates
(10% to 37%)
💡 TAX SAVING TIPS