Payments made in liquidation of the interest of a retiring partner or a deceased partner shall, except as provided in subsection (b), be considered—
(1) as a distributive share to the recipient of partnership income if the amount thereof is determined with regard to the income of the partnership, or
(2) as a guaranteed payment described in section 707(c) if the amount thereof is determined without regard to the income of the partnership.
For purposes of this subsection, payments in exchange for an interest in partnership property shall not include amounts paid for—
(1) General rule Payments made in liquidation of the interest of a retiring partner or a deceased partner shall, to the extent such payments (other than payments described in paragraph (2)) are determined, under regulations prescribed by the Secretary, to be made in exchange for the interest of such partner in partnership property, be considered as a distribution by the partnership and not as a distributive share or guaranteed payment under subsection (a).
For purposes of this subsection, payments in exchange for an interest in partnership property shall not include amounts paid for—
(A) unrealized receivables of the partnership (as defined in section 751(c)), or
(B) good will of the partnership, except to the extent that the partnership agreement provides for a payment with respect to good will.
Paragraph (2) shall apply only if—
(A) capital is not a material income-producing factor for the partnership, and
(B) the retiring or deceased partner was a general partner in the partnership.
(Aug. 16, 1954, ch. 736, 68A Stat. 248; Pub. L. 94–455, title XIX, § 1906(b)(13)(A), Oct. 4, 1976, 90 Stat. 1834; Pub. L. 95–600, title VII, § 701(u)(13)(B), Nov. 6, 1978, 92 Stat. 2918; Pub. L. 103–66, title XIII, § 13262(a), (b)(2)(B), Aug. 10, 1993, 107 Stat. 541.)