Numveo
Taxes

Capital Gains Tax Calculator

Estimate the tax on a capital gain at your long-term rate. Only positive gains are taxed.

Your details

Capital gains tax
$750.00
Capital gain
$5,000.00
Net profit
$4,250.00

Net gain vs tax

$5.0KTotal
Net gain
$4,250.0085%
Tax
$750.0015%
Capital gains tax$750.00

Formula

Gain = sale price − purchase price. Tax = gain × rate (if the gain is positive).

How it works

Subtract what you paid (your cost basis) from the sale price to find the gain. If you held the asset more than a year it's a long-term gain, taxed at 0%, 15%, or 20% for most filers — the rate this calculator applies to a positive gain.

Frequently asked questions

What's the difference between short- and long-term gains?

Assets held one year or less are short-term, taxed at your ordinary income rate. Held more than a year, they are long-term and taxed at the lower 0/15/20% rates.

Do capital losses reduce my tax?

Yes. Losses offset gains dollar for dollar, and up to $3,000 of net loss can be deducted against ordinary income each year, with any remainder carried forward.

Are gains inside a 401(k) or IRA taxed this way?

No. Growth inside tax-advantaged retirement accounts is not taxed as you trade — only on withdrawal, under different rules.

Sources & methodology

Applies the long-term rate you select to positive gains. Estimate only — excludes state tax, net investment income tax, and short-term rates.

Last updated: 2026-07-19

Also on your phone

Numveo for Android

200+ financial calculators — mortgage, loans, taxes, retirement. Fast, private, and fully offline.

GET IT ONGoogle Play

Learn more

Embed this calculator

Paste this into your page — it works with no key and computes in the visitor's browser. The short credit line links back to Numveo; please keep it.

<iframe src="https://numveo.com/embed/capital-gains-calculator" width="100%" height="640" style="border:0" loading="lazy" title="Capital Gains Tax Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;color:#52514e;margin:6px 0"><a href="https://numveo.com/taxes/capital-gains-calculator" target="_blank" rel="noopener">Capital Gains Tax Calculator</a> by <a href="https://numveo.com" target="_blank" rel="noopener">Numveo</a></p>