A capital gain occurs when an asset, such as stock, is sold for more than its purchase price.
In this case, the correct illustration of a capital gain is:
"An investor purchases a stock for $25 and then later sells it for $30."
This results in a capital gain of $5.