A 1031 exchange and an Opportunity Zone investment both defer capital gains tax, but they work differently. A 1031 exchange requires you to reinvest all of your sale proceeds in like-kind real estate and defers the gain for as long as you keep exchanging. An Opportunity Zone investment requires you to reinvest only the gain, defers it for a limited time, and can exclude the growth on the new investment if you hold it at least ten years.
The 2025 tax law, Public Law 119-21, left section 1031 alone and made the Opportunity Zone program permanent with new terms for amounts invested after December 31, 2026. This comparison uses the statute as amended, as of December 2026. Treasury has not yet updated all of its published guidance for the new rules, so confirm details with your CPA.
1031 exchange vs Opportunity Zone: side by side
| 1031 exchange | Opportunity Zone (amounts invested after December 31, 2026) | |
|---|---|---|
| Gains that qualify | Gain on real property held for investment or business use | Capital gain from the sale of any property to an unrelated person, including stock or a business |
| What you must reinvest | All net proceeds, into property of equal or greater value, to defer all of the gain | Only the gain. You can keep your original basis in cash |
| What you buy | Like-kind U.S. real property, which you can own directly | An equity interest in a Qualified Opportunity Fund, which must hold at least 90% of its assets in zone property |
| Where | Anywhere in the United States | Only in designated Qualified Opportunity Zones |
| Deadline | Identify within 45 days; close by day 180 or your tax return due date, if earlier | Invest within 180 days of the sale |
| Who holds the money | A qualified intermediary. You cannot touch the proceeds | The statute has no intermediary requirement |
| How long the original gain is deferred | Until you sell the replacement property in a taxable sale. Further exchanges continue the deferral | Until you sell the fund investment or five years after you invested, whichever is earlier |
| Reduction of the original gain | None | After five years, basis rises by 10% of the deferred gain, or 30% for a qualified rural opportunity fund |
| Gain on the new investment | Deferred with the rest. Taxed on a later taxable sale | If held at least ten years, you can elect a basis equal to fair market value at sale, so that growth is not taxed. The value used is frozen 30 years after you invested |
| Property condition | New or existing. No improvement requirement | Original use must begin with the fund, or the fund must substantially improve the property |
What the 2025 law changed for Opportunity Zones
Under the original 2017 rules, investors could defer eligible gains until December 31, 2026 at the latest, and the election to defer was due to end after that date. Anyone holding an older Opportunity Zone investment recognizes the remaining deferred gain on December 31, 2026 if they have not already.
Public Law 119-21 rewrote the program going forward:
- The end date was repealed. The deferral election no longer expires.
- Deferral is now a rolling five years. For amounts invested after December 31, 2026, the deferred gain is included in income on the earlier of the date you sell the investment or five years after you made it.
- One basis increase. An investment held five years gets a basis increase equal to 10% of the deferred gain, so up to 90% of it is taxed. For a qualified rural opportunity fund the increase is 30%.
- The ten-year benefit stays, with a 30-year limit. After ten years you can elect to treat your basis as fair market value when you sell. For an investment held more than 30 years, the value on the 30-year date is used.
- Zones are redesignated every ten years. The law sets a new determination date of July 1, 2026 and every ten years after. A designation takes effect on the following January 1 and lasts ten years. The law also rewrote the definition of a low-income community and repealed the rule that let certain neighboring tracts qualify.
- Rural projects have a lower improvement bar. For existing buildings in zones made up entirely of rural area, the substantial improvement requirement is 50% of basis instead of 100%. This change took effect on July 4, 2025.
Why the two are hard to substitute for net-lease property
For an investor selling real estate and thinking about a single-tenant triple net (NNN) building, three differences usually decide the matter.
What you can own. In a 1031 exchange you can take title to a whole building yourself. An Opportunity Zone investment must be made through a Qualified Opportunity Fund, which is a corporation or partnership organized for that purpose.
What the property has to be. A fund generally cannot buy an existing, operating building and simply hold it. The property's original use in the zone has to begin with the fund, or the fund has to substantially improve it. The Treasury regulations also state that, for the rules that apply to an opportunity zone business, merely entering into a triple-net lease of real property is not the active conduct of a trade or business. Net-lease real estate therefore needs careful structuring to fit, and many net-lease buildings are not in designated zones at all.
How long the deferral lasts. An exchange can defer the original gain for decades, and under current law property held until death generally passes to heirs with a new basis. See Passing NNN real estate to heirs. Under the post-2026 Opportunity Zone rules, tax on most of the original gain comes due within five years. The Opportunity Zone benefit is concentrated in the new investment's growth, and only if it is held ten years.
Where an Opportunity Zone fits better
- Your gain is not from real estate. Gain on stock, a business or other assets cannot be exchanged under section 1031. It can be invested in an opportunity fund.
- You want your basis back in cash. Only the gain has to go into the fund. In an exchange, cash you keep is taxable boot. See 1031 exchange boot and basis.
- You want development exposure and can hold ten years or more. The program is built for new construction and substantial rehabilitation in designated areas, with the main reward at the end.
Where a 1031 exchange fits better
- You want to own a whole property directly and make your own decisions about holding, financing and selling. See Direct ownership vs Delaware Statutory Trust (DST) interests and syndications.
- You want income from a completed, leased building and not a development project.
- You want open-ended deferral and the option to exchange again.
- You want to choose the location on the merits of the tenant and the real estate, not from a list of designated tracts.
The exchange has its own demands: strict dates and full reinvestment. The 1031 deadline calculator gives you day 45 and day 180, and The 45- and 180-day deadlines explains them. For what a newly built net-lease replacement property includes, see New-construction NNN properties. The other 2025 changes that affect exchangers are summarized in 1031 exchange rules after the 2025 tax law.
Investor Hub offers whole net-lease buildings and does not sponsor or sell interests in Opportunity Zone funds. We do not give tax advice.
Common questions
Can I do both with the same sale? Not with the same dollars of gain. Some sellers exchange part of their proceeds and consider other options for gain recognized on the remainder. That needs planning with your CPA before closing.
Is an Opportunity Zone investment tax-free? No. The original gain is deferred and then taxed. Only the growth on the fund investment can be excluded, and only after a ten-year hold.
Do I need a qualified intermediary for an Opportunity Zone investment? The statute does not require one. A 1031 exchange does, in practice, for a delayed exchange.
What happened to Opportunity Zone gains deferred under the old rules? Remaining deferred gain from earlier investments is included in income on December 31, 2026 at the latest.
Did the 2025 law change 1031 exchanges? No. Section 1031 was not amended.
Can a fund hold a single-tenant NNN building? It depends on the structure, the zone and whether the original use or substantial improvement test is met. The regulations treat a bare triple-net lease as insufficient for certain purposes. Ask the fund's sponsor and your own advisers.
This article is educational and is not tax, legal or investment advice. Your qualified intermediary, CPA and attorney should confirm how any rule applies to you.