Full worked example — the numbers from both sides
A regional restaurant chain owns a free-standing 4,000-square-foot building on its own land. After a cost segregation study when the property was placed in service 8 years ago, the chain had:
- Land: $400,000 (not depreciable)
- Building (39-year SL): original cost $1,100,000; accumulated depreciation $225,641 (8.33 years × 1/39 × $1,100,000)
- §1245 personal property (5-year, bonus depleted): original cost $200,000; fully depreciated, zero remaining basis
Adjusted basis at sale: $400,000 (land) + ($1,100,000 − $225,641) (building) + $0 (§1245) = $1,274,359
The chain sells the building to a net-lease investor for $2,100,000 and simultaneously signs a 20-year NNN leaseback at $168,000 per year base rent ($14,000/month), with options to extend. The tenant (chain) pays property taxes, insurance, and maintenance directly.
Seller's (chain's) tax calculation at sale:
| Amount realized (sale price) | $2,100,000 |
| Less: adjusted basis | ($1,274,359) |
| Total realized gain | $825,641 |
| §1245 recapture (fully depreciated personal property) | $200,000 — ordinary income |
| Unrecaptured §1250 gain (building depreciation taken) | $225,641 — max 25% rate |
| Remaining §1231 gain (long-term capital) | $399,000 — max 20% + 3.8% NIIT |
Note: The §1245 recapture ($200,000) is taxed as ordinary income regardless of how long the asset was held. The unrecaptured §1250 gain ($225,641) is taxed at a maximum federal rate of 25%. The remaining §1231 gain ($399,000) is long-term capital gain, subject to a maximum 20% rate plus the 3.8% NIIT if applicable.
Seller's post-sale annual tax benefit (rent deduction): The chain now deducts $168,000 in NNN rent per year as an ordinary business expense — replacing the annual depreciation deduction of approximately $28,205 ($1,100,000 ÷ 39) it previously took on the building. The effective tax benefit of the rent deduction is larger than the depreciation it lost, since rent is fully deductible while depreciation was only 1/39 of cost per year.
Buyer's (net-lease investor's) tax picture:
| Purchase price / new cost basis | $2,100,000 |
| Land allocation (appraised, assumed 20%) | $420,000 — not depreciable |
| Depreciable building basis | $1,680,000 |
| Annual MACRS depreciation (39 years, mid-month) | ≈ $43,077 per year |
| Annual NNN income | $168,000 (base rent only; no gross-up for expenses) |
| Approximate year-1 taxable income before cost segregation | $168,000 − $43,077 = $124,923 |
If the buyer commissions a cost segregation study and reclassifies 15% of the building cost into 5-year components ($252,000) and 5% into 15-year components ($84,000), and the building was placed in service after January 19, 2025 (100% bonus depreciation restored):
- 5-year components: $252,000 × 100% bonus = $252,000 first-year deduction
- 15-year components: $84,000 × 100% bonus = $84,000 first-year deduction
- Remaining building (39-year): $1,680,000 − $252,000 − $84,000 = $1,344,000 × 1/39 × half-year = ≈ $17,231
- Total year-1 depreciation with cost segregation: $336,000 + $17,231 = $353,231
Year-1 taxable income: $168,000 − $353,231 = ($185,231) passive loss. This loss is typically suspended under the passive-activity rules until offset by other passive income or the property is sold. For a real estate professional with material participation, it may be fully deductible. At a minimum, it defers tax on a substantial amount of income.
Why sellers do sale-leasebacks — and the hidden tax cost
Corporations and owner-operators use sale-leasebacks to monetize illiquid real estate at full market value, freeing capital for core business investment. The appeal is that the sale proceeds may exceed what a mortgage would provide, and the rent payment replaces a capital cost with a fully deductible operating expense.
The hidden tax cost is immediate: gain recognition and depreciation recapture hit in year one, with no deferral mechanism (unlike a 1031 exchange). Over a 20-year leaseback, the seller deducts rent totaling $168,000 × 20 = $3,360,000 — far more than the original purchase price — but those deductions come slowly, while the tax on the gain comes all at once. A seller must model the present value of the future rent deductions against the current-year tax cost of recognition to determine whether the transaction creates or destroys after-tax value.
The §467 rental agreement rule and leaseback rents
When a leaseback agreement has aggregate rents exceeding $250,000, IRC §467 may apply to determine when rent is deducted by the tenant and when it is included in income by the landlord. §467 concerns itself with timing mismatches — rents that are prepaid, deferred, or not proportional to the period of use.
For most plain-vanilla NNN sale-leasebacks with level annual rent, §467 simply confirms that the rent is deductible and includible in each year as it accrues and is paid — no reallocation needed. The rule becomes more complex when:
- The leaseback has a rent-free period at the beginning (the first year has no rent but later years do — a stepped schedule).
- The seller and buyer are related parties under IRC §267 or §707 — a "disqualified leaseback" under §467(b)(2), which triggers mandatory proportional-rental-accrual and can accelerate the buyer's income and the seller's deduction regardless of the payment schedule.
- The leaseback includes unusually large balloon rent payments at the end of the term.
Parties structuring a sale-leaseback between related entities (a parent selling to a subsidiary, or partners selling to their own partnership) must review §467 carefully before finalizing rent terms. A disproportionate rent schedule in a related-party leaseback is restructured by the IRS into proportional rent — which may alter the tax deductions both parties expected.
§1239 ordinary income risk in related-party sale-leasebacks
Under IRC §1239, gain on the sale of depreciable property between related parties — including a shareholder and a more-than-50%-owned corporation — is recharacterized as ordinary income rather than capital gain, to the extent the property is depreciable by the buyer. Because the building in a sale-leaseback is depreciable by the buying investor, related-party transactions can convert what would otherwise be §1231 capital gain into ordinary income at full rates.
For unrelated parties — a true arm's-length sale to an independent investor — §1239 does not apply, and the §1231 gain retains its preferential long-term capital gain character. This is one reason most sale-leasebacks are structured with unrelated institutional buyers: the tax character of the gain is significantly better.
Seller's basis in the new leasehold interest
Once the sale closes, the seller no longer has an ownership interest in the building — only a leasehold interest (the right to occupy under the leaseback lease). Leasehold interests are not depreciable by the tenant unless the tenant itself makes improvements. The seller/tenant can depreciate any leasehold improvements it subsequently makes to the space (qualified improvement property, 15-year MACRS) but cannot depreciate the building or land it no longer owns. The original building's tax story ended at the sale; the rent-deduction story begins on day one of the leaseback.
Frequently asked questions
Does a sale-leaseback qualify for a 1031 exchange?
No. The seller in a sale-leaseback gives up ownership and immediately becomes a tenant, so no like-kind replacement property is acquired. A 1031 exchange requires reinvestment in replacement property held for investment, which the seller does not have. The buyer could do a 1031 on a later sale of the leased property.
Can the seller deduct rent paid in a sale-leaseback?
Yes, if the rent is an ordinary and necessary business expense. The seller/tenant deducts NNN rent as a business expense on its operating return — the base rent plus any operating costs it pays directly under the triple-net structure. The deduction replaces the depreciation deduction the seller gave up when it sold the building.
What is the §467 rental agreement rule in a sale-leaseback?
IRC §467 applies when a lease has total rent exceeding $250,000 and rent is deferred or prepaid. It requires that rent be allocated under the lease agreement's payment schedule (or an accrual rule if the lease is a "disqualified leaseback"). Sale-leasebacks between related parties automatically trigger the stricter proportional-rental-accrual rule, which can override the payment schedule for tax purposes.
How does a sale-leaseback affect the buyer's depreciation?
The buyer starts depreciation on the full purchase price as a fresh cost basis. For a commercial NNN building, that is 39-year straight-line MACRS from the month of purchase. A cost segregation study can reclassify personal property and land improvements into shorter lives, with 5-, 7-, and 15-year components eligible for 100% bonus depreciation (for property placed in service after January 19, 2025).
Is a sale-leaseback between related parties respected for tax purposes?
It may be, if it reflects genuine economic substance — a true transfer with market-rate rent. The IRS looks at whether the buyer has actual ownership burdens and benefits, whether rent is at fair market value, and whether the lease term covers the property's remaining useful life. Related-party transactions also face §467 and may trigger §1239 ordinary income on the seller's gain.
Can a sale-leaseback gain be reported on the installment method?
Yes, if the buyer pays over time. Under IRC §453, the seller reports gain as payments are received — but §1245 depreciation recapture must be fully recognized in year one. Only the §1231 or long-term capital-gain portion can be deferred through installment reporting.
What happens to depreciation recapture in a sale-leaseback?
All accumulated depreciation on §1245 components is recaptured as ordinary income in the year of sale. The building's unrecaptured §1250 gain is taxed at a maximum 25% rate. The leaseback structure does not reduce or defer recapture — it hits the same year as the sale proceeds.
Does the seller's gain in a sale-leaseback produce NIIT exposure?
Yes. The gain is net investment income under IRC §1411 and subject to the 3.8% NIIT to the extent MAGI exceeds $200,000 ($250,000 MFJ). NNN rent paid going forward is a deductible operating expense for the seller's business — it reduces net investment income only if the rental is part of a non-passive trade or business in which the seller materially participates.
Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.
