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.
Step
Amount
Proceeds (100 × 150)
15,000
Less: cost (100 × 90)
−9,000
Less: brokerage and fees
−50
Capital gain
5,950
Tax (15%)
−893
Net gain after tax
5,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.
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.
Published the calculator with its formula, worked example, assumptions, limitations and a bespoke guide, and added an automated formula test suite covering it.
Tested the per-share gain with brokerage added to cost, against totals recomputed independently from the share count and prices.
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.