Capital gains tax is levied on the profit made from selling assets like real estate or stocks. This tax applies to the appreciation of such assets, whether or not they are sold.