Capital Gain Tax Calculator 2026

Need a fast, accurate capital gains tax calculator? You’re in the right place. Finexnews built this free federal capital gains tax calculator for US investors, homeowners, and heirs — covering every major asset class and both tax years.

Whether you’re calculating capital gain taxes on stocks you’re about to sell, using our capital gains tax calculator USA to estimate what you’ll owe after a home sale, or trying to understand your capital gains calculator 2025 results before filing — this tool does the heavy lifting in seconds.

Enter your purchase price, sale price, and dates. We handle the brackets, the NIIT, the §121 exclusion, loss carryforwards, and the 2024 vs. 2025 IRS bracket differences automatically.

No login. No spreadsheet. No guesswork.

Capital Gains Tax Calculator

2024 & 2025  ·  Stocks  ·  Crypto  ·  Real Estate  ·  Collectibles

$
$
$
%

What Is a Capital Gains Tax? (And Why You Need a Capital Gain Taxes Calculator)

A capital gain is the profit you earn when you sell an asset for more than what you originally paid. The IRS taxes that profit — and the exact amount you owe depends on two key variables: how long you held the asset and your total taxable income for the year.

This capital gains tax calculator USA covers every common taxable asset:

  • Stocks, ETFs, and mutual funds — sold through any US brokerage
  • Cryptocurrency — Bitcoin, Ethereum, and all altcoins (the IRS treats crypto as property)
  • Real estate — investment properties, vacation homes, and second residences
  • Your primary home — often partially or fully excluded under the §121 rule
  • Inherited property — subject to special stepped-up basis rules (see Section 4)
  • Collectibles — art, antiques, rare coins, stamps, wine, and precious metals

Using a capital gain taxes calculator before you sell gives you a clear picture of your true after-tax return — and often reveals opportunities to time the sale more favorably. A difference of just one day in your holding period can mean the difference between a 37% rate and a 20% rate.

Short-Term vs. Long-Term Capital Gains: The Most Important Number in Any Capital Gains Calculator

The single factor that most dramatically affects your tax bill is your holding period — the number of calendar days between purchase and sale.

Short-Term Capital Gains (Held ≤ 365 Days)

Assets sold within one year of purchase produce short-term capital gains, taxed at your ordinary income rate — the same brackets that apply to your wages and salary. In 2025, that means rates from 10% to 37%.

Long-Term Capital Gains (Held > 365 Days)

Hold the asset for more than one year (at least 366 calendar days) and your gain qualifies for preferential long-term rates: 0%, 15%, or 20%. For most middle-income investors, that’s 15% — roughly half the short-term rate.

Capital Gains Tax Rate 2025 — Calculator Reference Table

Use this table alongside our capital gains tax rate 2025 calculator to understand which rate applies to your situation:

Filing Status0% Rate Up To15% Rate Up To20% Rate Above
Single$48,350$533,400$533,400
Married Filing Jointly$96,700$600,050$600,050
Head of Household$64,750$566,700$566,700
Married Filing Separately$48,350$300,000$300,000

Source: IRS Revenue Procedure 2024-40 — used in our 2025 capital gains tax calculator

Capital Gain Calculator 2024 — Tax Rate Reference Table

For assets sold in tax year 2024, our capital gain calculator 2024 uses the following IRS-official thresholds:

Filing Status0% Rate Up To15% Rate Up To20% Rate Above
Single$47,025$518,900$518,900
Married Filing Jointly$94,050$583,750$583,750
Head of Household$63,000$551,350$551,350
Married Filing Separately$47,025$291,850$291,850

Source: IRS Revenue Procedure 2023-34 — used in our capital gains tax calculator 2024


💡 2025 Capital Gains Tax Calculator Tip: The brackets shift upward each year due to inflation adjustments. If you’re planning a sale near a bracket threshold, running both the capital gains calculator 2025 and the 2024 version side by side helps you decide the optimal tax year to close the transaction.

Example: An investor with $85,000 in ordinary income selling stock with a $50,000 long-term gain pays 15% on the entire gain in 2025 (total income: $135,000 — below the $533,400 threshold). That’s $7,500 in federal capital gains tax. Had they earned $5,000 more in ordinary income, the answer would be the same — but running the full capital gains taxes calculator with NIIT ensures they’re not surprised by the 3.8% surcharge at higher income levels.

── How the Federal Capital Gains Tax Calculator Works ─────

How Our Federal Capital Gains Tax Calculator Calculates Your Tax

This capital gain tax calculator and capital gains taxes calculator performs seven distinct calculations in sequence. Here’s exactly what’s happening under the hood:

Step 1 — Sale Proceeds

Sale Proceeds = Sale Price × Number of Shares (or 1 for real estate)

Step 2 — Adjusted Cost Basis

Adjusted Basis = (Purchase Price × Shares) + Improvements + Legal Fees + Commissions + Other Costs

Your basis isn’t just what you paid. Every dollar of qualified improvement, legal fee, and commission you add directly reduces your taxable gain. Real estate sellers especially benefit from tracking these carefully — a $60,000 kitchen renovation can save thousands in tax.

Step 3 — Gross Gain

Gross Gain = Sale Proceeds − Adjusted Basis

Step 4 — §121 Exclusion (Real Estate Primary Residences)

Taxable Gain = Gross Gain − §121 Exclusion (if eligible)

Single homeowners can exclude up to $250,000. Married homeowners filing jointly can exclude up to $500,000. Eligibility requires owning and living in the home for 2 of the last 5 years.

Step 5 — Federal Tax Rate

Short-term: Uses the bracket stacking method — your gain is layered on top of ordinary income and taxed at the marginal rates it occupies. Long-term: Your rate (0%, 15%, or 20%) is determined by where total income (ordinary + gain) falls in the LTCG thresholds from Step 2. Collectibles: Long-term gains capped at 28% per IRC §1(h)(5).

Step 6 — Net Investment Income Tax (NIIT)

NIIT = 3.8% × min(Net Gain, MAGI − Threshold)

Thresholds: $200,000 Single · $250,000 MFJ · $125,000 MFS · $200,000 HOH

Step 7 — After-Tax Proceeds

After-Tax Proceeds = Sale Proceeds − Basis Adjustments − Total Tax

This is your real, spendable result after the IRS takes its share.

Capital Gains Tax Rules by Asset Type

Stocks, ETFs, and Mutual Funds

Standard capital gains rules apply. The holding period clock starts the day after purchase and ends on the day of sale. For fractional shares or dividend reinvestment plans (DRIPs), each lot has its own holding period and basis. Our calculator handles single-lot transactions — for multi-lot calculations, track each lot separately.

Wash Sale Warning: Selling at a loss and repurchasing the same or substantially identical security within 30 days voids the loss deduction under IRC §1091.

Cryptocurrency

The IRS classifies crypto as property (IRS Notice 2014-21), not currency. That means every sale, trade, swap, or conversion is a taxable event. Receiving crypto as payment for services is ordinary income — only the appreciation from that point forward is a capital gain. Use this calculator for each individual sale transaction.

Capital Gains Tax Calculator — Real Estate

This tool functions as a full capital gains tax calculator real estate owners can rely on for investment properties, second homes, and primary residences.

Investment Properties and Vacation Homes: Standard capital gains rules apply. There is no §121 exclusion for properties that weren’t your primary residence. Additionally, if you claimed depreciation deductions during ownership, the IRS taxes that depreciation at a 25% recapture rate (not calculated here — consult a tax professional for rental property sales).

Using This as a Capital Gains Tax on Real Estate Calculator: Enter the total purchase price of the property (not per-unit), leave shares at 1, and enter the full sale price. Add your closing costs, renovation costs, and legal fees under “Adjust Cost Basis.” Then check the §121 box if it was your primary residence.

Primary Residence Example:

  • Purchase price: $350,000
  • Renovations: $80,000
  • Legal & closing fees: $12,000
  • Adjusted basis: $442,000
  • Sale price: $750,000
  • Gross gain: $308,000
  • §121 exclusion (single): $250,000
  • Taxable gain: $58,000

Without entering the basis adjustments and §121 exclusion into a capital gains tax on real estate calculator, the same seller might mistakenly assume they owe tax on the entire $400,000 gain.

Capital Gains on Inherited Property Calculator

Inherited property is subject to one of the most favorable rules in the tax code: the stepped-up basis.

When you inherit an asset — a home, stocks, or investment — your cost basis is “stepped up” to the fair market value on the date of the original owner’s death, not what they originally paid. This can eliminate decades of embedded gains in a single transaction.

How to use this as a capital gains on inherited property calculator:

  1. Set your Purchase Price to the property’s fair market value on the date of inheritance (often found on the estate’s appraisal or Form 706)
  2. Set your Purchase Date to the date of inheritance (for holding period purposes)
  3. Enter your actual Sale Price and Sale Date
  4. Add any improvements you made after inheriting

Inherited Property Example: Your parent purchased a home for $80,000 in 1985. They passed away when the home was worth $520,000. Your stepped-up basis is $520,000 — not $80,000. If you sell for $560,000 two years later, your capital gain is only $40,000, not $480,000. Run it through our capital gains on inherited property calculator to get your exact federal tax owed.

Important note: Inherited assets held for any period are automatically treated as long-term capital gains regardless of how long you personally held the property (IRC §1014 + §1223(11)).

Collectibles

Long-term gains on art, antiques, rare coins, stamps, wine, fine jewelry, and precious metals held as investments are subject to a 28% maximum rate (IRC §1(h)(5)) — not the 20% cap that applies to securities. Short-term collectibles gains are taxed as ordinary income, same as any other asset.

Capital Losses, the $3,000 Deduction, and Carryforwards

Not every sale is profitable — and the IRS does offer some relief for losses.

Offsetting Gains With Losses

Capital losses first offset capital gains dollar-for-dollar. If you have $10,000 in gains and $4,000 in losses, your net taxable capital gain is just $6,000.

The $3,000 Annual Deduction

If your net capital losses exceed your capital gains for the year, you can deduct up to $3,000 of the net loss against ordinary income ($1,500 for married filing separately). This reduces your taxable income directly.

Carryforward — Your Loss Lives On

Losses beyond the $3,000 annual limit don’t disappear. They carry forward indefinitely and can:

  • Offset capital gains in any future year (dollar-for-dollar, no limit)
  • Deduct $3,000/year against ordinary income until exhausted

A $100,000 investment loss can shelter gains for years. Track your carryforward on IRS Form 8949 and Schedule D.

The Wash Sale Rule (IRC §1091)

If you sell at a loss and repurchase the same or substantially identical security within 30 days before or after the sale, the IRS disallows the loss. The disallowed amount is added to the basis of the new shares — it’s deferred, not permanently lost. Our capital gains taxes calculator displays a wash-sale warning whenever a loss is calculated.

Adjusted Cost Basis: The Most Overlooked Feature in Any Capital Gain Tax Calculator

Most investors simply subtract what they paid from what they received. That leaves money on the table. Your adjusted cost basis can include dozens of legitimate additions that legally reduce your taxable gain.

What Qualifies as a Basis Addition?

For Real Estate:

  • Capital improvements (additions, remodels, new systems) — not repairs or maintenance
  • Legal and attorney fees paid to acquire or defend title
  • Agent commissions paid at purchase
  • Transfer taxes and recording fees at closing
  • Title insurance premiums

For Stocks and Securities:

  • Brokerage commissions paid at purchase (increasingly rare with zero-commission brokers, but still applicable for older lots)
  • Reinvested dividends (each dividend reinvestment adds to your total basis)

For Inherited Property:

  • Improvements made after the date of inheritance

Real-World Impact

Ignoring basis adjustments is one of the most common — and costly — tax mistakes homeowners make. A seller who spent $90,000 on renovations but doesn’t include them in their cost basis calculation pays tax on $90,000 that was never a “gain” — it was a cost.

Our capital gain tax calculator includes a dedicated “Adjust Cost Basis” toggle with four separate fields (improvements, legal fees, commissions, other) and a live-updating total so you can see the exact tax impact of each addition.

State Capital Gains Taxes — Complete the Picture

The federal numbers are only part of your total bill. Most US states also tax capital gains — and for a seller in California, New York, or New Jersey, the state tax can rival or exceed the federal tax.

States With No Capital Gains Tax

Alaska · Florida · Nevada · New Hampshire · South Dakota · Tennessee · Texas · Washington (stocks only — WA has a 7% excise tax on long-term gains above $250,000) · Wyoming

Notable State Capital Gains Tax Rates (Approximate)

StateRate
California13.3% (highest in USA)
New York10.9%
New Jersey10.75%
Oregon9.9%
Minnesota9.85%
Vermont8.75%
Maryland5.75%
Colorado4.4%
Arizona2.5%

Enter your state’s applicable rate in the “State Tax Rate” field of our capital gains tax calculator USA to get an all-in federal + state total.

What is a capital gains tax calculator and how does it work?

A capital gains tax calculator estimates the federal (and optionally state) tax you owe when selling an investment asset. You enter your purchase price, sale price, dates, income, and filing status. The calculator determines whether the gain is short-term or long-term, applies the correct IRS brackets, checks for NIIT, and shows your total tax bill and after-tax proceeds.

How do I use the 2025 capital gains tax calculator?

Select 2025 in the year toggle at the top of our 2025 capital gains tax calculator. Enter your asset type, filing status, purchase and sale prices, purchase and sale dates, number of shares, annual ordinary income, and optional state rate. Click “Calculate Tax.” The calculator applies the 2025 IRS brackets from Revenue Procedure 2024-40 automatically.

What are the capital gains tax rates in 2025?

The capital gains tax rate 2025 calculator uses these federal rates for long-term gains: 0% for income up to $48,350 (Single) or $96,700 (MFJ); 15% up to $533,400 (Single) or $600,050 (MFJ); 20% above those thresholds. Short-term gains are taxed as ordinary income at 10%–37%. High-income taxpayers also owe 3.8% NIIT.

How do I use this as a capital gains on inherited property calculator?

Set your Purchase Price to the stepped-up fair market value on the date of death (from the estate appraisal). Set your Purchase Date to the date of inheritance. Inherited assets are always treated as long-term capital gains regardless of how long you hold them. Enter your sale price and date, add any post-inheritance improvements under “Adjust Cost Basis,” and calculate.

Do I owe capital gains tax on a loss?

No. If your sale price is less than your adjusted basis, you have a capital loss — no capital gains tax is owed. Instead, you may be able to deduct up to $3,000 of the net loss against ordinary income, with any excess carrying forward to future years. Our calculator automatically switches to the loss breakdown display when the result is negative.