Tax

Stock Capital Gains Tax Calculator

Enter a share sale the way a contract note states it — per share, with brokerage — and this works the gain and the tax.

The trade as your contract note states it

What you sold, and at what price

Number of shares sold in this transaction.

Price each share sold for, in your local currency.

Price each share was originally bought for.

Costs and the rate that applies

Total brokerage, commissions, and charges on the trade.

%

Your applicable rate (a placeholder to verify with the tax authority).

Capital Gains Tax

892.50

Gain multiplied by the capital gains rate.

Formula verified 12 September 2026

Capital Gain

5,950.00

Proceeds minus cost and brokerage.

Net Gain After Tax

5,057.50

The gain left after the tax is paid.

Total Proceeds

15,000

Shares sold multiplied by the sale price.

Report an issue

Educational estimate only — verify rates with your official tax authority. Read the full disclaimer ↓

How the gain splits: tax vs net

Add your numbers to see the visual breakdown.

Gain breakdown: proceeds to net

How the share trade resolves into a taxable gain and a net figure, line by line, from the values you entered. Proceeds are shares times the sale price; cost is shares times the buy price plus brokerage.

StepAmount
Proceeds (100 × 150)15,000
Less: cost (100 × 90)−9,000
Less: brokerage and fees−50
Capital gain5,950
Tax (15%)−893
Net gain after tax5,058

Estimates only — not financial, tax, or professional advice.

100% private — every number you enter is calculated in your browser and never sent to our servers.

What it calculates: Capital Gains Tax, Capital Gain, Net Gain After Tax, Total Proceeds.

Updated 5 June 2026 · Transparent assumptions

A contract note gives you prices, not totals

Brokerage statements report a quantity and a price, and leave you to do the multiplication. Entering the trade in that shape removes the step where mistakes happen, and it makes a partial sale straightforward — change the share count and nothing else needs recomputing.

The brokerage figure is added to the cost rather than deducted from the proceeds. Both treatments reach the same gain, but adding it to cost is the convention most tax authorities describe, and it keeps the cost figure comparable with what a cost basis calculation would produce.

Holding period, residence and asset class all move it

There is no single capital gains rate. The figure depends on how long you held the shares, where you are taxed, what else you earned that year, and in some systems whether the shares were listed and securities transaction tax was paid. A calculator that picked one would be wrong for most people using it.

Get the rate from the treatment that applies to your holding, then enter it. If you are unsure which side of a holding-period threshold you fall on, run the figure twice — the gap between the two answers is exactly what the threshold is worth to you.

This tool does not model loss relief, and that is a real limitation

When the sale price is below the cost, the gain is floored at zero and the tax is zero. That is correct as far as it goes — you owe nothing on a loss — but it discards information you may be able to use.

Most systems let a capital loss offset gains elsewhere in the year and carry forward if unused, sometimes only against the same category of gain. The rules are specific and worth checking, because a loss recorded properly is worth real money against a future gain.

Lot matching, exemptions and grandfathering

The calculator assumes one purchase price for every share sold. If you built the holding across several buys, the price that applies depends on the matching method your jurisdiction requires — first-in-first-out is common, average cost is used for funds, and specific identification is allowed in some systems. Work that out first, then enter the result.

Annual exempt amounts, grandfathering of gains accrued before a rule change, and surcharges on high incomes all sit outside this. Treat the output as the gross gain and its headline tax, not as the figure that will appear on a return.

Sources & References

Figures on this page are checked against primary, authoritative sources. Links open in a new tab.

Related Calculators

Cost BasisWhat an asset actually cost you: purchase price plus commissions, charges and capital improvements.
Capital Gains TaxFederal capital gains tax with the short-term and long-term treatments side by side, so the holding-period cliff is visible.
Income TaxEstimate income tax with custom progressive bands, a sourced US federal mode, refund or amount owed, and scenario comparison.
VAT/GSTAdd or remove VAT, GST, or HST from a price, solve tax-inclusive and tax-exclusive values, and build mixed-rate invoices.

More in Tax, or browse all calculators.

Tax disclaimer

Tax rules vary by country, state, tax year, filing status, income type, deductions, and exemptions. This calculator is educational and uses the values you enter. Always verify final tax treatment with official sources or a qualified tax professional.

How we calculate · Found an error? email us

Authorship & verification

Written and maintained by , a business operator who builds spreadsheet-based calculators.

What's changed (3 updates)

Published 12 September 2026

  1. Published the calculator with its formula, worked example, assumptions, limitations and a bespoke guide, and added an automated formula test suite covering it.
  2. Tested the per-share gain with brokerage added to cost, against totals recomputed independently from the share count and prices.
  3. Tested that a sale below cost is reported as a zero gain with zero tax, and that brokerage always reduces the taxable gain.

Add this calculator to your site

Responsive embed — and private: nothing your visitors type leaves their browser.