Distribution of capital gains from an estate

How do I distribute capital gains out of an estate to the heirs