A capital gains tax is a tax levied on the profit — a “gain” — of the sale of an investment. For example, let’s say you realize a $20,000 gain on a stock sold. You’ll owe capital gains tax on that profit for the tax year it was sold. The exact capital gains tax rate you