Skip to content

Capital Gains Tax Calculator

Every rate and allowance is an input, because they change.

Work out Capital Gains Tax. Every rate and allowance is an input, because they change. Every rate is an input, not an assertion.

Written and maintained by Mohit PatelLast checked August 4, 2026How we build these
%
years
%

Tax due

1,150.00

On a 14,500 gain · effective rate 7.93%

Tax due1,150.00
Gross gain14,500.00
Allowance used3,000.00
Taxable gain11,500.00
Rate appliedLong-term (10%)
Held for3.00 years
Net proceeds23,350.00
Effective rate on the gain7.931%

The gain is the sale price less the purchase price less allowable costs — which usually include dealing charges and, for property, improvement works but not maintenance. The allowance is deducted from the gain rather than from the tax. Many jurisdictions tax long-held assets at a lower rate, and the threshold and rate differ everywhere, so both are asked for here rather than assumed. Holding a few days past a threshold can be worth a substantial share of the tax. The effective rate is below the headline rate whenever an allowance applies, and can be zero for a small gain. That is why timing disposals across tax years, and using the allowance every year rather than letting it lapse, is worth more than it sounds.

How the Capital Gains Tax Calculator works

Tax on a disposal, with the allowance, rate and long-term threshold all as inputs. They change annually and differ by jurisdiction, so asserting last year's figures would be worse than asking.

Also known as: how much cgt will i pay · tax on selling shares · capital gains allowance calculator · long term versus short term gains

Not financial advice. This calculator is for planning and illustration, not financial advice. Real products carry fees, taxes, and terms it does not model. Confirm figures with your lender or a qualified adviser before committing.

Frequently asked questions

How is a capital gain calculated?

Sale price less purchase price less allowable costs. Those usually include dealing charges and, for property, improvement works — but not maintenance or mortgage interest.

What is the annual exempt amount?

A gain you can realise each year without tax. It is deducted from the gain rather than from the tax, it usually cannot be carried forward, and it is worth using every year rather than letting it lapse.

Why does holding period matter?

Many jurisdictions tax long-held assets at a lower rate. The threshold and the rate differ everywhere, so both are asked for here — and holding a few days past a threshold can be worth a substantial share of the tax.

Can I offset losses?

In most systems, yes — against gains in the same year, and often carried forward. Realising a loss deliberately to offset a gain is a common and legitimate technique.

Is this tax advice?

No. It is arithmetic on the figures you supply. Rates, reliefs and reporting requirements are jurisdiction-specific and change annually, so check with your tax authority or an accountant.

Put this calculator on your own site

Free to use, on any site, commercial or not. Paste this where you want it to appear. It is a plain iframe, so it works in WordPress, Squarespace, Wix, Webflow, Ghost and anything else that accepts HTML.

The one-line version
<iframe src="https://www.thecalclibrary.com/embed/capital-gains-tax-calculator" width="100%" height="640" style="border:1px solid #e2e8f0;border-radius:12px" loading="lazy" title="Capital Gains Tax Calculator"></iframe>
<p style="font:13px/1.5 system-ui,sans-serif;margin:6px 0 0;color:#64748b">Powered by <a href="https://www.thecalclibrary.com/capital-gains-tax-calculator" style="color:#64748b">Capital Gains Tax Calculator</a> from The Calc Library</p>

The only condition is that the credit line below the frame stays in place. That one line is what pays for the tool being free — it is how anyone else finds it.

Related calculators