We are retired. We sold some stock. Do we need to pay capital gain tax on it now to avoid penalties?

We sold a small amount of stock.  Do we need to pay the capital gain tax now?