Verified Tool

Capital Gains Tax Calculator 2025: Tax Estimator

Calculate 2025 capital gains tax liability instantly. Supports short-term, long-term, NIIT, and all state taxes for accurate results.

Quick Scenarios

Select a preset to populate the calculator

Investment Details

Long-term (Preferential Rates Apply)

Include wages, interest, etc. Used to determine tax bracket.

Tax Breakdown

Total Gain
$15,000
Estimated Tax
$4,245
28.3% Eff. Rate
Net Outcome
$20,755
Tax TypeRate / BracketAmount
Federal Long-Term15%-$2,250
State Tax (CA)13.3%-$1,995
Total Tax Liability-$4,245

Why Use Our 2025 Calculator?

Smart Tax Brackets

Automatically applies 2025 federal tax brackets (0%, 15%, 20%) based on your total income.

NIIT Prevention

Calculates the 3.8% Net Investment Income Tax to help high earners avoid surprises.

State Tax Ready

Includes tax rates for all 50 states to give you a true 'take home' profit estimate.

Holding Period Logic

Instantly switches between short-term (ordinary income) and long-term rates based on your selected months.

Complete Guide to Capital Gains Tax (2025)

By Jurica ŠinkoUpdated on November 13, 2025
Capital gains tax calculator showing 2025 tax rates and calculation results

Understanding capital gains tax is essential for any investor looking to maximize their returns. In 2025, the difference between short-term and long-term tax rates remains one of the most powerful tools in your financial arsenal, potentially saving you thousands of dollars on investment profits.

What IS Capital Gains Tax?

Capital gains tax is the fee you pay to the federal government when you sell an asset for a profit. This applies to stocks, bonds, crypto, real estate, precious metals, and even collectibles (though collectibles have their own special rate).

A critical distinction in the U.S. tax code is the holding period. The IRS rewards patience. If you hold an asset for more than a year before selling, you qualify for long-term capital gains rates, which are significantly lower than standard income tax rates.

The "One Year" Rule

  • Short-Term:Held for one year or less (365 days or fewer). Taxed as ordinary income (10% to 37%).
  • Long-Term:Held for more than one year (366 days+). Taxed at preferential rates (0%, 15%, or 20%).

2025 Capital Gains Tax Brackets

For the 2025 tax year, the IRS has adjusted the tax brackets for inflation. This is good news for investors, as the thresholds for the lower rates have increased. These rates apply to your net capital gain. See IRS Topic 409 for official details.

RateSingle FilersMarried Filing JointlyHead of Household
0%Up to $48,350Up to $96,700Up to $64,750
15%$48,351 – $533,400$96,701 – $600,050$64,751 – $566,700
20%Over $533,400Over $600,050Over $566,700

* Note: These income thresholds refer to your taxable income, including the capital gains themselves.

Hidden Tax: The Net Investment Income Tax (NIIT)

High earners face a surtax often overlooked in basic planning. The Net Investment Income Tax (NIIT) adds a 3.8% tax on investment income if your Modified Adjusted Gross Income (MAGI) exceeds:

  • $200,000 for Single filers
  • $250,000 for Married Filing Jointly

This means your effective top capital gains rate could actually be 23.8% (20% + 3.8%)! This applies to both short-term and long-term gains.

Crypto, Real Estate, and Special Rules

Deep Dive: Tax Loss Harvesting

Tax-loss harvesting is the practice of selling a security that has experienced a loss. By realizing this loss, you can offset taxes on both gains and income. The sold asset is then replaced by a similar one, maintaining the portfolio's optimal asset allocation and expected returns.

How the Math Works

Scenario Analysis

  • Capital Gains: You sold NVIDIA stock for a $20,000 profit.
  • Capital Losses: You sold a struggling bond fund for a $15,000 loss.
  • Net Gain: $5,000.

Instead of paying tax on $20,000, you only pay tax on $5,000.

The $3,000 Deduction Limit

If your losses exceed your gains, you can use the remaining loss to offset up to $3,000 of your ordinary income (wages) per year. Any excess loss beyond that carries forward to future tax years indefinitely.

Real Estate Capital Gains Exclusion (Section 121)

For most Americans, their home is their largest investment. Fortunately, the IRS provides a massive tax break when you sell your primary residence.

Single Filers

$250,000

Tax-free profit exclusion

Married Filers

$500,000

Tax-free profit exclusion

Ownership Test

2 of 5

Must own & live in home for 2 of last 5 years

Warning: This exclusion does NOT apply to investment properties or vacation homes, unless you convert them into your primary residence and meet the strict residency requirements.

Cryptocurrency

Crypto is taxed as property, not currency. Every trade (e.g., Bitcoin to Ethereum) is a taxable event. If you buy a coffee with Bitcoin, you technically owe capital gains tax on the difference between when you bought the BTC and when you spent it.

Real Estate (Section 121)

If you sell your primary home, you can exclude up to $250,000 (single) or $500,000 (married) of gain. Requirement: You must have owned and lived in the home for at least 2 of the last 5 years.

The "Wash Sale" Rule Danger

You cannot simply sell a stock at a loss to claim a tax deduction and then immediately buy it back. Under the Wash Sale Rule, if you buy "substantially identical" securities within 30 days before or after the sale, the loss is disallowed.

Note: As of early 2025, the Wash Sale Rule technically applies to stocks and securities. There has been ongoing debate about applying it strictly to cryptocurrency, so consult a CPA for the absolute latest ruling on crypto wash sales.

Strategic Tips to Lower Your Bill

1. Tax-Loss Harvesting

Offset your gains by selling losing positions. You can use losses to cancel out gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 against ordinary income.

2. Don't Forget State Taxes

Most states tax capital gains as ordinary income. High-tax states like California (up to 13.3%) and New York (up to 10.9%) can drastically reduce your net return. Nine states (like Florida, Texas, Nevada) have no state income tax on capital gains.

3. Hold for 366 Days

Waiting just one extra day to push your holding period over the one-year mark can cut your tax rate almost in half (e.g., from 37% to 20%).

How to Use This Calculator

Our calculator handles the complex interaction between your ordinary income and capital gains. Simply enter:

  1. Purchase Price: Your original cost basis.
  2. Sale Price: The final selling amount.
  3. Holding Period: How many months you owned the asset.
  4. Other Taxable Income: Your wages and other income (crucial for determining your bracket).
  5. State: Select your state to see the full picture.

Advanced Strategy: Tax Gain Harvesting

While most investors focus on loss harvesting, there is a powerful opposite strategy known as Tax Gain Harvesting. If you find yourself in the 0% capital gains bracket for a specific year (e.g., during a sabbatical, student year, or early retirement gap), you can intentionally sell winning investments to "realize" the gain at the 0% tax rate.

Pro Tip: Unlike the Wash Sale Rule (which bans buying back assets sold for a loss), there is no waiting period for gains. You can sell a stock to lock in the 0% tax gain and immediately buy it back seconds later. This "steps up" your cost basis for free, reducing your future tax liability.

Frequently Asked Questions

Do I pay capital gains tax on 401(k) or IRA sales?

No. Trades inside a tax-advantaged account like a 401(k) or IRA are not taxable events. You only pay taxes when you withdraw the money (for Traditional accounts) or no tax at all (for Roth accounts), regardless of capital gains.

How is cost basis calculated?

Cost basis is usually what you paid for the asset (including commissions). However, it can be adjusted for stock splits, dividends reinvested, or improvements made to real estate. "Adjusted Basis" is the final number used to calculate gain.

What about inheritance?

Inherited assets generally receive a "step-up in basis." This means the cost basis is reset to the fair market value on the date of the original owner's death. This often eliminates the capital gains tax liability for the heir on appreciation that occurred during the decedent's life.

About the Author

Jurica Šinko is a Finance Expert and CPA with over 15 years of experience in tax planning and investment management. He specializes in helping investors navigate complex tax codes to preserve wealth and minimize liability through strategic asset location and harvesting.

About the Author

Jurica Šinko

Finance Expert, CPA, MBA with 15+ years in corporate finance

Connect with Jurica

Common Capital Gains Questions

What is the capital gains tax rate for 2025?

For long-term hold (over 1 year), rates are 0%, 15%, or 20% depending on your taxable income. For 2025, the 0% rate applies up to $48,350 (single) or $96,700 (married). The 15% rate applies up to $533,400 (single) or $600,050 (married). Short-term gains are taxed at your ordinary income tax rate (10-37%).

How can I avoid capital gains tax?

Common strategies include: 1) Holding assets for over a year to qualify for lower long-term rates. 2) Tax-loss harvesting (selling losers to offset gains). 3) Using tax-advantaged accounts like IRAs or 401(k)s. 4) The Primary Residence Exclusion ($250k/$500k) for home sales. 5) Investing in Opportunity Zones.

Does my state charge capital gains tax?

Most states tax capital gains as ordinary income. However, nine states have no capital gains tax: Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming. California has the highest top rate at 13.3%.

What is the Net Investment Income Tax (NIIT)?

The NIIT is an additional 3.8% surtax on investment income for high earners. It kicks in if your Modified Adjusted Gross Income (MAGI) exceeds $200,000 (Single) or $250,000 (Married Filing Jointly). This is calculated on top of regular capital gains tax.

Are cryptocurrency gains taxable?

Yes. The IRS treats cryptocurrency as property. Every time you sell, trade, or spend crypto, it triggers a taxable event (capital gain or loss). You must report these transactions on Form 8949 and Schedule D.