Determine the market value of the asset to be sold.
Subtract the initial cost of acquiring the asset.
Deduct any allowable expenses. These can include stamp duty, dealings charges, etc.
Deduct your capital gains tax-free allowance. This allowance is £12,300 UK for the financial year 2020-21.
If there is any taxable gain remaining, deduct any capital losses brought forward. (if applicable)