1031 Exchange vs Opportunity Zone: Which Defers Your Capital Gains Tax?
A 1031 exchange lets you defer capital gains tax on investment real estate by rolling the sale proceeds into a new like-kind property. You have 45 days to identify the property and 180 days to close, and a qualified intermediary must hold the funds the entire time.
A Qualified Opportunity Fund (QOF) investment, on the other hand, defers tax on any capital gain, whether it comes from real estate or not. It can also erase tax on new growth after a 10-year hold.
Which option is right for you depends on where the gain comes from, how long you can lock up the money, and whether you plan to keep trading real estate for decades.
1031 Exchange vs Opportunity Zone: Side-by-Side
| 1031 Exchange | Opportunity Zone | |
|---|---|---|
| what gains qualify | Real property held for investment or business use only | Any capital gain: real estate, stocks, crypto, or a business sale |
| reinvestment deadline | 45 days to identify a replacement property, 180 days to close | 180 days from the gain to invest in a QOF |
| who holds the money | A qualified intermediary. You never touch the sale proceeds | You invest directly. No intermediary is required |
| geographic restriction | None. The replacement property can sit anywhere in the U.S. | The fund must invest inside a designated Opportunity Zone census tract |
| hold period for the full benefit | No minimum, and the exchange can repeat indefinitely | 10 years to eliminate tax on the fund investment's own growth |
| cap on the amount you can defer | None. Deferral scales with the property's value | None on the original gain you invest |
| what happens to the deferred tax | Stays deferred through unlimited future exchanges, and disappears if heirs inherit at a stepped-up basis | The 2017 law fixed a recognition date for the deferred gain, regardless of whether you still hold the fund. Confirm the current rule with a tax professional |
| typical user | Real estate investors and landlords selling investment property | Anyone with a large capital gain, real estate or otherwise |
Which should you choose?
Choose a 1031 exchange when your capital gain comes from investment real estate and you plan to keep trading up into other properties. You work through a qualified intermediary and follow the 45-day and 180-day deadlines.
Choose a Qualified Opportunity Fund when your gain comes from stock, a business sale, or another asset a 1031 exchange cannot touch. Pick it when you can also accept a 10-year lockup for tax-free growth on the new investment.
Investors who need liquidity within a year or two are not well served by either strategy, and a straight sale or an installment sale usually fits better. The Opportunity Zone program's 2026 recognition rules could change under later legislation, or a court could narrow what counts as like-kind property.
Revisit this decision with a CPA (certified public accountant) before you act.
How a 1031 Exchange Works
A 1031 exchange is named for Section 1031 of the tax code. It lets you sell investment real estate and defer the capital gains tax by buying another like-kind property with the proceeds. "Like-kind" is a broad term. Almost any real property held for investment or business counts, so a rental duplex can trade for raw land or a small office building. The property you sell and the property you buy both have to sit inside the United States.
Two deadlines run at the same time, starting the day your sale closes. You have 45 days to identify up to three replacement properties in writing, and 180 days total to close on one of them. Miss either deadline and the exchange collapses, which triggers the full capital gains tax bill on the original sale.
A qualified intermediary (QI) has to hold the sale proceeds between the two closings. If the money touches your bank account, even briefly, the Internal Revenue Service (IRS) treats the whole transaction as a taxable sale. There is no dollar cap on a 1031 exchange, and you can repeat it property after property with no limit on how many times. If you hold the final property until you die, your heirs receive it at a stepped-up basis, and the deferred gain never gets taxed. See our estate planning tools for how that step-up basis interacts with the rest of your estate.
How a Qualified Opportunity Fund Works
A Qualified Opportunity Fund (QOF) is an investment vehicle that channels capital gains into a designated Opportunity Zone. Opportunity Zones are low-income census tracts the U.S. Treasury certified under the 2017 Tax Cuts and Jobs Act. Unlike a 1031 exchange, the gain you roll in can come from selling stock, a business, cryptocurrency, or real estate itself.
You have 180 days from the date of your gain to invest the proceeds in a QOF. There is no requirement to sell an entire asset or reinvest the full sale price. Only the gain portion needs to move into the fund, and you can spread that gain across more than one QOF if you want.
The tax benefit comes in two layers. First, the original gain is deferred. It is not eliminated until a recognition event occurs. Second, if you hold your QOF investment for at least 10 years, any appreciation the fund itself produces comes out federal-tax-free when you sell. That second layer only applies to gains the fund investment generates after you put money in. It does nothing for the original gain you deferred. These census tracts sit in specific, often less-developed areas, so fund quality and manager track record vary widely. Review each fund's IRS Opportunity Zones filings and audited history before committing capital you cannot access again for a decade.
The Deferral Trade-Off Most Comparisons Miss
The biggest difference between these two strategies is not the tax rate. It is what happens to the original deferred gain over time. A 1031 exchange lets you defer the same gain indefinitely, exchange after exchange, with no fixed date when the IRS forces you to recognize it. Hold the final property until death, and the stepped-up basis rule erases that deferred gain permanently, for both you and your heirs.
A Qualified Opportunity Fund does not offer that same open-ended path for the gain you originally deferred. The 2017 law that created the Opportunity Zone program set a specific date for recognizing that deferred gain, regardless of whether you still hold the fund investment. That recognition date sits inside the current tax year as of 2026. Later legislation, sometimes called OZ 2.0, extended and reshaped parts of the original program. Anyone weighing a QOF investment now should confirm the current recognition rule and any extension with a CPA before assuming the deferral behaves like a 1031 exchange. The 10-year hold only shelters gains the fund produces after your money goes in. It does not extend the clock on the gain you rolled in to start with.
This distinction changes who each tool serves best. An investor planning to hold real estate for life, then pass it to heirs, gets a different outcome from a 1031 exchange than from a QOF. An investor with a five-year horizon and a gain from selling a business gets more use from a QOF. A 1031 exchange was never available to that gain in the first place.
Costs, Complexity, and Risk
Both strategies cost real money to set up correctly, and skipping professional help on either one is the most common way investors lose the benefit. A 1031 exchange typically costs $600 to $1,200 in qualified intermediary fees, plus whatever your CPA or a tax attorney charges to structure the exchange and file Form 8824. The bigger risk is deadline failure. Identify the wrong property, or miss the 180-day close, and the entire deferred gain becomes taxable that year, with no do-over.
A QOF investment carries different risk. Fund-level fees run higher than a typical real estate purchase. They often run 1 to 2 percent annually plus a carried-interest share of profits, since you are paying a fund manager to source and manage properties in the zone. The 10-year illiquidity is the real cost. Money committed to a QOF is generally locked up for a decade to get the full growth exclusion. Selling early forfeits that benefit, and can still leave you owing tax on the original gain. Before choosing either path, run your numbers through ModernWallet's capital gains tax calculator to see the deferred amount in real dollars.
Which Fits Your Situation
Pick a 1031 exchange if your gain comes from selling investment real estate, like a rental property or a small commercial building. It fits best when you plan to keep trading into other real estate. It is also the stronger fit if you are weighing a REIT versus owning rental property directly. A 1031 exchange only works when the replacement asset is real property you hold directly, and REIT shares do not qualify.
Pick a Qualified Opportunity Fund if your gain came from something other than real estate, such as stock, a business sale, or a cryptocurrency sale. A 1031 exchange cannot touch those gains at all. It also fits an investor who can lock up capital for 10 years in exchange for tax-free growth on that specific investment, separate from the original deferred gain.
Neither tool serves an investor who needs the cash back within a year or two. The 1031 exchange's 45-day and 180-day windows leave no room for a slow search, and a QOF's real payoff only shows up after a decade. If your time horizon is short, a straight sale, paying the tax now, or an installment sale that spreads the gain over several years usually beats either strategy. Start with ModernWallet's real estate tools to model your specific numbers, then bring the results to a CPA or tax attorney before you commit to either deadline.
Frequently asked questions
Can I do a 1031 exchange and later invest in a Qualified Opportunity Fund?
Yes. Nothing in the tax code stops you from using a 1031 exchange on a real estate sale today. You can then invest a separate capital gain, from selling stock or a business later, into a Qualified Opportunity Fund (QOF) down the road. The two strategies apply to different transactions and different gains. They do not combine on the same dollar of gain, but nothing stops you from using both tools across your overall portfolio over time. Coordinate the timing with a CPA so the deadlines on each transaction do not overlap in a way that strains your cash flow.
Does a 1031 exchange work for stock or business-sale gains?
No. A 1031 exchange only applies to real property held for investment or business use, so gains from selling stock, a business, cryptocurrency, or equipment do not qualify. If your gain comes from one of those sources, a Qualified Opportunity Fund is the deferral tool available to you instead. It accepts capital gains from any type of asset.
What happens if I miss the 45-day identification window on a 1031 exchange?
The exchange fails, and the entire deferred gain becomes taxable in the year of your original sale. The 45-day identification deadline and the 180-day closing deadline both run from your closing date and generally cannot be extended, except for certain federally declared disasters. If you are close to missing the window, contact your qualified intermediary immediately. Some investors keep a backup list of properties, precisely because a single deal falling through can blow the deadline.
Is the Opportunity Zone program active in 2026?
Yes, the program is active, but the rules around it have shifted since the original 2017 law. The Tax Cuts and Jobs Act set a fixed date for recognizing deferred gains that falls inside the current tax year. Later legislation, often called OZ 2.0, extended and adjusted parts of the program going forward. The exact current-year mechanics depend on which version of the law applies to your investment. Confirm the current recognition timeline and any extension with a CPA before assuming your deferral timeline matches outdated guidance you may have read elsewhere.
Is a 1031 exchange better than a Qualified Opportunity Fund for selling a rental property?
For most landlords selling investment real estate, yes, a 1031 exchange is the stronger fit. It lets you defer the full gain with no lockup requirement and no geographic restriction on the replacement property. A QOF can still make sense for a rental property sale if you want to diversify out of direct real estate ownership. It fits best when you are comfortable with a 10-year hold in a specific census tract. Run both scenarios through ModernWallet's capital gains tax calculator before deciding, since the better math depends on your specific gain size and tax bracket.
What does a 1031 exchange or Opportunity Zone fund cost to set up?
A 1031 exchange usually runs $600 to $1,200 in qualified intermediary fees, plus your CPA or tax attorney's time to structure the deal and file the paperwork. A QOF has no flat setup fee. Ongoing fund management fees typically run 1 to 2 percent of assets per year, plus a share of profits, since a manager is running the fund on your behalf. Neither cost is the deciding factor. The deadline risk on a 1031 exchange and the illiquidity on a QOF usually matter more than the fees themselves.
Free calculators to help you decide
Sources
We prioritize primary sources for rules, formulas, rates, limits, and definitions. See our calculator methodology and editorial policy.