Work out capital gains on shares instantly with clear inputs, formula shown and shareable results.
The taxable gain is sale proceeds less cost of acquisition, and tax applies only to a positive gain. Showing the post-tax return on cost makes clear how much of the headline gain you actually keep.
Capital gain
Gain = (sale - cost) × quantity; tax = gain × rate when positive
Tax figures are estimates based on the single rate you enter. Real regimes have holding-period tests, exemptions, indexation and loss rules that vary by jurisdiction. This is not tax advice.
In most regimes yes, with rules on which category of gain a loss may offset and how long it carries forward.
Brokerage and duty are usually added to cost or netted from proceeds, which reduces the taxable gain.