A capital gain is the profit realized from the sale of a capital asset, such as stocks, bonds, or real estate. It is calculated as the difference between the selling price and the purchase price of the asset.