Upon retirement or death, the continuing partners acquire the departing partner's share of future profits. The ratio in which they gain is the Gaining Ratio (GR):
$$\text{Gaining Ratio} = \text{New Share} - \text{Old Share}$$Accounting for Goodwill (AS-26):
The retiring or deceased partner is entitled to their share of the firm's goodwill. This goodwill is compensated strictly by the continuing (gaining) partners in their Gaining Ratio:
Continuing (Gaining) Partners' Capital/Current A/c .... Dr. [In GAINING RATIO]
To Retiring / Deceased Partner's Capital A/c .......... [His Share of Goodwill]
(Being retiring partner's share of goodwill credited and debited to gaining partners in gaining ratio).