A 1031 exchange defers gain on real property with no fixed end date when the full value goes into like-kind real property, but the exchanged basis generally stays on the old depreciation schedule, while an Opportunity Zone fund defers only eligible gain invested within 180 days, brings that gain back on a set date unless an inclusion event comes first, and owns property with new basis a cost segregation study can reclassify.
Cost segregation does not decide which route defers more gain; it decides when the deductions arrive on each route's depreciable basis. On a 1031 replacement property a study generally reaches only the excess basis, and in a Qualified Opportunity Fund (QOF) project it reaches the entity's own cost, so the comparison turns on how much new basis each route creates, whether the investor can use the deductions, when the deferred gain comes due and how the investment exits. This post compares the two routes for a sale that could go either way. For cash or debt relief left over from a partial exchange, see whether 1031 boot can go into a QOF; for an exchange that fails outright, see when a QOF can rescue a failed 1031 exchange.
What is the difference between a 1031 exchange and an Opportunity Zone fund?
A 1031 exchange swaps real property held for use in a trade or business or for investment for like-kind real property under IRC §1031(a)(1), while an Opportunity Zone investment puts gain from a sale to an unrelated person into a QOF under IRC §1400Z-2(a)(1), and that gain can come from an asset other than real estate.
| Question | 1031 exchange | Opportunity Zone fund |
|---|---|---|
| What does the investor own afterward? | The replacement property itself. | Stock or a partnership interest in a QOF, which is organized as a corporation or a partnership (IRC §1400Z-2(d)(1)). |
| Where can the money go? | Into like-kind real property; US and foreign real property are not of like kind (IRC §1031(h)). | Into a QOF, which must hold at least 90 percent of its assets in qualified opportunity zone property (IRC §1400Z-2(d)(1)); tangible property the fund or its business acquires after December 31, 2026 generally has to be acquired for use in a zone designated after July 4, 2025 (Notice 2026-40, section 5.01). |
| How much has to be reinvested? | The full value, for full deferral; with a smaller replacement, gain is recognized up to the boot (IRC §1031(b)). | Only the gain, and only up to the amount invested (IRC §1400Z-2(a)(1)(A)). |
| What is the deadline? | 45 days after the transfer to identify the property, and 180 days after the transfer, or the due date of the return including extensions if earlier, to receive it (IRC §1031(a)(3)). | 180 days from the day the gain would be recognized, with separate start dates for gain passed through an entity (Treas. Reg. §1.1400Z2(a)-1(b)(7) and (c)(8)-(9)). |
| When does the deferred gain come due? | On a taxable sale of the replacement property, with no fixed date. | Included for the tax year that includes the earlier of an inclusion event or December 31, 2026 (an amount invested by then), or the earlier of an inclusion event or the fifth anniversary of the investment (an amount invested after it) (Notice 2026-40, sections 4.01 and 4.02). |
| What can a cost segregation study reach? | Generally the excess basis, the part of the replacement basis above the basis carried over from the relinquished property, unless the taxpayer elects out (Treas. Reg. §1.168(i)-6). | The depreciable cost of the property the QOF or its business owns. |
How much of the gain does each route defer?
A 1031 exchange can defer the capital gain on a sale and, to the extent IRC §1245(b)(4) and §1250(d)(4) allow, the recapture, while an Opportunity Zone fund defers only capital gain and qualified 1231 gain, up to the amount invested (Treas. Reg. §1.1400Z2(a)-1(b)(11)). A section 1231 gain counts only to the extent it exceeds the amount treated as ordinary income under §1245 or §1250, so that ordinary recapture is taxed in the year of sale even when the rest of the gain goes into a QOF.
The gap is wider on a building with an earlier cost segregation study, because gain on its reclassified 5- and 7-year property is §1245 ordinary income up to the depreciation taken. In an exchange, IRC §1245(b)(4) limits that income to the gain recognized plus the value of the acquired property that is not §1245 property, so the recapture stays deferred only when the replacement property holds enough §1245 property; IRC §1250(d)(4) sets a separate limit for §1250 property. What an earlier study does to a QOF election works through that split.
When does the deferred gain come due on each route?
Gain deferred in a 1031 exchange has no due date: it stays with the replacement property until a taxable sale, and a further qualifying exchange keeps it deferred, while gain deferred in a QOF comes back on a date set by the investment. Gain realized and invested in a QOF on or before December 31, 2026 is included for the tax year that includes the earlier of an inclusion event or December 31, 2026 (Notice 2026-40, section 4.01), so a calendar-year taxpayer gets no deferral past the 2026 return, though the 10-year exclusion can still apply to the investment. The December 31 Opportunity Zone inclusion sets out the return mechanics.
An amount invested after December 31, 2026 is included for the tax year that includes the earlier of an inclusion event or the fifth anniversary of the investment (amended IRC §1400Z-2(b)(1)(B); Notice 2026-40, section 4.02), and an investment held five years gets a basis increase of 10 percent of the deferred gain, or 30 percent in a qualified rural opportunity fund, which reduces the amount included (amended IRC §1400Z-2(b)(2)(B) and (C); Notice 2026-40, section 4.02). The program itself is permanent under the One Big Beautiful Bill Act (OBBBA, 2025), which sets a new round of zone designations every 10 years (IRC §1400Z-1(c)(2)(C)), so December 31, 2026 is a rule for amounts invested by that date, not the end of Opportunity Zones.
What can a cost segregation study reach on each route?
On a 1031 replacement property a cost segregation study generally reaches only the excess basis, because Treas. Reg. §1.168(i)-6 keeps the exchanged basis on the relinquished property's remaining recovery period and method and treats only the excess as newly placed in service, unless the taxpayer elects out under Treas. Reg. §1.168(i)-6(i). How IRC §1031 carryover basis limits cost segregation sets out the election and the basis rule.
In a QOF project a study works on a cost basis instead of a carried-over one. When the QOF or its qualified opportunity zone business (QOZB) acquires original-use property, or buys a used building and substantially improves it under IRC §1400Z-2(d)(2)(D), the entity depreciates its own cost under IRC §168, and a study can move part of the non-land cost from the 27.5- or 39-year schedule under IRC §168(c) into 5-, 7- and 15-year property.
That basis belongs to the entity, so a large project does not by itself mean a large deduction for one investor: the investor's share comes through the fund agreement. Cost segregation creates no basis on either route; it changes when the deductions on existing basis arrive.
Does bonus depreciation work the same way on both routes?
Bonus depreciation does not work the same way on both routes, because a used 1031 replacement property generally takes bonus only on its remaining excess basis (Treas. Reg. §1.168(k)-2(g)(5)(iii)(A), whose text covers replacements before January 1, 2027), while a QOF or QOZB can claim 100% bonus depreciation under IRC §168(k) as amended by OBBBA 2025 on qualified property it acquires after January 19, 2025. Replacement property that meets the original-use requirement can take bonus on both its exchanged and its excess basis under the same regulation. Property acquired on or before January 19, 2025 stays on the TCJA phase-down under IRC §168(k). For that test the acquired date is not the closing date: under IRS Notice 2026-11 property bought under a written binding contract is acquired on the latest of the date the contract was signed, the date it became enforceable under state law, the end of any cancellation period and the date any contingency was satisfied, under a contract that is not binding (for example, one that limits damages to a specified amount) it is generally when more than 10 percent of the total cost, excluding land and preliminary activities, has been paid or incurred, and self-constructed property, including property built for the taxpayer under a written binding contract signed before construction began, is acquired when physical work of a significant nature begins (Treas. Reg. §1.168(k)-2(b)(5)); and used property qualifies only if the taxpayer had not used it at any time before acquiring it and the acquisition meets the §179(d) purchase rules that §168(k)(2)(E)(ii) applies (for example, it was not acquired from a related party, by gift or inheritance, or with a carryover basis).
Can the investor use the depreciation on each route?
A 1031 owner holds the replacement property and its depreciation directly, while a partner in a QOF taxed as a partnership receives depreciation through the entity, and a QOF taxed as a corporation keeps it inside the corporation. A Qualified Opportunity Fund interest funded with deferred gain starts at a $0 basis under IRC §1400Z-2(b)(2)(B), and partnership losses are deductible only up to basis under §704(d); a partner's share of partnership debt counts as basis under §752, so the accelerated depreciation is usually still usable. Whether it is usable depends on the investor's capital account and debt basis. On both routes the at-risk rules of IRC §465 can apply to an individual or a closely held C corporation, and the passive-activity rules of IRC §469 to an individual, estate, trust, closely held C corporation or personal service corporation, so depreciation that is large on a schedule can still be carried forward instead of reducing tax this year.
What happens to depreciation recapture when each route exits?
A 1031 exchange postpones recapture rather than removing it: a taxable sale of the replacement property brings back the deferred gain and the recapture that went with it, unless a further qualifying exchange continues the deferral or the owner holds the property until death and a step-up applies under IRC §1014.
On a qualifying investment held 10 years, an investor who elected deferral and sells the interest in a Qualified Opportunity Fund taxed as a partnership may elect to step basis to fair market value under IRC §1400Z-2(c), and on that sale the election removes both the ordinary recapture and the unrecaptured §1250 gain, which is what converts cost segregation from a timing benefit into a permanent one. If the fund sells the property, a separate election under Treas. Reg. §1.1400Z2(c)-1(b)(2)(ii) can exclude the gain for partnership or S-corporation funds, and a corporate fund gets no such election. The two transactions do not behave identically, so the exit the sponsor plans decides which election applies (the asset-sale exclusion for 10-year LPs).
On a taxable sale before year 10, recapture behaves normally: §1245 recapture on the 5- and 7-year property is ordinary income, as is §1250 recapture of the depreciation taken above straight-line (bonus included) on 15-year land improvements held more than one year, and the rest of the depreciation on those land improvements and on the 27.5- or 39-year structure is unrecaptured §1250 gain, taxed at up to 25% for a noncorporate taxpayer. Nothing about Opportunity Zone status shields that.
Two limits apply to the exclusion. It reaches only the part of the investment funded with deferred gain (IRC §1400Z-2(e)(1)), and it does not reach the deferred gain itself, which still comes due on the schedule above however long the investment is held. Deferred gain in a QOF also outlives an investor who dies before the inclusion date: a transfer by reason of death is not an inclusion event (Treas. Reg. §1.1400Z2(b)-1(c)(4)(i)), but gain the decedent did not include stays includible as provided by IRC §691 when a later inclusion event occurs (IRC §1400Z-2(e)(3); Treas. Reg. §1.1400Z2(b)-1(c)(4)(iii)), and income in respect of a decedent gets no basis step-up (IRC §1014(c)), so the step-up a 1031 owner plans around does not clear it.
When does each route apply?
A 1031 exchange tends to fit an investor who wants to stay in direct real estate, and a QOF tends to fit one who wants to redeploy only the gain into a new project and expects to reach the 10-year hold; neither route is better for every sale.
- A 1031 exchange tends to fit when there is a replacement property worth owning inside the deadlines, when the building carries recapture from an earlier study that a QOF could not take and the replacement property holds enough §1245 property to keep that recapture deferred under IRC §1245(b)(4), and when the investor wants no fixed date for the deferred gain.
- A QOF tends to fit when no replacement property is worth buying, when the investor wants to keep the rest of the proceeds out of the deal, when the project has meaningful new depreciable basis the investor can use, and when a 10-year hold is realistic.
- Neither fits on depreciation alone: a study accelerates deductions on either route, and over the life of the building the same basis is recovered.
What numbers does a 1031 vs Opportunity Zone comparison need?
A 1031 vs Opportunity Zone comparison needs five numbers for each route: the gain by character, the date the deferred gain comes due, the depreciable basis a cost segregation study can reach, the deductions the investor can use each year, and the tax at exit. The relinquished property's depreciation schedule and any earlier study supply the first number, and the QOF sponsor's acquisition file, fund agreement and depreciation schedule supply the rest of the QOF column.
Once either property is owned, start a cost segregation study. Opportunity Zone cost segregation covers the QOF side, and the guide to the best cost segregation companies sets out what to ask a provider on either route.
Related reading: The December 31 Opportunity Zone Inclusion, Line by Line — Including the Rule That Overrides the One Your Client Read About, Your Opportunity Zone Tax Bill Is Set by a Number Nobody Has Told You How to Calculate and There Is No Guidance on How to Value a QOF Interest — and in December It Sets Your Client’s Tax Bill.
Frequently Asked Questions
How does depreciation differ between a 1031 exchange and an Opportunity Zone fund?
A QOF project's whole depreciable cost is available to a cost segregation study under IRC §168, while a 1031 replacement property generally offers a study only its excess basis, because the exchanged basis keeps the old schedule under Treas. Reg. §1.168(i)-6. Which route yields more usable depreciation depends on each route's new basis, the investor's share of a fund's deductions and, for a QOF taxed as a partnership, the partner's basis under IRC §704(d), together with the at-risk and passive-activity limits of IRC §465 and §469.
Does a 1031 exchange defer depreciation recapture when a QOF cannot?
A 1031 exchange can defer depreciation recapture within the limits of IRC §1245(b)(4) and §1250(d)(4), while ordinary recapture is not eligible gain for a QOF under Treas. Reg. §1.1400Z2(a)-1(b)(11) and is taxed in the year of sale. Unrecaptured §1250 gain is capital gain, so it can go into a QOF when the other requirements are met.
Does a cost segregation study change when deferred gain comes due in a QOF?
A cost segregation study does not change the inclusion dates under IRC §1400Z-2(b), which follow the investment, not the property's depreciation: gain invested by December 31, 2026 is included for the tax year that includes the earlier of an inclusion event or December 31, 2026, and an amount invested after it for the tax year that includes the earlier of an inclusion event or the fifth anniversary (Notice 2026-40, sections 4.01 and 4.02). A partnership distribution above a partner's basis in the qualifying investment is one such inclusion event (Treas. Reg. §1.1400Z2(b)-1(c)(6)(iii)). A 1031 exchange has no such date.
Can a QOF interest be 1031 replacement property?
A QOF interest cannot be 1031 replacement property, because IRC §1031(a)(1) covers only real property exchanged for like-kind real property and an investment in a QOF is stock or a partnership interest under IRC §1400Z-2(d)(1). The two can still apply to one sale: capital gain recognized in a partial exchange can go into a QOF within 180 days of the day it would be recognized.
How do a 1031 exchange and an Opportunity Zone fund differ on the gain they defer?
A 1031 exchange can defer ordinary recapture within the limits of IRC §1245(b)(4) and §1250(d)(4) and has no inclusion date, but it needs the full value reinvested in like-kind real property for full deferral, while a QOF defers only eligible capital gain and qualified 1231 gain (Treas. Reg. §1.1400Z2(a)-1(b)(11)), needs only that gain invested, and brings it back on the dates in Notice 2026-40, sections 4.01 and 4.02. Separately, an investor who sells the QOF interest after a 10-year hold with the IRC §1400Z-2(c) election can exclude the gain on that sale, recapture included, for the part of the investment funded with deferred gain (IRC §1400Z-2(e)(1)), but not the deferred gain itself; an exchange has no such election, and its deferred gain stays deferred until a taxable sale or is cleared by the IRC §1014 step-up at death.