Free 2025 tool

Capital Gains Tax Calculator

Estimate your federal and state capital gains tax for 2025. Covers stocks, real estate, and other investments. Calculates short-term vs long-term rates plus the 3.8% Net Investment Income Tax.

Your Investment Details

Under 1 year = short-term; 1 year or more = long-term

Your Tax Estimate

Enter your investment details on the left to see your estimated capital gains tax.

Advertisement
Inherited property? You may qualify for a stepped-up cost basis that resets your taxable gain to zero. Use our Step-Up Basis Calculator to see how much tax you could save.
Advertisement

How Capital Gains Tax Works in the US (2025)

A capital gain is the profit you make when you sell a capital asset — a stock, mutual fund, real estate, cryptocurrency, or other investment — for more than you paid for it. The difference between what you paid (your cost basis) and what you received (the sale price) is your taxable gain.

The IRS taxes capital gains at two different rates depending on how long you owned the asset. Assets sold after holding them for one year or more qualify for the preferential long-term rates (0%, 15%, or 20%). Assets sold in under one year are taxed as ordinary income — at your regular marginal tax bracket, which can be as high as 37% for high earners. This distinction is one of the most powerful levers in personal tax planning.

Your cost basis includes not just the original purchase price but also improvements you made to the property. For a rental property, for example, a new roof or kitchen remodel can be added to your basis, reducing your eventual gain — and your tax bill. Selling costs like real estate commissions can also reduce the net proceeds you report as a gain.

Advertisement

Short-Term vs Long-Term Capital Gains: The Key Difference

The one-year holding period is a bright line that separates two very different tax treatments:

Short-Term

Held under 1 year

Taxed at ordinary income rates (10%–37%). Treated exactly like wages from a job. No special treatment.

Long-Term

Held 1 year or more

Taxed at 0%, 15%, or 20%. Most taxpayers pay 15% — significantly less than their ordinary income rate.

The practical impact is enormous. A single taxpayer earning $100,000 who sells stock for a $50,000 gain will owe roughly $11,000 in short-term tax (at 22%) but only $7,500 in long-term tax (at 15%). Waiting just one day past the one-year mark can save thousands of dollars.

Capital Gains Tax Rates for 2025

The IRS adjusts income thresholds for inflation each year. The following 2025 brackets apply to federal long-term capital gains tax:

Long-Term Capital Gains — Single Filers (2025)

Tax RateTaxable Income (Single)
0%$0 – $47,025
15%$47,026 – $518,900
20%Over $518,900

Long-Term Capital Gains — Married Filing Jointly (2025)

Tax RateTaxable Income (MFJ)
0%$0 – $94,050
15%$94,051 – $583,750
20%Over $583,750

Long-Term Capital Gains — Head of Household (2025)

Tax RateTaxable Income (HOH)
0%$0 – $63,000
15%$63,001 – $551,350
20%Over $551,350

Additionally, taxpayers with Modified Adjusted Gross Income (MAGI) above $200,000 (single) or $250,000 (married filing jointly) may owe an extra 3.8% Net Investment Income Tax (NIIT) on their investment income, including capital gains. This means the effective top federal rate on long-term gains can reach 23.8%.

Advertisement

Capital Gains Tax on Inherited Property

One of the most valuable tax provisions in US law is the step-up in cost basis for inherited assets. When you inherit property — a home, stocks, or other investments — your cost basis is automatically "stepped up" to the fair market value on the date of the decedent's death, not what the original owner paid for it decades ago.

This means if your parent bought stock for $5,000 and it was worth $80,000 when they died, your cost basis becomes $80,000. If you sell immediately for $80,000, you owe zero capital gains tax. If you wait and sell for $90,000, you only owe tax on the $10,000 appreciation that occurred after the date of death — and because you inherited it, it automatically qualifies as long-term regardless of how long you hold it.

This step-up provision is one of the most important planning tools in estate planning and is especially relevant when inheriting property as part of an Islamic inheritance distribution. Use our Step-Up in Basis Calculator to estimate your adjusted cost basis and tax savings.

Islamic estate note: Capital gains tax on inherited assets is treated as a debt of the estate or a personal liability of the heir who sells. Under Islamic inheritance law, the estate is divided after debts and taxes are settled. See how inherited assets interact with your estate in our Inheritance Tax Calculator.

How to Reduce Your Capital Gains Tax Legally

There are several well-established, fully legal strategies to minimize capital gains tax:

1. Hold for More Than One Year

The simplest strategy: wait until you have held the asset for at least 366 days before selling. You convert a short-term gain taxed at up to 37% into a long-term gain taxed at 0%, 15%, or 20%. The longer hold gives you access to the preferential rate and is the single most impactful thing most investors can do.

2. Tax-Loss Harvesting

If you have investments that have declined in value, you can sell them at a loss to offset your capital gains. Capital losses first offset capital gains dollar-for-dollar. If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income each year, and carry forward the remaining losses indefinitely. This strategy is especially valuable in a volatile market year.

3. The 1031 Exchange for Real Estate

Real estate investors can defer capital gains tax entirely by selling a property and reinvesting the proceeds into a "like-kind" property of equal or greater value within the IRS's strict timelines (45 days to identify, 180 days to close). A 1031 exchange does not eliminate the tax — it defers it until you eventually sell without reinvesting. Some investors chain 1031 exchanges for decades, and if property passes to heirs, the accumulated gains may be wiped out by the step-up in basis.

4. Primary Residence Exclusion ($250k / $500k)

If you sell a home that has been your primary residence for at least two of the last five years, you can exclude up to $250,000 in capital gains from tax (up to $500,000 if married filing jointly). This is one of the largest tax breaks available to ordinary households and applies even if you have used the exclusion before, as long as two years have passed since the last time.

5. Donate Appreciated Assets to Charity

If you donate appreciated stock or real estate directly to a qualified charity — rather than selling and donating the cash — you avoid the capital gains tax entirely and can deduct the full fair market value (subject to AGI limits). This is more tax-efficient than selling and donating the after-tax proceeds.

6. Use Tax-Advantaged Accounts

Investing through a Roth IRA, Traditional IRA, or 401(k) shelters your gains from capital gains tax entirely within the account. Roth accounts provide the most powerful outcome: qualified withdrawals are completely tax-free, meaning decades of compounding gains are never taxed at all.

Advertisement

Capital Gains Tax by State (2025)

Most states that have an income tax also tax capital gains — usually at the same rate as ordinary income, with no preferential rate for long-term gains. This means state taxes can add substantially to your federal bill. Here are the states with the most significant capital gains tax burdens:

StateCapital Gains RateNotes
California13.3%Highest in the nation; no preferential rate
New York10.9%Plus NYC local tax up to 3.876% if applicable
New Jersey10.75%Taxed as ordinary income
Oregon9.9%Top marginal rate applies to large gains
Minnesota9.85%No long-term preference
Vermont9.0%Top bracket
Most other states3% – 7%Varies by income; some have flat rates
Texas, Florida, Nevada, Washington, Wyoming, Alaska, South Dakota, Tennessee0%No state income or capital gains tax

Note: Washington state has no general income tax but introduced a 7% capital gains tax on gains above $250,000 (as of 2023). Tennessee has no income tax on wages but previously taxed investment income; as of 2021 that tax was eliminated. Always verify current rates with your state's revenue department.

When federal and state taxes are combined, a California resident with a large short-term gain could face an effective total rate exceeding 50%. This makes timing and planning especially important for high-income investors in high-tax states.

Disclaimer: This calculator provides estimates for educational purposes only and does not constitute tax, legal, or financial advice. Tax laws change frequently. The rates shown reflect 2025 federal tax brackets and illustrative state rates. Your actual tax liability may differ based on your specific circumstances, deductions, alternative minimum tax (AMT), depreciation recapture, and other factors. Always consult a qualified tax professional or CPA before making investment or tax decisions.
Advertisement