Capital gains tax is the amount you pay on any profit you make when you come to sell an asset, such as a second home, shares or a piece of artwork.