Capital Gains Tax Calculator 2024–2025 – Estimate Short-Term & Long-Term Tax on Investments

Calculate your federal capital gains tax on stocks, real estate, crypto, and other investments. Enter your purchase price, sale price, holding period, and income to get your estimated tax instantly.

$
$
$
$

What Is Capital Gains Tax?

Capital gains tax is a federal tax on the profit you earn from selling a capital asset — such as stocks, bonds, real estate, cryptocurrency, or a business — for more than you paid for it. The taxable profit is called a capital gain, and it equals your sale price minus your original purchase price (called the cost basis) minus any selling expenses.

Capital gains tax is one of the most important taxes for investors and property owners to understand. Unlike regular income — which is taxed the year you earn it — capital gains are only taxed when you sell or "realize" the gain. This gives investors a powerful tool: the ability to defer taxes by simply holding assets longer.

The U.S. federal government taxes capital gains at different rates depending on how long you held the asset before selling. This is the critical distinction between short-term and long-term capital gains.

Short-Term vs. Long-Term Capital Gains Tax

The single most important factor in determining your capital gains tax rate is your holding period — how long you owned the asset before selling it.

Short-Term Capital Gains (Held 1 Year or Less)

If you sell an asset within 12 months of buying it, the profit is a short-term capital gain. The IRS taxes short-term gains as ordinary income — the same rates that apply to your wages and salary. For 2024–2025, ordinary income tax rates range from 10% to 37%. This makes short-term gains significantly more expensive from a tax perspective.

Long-Term Capital Gains (Held More Than 1 Year)

If you hold an asset for more than one year before selling, the profit qualifies as a long-term capital gain and is taxed at special preferential rates: 0%, 15%, or 20%. These rates are substantially lower than ordinary income rates, which is why financial advisors consistently recommend holding investments for at least a year when possible.

Capital Gains Tax Rates 2024 & 2025

Long-Term Capital Gains Tax Rates – 2025

Filing Status0% Rate15% Rate20% Rate
SingleUp to $48,350$48,351 – $533,400Over $533,400
Married Filing JointlyUp to $96,700$96,701 – $600,050Over $600,050
Married Filing SeparatelyUp to $48,350$48,351 – $300,000Over $300,000
Head of HouseholdUp to $64,750$64,751 – $566,700Over $566,700

Long-Term Capital Gains Tax Rates – 2024

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
Married Filing SeparatelyUp to $47,025$47,026 – $291,850Over $291,850
Head of HouseholdUp to $63,000$63,001 – $551,350Over $551,350

Short-Term Capital Gains (Ordinary Income) Tax Rates 2025

RateSingleMarried Filing Jointly
10%Up to $11,925Up to $23,850
12%$11,926 – $48,475$23,851 – $96,950
22%$48,476 – $103,350$96,951 – $206,700
24%$103,351 – $197,300$206,701 – $394,600
32%$197,301 – $250,525$394,601 – $501,050
35%$250,526 – $626,350$501,051 – $751,600
37%Over $626,350Over $751,600

How to Calculate Capital Gains Tax – Step by Step

  1. Determine your cost basis: This is what you originally paid for the asset, including purchase fees, commissions, and improvements (for real estate).
  2. Calculate your gross gain: Sale Price − Cost Basis = Gross Capital Gain.
  3. Subtract selling expenses: Agent commissions, closing costs, transaction fees reduce your taxable gain.
  4. Determine holding period: Did you hold the asset for more or less than one year? This determines short-term vs. long-term classification.
  5. Find your total taxable income: Add your capital gain to your other income for the year.
  6. Apply the correct tax rate: Use the brackets above based on your filing status and total income.
  7. Check for NIIT: If your modified AGI exceeds $200,000 (single) or $250,000 (married), add 3.8% on the lesser of your net investment income or the excess over the threshold.

Example: Single filer, $80,000 income, sells stock bought for $10,000 now worth $25,000 after 2 years. Capital gain = $15,000. Total income becomes $95,000. Long-term rate = 15%. Tax = $15,000 × 15% = $2,250.

Capital Gains Tax on Stocks

Stocks are the most common asset subject to capital gains tax. When you sell shares for more than you paid, the profit is taxed as a capital gain. Key rules for stocks:

  • Qualified dividends are taxed at long-term capital gains rates (0%, 15%, or 20%), not ordinary income rates.
  • Tax-loss harvesting: You can sell losing investments to offset capital gains. Up to $3,000 in net losses can be deducted against ordinary income annually; excess losses carry forward.
  • Wash sale rule: You cannot repurchase the same or substantially identical stock within 30 days before or after selling at a loss and still claim the loss.
  • Mutual funds and ETFs may distribute capital gains to shareholders annually, even if you didn't sell shares.
  • Stock options (ISOs vs. NQSOs) have different tax treatments — consult a tax advisor.

Capital Gains Tax on Real Estate

Real estate capital gains can be complex due to depreciation recapture, the home sale exclusion, and state taxes. Key rules:

  • Primary residence exclusion: If you've lived in your home for at least 2 of the last 5 years, you can exclude up to $250,000 of gains (single) or $500,000 (married filing jointly) from taxation.
  • Depreciation recapture: For rental property, you must recapture depreciation previously deducted, taxed at a maximum 25% rate.
  • Cost basis improvements: Money spent on home improvements (new roof, addition, kitchen remodel) increases your cost basis and reduces your taxable gain.
  • 1031 Exchange: Selling one investment property and reinvesting proceeds into a "like-kind" property can defer capital gains tax.
  • Inherited property: Heirs receive a "stepped-up" cost basis to fair market value at date of death, eliminating gains that accrued during the decedent's lifetime.

Capital Gains Tax on Cryptocurrency

The IRS treats cryptocurrency as property, not currency. Every time you sell, trade, or use crypto to buy goods or services, it's a taxable event. Key rules:

  • Crypto held over one year qualifies for long-term rates (0%, 15%, 20%).
  • Crypto-to-crypto trades (e.g., Bitcoin to Ethereum) are taxable events — you must report gains or losses.
  • Mining and staking rewards are taxed as ordinary income when received, then as capital gains when sold.
  • NFT sales are generally taxed as collectibles at a maximum 28% rate for long-term gains.
  • The wash sale rule does not currently apply to crypto (though proposed legislation may change this).

Net Investment Income Tax (NIIT) – 3.8% Surtax

High-income earners may owe an additional 3.8% Net Investment Income Tax on top of regular capital gains rates. This applies to the lesser of:

  • Your net investment income (capital gains, dividends, interest), or
  • The amount your modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly).

This means the maximum effective federal long-term capital gains rate is 23.8% (20% + 3.8%) for very high earners. Short-term gains for high earners can reach 40.8% (37% + 3.8%).

How to Reduce Capital Gains Tax Legally

  • Hold assets longer than 1 year to qualify for preferential long-term rates — potentially saving 10–20% in taxes.
  • Tax-loss harvesting: Sell losing positions to offset gains. Net losses up to $3,000/year offset ordinary income; carry forward excess.
  • Maximize tax-advantaged accounts: 401(k), IRA, and Roth IRA accounts shelter investments from capital gains tax. Roth accounts grow completely tax-free.
  • Use the 0% rate strategically: If your total income falls below the 0% long-term capital gains threshold, you can realize gains completely tax-free.
  • Charitable giving: Donating appreciated assets (stocks, real estate) to charity avoids capital gains tax and gives you a deduction for the full fair market value.
  • Opportunity Zones: Investing capital gains in Qualified Opportunity Zone funds can defer and potentially reduce tax on those gains.
  • 1031 Exchange (real estate): Roll proceeds from one investment property into another to defer capital gains indefinitely.
  • Time your sales: If you expect lower income next year, delay selling to fall in a lower bracket. If you expect higher income, consider selling sooner.
  • Gift appreciated assets: Giving appreciated stock to children or lower-income family members who will pay 0% capital gains tax can be tax-efficient (within annual gift limits).

State Capital Gains Taxes

In addition to federal capital gains tax, most states tax capital gains as ordinary income at rates from 2% to 13.3%. Nine states have no income tax and therefore no state capital gains tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming. California has the highest combined capital gains tax rate in the U.S. — up to 37% federal + 13.3% state = over 50% for short-term gains for top earners. Our calculator covers federal tax only; always add your state rate for total liability.

Frequently Asked Questions About Capital Gains Tax

Q: Do I have to pay capital gains tax if I reinvest the money?
A: For most investments, yes. Unless the asset is in a tax-advantaged account (401k, IRA) or you use a 1031 exchange for real estate, reinvesting does not defer capital gains tax. You owe tax in the year you sell, regardless of what you do with the proceeds.

Q: What is the capital gains tax rate for 2025?
A: Long-term rates are 0%, 15%, or 20% depending on filing status and income. Singles earning up to $48,350 pay 0%; $48,351–$533,400 pay 15%; above $533,400 pay 20%. Short-term gains are taxed as ordinary income at 10%–37%.

Q: How do I avoid capital gains tax on stocks?
A: Hold stocks over 1 year for lower rates, keep stocks in a Roth IRA for tax-free growth, harvest losses to offset gains, or stay below the 0% income threshold. You cannot legally avoid capital gains tax entirely on taxable accounts.

Q: Is there a capital gains tax exemption on home sales?
A: Yes. Singles can exclude up to $250,000 and married couples up to $500,000 of home sale gains, provided you owned and lived in the home for at least 2 of the past 5 years. Gains above the exclusion are taxable.

Q: Do I pay capital gains tax on inherited assets?
A: Inherited assets receive a stepped-up cost basis to fair market value at the date of death. You only pay capital gains tax on appreciation that occurs after you inherit the asset, not on gains during the deceased's lifetime.

Q: What happens if I have a capital loss?
A: Capital losses first offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 against ordinary income per year. Remaining losses carry forward to future tax years indefinitely.

Q: Does the capital gains tax apply to my 401(k)?
A: No. Investments inside a 401(k) or traditional IRA grow tax-deferred. You pay ordinary income tax on withdrawals, not capital gains tax. Roth accounts are completely tax-free on qualified withdrawals.

Q: How is capital gains tax reported?
A: Report capital gains and losses on IRS Schedule D and Form 8949. Your broker will send Form 1099-B showing proceeds from asset sales. Always cross-check with your own records.

Use the capital gains tax calculator above to estimate your federal tax liability instantly. Enter your purchase price, sale price, income, and filing status to see your gain, estimated tax, and net profit after tax. No account required.

📊 LT Capital Gains Rates
2025 (Single Filer)
Up to $48,3500%
$48,351–$533,40015%
Over $533,40020%
+ NIIT (if AGI > $200K)
Surtax3.8%