Capital Gains Tax Calculator

Sold a stock, a rental, crypto, or any other investment? Find out exactly what the IRS will want from your profit. This calculator separates short-term gains (taxed like your paycheck) from long-term gains (taxed at the friendlier 0%, 15%, or 20% rates) and shows the tax, your take-home profit, and your effective rate.

🤑

Capital Gains Tax

2025 tax year (filed 2026)

$
$
$
Capital Gains Tax Owed
Total Gain / Loss
Tax Rate Applied
Profit After Tax
Effective Rate on Gain

How capital gains tax actually works

Here's the part that trips most people up: the IRS doesn't tax your whole sale, only your profit — and how long you held the asset changes everything. If you owned it for one year or less, your gain is "short-term" and gets stacked on top of your salary, taxed at your ordinary income rate (anywhere from 10% to 37%). Hold it for more than a year and it becomes a "long-term" gain, which enjoys special lower rates of 0%, 15%, or 20% depending on your total income. That single year of patience can easily cut your tax bill in half.

Long-term rates are also stacked. Your gain sits on top of your other taxable income, and the portion that falls inside each band is taxed at that band's rate. So a modest earner with a big gain might pay 0% on the first slice and 15% on the rest. That's exactly what this calculator models — it doesn't just slap one flat rate on your profit, it walks the gain through the 0/15/20 thresholds the way a tax pro would.

A few things worth knowing before you sell: your "cost basis" is what you paid plus commissions and any reinvested dividends — getting that number right lowers your taxable gain. Selling at a loss isn't all bad either; capital losses offset capital gains dollar-for-dollar, and up to $3,000 of net loss can offset ordinary income each year. And high earners may owe an extra 3.8% Net Investment Income Tax on top of what you see here — this tool covers the core federal capital gains tax, not state tax or the NIIT surcharge.

One Year Is the Line

Held 366+ days? You unlock the 0/15/20% long-term rates. A day short and it's taxed like ordinary income.

📉

Losses Soften the Blow

Capital losses cancel gains, and up to $3,000 of leftover loss can reduce your regular taxable income.

🧾

Basis Is Your Friend

Cost basis = price paid + fees + reinvested dividends. A higher basis means a smaller taxable gain.

FAQ

It comes down to how long you held the asset. One year or less is short-term and is taxed at your ordinary income rate — the same brackets your salary uses, up to 37%. More than one year is long-term and is taxed at preferential rates of 0%, 15%, or 20%. The holding clock starts the day after you buy and ends the day you sell.
If your total taxable income (other income plus the gain) stays under the 0% threshold for your filing status — about $48,350 for single filers and $96,700 for married-filing-jointly in 2025 — your long-term gains are taxed at nothing federally. It's one of the most generous breaks in the tax code, and low-to-moderate earners use it every year to harvest gains tax-free.
No. This calculator estimates the core federal capital gains tax only. Most states tax capital gains as regular income (a handful have no income tax at all), and high earners may owe an additional 3.8% Net Investment Income Tax. Add those separately if they apply to you, and treat this as a planning estimate rather than tax advice.

Related Calculators

✔ Reviewed by the True Value Calc editorial team🗓 Last updated June 2026📚 Sources: IRS.gov, U.S. Bureau of Labor Statistics