Sell an investment property at a profit and the IRS wants a cut of the gain, often a large one. Between federal capital gains tax, depreciation recapture, the net investment income tax, and a second bite from most states, a clean sale can hand over a third of your profit before you reinvest a dollar. Real estate is unusual, though, in how many legal routes the tax code gives you to defer that bill, shrink it, or in a few cases erase it. This article walks through seven of them, what each actually does, who it fits, and the catch that comes with it. It is educational, not advice. Run the specifics past your own CPA and attorney before you act.
Key Takeaways
- Most of these tools defer the tax. A couple can reduce it, and two can eliminate the gain on future growth or at death.
- The 1031 exchange is the workhorse for staying in real estate, and the DST is its passive version for investors done with toilets and tenants.
- Opportunity Zone funds take any capital gain, defer it, and can wipe out tax on the fund's appreciation after a ten-year hold.
- An installment sale spreads the gain over years, but depreciation recapture still gets taxed in the year of sale.
- The quiet endgame is the step-up at death: hold, swap, and let your heirs inherit at fair market value with the gain erased.
- None of these is a loophole. They are deliberate provisions with deadlines, dollar limits, and trade-offs that decide which one fits.
Why the gain gets taxed so hard
Before the strategies, the bill they target. When you sell investment real estate held more than a year, the profit is a long-term capital gain, taxed federally at 0%, 15%, or 20% depending on your taxable income. In 2026 the 0% rate runs up to roughly $49,450 of taxable income for single filers and about $98,900 for married couples filing jointly. The 20% rate kicks in above roughly $545,500 single and $613,700 joint. Most sellers of a meaningful property land in the 15% band, but a large gain can push part of it into 20% in the year you sell.
That headline rate is rarely the whole story. If you took depreciation deductions while you owned the property, and you almost certainly did, the IRS recaptures them when you sell. Unrecaptured Section 1250 gain is taxed at a rate up to 25%, higher than the long-term capital gains rate. On top of that, the net investment income tax adds 3.8% once your modified adjusted gross income clears $200,000 (single) or $250,000 (joint). Then most states tax the gain again, anywhere from a few percent to north of ten in the highest-tax states. Stack federal rate, recapture, NIIT, and state, and a sale can cost a quarter to a third of the profit. That is the number every strategy below is trying to defer, reduce, or eliminate. For the mechanics underneath, see how capital gains tax on real estate works and depreciation recapture.
Defer, reduce, or eliminate
It helps to sort these tools by what they actually do, because investors often lump them together and pick the wrong one. Most defer. They postpone the tax, sometimes for decades, sometimes forever, but the gain is still on the books waiting. A couple reduce, smoothing the gain into lower brackets or across more years. Two can eliminate outright: the Opportunity Zone fund on its own future growth after ten years, and the step-up in basis on everything at death. None of these is a trick. Each is a deliberate provision Congress wrote to encourage reinvestment, charitable giving, or long-term holding. As you read, hold your own goal in mind. Do you want to keep owning real estate, get out of management, diversify, draw income, or pass wealth to your kids? That goal, more than the size of the tax bill, should pick the tool.
1. The 1031 exchange
The cornerstone. A 1031 exchange lets you sell investment real estate and defer the entire tax, capital gains, depreciation recapture, and the NIIT, by reinvesting the proceeds into like-kind replacement property. "Like-kind" is broad for real estate: you can swap an apartment building for raw land, a rental house for a retail strip, a duplex for a share of a warehouse. The gain does not vanish. It carries over into the basis of the new property and rides along until you eventually sell without exchanging, or until you die holding it.
The rules are strict and the clock is unforgiving. From the day you close the sale, you have 45 days to identify replacement property in writing and 180 days to close on it. Both run at the same time, so the 180 is not a fresh window after the 45. The proceeds must pass through a qualified intermediary, never your own bank account, or the exchange is blown. To defer the full tax you generally need to buy equal or up in value and replace the debt you paid off, or bring in fresh cash to cover the difference. Any cash you pocket, or debt you fail to replace, is "boot" and gets taxed. The 1031 suits anyone who wants to stay invested in real estate and keep compounding pre-tax. Its limits are those deadlines and the discipline they demand.
2. Delaware Statutory Trust (a passive 1031)
A Delaware Statutory Trust is a way to complete a 1031 exchange without becoming a landlord again. The IRS recognizes a properly structured DST interest as eligible like-kind replacement property, so you defer the same capital gains, recapture, and NIIT you would in a direct exchange. The difference is what you own: a fractional, professionally managed beneficial interest in institutional real estate, often a large multifamily, industrial, or net-lease asset, with a sponsor handling every operating decision. No tenants, no repairs, no 3 a.m. phone calls.
Two practical advantages stand out. First, a DST can absorb an exact dollar amount, which solves the common problem of leftover 1031 equity that a single direct purchase cannot soak up to the penny. Second, the 45-day identification problem nearly disappears, because pre-packaged DST offerings are available to identify and close quickly. On reporting, a DST is structured as a grantor trust, so your share of income shows up on a Form 1099 and an accompanying grantor letter, not a K-1. That keeps your tax filing closer to owning property directly than to being a partner in a partnership. The trade-offs are real: these are illiquid, speculative securities sold only to accredited investors through a private placement memorandum, you give up control to the sponsor, and you can lose principal. A DST fits an investor who wants the deferral of a 1031 but is finished with active management.
3. Opportunity Zone fund
An Opportunity Zone fund is the only tool here that accepts any capital gain, not just real estate. Sell a building, a stock portfolio, a business, or a crypto position, and you can roll the gain, not the full proceeds, into a qualified opportunity fund within 180 days and defer it. This is a key difference from a 1031, where the whole sale price has to be reinvested. With an OZ fund you only need to move the taxable gain, keeping your original basis free to use elsewhere. The bigger prize comes from the hold: stay invested in the fund for at least ten years and the appreciation inside the fund can be permanently tax-free when you exit.
The program changed meaningfully under the 2025 tax law, so the timing matters in 2026. The Opportunity Zone program was made permanent starting January 1, 2027, with a rolling five-year deferral and a single 10% basis step-up for gains invested under the new rules. Investments made under the original program still recognize their deferred gain on December 31, 2026, the longstanding sunset date, so an investor sitting on an older OZ position should plan for that recognition event now. The ten-year elimination benefit on fund appreciation survives in both versions. OZ funds fit an investor with a large gain of any type, a genuine decade-long horizon, and tolerance for development and lease-up risk. They are private placements with all the illiquidity and principal risk that implies.
4. Installment sale (Section 453)
An installment sale under Section 453 spreads your gain, and the tax on it, across the years you actually collect payments instead of recognizing it all the year you sell. You act as the lender, the buyer pays you over time, and you report a slice of the gain as each payment arrives. The appeal is bracket management. A single large gain can shove part of your income into the 20% capital gains band, trigger the 3.8% NIIT, and balloon your state bill all in one year. Stretch that same gain across five or ten years and you may keep more of it in the 15% band, stay under the NIIT thresholds, and soften the state hit.
Two cautions matter. First, an installment sale does not defer depreciation recapture. Section 1250 recapture is generally taxed in full in the year of sale, even though you have not collected most of the money yet, which can produce a tax bill larger than your first year's cash. Second, you are now the bank. If the buyer defaults, you are left chasing a property you no longer fully control. An installment sale fits a seller comfortable carrying paper on a buyer they trust, especially when spreading the gain produces a real bracket benefit. Compared with the exchanges above, it is simpler and more limited, but it can pair with them, financing part of a sale while exchanging the rest.
5. Section 1033 involuntary conversion
Sometimes you do not choose to sell. If your property is taken by eminent domain, condemned, or destroyed by fire, flood, or storm, Section 1033 lets you defer the gain on the insurance or condemnation proceeds by reinvesting in similar property. It is the involuntary cousin of the 1031, and in several ways it is friendlier. The replacement window is longer, typically two years from the end of the tax year in which you realize the gain, and three years for real property taken by condemnation, versus the 1031's tight 180 days. You also are not required to use a qualified intermediary, since you can receive the proceeds directly and still reinvest in time.
The "similar use" standard for a 1033 is generally a bit stricter than the broad like-kind test for a 1031, so the replacement should serve a comparable function to what you lost. You only need to reinvest the proceeds, and any amount you keep is taxable gain. This is not a strategy you plan for, it is one you reach for when the government or a disaster forces a sale you did not want. When that happens, 1033 keeps a forced event from becoming a forced tax bill.
6. Section 121 primary-residence exclusion
This one is for a home, not a rental, but it belongs on the list because so many investors eventually live in, or move out of, a property they also rented. Section 121 lets you exclude up to $250,000 of gain if single, or $500,000 if married filing jointly, on the sale of a home you owned and used as your main residence for at least two of the last five years. The two years do not have to be continuous, and the exclusion is not once-in-a-lifetime, you can use it again every two years on a qualifying home. For a couple sitting on $500,000 of appreciation in a long-held primary home, that is a clean, complete elimination, no exchange or reinvestment required.
The investor angle is the nuance. If you convert a rental into your residence and later sell, you do not get to exclude all the gain. The exclusion is reduced for periods of "nonqualified use," the years the property was a rental rather than your home, so a portion of the gain stays taxable in proportion to that rental time. And any depreciation you claimed while it was a rental is still recaptured and taxed, the exclusion never covers that. The mirror move also exists: an investor who has a personal home with a large gain can in some cases combine residence and investment rules over time. The interplay between 1031s and a residence is its own topic, covered in 1031 exchanges and a primary residence. Section 121 fits anyone selling a true primary home, and it can partly shelter a converted rental, but never the recapture.
7. Hold and step up at death
The most complete elimination of all is also the simplest: do not sell. If you hold appreciated real estate, or DST and OP-unit interests, until you die, your heirs generally receive a stepped-up basis equal to the property's fair market value on the date of death. The built-in capital gain and all that deferred depreciation recapture are erased. Heirs who sell shortly after inheriting owe little or no capital gains tax, because their basis resets to current value.
Pair this with serial 1031 exchanges during life and you get the strategy practitioners call "swap till you drop." You exchange from property to property for decades, never paying the deferred tax, then die holding the final property. The step-up wipes the slate clean and your heirs start fresh. Decades of compounding gain pass to the next generation untaxed at the capital gains level. This sits inside broader estate planning for real estate, and it is not a free lunch, large estates can face estate tax, and the rules around basis at death do get debated in Congress, so it deserves real planning. But for an investor focused on legacy who does not need to liquidate, holding to the step-up is the quiet endgame behind much long-term real estate tax planning.
A bonus: the charitable remainder trust
One more tool earns a mention even though it keeps the headline at seven. A charitable remainder trust (CRT) lets you contribute appreciated property to an irrevocable trust, which can then sell it without immediate capital gains tax, pay you an income stream for life or a term of years, and leave whatever remains to a charity you name. You get an upfront income-tax deduction for the present value of the eventual gift, an income stream, and avoidance of the immediate gain, in exchange for giving the remainder away. It fits charitably inclined investors who want income and tax efficiency in the same move. Because a CRT is irrevocable, it is a serious commitment that calls for an attorney and a CPA, not a checklist.
The seven strategies side by side
Each tool answers a different question. The table below lines them up so you can match your situation to the right one before you read the deeper guides. For a fuller head-to-head on the deferral options in particular, see tax deferral strategies compared.
| Strategy | What it does | Best for | Key catch |
|---|---|---|---|
| 1031 exchange | Defers all gain, recapture, and NIIT by swapping into like-kind real estate | Investors who want to stay in real estate and keep compounding pre-tax | Strict 45/180-day deadlines; must buy equal-or-up and replace debt |
| DST (Delaware Statutory Trust) | Same 1031 deferral, passively, via a fractional interest in institutional property | Investors done with active management who still want deferral | Illiquid, accredited-only security; no control; can lose principal |
| Opportunity Zone fund | Defers any capital gain; can eliminate tax on fund appreciation after 10 years | Large gain of any kind, 10-year horizon, development-risk tolerance | 2026 sunset on original-program gains; illiquid private placement |
| Installment sale (§453) | Spreads the gain and tax over the years you collect payments | Sellers willing to finance the buyer and benefit from bracket smoothing | Depreciation recapture is taxed in full in the year of sale |
| §1033 involuntary conversion | Defers gain when property is condemned or destroyed, by reinvesting in similar property | Owners hit by eminent domain, condemnation, or casualty | Only triggered by a forced event; stricter "similar use" test |
| Step-up in basis at death | Erases the built-in gain and recapture; heirs inherit at fair market value | Legacy-focused investors who do not need to liquidate | Requires holding until death; large estates may face estate tax |
| §121 primary-residence exclusion | Excludes $250k single / $500k joint of gain on a qualifying home | Owners selling a true primary residence (or a converted rental) | Residence, not rental; reduced for rental years; recapture still taxed |
Illustrative summary. Figures are general 2026 references, not advice. Confirm current rules with your own CPA and attorney.
How to choose among them
Start with what you want, not with the tax. Want to keep owning real estate and keep your money working pre-tax? Run a 1031. Want that same deferral but you are finished managing property? A DST. Sitting on a big gain of any kind, real estate or not, and willing to lock up capital for a decade in exchange for tax-free growth? An Opportunity Zone fund, with one eye on the 2026 and 2027 timing. Selling to a buyer you trust and worried a single-year gain will spike your brackets? An installment sale, remembering recapture comes due up front. Property being taken or destroyed against your will? Section 1033. Selling the home you actually live in? The Section 121 exclusion. Focused on legacy and able to hold for good? Let the step-up at death do the work, ideally after a lifetime of 1031s.
Several of these combine. You can 1031 the proceeds from a rental while placing a separate stock gain in an OZ fund. You can 1031 into a DST and later move into a REIT. You can finance part of a sale on installment and exchange the rest. The one universal rule is that these are fact-specific strategies with real money and real deadlines riding on the details. The right move depends on your basis, your debt, your brackets, your state, your timeline, and your heirs. Read the deeper guides, then choose with a CPA and an attorney, not from a summary table alone.
Sources & References
- Cornell Legal Information Institute. 26 U.S. Code § 1031 — Exchange of real property held for productive use or investment
- Cornell Legal Information Institute. 26 U.S. Code § 453 — Installment method
- Cornell Legal Information Institute. 26 U.S. Code § 1400Z-2 — Special rules for capital gains invested in opportunity zones
- Cornell Legal Information Institute. 26 U.S. Code § 121 — Exclusion of gain from sale of principal residence
- Cornell Legal Information Institute. 26 U.S. Code § 1014 — Basis of property acquired from a decedent (step-up in basis)