In the case of any property which—
(1) was contributed to the partnership by a partner, and
(2) was an unrealized receivable in the hands of such partner immediately before such contribution,
any gain or loss recognized by the partnership on the disposition of such property shall be treated as ordinary income or ordinary loss, as the case may be.
In the case of any property which—
(1) was contributed to the partnership by a partner, and
(2) was an inventory item in the hands of such partner immediately before such contribution,
any gain or loss recognized by the partnership on the disposition of such property during the 5-year period beginning on the date of such contribution shall be treated as ordinary income or ordinary loss, as the case may be.
In the case of any property which—
(1) was contributed by a partner to the partnership, and
(2) was a capital asset in the hands of such partner immediately before such contribution,
any loss recognized by the partnership on the disposition of such property during the 5-year period beginning on the date of such contribution shall be treated as a loss from the sale of a capital asset to the extent that, immediately before such contribution, the adjusted basis of such property in the hands of the partner exceeded the fair market value of such property.
For purposes of this section—
The term "unrealized receivable" has the meaning given such term by section 751(c) (determined by treating any reference to the partnership as referring to the partner).
The term "inventory item" has the meaning given such term by section 751(d) (determined by treating any reference to the partnership as referring to the partner and by applying section 1231 without regard to any holding period therein provided).
If any property described in subsection (a), (b), or (c) is disposed of in a nonrecognition transaction, the tax treatment which applies to such property under such subsection shall also apply to any substituted basis property resulting from such transaction. A similar rule shall also apply in the case of a series of non-recognition transactions.
Subparagraph (A) shall not apply to any stock in a C corporation received in an exchange described in section 351.
(Added Pub. L. 98–369, div. A, title I, §74(a), July 18, 1984, 98 Stat. 592; amended Pub. L. 104–188, title I, §1704(t)(63), Aug. 20, 1996, 110 Stat. 1890; Pub. L. 105–34, title X, §1062(b)(3), Aug. 5, 1997, 111 Stat. 947.)
1997—Subsec. (d)(2). Pub. L. 105–34 substituted "section 751(d)" for "section 751(d)(2)".
1996—Subsec. (d)(3)(B). Pub. L. 104–188 substituted "Subparagraph" for "Subparagaph".
Pub. L. 105–34, title X, §1062(c), Aug. 5, 1997, 111 Stat. 947, provided that:
"(1)
"(2)
Pub. L. 98–369, div. A, title I, §74(d)(1), July 18, 1984, 98 Stat. 594, provided that: "The amendment made by subsection (a) [enacting this section] shall apply to property contributed to a partnership after March 31, 1984, in taxable years ending after such date."
There are no related Treasury Regulations for this Code section. To browse a full list of Treasury Regulations within TouchTax, view the "All Regulation Sections" option. 
The preliminary Code is a preliminary release of the Internal Revenue Code of 1986 (the "Code") by the Office of the Law Revision Counsel and is subject to further revision before it is released again as a final version. The source of the preliminary Code used in TouchTax is available here: https://uscode.house.gov/download/download.shtml. The Code is a consolidation and codification by subject matter of the general and permanent laws of the U.S. prepared by the Office of the Law Revision Counsel of the U.S. House of Representatives. The Treasury Regulations are a codification of the general and permanent rules published in the Federal Register by the departments and agencies of the federal government. The version of the Treasury Regulations available within TouchTax is part of the Electronic Code of Federal Regulations which is not an official legal edition of the Code of Federal Regulations but is an editorial compilation of CFR material and Federal Register amendments produced by the National Archives and Records Administration's Office of the Federal Register (OFR) and the Government Publishing Office. The source of the CFR used in TouchTax is available here: https://www.govinfo.gov/bulkdata/ECFR/title-26. Those using TouchTax for legal research should verify their results against the printed versions of the Code and Treasury Regulations. TouchTax is copyright 2024 by Com-Lab (Mobile). Learn more at http://touchtax.edrich.de.