Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Capital Gains Tax Calculator

  • Free
  • Runs in your browser
  • No account needed

A $50,000 long-term gain on top of $40,000 taxable income would owe about $7,500 in US federal capital gains tax; this tool estimates capital gains tax, NIIT and after-tax gain for US and UK rules.

Capital gains tax
3,000 USD
Taxable gain
20,000 USD
Net investment income tax (3.8%)
0 USD
Effective rate on the gain
15%
Gain kept after tax
17,000 USD

An estimate for planning. Your payslip, return or final assessment can differ because of reliefs, credits and timing. For your own situation, ask a qualified tax adviser.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Capital Gains Tax Calculator

This in-browser calculator estimates capital gains tax for sales of shares, property, crypto and qualifying business disposals in the US (2026) and the UK (2026/27). You enter where you pay tax, the taxable gain (sale price minus purchase price and buying and selling costs), any capital losses, your other income, filing status, holding period and whether to add the 3.8 percent NIIT estimate. Results update instantly as you type and show taxable gain, capital gains tax, NIIT estimate, amounts taxed at 18 percent and 24 percent, effective rate and gain kept after tax. The tool runs in your browser; nothing is uploaded to a server. You can copy results and share a link that reopens with your numbers. The calculator follows IRS Rev. Proc. 2025-32 and HMRC rules for 2026/27. It does not model special cases like depreciation recapture, inherited stepped-up basis or state tax.

How to use it

  1. 1Enter where you pay tax: United States (2026) or United Kingdom (2026/27).
  2. 2Enter your gain (sale price minus purchase price minus buying and selling costs) and any capital losses to offset it.
  3. 3Choose your filing status, other taxable income, holding period and whether to add the 3.8 percent NIIT.
  4. 4Copy the result or share the link to reopen this scenario with the same numbers.
Advertisement

Worked example

Example (US single): Other taxable income $40,000. Long-term gain $50,000. No capital losses. NIIT No. Taxable gain: $50,000. Capital gains tax: $6,082.50. Net investment income tax (3.8%): $0.00. Gain taxed at 18%: $0.00. Gain taxed at 24%: $0.00. Effective rate on the gain: 12.17%. Gain kept after tax: $43,917.50.

The formula

US, tax year 2026 (IRS RevProc2025-32): long-term gains stack on top of your other taxable income and are taxed at 0% up to $49,450 of taxable income ($98,900 married filing jointly, $66,200 head of household), 15% up to $545,500 ($613,700 jointly, $579,600 head of household, $306,850 married filing separately) and 20% aboveShort-term gains are taxed as ordinary income at the 2026 brackets (10% to 37%)The 3.8% net investment income tax applies to the part of the gain above $200,000 of income ($250,000 jointly); here taxable income stands in for modified AGIUK, tax year 2026/27 (HMRC): the first 3,000 pounds of gains is tax free (annual exempt amount)The rest is taxed at 18% while it fits in your unused basic rate band (37,700 pounds of taxable income) and 24% above that, for all assets including homes that are not your main residenceGains that qualify for Business Asset Disposal Relief are taxed at 18% from 6 April 2026

Source: IRS Publication 544, Sales and Other Dispositions of AssetsHMRC, Capital Gains TaxIRS Revenue Procedure 2025-32 (tax year 2026 rate breakpoints). Last checked 6 November 2026.

What it is good for

  • Instant results as you type, no calculate button needed.
  • Supports US (2026) and UK (2026/27) rules and the 3.8 percent NIIT option.
  • Runs in your browser and lets you copy or share a link with your inputs.
  • Estimate only: it does not model state tax, depreciation recapture, inherited basis, or other complex rules.
  • For definitive filing amounts, consult a qualified tax adviser or your tax authority.
Advertisement

Questions people ask

What inputs does the calculator need?

You enter where you pay tax (US or UK), the taxable gain (sale price minus purchase price minus buying and selling costs), any capital losses, your other income, filing status, holding period and whether to add the 3.8 percent NIIT estimate.

How does the tool treat long-term gains in the US?

Long-term gains stack on top of your other taxable income. The tool applies 0 percent, 15 percent and 20 percent rates using the 2026 breakpoints from IRS Rev. Proc. 2025-32 and shows how much of the gain falls into each rate.

Does the calculator include the 3.8 percent Net Investment Income Tax?

Yes if you choose the NIIT option. The calculator applies a 3.8 percent surtax to the part of the gain above the $200,000 single or $250,000 married filing jointly threshold, using taxable income as a proxy for modified AGI.

Are UK gains treated differently?

Yes. The calculator uses the 2026/27 HMRC rules: a 3,000 pound annual exempt amount, then 18 percent while gains fit in your unused basic rate band (37,700 pounds) and 24 percent above that. It also supports Business Asset Disposal Relief at 18 percent where applicable.

Is this an exact tax bill I can file with?

No. Results are estimates for planning only and may differ from your payslip, tax return or final assessment because of reliefs, credits and timing. For official guidance see IRS publications or HMRC and ask a qualified tax adviser for your situation.

Can I save or share my scenario?

Yes. You can copy the result values and create a share link that reopens this page with the same inputs so you can revisit or send the scenario to someone else.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement