Title 26Internal Revenue CodeRelease 119-73

§1031 Exchange of real property held for productive use or investment

Title 26 › Subtitle Subtitle A— - Income Taxes › Chapter CHAPTER 1— - NORMAL TAXES AND SURTAXES › Subchapter Subchapter O— - Gain or Loss on Disposition of Property › Part PART III— - COMMON NONTAXABLE EXCHANGES › § 1031

Last updated Apr 6, 2026|Official source

Summary

You can trade real estate that you use in a business or hold as an investment for other real estate of the same kind without paying tax on any gain. It does not apply to property held mainly for sale. To qualify, you must identify what you will get within 45 days after you give up the old property, and you must receive it by the earlier of 180 days after the transfer or the due date (including extensions) of your tax return for the year of the transfer. If you also get money or other non-like property, you must pay tax on any gain up to the cash plus the fair market value of that other property, and you cannot claim a loss. Your tax basis in the new property is the old basis adjusted for cash received and any recognized gain or loss; if you get both like property and other property, allocate the basis and treat an assumed liability as cash received. A partnership interest that has a valid election under section 761(a) is treated as an interest in the partnership’s assets. If you swap with a related person (as defined in sections 267(b) or 707(b)(1)) and either person sells the property within 2 years, tax may become due, except for death, certain involuntary conversions, or if it is shown the deal was not mainly to avoid tax. The 2‑year period pauses while your risk of loss is greatly reduced by things like a put, someone else’s right to buy, a short sale, or similar transactions. Real property inside the United States is not like-kind with real property outside the United States.

Full Legal Text

Title 26, §1031

Internal Revenue Code — Source: USLM XML via OLRC

(a)(1)No gain or loss shall be recognized on the exchange of real property held for productive use in a trade or business or for investment if such real property is exchanged solely for real property of like kind which is to be held either for productive use in a trade or business or for investment.
(2)This subsection shall not apply to any exchange of real property held primarily for sale.
(3)For purposes of this subsection, any property received by the taxpayer shall be treated as property which is not like-kind property if—
(A)such property is not identified as property to be received in the exchange on or before the day which is 45 days after the date on which the taxpayer transfers the property relinquished in the exchange, or
(B)such property is received after the earlier of—
(i)the day which is 180 days after the date on which the taxpayer transfers the property relinquished in the exchange, or
(ii)the due date (determined with regard to extension) for the transferor’s return of the tax imposed by this chapter for the taxable year in which the transfer of the relinquished property occurs.
(b)If an exchange would be within the provisions of subsection (a), of section 1035(a), of section 1036(a), or of section 1037(a), if it were not for the fact that the property received in exchange consists not only of property permitted by such provisions to be received without the recognition of gain, but also of other property or money, then the gain, if any, to the recipient shall be recognized, but in an amount not in excess of the sum of such money and the fair market value of such other property.
(c)If an exchange would be within the provisions of subsection (a), of section 1035(a), of section 1036(a), or of section 1037(a), if it were not for the fact that the property received in exchange consists not only of property permitted by such provisions to be received without the recognition of gain or loss, but also of other property or money, then no loss from the exchange shall be recognized.
(d)If property was acquired on an exchange described in this section, section 1035(a), section 1036(a), or section 1037(a), then the basis shall be the same as that of the property exchanged, decreased in the amount of any money received by the taxpayer and increased in the amount of gain or decreased in the amount of loss to the taxpayer that was recognized on such exchange. If the property so acquired consisted in part of the type of property permitted by this section, section 1035(a), section 1036(a), or section 1037(a), to be received without the recognition of gain or loss, and in part of other property, the basis provided in this subsection shall be allocated between the properties (other than money) received, and for the purpose of the allocation there shall be assigned to such other property an amount equivalent to its fair market value at the date of the exchange. For purposes of this section, section 1035(a), and section 1036(a), where as part of the consideration to the taxpayer another party to the exchange assumed (as determined under section 357(d)) a liability of the taxpayer, such assumption shall be considered as money received by the taxpayer on the exchange.
(e)For purposes of this section, an interest in a partnership which has in effect a valid election under section 761(a) to be excluded from the application of all of subchapter K shall be treated as an interest in each of the assets of such partnership and not as an interest in a partnership.
(f)(1)If—
(A)a taxpayer exchanges property with a related person,
(B)there is nonrecognition of gain or loss to the taxpayer under this section with respect to the exchange of such property (determined without regard to this subsection), and
(C)before the date 2 years after the date of the last transfer which was part of such exchange—
(i)the related person disposes of such property, or
(ii)the taxpayer disposes of the property received in the exchange from the related person which was of like kind to the property transferred by the taxpayer,
(2)For purposes of paragraph (1)(C), there shall not be taken into account any disposition—
(A)after the earlier of the death of the taxpayer or the death of the related person,
(B)in a compulsory or involuntary conversion (within the meaning of section 1033) if the exchange occurred before the threat or imminence of such conversion, or
(C)with respect to which it is established to the satisfaction of the Secretary that neither the exchange nor such disposition had as one of its principal purposes the avoidance of Federal income tax.
(3)For purposes of this subsection, the term “related person” means any person bearing a relationship to the taxpayer described in section 267(b) or 707(b)(1).
(4)This section shall not apply to any exchange which is part of a transaction (or series of transactions) structured to avoid the purposes of this subsection.
(g)(1)If paragraph (2) applies to any property for any period, the running of the period set forth in subsection (f)(1)(C) with respect to such property shall be suspended during such period.
(2)This paragraph shall apply to any property for any period during which the holder’s risk of loss with respect to the property is substantially diminished by—
(A)the holding of a put with respect to such property,
(B)the holding by another person of a right to acquire such property, or
(C)a short sale or any other transaction.
(h)Real property located in the United States and real property located outside the United States are not property of a like kind.

Legislative History

Notes & Related Subsidiaries

Editorial Notes

Codification Pub. L. 110–234 and Pub. L. 110–246 made identical

Amendments

to this section. The

Amendments

by Pub. L. 110–234 were repealed by section 4(a) of Pub. L. 110–246.

Amendments

2017—Pub. L. 115–97, § 13303(b)(5), substituted “real property” for “property” in section catchline. Subsec. (a)(1). Pub. L. 115–97, § 13303(a), substituted “real property” for “property” wherever appearing. Subsec. (a)(2). Pub. L. 115–97, § 13303(b)(1)(A), amended par. (2) generally. Prior to amendment, text read as follows: “This subsection shall not apply to any exchange of— “(A) stock in trade or other property held primarily for sale, “(B) stocks, bonds, or notes, “(C) other securities or evidences of indebtedness or interest, “(D) interests in a partnership, “(E) certificates of trust or beneficial interests, or “(F) choses in action. For purposes of this section, an interest in a partnership which has in effect a valid election under section 761(a) to be excluded from the application of all of subchapter K shall be treated as an interest in each of the assets of such partnership and not as an interest in a partnership.” Subsec. (e). Pub. L. 115–97, § 13303(b)(2), (3), added subsec. (e) and struck out former subsec. (e). Prior to amendment, text read as follows: “For purposes of this section, livestock of different sexes are not property of a like kind.” Subsec. (h). Pub. L. 115–97, § 13303(b)(4), amended subsec. (h) generally. Prior to amendment, subsec. (h) related to special rules for foreign real and personal property. Subsec. (i). Pub. L. 115–97, § 13303(b)(1)(B), struck out subsec. (i). Text read as follows: “For purposes of subsection (a)(2)(B), the term ‘stocks’ shall not include shares in a mutual ditch, reservoir, or irrigation company if at the time of the exchange— “(1) the mutual ditch, reservoir, or irrigation company is an organization described in section 501(c)(12)(A) (determined without regard to the percentage of its income that is collected from its members for the purpose of meeting losses and expenses), and “(2) the shares in such company have been recognized by the highest court of the State in which such company was organized or by applicable State statute as constituting or representing real property or an interest in real property.” 2008—Subsec. (i). Pub. L. 110–246 added subsec. (i). 2005—Subsec. (h)(2)(B). Pub. L. 109–135 substituted “subparagraphs” for “subparagraph” in introductory provisions. 1999—Subsec. (d). Pub. L. 106–36, in last sentence, substituted “assumed (as determined under section 357(d)) a liability of the taxpayer” for “assumed a liability of the taxpayer or acquired from the taxpayer property subject to a liability” and struck out “or acquisition (in the amount of the liability)” after “such assumption”. 1997—Subsec. (h). Pub. L. 105–34 amended heading and text of subsec. (h) generally. Prior to amendment, text read as follows: “For purposes of this section, real property located in the United States and real property located outside the United States are not property of a like kind.” 1990—Subsec. (a)(2). Pub. L. 101–508, § 11703(d)(1), inserted at end “For purposes of this section, an interest in a partnership which has in effect a valid election under section 761(a) to be excluded from the application of all of subchapter K shall be treated as an interest in each of the assets of such partnership and not as an interest in a partnership.” Subsec. (f)(3). Pub. L. 101–508, § 11701(h), substituted “section 267(b) or 707(b)(1)” for “section 267(b)”. 1989—Subsecs. (f) to (h). Pub. L. 101–239 added subsecs. (f) to (h). 1986—Subsec. (a)(3)(A). Pub. L. 99–514 substituted “on or before the day” for “before the day”. 1984—Subsec. (a). Pub. L. 98–369, § 77(a), in amending subsec. generally, designated existing provisions as par. (1), substituted “No gain or loss shall be recognized on the exchange of property held for productive use in a trade or business or for investment if such property is exchanged solely for property of like kind which is to be held either for productive use in a trade or business or for investment” for “No gain or loss shall be recognized if property held for productive use in trade or business or for investment (not including stock in trade or other property held primarily for sale, nor stocks, bonds, notes, choses in action, certificates of trust or beneficial interest, or other securities or evidences of indebtedness or interest) is exchanged solely for property of a like kind to be held either for productive use in trade or business or for investment”, and added pars. (2) and (3). 1969—Subsec. (e). Pub. L. 91–172 added subsec. (e). 1959—Subsecs. (b) to (d). Pub. L. 86–346 inserted references to section 1037(a) in subsecs. (b) and (c) and in first two sentences of subsec. (d). 1958—Subsec. (d). Pub. L. 85–866 inserted in first sentence a comma between “exchanged” and “decreased” and “or decreased in the amount of loss”, and substituted in second sentence “subsection” for “paragraph”.

Statutory Notes and Related Subsidiaries

Effective Date

of 2017 Amendment Pub. L. 115–97, title I, § 13303(c), Dec. 22, 2017, 131 Stat. 2124, provided that: “(1) In general.—Except as otherwise provided in this subsection, the

Amendments

made by this section [amending this section] shall apply to exchanges completed after December 31, 2017. “(2) Transition rule.—The

Amendments

made by this section shall not apply to any exchange if—“(A) the property disposed of by the taxpayer in the exchange is disposed of on or before
December 31, 2017, or “(B) the property received by the taxpayer in the exchange is received on or before
December 31, 2017.”

Effective Date

of 2008 AmendmentAmendment of this section and repeal of Pub. L. 110–234 by Pub. L. 110–246 effective May 22, 2008, the date of enactment of Pub. L. 110–234, except as otherwise provided, see section 4 of Pub. L. 110–246, set out as an

Effective Date

note under section 8701 of Title 7, Agriculture. Pub. L. 110–234, title XV, § 15342(b),
May 22, 2008, 122 Stat. 1518, and Pub. L. 110–246, § 4(a), title XV, § 15342(b),
June 18, 2008, 122 Stat. 1664, 2280, provided that: “The amendment made by this section [amending this section] shall apply to exchanges completed after the date of the enactment of this Act [
June 18, 2008].” [Pub. L. 110–234 and Pub. L. 110–246 enacted identical provisions. Pub. L. 110–234 was repealed by section 4(a) of Pub. L. 110–246, set out as a note under section 8701 of Title 7, Agriculture.]

Effective Date

of 1999 AmendmentAmendment by Pub. L. 106–36 applicable to transfers after Oct. 18, 1998, see section 3001(e) of Pub. L. 106–36, set out as a note under section 351 of this title.

Effective Date

of 1997 Amendment Pub. L. 105–34, title X, § 1052(b), Aug. 5, 1997, 111 Stat. 941, provided that: “(1) In general.—The amendment made by this section [amending this section] shall apply to transfers after
June 8, 1997, in taxable years ending after such date. “(2) Binding contracts.—The amendment made by this section shall not apply to any transfer pursuant to a written binding contract in effect on
June 8, 1997, and at all times thereafter before the disposition of property. A contract shall not fail to meet the requirements of the preceding sentence solely because—“(A) it provides for a sale in lieu of an exchange, or “(B) the property to be acquired as replacement property was not identified under such contract before
June 9, 1997.”

Effective Date

of 1990 Amendment Pub. L. 101–508, title XI, § 11701(h), Nov. 5, 1990, 104 Stat. 1388–508, provided that the amendment made by that section is effective with respect to transfers after Aug. 3, 1990. Pub. L. 101–508, title XI, § 11703(d)(2), Nov. 5, 1990, 104 Stat. 1388–517, provided that: “The amendment made by paragraph (1) [amending this section] shall apply to transfers after July 18, 1984.”

Effective Date

of 1989 Amendment Pub. L. 101–239, title VII, § 7601(b), Dec. 19, 1989, 103 Stat. 2371, provided that: “(1) In general.—Except as provided in paragraph (2), the

Amendments

made by this section [amending this section] shall apply to transfers after July 10, 1989, in taxable years ending after such date. “(2) Binding contract.—The

Amendments

made by this section shall not apply to any transfer pursuant to a written binding contract in effect on July 10, 1989, and at all times thereafter before the transfer.”

Effective Date

of 1986 AmendmentAmendment by Pub. L. 99–514 effective, except as otherwise provided, as if included in the provisions of the Tax Reform Act of 1984, Pub. L. 98–369, div. A, to which such amendment relates, see section 1881 of Pub. L. 99–514, set out as a note under section 48 of this title.

Effective Date

of 1984 Amendment Pub. L. 98–369, div. A, title I, § 77(b),
July 18, 1984, 98 Stat. 596, as amended by Pub. L. 99–514, § 2, Oct. 22, 1986, 100 Stat. 2095, provided that: “(1) In general.—Except as otherwise provided in this subsection, the amendment made by subsection (a) [amending this section] shall apply to transfers made after the date of the enactment of this Act [
July 18, 1984] in taxable years ending after such date. “(2) Binding contract exception for transfer of partnership interests.—Paragraph (2)(D) of section 1031(a) of the Internal Revenue Code of 1986 [formerly I.R.C. 1954] (as amended by subsection (a)) shall not apply in the case of any exchange pursuant to a binding contract in effect on
March 1, 1984, and at all times thereafter before the exchange. “(3) Requirement that property be identified within 45 days and that exchange be completed within 180 days.—Paragraph (3) of section 1031(a) of the Internal Revenue Code of 1986 (as amended by subsection (a)) shall apply—“(A) to transfers after the date of the enactment of this Act [
July 18, 1984], and “(B) to transfers on or before such date of enactment if the property to be received in the exchange is not received before
January 1, 1987. In the case of any transfer on or before the date of the enactment of this Act which the taxpayer treated as part of a like-kind exchange, the period for assessing any deficiency of tax attributable to the amendment made by subsection (a) [amending this section] shall not expire before
January 1, 1988. “(4) Special rule where property identified in binding contract.—If the property to be received in the exchange is identified in a binding contract in effect on
June 13, 1984, and at all times thereafter before the transfer, paragraph (3) shall be applied—“(A) by substituting ‘
January 1, 1989’ for ‘
January 1, 1987’, and “(B) by substituting ‘
January 1, 1990’ for ‘
January 1, 1988’. “(5) Special rule for like-kind exchange of partnership interests.—Paragraph (2)(D) of section 1031(a) of the Internal Revenue Code of 1986 (as amended by subsection (a)) shall not apply to any exchange of an interest as general partner pursuant to a plan of reorganization of ownership interest under a contract which took effect on
March 29, 1984, and which was executed on or before
March 31, 1984, but only if all the exchanges contemplated by the reorganization plan are completed on or before
December 31, 1984.”

Effective Date

of 1969 Amendment Pub. L. 91–172, title II, § 212(c)(2), Dec. 30, 1969, 83 Stat. 571, as amended by Pub. L. 99–514, § 2, Oct. 22, 1986, 100 Stat. 2095, provided that: “The amendment made by paragraph (1) [amending this section] shall apply to taxable years to which the Internal Revenue Code of 1986 [formerly I.R.C. 1954] applies.”

Effective Date

of 1959 AmendmentAmendment by Pub. L. 86–346 effective for taxable years ending after Sept. 22, 1959, see section 203 of Pub. L. 86–346, set out as an

Effective Date

note under section 1037 of this title.

Effective Date

of 1958 AmendmentAmendment by Pub. L. 85–866 applicable to taxable years beginning after Dec. 31, 1953, and ending after Aug. 16, 1954, see section 1(c)(1) of Pub. L. 85–866, set out as a note under section 165 of this title. Plan

Amendments

Not Required Until January 1, 1989For provisions directing that if any

Amendments

made by subtitle A or subtitle C of title XI [§§ 1101–1147 and 1171–1177] or title XVIII [§§ 1800–1899A] of Pub. L. 99–514 require an amendment to any plan, such plan amendment shall not be required to be made before the first plan year beginning on or after Jan. 1, 1989, see section 1140 of Pub. L. 99–514, as amended, set out as a note under section 401 of this title.

Reference

Citations & Metadata

Citation

26 U.S.C. § 1031

Title 26Internal Revenue Code

Last Updated

Apr 6, 2026

Release point: 119-73