IRC Section 1031 Explained: Like-Kind Exchange Rules in the Code
IRC Section 1031 generally provides that no gain or loss is recognized when real property held for productive use in a trade or business or for investment is exchanged solely for like-kind real property held for the same purposes (IRC § 1031(a)(1)). Timing limits, boot rules, basis carryover, and related-party restrictions in later subsections may change that result.
This page is general research, not tax, legal, or investment advice. Do not take any action based on this page without first consulting a qualified CPA or tax attorney who knows your facts.
Statute at a glance26 U.S.C. §1031
How the Code section is organized
Section 1031 is short, but each subsection does separate work. Subsection (a) states the general rule and its timing limits. Subsections (b) through (d) address money, other property, and basis. Subsection (e) covers certain electing partnerships, (f) and (g) address related persons, and (h) separates U.S. and foreign real property.
| Subsection | What it does | Pinpoint |
|---|---|---|
| (a)(1) | General nonrecognition rule for real property | IRC § 1031(a)(1) |
| (a)(2) | Excludes real property held primarily for sale | IRC § 1031(a)(2) |
| (a)(3) | Identification and exchange periods | IRC § 1031(a)(3)(A), (B) |
| (b) | Gain recognized to the extent of money and other property | IRC § 1031(b) |
| (c) | No loss recognized when money or other property is received | IRC § 1031(c) |
| (d) | Basis of property received, and liabilities treated as money | IRC § 1031(d) |
| (e) | Partnerships electing out of subchapter K | IRC § 1031(e) |
| (f), (g) | Related-person exchanges and the two-year period | IRC § 1031(f), (g) |
| (h) | U.S. and foreign real property are not like kind | IRC § 1031(h) |
Section 1031(a)(1) and (a)(2): the general rule and the real property limit
As amended by Pub. L. 115-97, § 13303(a), the general rule in § 1031(a)(1) applies only to real property. The amendment generally applies to exchanges completed after December 31, 2017, subject to a transition rule. Subsection (a)(2) excludes any exchange of real property held primarily for sale. Both sides of the exchange must meet the use test.
Read as elements, the general rule has four parts:
- The relinquished property is real property "held for productive use in a trade or business or for investment" (IRC § 1031(a)(1)).
- It is exchanged "solely for real property of like kind" (IRC § 1031(a)(1)).
- The replacement property is "to be held either for productive use in a trade or business or for investment" (IRC § 1031(a)(1)).
- The exchange does not involve real property "held primarily for sale" (IRC § 1031(a)(2)).
Before the 2017 amendment, subsection (a)(1) referred to "property," and subsection (a)(2) separately excluded stock in trade, stocks, bonds, notes, other securities, partnership interests, certificates of trust or beneficial interests, and choses in action. Pub. L. 115-97 substituted "real property" for "property" and rewrote (a)(2) (Pub. L. 115-97, § 13303(a), (b)(1)(A)). Under the transition rule, the amendments do not apply to an exchange if the relinquished property was disposed of, or the replacement property was received, on or before December 31, 2017 (Pub. L. 115-97, § 13303(c)(2)).
The 2026 Instructions for Form 8824 state that properties are of like kind "if they are of the same nature or character, even if they differ in grade or quality." They add that real properties generally are like kind whether improved or unimproved. Under subsection (e), an interest in a partnership with a valid § 761(a) election out of subchapter K is treated as an interest in each of the partnership's assets (IRC § 1031(e)).
Section 1031(a)(3): the 45-day and 180-day periods
Under § 1031(a)(3), property received is treated as not like-kind property unless it meets both timing tests. It must be identified within 45 days after the relinquished property is transferred, and it must be received by the earlier of 180 days after that transfer or the return due date, with extensions, for the year of transfer.
The statute sets two separate tests:
- Identification. Replacement property must be identified "on or before the day which is 45 days after" the transfer of the relinquished property (IRC § 1031(a)(3)(A)).
- Receipt. Replacement property must be received by the earlier of the day 180 days after the transfer or the due date, determined with regard to extension, of the transferor's return for the year of the transfer (IRC § 1031(a)(3)(B)(i), (ii)).
The second prong means a return due date can end the exchange period before day 180. The Form 8824 instructions describe how written identification works under the regulations (Instructions for Form 8824 (2026), Line 5):
- The replacement property is designated in writing, either in a document the taxpayer signs or in a written agreement signed by all parties.
- The description is "clear and recognizable," such as a legal description, street address, or distinguishable name.
- Within the 45 days, the signed document is sent to the person required to transfer the replacement property or to another person involved in the exchange who is not a disqualified person, or all parties sign the written agreement.
Replacement property received before the 45-day period ends is treated as meeting the identification requirement (Instructions for Form 8824 (2026), Line 5, Note).
Sections 1031(b) and (c): boot, gain, and loss
Subsection (b) requires recognition of gain, if any, but in an amount not more than the sum of money and the fair market value of other property received. Subsection (c) bars recognition of any loss in an exchange that includes money or other property. This page uses "boot" as shorthand for that money or other property.
Several points shape how these subsections apply in practice:
- Liabilities count as money. When another party assumes a liability of the taxpayer, as determined under § 357(d), the assumption is "considered as money received" (IRC § 1031(d), last sentence).
- Netting on the return. Form 8824, line 15, includes cash received, the fair market value of other property received, and net liabilities assumed by the other party, reduced by exchange expenses (Instructions for Form 8824 (2026), Lines 15 and 15a, citing Treas. Reg. § 1.1031(d)-2).
- Other property given up. Gain or loss on non-like-kind property the taxpayer gives up is reported as if the exchange were a sale (Instructions for Form 8824 (2026), Line 14).
- Recapture. Part or all of the realized gain may need to be recaptured as ordinary income where section 1245 or 1250 property is involved (Instructions for Form 8824 (2026), Line 21).
- Multi-asset exchanges. Special rules for figuring recognized gain and basis appear in Treas. Reg. § 1.1031(j)-1 (Instructions for Form 8824 (2026), Multi-Asset Exchanges).
Section 1031(d): basis of the replacement property
Subsection (d) generally carries over the basis of the property exchanged to the property received. That basis is decreased by money received and increased by gain recognized, or decreased by loss recognized. When other property is also received, basis is allocated, and the other property is assigned an amount equal to its fair market value at the exchange date.
In formula terms under IRC § 1031(d):
- Basis of property given up
- minus money received, including liabilities assumed by the other party
- plus gain recognized, or minus loss recognized
- equals total basis, allocated first to other property at its fair market value, with the remainder going to the like-kind property
Form 8824 reaches the like-kind basis on line 25 by subtracting line 15 from the sum of lines 18 and 23. Where the taxpayer receives section 1250 property, section 1245, 1252, 1254, or 1255 property, or intangible real property, line 25 is split across lines 25a, 25b, and 25c in proportion to fair market values (Instructions for Form 8824 (2026), Lines 25, 25a, 25b, and 25c).
Sections 1031(f) and (g): exchanges between related persons
Subsection (f) can undo nonrecognition for an exchange with a related person if either party disposes of the exchanged property before the date two years after the last transfer in the exchange. Any gain or loss is then taken into account as of the date of that later disposition, subject to listed exceptions.
The statute works in this sequence:
- Who is related. A related person is anyone with a relationship described in § 267(b) or § 707(b)(1) (IRC § 1031(f)(3)). The Form 8824 instructions list a spouse, child, grandchild, parent, grandparent, brother, sister, and certain related entities, and they treat exchanges through a qualified intermediary or a disregarded entity as possible indirect exchanges (Instructions for Form 8824 (2026), Line 7).
- Triggering disposition. Nonrecognition is lost if, within two years, the related person disposes of the property received from the taxpayer, or the taxpayer disposes of the like-kind property received from the related person (IRC § 1031(f)(1)(C)).
- Exceptions. Dispositions are disregarded if they occur after the death of either party, in certain involuntary conversions under § 1033 where the exchange preceded the threat of conversion, or where it is established to the Secretary's satisfaction that neither the exchange nor the disposition had "the avoidance of Federal income tax" as a principal purpose (IRC § 1031(f)(2)(A) to (C)).
- Anti-abuse rule. Section 1031 does not apply to an exchange that is part of a transaction, or series of transactions, structured to get around the purposes of subsection (f) (IRC § 1031(f)(4)). The instructions cite Rev. Rul. 2002-83 on this point.
- Suspension. The two-year period under § 1031(f)(1)(C) is suspended while the holder's risk of loss is substantially diminished by a put, another person's right to acquire the property, or a short sale or other transaction (IRC § 1031(g)).
Form 8824 must also be filed for the two years following the year of a related-party exchange (Instructions for Form 8824 (2026), When To File).
Section 1031(h): U.S. and foreign real property
Subsection (h) states that real property located in the United States and real property located outside the United States are not property of a like kind. The current text reflects a 2017 amendment by Pub. L. 115-97, § 13303(b)(4). Before that amendment, subsection (h) addressed both foreign real and personal property.
Under the like-kind requirement in § 1031(a)(1), an exchange of U.S. real property for foreign real property generally falls outside the nonrecognition rule. Form 8824 asks the filer to indicate the country when property described on line 1 or line 2 is located outside the United States (Instructions for Form 8824 (2026), Lines 1 and 2).
Where the regulations and IRS guidance take over
The statute sets the rules, but much of the operative detail sits in Treasury regulations and IRS guidance. The 2026 Form 8824 instructions describe regulations that define real property, address incidental personal property, and govern deferred exchanges through qualified intermediaries. They also point readers to revenue procedures for related arrangements.
| Topic | Statutory hook | Where the detail is | What the instructions describe |
|---|---|---|---|
| Definition of real property | § 1031(a)(1) | Treas. Reg. § 1.1031(a)-3 | Land and improvements, unsevered natural products, and water and air space superjacent to land, with tangible and intangible tests, for exchanges beginning after December 2, 2020 |
| Stock treated as real property | § 1031(a)(1) | Treas. Reg. § 1.1031(a)-3 | Cooperative housing stock and certain mutual ditch, reservoir, or irrigation company shares |
| Incidental personal property | § 1031(a)(1) | Treas. Reg. § 1.1031(k)-1(g)(6), (7) | Disregarded if typically transferred with the real property and not more than 15% of the aggregate fair market value of the replacement real property (regulations applicable to exchanges beginning after December 2, 2020) |
| Disqualified persons | § 1031(a)(3) | Treas. Reg. § 1.1031(k)-1(k) | Related parties and agents of the taxpayer are not eligible to serve as qualified intermediaries |
| Qualified intermediary default | § 1031(a)(3) | Rev. Proc. 2010-14 | Certain taxpayers may report gain in the year or years payments are received |
| Parking arrangements | § 1031(a)(3) | Rev. Proc. 2000-37, as modified by Rev. Proc. 2004-51 | An exchange accommodation titleholder may be treated as the beneficial owner |
| Property used partly as a home | § 1031(a)(1) | Rev. Proc. 2005-14 and Rev. Proc. 2008-16 | Coordination with § 121, with Rev. Proc. 2008-16 effective for exchanges on or after March 10, 2008 |
The mutual ditch rule is an example of how the statute and regulations fit together. The 2017 amendment struck former subsection (i), which addressed those shares (Pub. L. 115-97, § 13303(b)(1)(B)), and the instructions now list them as real property under Treas. Reg. § 1.1031(a)-3. The instructions describe a qualified intermediary exchange as one "safe harbor" and refer readers to Pub. 544 for others. Whether any arrangement qualifies depends on the facts.
Hypothetical example
The following illustration uses round, hypothetical numbers to show how subsections (a), (b), and (d) interact. It assumes an exchange completed in 2026, after the December 31, 2017 cutoff in Pub. L. 115-97, § 13303(c)(1), with timely identification and receipt, U.S. property on both sides, and no related person.
An investor transfers investment real property and receives like-kind real property plus cash. All amounts are illustrative only.
| Item | Illustrative amount | Authority |
|---|---|---|
| Fair market value of relinquished real property | $1,000,000 | |
| Adjusted basis of relinquished real property | $400,000 | |
| Fair market value of replacement real property | $900,000 | |
| Cash received | $100,000 | |
| Gain realized ($1,000,000 minus $400,000) | $600,000 | |
| Gain recognized, limited to cash received | $100,000 | IRC § 1031(b) |
| Gain not recognized | $500,000 | IRC § 1031(a)(1) |
| Basis of replacement ($400,000 minus $100,000 cash plus $100,000 gain) | $400,000 | IRC § 1031(d) |
The $500,000 of unrecognized gain shows up as the difference between the replacement property's $900,000 value and its $400,000 basis. If the investor had a realized loss instead, § 1031(c) would bar recognition of that loss. If the replacement property were outside the United States, § 1031(h) would treat it as not like kind. The illustration leaves out liabilities, exchange expenses, and recapture, which the Form 8824 instructions address on lines 15, 18, and 21.
Questions to take to a CPA or tax attorney
The questions below are framed for a discussion with a qualified CPA or tax attorney who can review the actual facts, documents, and timeline. They follow the order of the statute and are not a substitute for professional review of any specific exchange or return position.
- Does each property meet the productive use or investment standard in § 1031(a)(1), and is any of it held primarily for sale under § 1031(a)(2)?
- Is every asset transferred and received real property under Treas. Reg. § 1.1031(a)-3, and does any personal property fall within the 15% rule in Treas. Reg. § 1.1031(k)-1(g)(7)?
- When does the 45-day identification period end, and could the return due date for the year of transfer cut the 180-day period short under § 1031(a)(3)(B)(ii)?
- How will liabilities assumed by each party be netted under § 1031(d) and Treas. Reg. § 1.1031(d)-2?
- Is any counterparty, or any prior owner of the replacement property, a related person under § 267(b) or § 707(b)(1)?
- Could a later sale, put, or similar arrangement trigger or suspend the two-year period under § 1031(f) and (g)?
- Is any of the property located outside the United States for purposes of § 1031(h)?
- What depreciation recapture, if any, would be reported on Form 8824, line 21?
This page is general research, not tax, legal, or investment advice. Do not take any action based on this page without first consulting a qualified CPA or tax attorney who knows your facts.
Sources
Section 1031 itself, with its editorial and statutory notes, sets the statutory rules discussed above. The 2026 Instructions for Form 8824 describe the related Treasury regulations, reporting lines, and IRS procedures. Readers can review both official versions at the addresses below.
- 26 U.S.C. § 1031(a)(1), (a)(2), (a)(3)(A) and (B), (b), (c), (d), (e), (f)(1) to (4), (g)(1) and (2), and (h), with Editorial Notes (Amendments, 2017) and Statutory Notes (Effective Date of 2017 Amendment, Pub. L. 115-97, § 13303(c)), Legal Information Institute, Cornell Law School, https://www.law.cornell.edu/uscode/text/26/1031, accessed November 14, 2026.
- Internal Revenue Service, Instructions for Form 8824 (2026), Reminders (Exchanges limited to real property, Section 1031 regulations), Like-Kind Exchanges, Definition of Real Property, Deferred Exchanges, Incidental personal property, Multi-Asset Exchanges, Exchanges Using a QEAA, Property Used as Home, and Specific Instructions for Lines 1 and 2, 5, 6, 7, 11a to 11c, 14, 15, 21, and 25 to 25c, https://www.irs.gov/instructions/i8824, accessed November 14, 2026.