A capital gains tax is a tax imposed on capital gains, which are profits that an investor gains after selling a capital asset at a higher value than the purchase price. This tax can be levied only once the capital asset has been sold, and not while the investor still holds the asset.