The short answer
No, not on its own. Section 1031(f) applies when "a taxpayer exchanges property with a related person," so it looks at the party that takes your building and the party whose property you receive. A lease back to your professional corporation makes that corporation a tenant, not a party to the exchange, so a sale to an unrelated investor with a lease back is an ordinary deferred exchange. The exchange becomes a related-party exchange only when the buyer, or the seller of your replacement, is related to you under section 267(b) or section 707(b)(1): family, the trustee of a trust you benefit from, or an entity you own more than half of. Two other rules use the leaseback idea whoever the buyer is: section 467 for rising rent, and the 30-year leasehold line in Reg. section 1.1031(a)-1.
At a glance
| What section 1031(f) tests | The person who takes your relinquished property and the person who supplies your replacement; the tenant is not tested |
|---|---|
| Related person | Family, the trustee of a trust you benefit from, and corporations or partnerships you own more than 50% of, under section 267(b) and section 707(b)(1) |
| Exchanges through an intermediary | The Form 8824 instructions treat an exchange with a related party made through a qualified intermediary as an indirect related-party exchange |
| Two-year rule | Deferral is lost if either side disposes of the exchanged property within two years of the last transfer, with three exceptions |
| Section 467 leaseback | A lease back to anyone who held an interest in the property within the prior two years, or to a related person |
| Section 467 threshold | Total payments over $250,000 with rent that rises or is deferred |
| Thirty-year leasehold | Like-kind to a fee under Reg. section 1.1031(a)-1, so a leaseback that long is a real property interest coming back |
| Sale to a controlled entity | Gain on depreciable property is ordinary income under section 1239 |
Section 1031(f) tests the parties to the exchange, and the tenant is not one of them
The statute is narrow about who it reaches. Section 1031(f)(1)(A) applies where "a taxpayer exchanges property with a related person," and section 1031(f)(3) defines a related person by reference to section 267(b) and section 707(b)(1). In a deferred exchange, the Form 8824 instructions look through the intermediary: an indirect exchange with a related party includes one "made with a related party through an intermediary." So the test is who ends up with your building and who formerly owned your replacement.
A leaseback changes neither. The investor takes title; your professional corporation or practice LLC signs a lease and pays rent. The practice entity never holds the relinquished property and never supplies the replacement, so its relationship to you does not enter the section 1031(f) test, however completely you own it.
The related-party answer for a sale-leaseback is therefore the same as for any sale: it depends on the buyer. Who counts as a related party lists the family members and ownership thresholds, and sale-leaseback then 1031 covers the rent and ownership tests that keep the sale a sale.
When the buyer is related, the relationship decides the outcome and the lease does not
The buyer is related if it is a corporation you own more than 50% of by value, a partnership in which you hold more than 50% of capital or profits, the trustee of a trust you are a beneficiary of, or a member of your family. Ownership is counted with attribution under section 267(c), so stock your child owns is treated as yours.
With a related buyer, section 1031(f)(1)(C) removes the deferral if either side disposes of the property "before the date 2 years after the date of the last transfer," subject to the exceptions for death, involuntary conversion and a showing of no tax-avoidance purpose. Separately, section 1239 treats any gain recognized on depreciable property sold to a controlled entity as ordinary income. A minority rollover stake in the group buying your practice stays below the 50% line; veterinarians selling the clinic building works through that case.
Section 467 has its own leaseback definition, and your lease meets it whoever buys
Section 467(e)(2) defines a leaseback transaction as one involving "a leaseback to any person who had an interest in such property at any time within 2 years before such leaseback (or to a related person)." A practice renting back the building its owners just sold fits that description, so the label applies even with an unrelated buyer.
The label matters only in a narrow case. Section 467(d) reaches rental agreements where rent is deferred past the following calendar year or increases, and section 467(d)(2) exempts agreements whose payments total $250,000 or less. Under section 467(b)(4), a leaseback is "disqualified," with rent accrued as a level constant amount instead of as written, only if "a principal purpose for providing increasing rents under the agreement is the avoidance of tax." Flat rent sits outside section 467 altogether.
The statute also gives nonresidential real property a 19-year recovery period in section 467(e)(3), so a lease longer than 75% of that, about 14 years, is a long-term agreement under the same disqualification test even without the leaseback label.
A leaseback of thirty years or more hands you back a real property interest
Reg. section 1.1031(a)-1(c) gives, as an example of a like-kind exchange, a taxpayer who "exchanges a leasehold of a fee with 30 years or more to run for real estate." A leaseback that long is an interest of the same kind as the fee you sold, which invites the argument that you kept part of the building rather than selling it.
The regulation does not say how renewal options are counted. Keeping the initial term plus every option under thirty years removes the question, which is the approach the owner-occupied building guide takes.
A worked example with an unrelated buyer and then a related one
With an unrelated investor, the related-party question on Form 8824 is answered no. With a related buyer it is answered yes, and the instructions say to "file Form 8824 for the 2 years following the year of a related party exchange"; the related-party section of Form 8824 walks through the lines.
Hypothetical, round numbers. A dentist's LLC sells its building for $2,500,000 to an unrelated net-lease investor, and the professional corporation signs a 12-year lease with two 5-year options, 22 years in all, with rent rising 2% a year. It is a section 467 leaseback with increasing rent over $250,000, but with no tax-avoidance purpose behind the steps, rent accrues as the lease allocates it. The $1,800,000 gain over a $700,000 basis is deferred if the LLC reinvests the full price.
Now the buyer is an LLC owned 60% by the dentist and 40% by an associate. That buyer is related under section 707(b)(1) and a controlled entity under section 1239, so any gain recognized is ordinary income, and if the buyer resells inside two years the deferred $1,800,000 is recognized in the year of the resale. Take both versions of the entity chart to your CPA before the letter of intent is signed.
Related questions
My practice is an S corporation I own outright. Is it my related party?
Yes, under section 267(b)(2), but it does not matter here. The corporation is a tenant, not the buyer of your building or the seller of your replacement, so the exchange stays outside section 1031(f) unless the corporation itself acquires one of those properties.
The investor wants my personal guaranty of the practice's lease. Does that make me a party to the exchange?
No. A guaranty is credit support for the tenant's rent; it transfers no property interest and adds no party to the exchange. It does bind you personally if the practice stops paying, which is a business decision rather than a section 1031 one.
Does the lease back to my practice have to be at market rent for the exchange to qualify?
Section 1031 does not price the lease, but below-market rent lowers what an investor will pay. Where the landlord or tenant furnishes Medicare designated health services, the office-space exception in 42 CFR 411.357(a) also requires rent set in advance and consistent with fair market value.
The group buying my practice wants to buy the building and lease it to the practice it now owns. Related?
Only if you own more than 50% of the group by value or by capital and profits. A minority rollover stake leaves the group an unrelated buyer, and the practice's lease with it has no bearing on your exchange.
Does section 467 apply to a lease at flat rent?
No. Section 467(d)(1) requires either rent payable after the close of the following calendar year or increases in rent. A flat-rent leaseback is outside the section even though it meets the leaseback definition.
Sources
Checked against these publications on October 8, 2026. Rules and figures change; confirm the current version with your CPA or attorney before you act. This page is general information, not tax or legal advice.
- 26 U.S.C. section 1031, Exchange of real property held for productive use or investment
- 26 U.S.C. section 267, Transactions between related taxpayers
- 26 U.S.C. section 1239, Gain from sale of depreciable property between certain related taxpayers
- 26 U.S.C. section 467, Certain payments for the use of property or services
- Treas. Reg. section 1.1031(a)-1, Property held for productive use in trade or business or for investment
- IRS, Instructions for Form 8824 (2025)
- 42 CFR 411.357, Exceptions to the referral prohibition related to compensation arrangements (rental of office space)
