Is the capital gain on pension distributions the same as the taxable amount in box 2a or is it a different amount?

How I determine the capital gain amount on a pension distribution?