§ 1237.
(a)
General
Any lot or parcel which is part of a tract of real property in the hands of a taxpayer other than a C corporation shall not be deemed to be held primarily for sale to customers in the ordinary course of trade or business at the time of sale solely because of the taxpayer having subdivided such tract for purposes of sale or because of any activity incident to such subdivision or sale, if—
(1)
such tract, or any lot or parcel thereof, had not previously been held by such taxpayer primarily for sale to customers in the ordinary course of trade or business (unless such tract at such previous time would have been covered by this section) and, in the same taxable year in which the sale occurs, such taxpayer does not so hold any other real property; and
(2)
no substantial improvement that substantially enhances the value of the lot or parcel sold is made by the taxpayer on such tract while held by the taxpayer or is made pursuant to a contract of sale entered into between the taxpayer and the buyer. For purposes of this paragraph, an improvement shall be deemed to be made by the taxpayer if such improvement was made by—
(A)
the taxpayer or members of his family (as defined in section 267(c)(4)), by a corporation controlled by the taxpayer, an S corporation which included the taxpayer as a shareholder, or by a partnership which included the taxpayer as a partner; or
(B)
a lessee, but only if the improvement constitutes income to the taxpayer; or
(C)
Federal, State, or local government, or political subdivision thereof, but only if the improvement constitutes an addition to basis for the taxpayer; and
(3)
such lot or parcel, except in the case of real property acquired by inheritance or devise, is held by the taxpayer for a period of 5 years.
([Aug. 16, 1954, ch. 736], [68A Stat. 330]; [Apr. 27, 1956, ch. 214], §§ 1, 2, [70 Stat. 118]; [Pub. L. 85–866, title I, § 55], Sept. 2, 1958, [72 Stat. 1645]; [Pub. L. 91–686, § 2(a)], Jan. 12, 1971, [84 Stat. 2071]; [Pub. L. 94–455, title XIX], §§ 1901(a)(138), 1906(b)(13)(A), Oct. 4, 1976, [90 Stat. 1787], 1834; [Pub. L. 104–188, title I, § 1314], Aug. 20, 1996, [110 Stat. 1785].)