Capital Gains Recycling: 1031 Exchanges, QOFs, and CRTs

If you’re sitting on a large unrealized gain and want to avoid writing a check to the IRS the moment you sell, federal tax law offers four main capital gains tax deferral strategies: a Section 1031 like-kind exchange for real estate, a Qualified Opportunity Fund investment, a charitable remainder trust, and an installment sale. Each has its own eligible asset types, timelines, and trade-offs, and two of them can convert a temporary deferral into a permanent exclusion if you plan the exit correctly.

The right choice depends on what you’re selling, what you want to do with the proceeds, and how long you can wait before you need the money back.

Section 1031 Like-Kind Exchanges for Real Estate

The 1031 exchange is the workhorse for real estate investors. Sell investment or business-use real property, reinvest the proceeds into other real property, and the entire capital gain is deferred indefinitely.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Since 2018, only real property qualifies. Equipment, vehicles, artwork, and cryptocurrency are out.

You never touch the cash. A qualified intermediary holds the sale proceeds in escrow between the two legs of the transaction, and taking control of the funds even briefly can disqualify the whole exchange and make the full gain immediately taxable.2Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 Your real estate agent, attorney, or accountant cannot serve as that intermediary if they’ve worked for you in the past two years.

Two deadlines govern every exchange, and missing either one kills the deferral:

  • You must identify potential replacement properties in writing within 45 calendar days after closing on the property you’re giving up.
  • You must close on the replacement property within 180 calendar days of that same sale date, or by the due date of your tax return (including extensions) for the sale year, whichever comes first.

Both clocks start on the sale closing date, so the 45-day window runs inside the 180-day window rather than after it. The IRS has occasionally extended these deadlines for taxpayers affected by federally declared disasters, but absent disaster relief, they are absolute.

To defer the full gain, the replacement property’s purchase price must equal or exceed the net sale price of the property you sold, and the debt on the replacement must equal or exceed the debt relieved on the old property. Any shortfall, cash received, or non-real-property assets you take in trade count as “boot” and trigger immediate taxable gain up to that amount.1Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment

A 1031 exchange doesn’t eliminate your gain. It carries forward. Every dollar of deferred gain and accumulated depreciation attaches to the replacement property’s basis, and when you eventually sell for cash without exchanging again, the entire backlog becomes taxable at once. The exit strategies described further down are what turn that running balance into permanent savings.

Delaware Statutory Trusts for Passive Replacement

Not every investor wants to actively manage a new property after an exchange. Under IRS Revenue Ruling 2004-86, a fractional interest in a properly structured Delaware Statutory Trust qualifies as real property for 1031 purposes, so you can trade a hands-on rental for a professionally managed portfolio interest and still defer the gain.3Internal Revenue Service. Revenue Ruling 2004-86 – Delaware Statutory Trusts and Section 1031 The trustee’s powers are tightly restricted to preserve trust (rather than partnership) status, which means no new acquisitions, no new financing, and no material changes to the underlying property.

DSTs suit investors nearing retirement who want out of active management, and smaller exchangors who want to spread equity across multiple properties. Minimum investments typically start around $100,000. The same 45-day and 180-day deadlines apply, and most sponsors keep shelf inventory ready to close inside the exchange window.

Qualified Opportunity Funds

A Qualified Opportunity Fund accepts capital gains from almost any asset type, including stocks, bonds, real estate, and Section 1231 business property.4Internal Revenue Service. Invest in a Qualified Opportunity Fund You roll the gain into the fund within 180 days of realizing it, and the fund deploys the capital in designated low-income census tracts called Opportunity Zones. One advantage over a 1031 exchange: only the gain needs to go into the fund, not your full sale proceeds, so you can pocket your original cost basis immediately.5Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones

For 2026 investors, the deferral piece is effectively finished. The original deferred gain must be recognized on the earlier of the date you sell the QOF interest or December 31, 2026.6Internal Revenue Service. Opportunity Zones Frequently Asked Questions Anyone who deferred gains into a QOF in prior years owes tax on those gains this year whether they sell or not. No new deferral elections are available for sales after December 31, 2026.5Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones

The long-term benefit is separate and still live. Hold the QOF interest for at least ten years, and you can elect to step up its basis to fair market value on the date you sell. All appreciation inside the fund escapes federal capital gains tax permanently.4Internal Revenue Service. Invest in a Qualified Opportunity Fund An investor putting capital into a QOF today is buying a ten-year tax-free growth wrapper on the appreciation, even though the original gain no longer gets deferred.

If the gain flows through from a partnership or S corporation, the 180-day clock can start on the last day of the entity’s tax year rather than the actual sale date, which gives you more time to find a fund.4Internal Revenue Service. Invest in a Qualified Opportunity Fund The deferral election is made on Form 8997.7Internal Revenue Service. About Form 8997, Initial and Annual Statement of Qualified Opportunity Fund Investments

Charitable Remainder Trusts

A charitable remainder trust lets you contribute highly appreciated assets, have the trust sell them with no immediate capital gains tax, and receive an income stream for life or a fixed term of up to 20 years. When the trust term ends, the remainder goes to the charity you named. You also get an upfront income tax deduction for the present value of the charitable remainder interest.

The trust itself is exempt from income tax in any year it distributes at least its required payout. The two common formats are the charitable remainder annuity trust, which pays a fixed dollar amount each year based on the initial contribution, and the charitable remainder unitrust, which pays a fixed percentage of the trust’s value recomputed annually. The annual payout rate must fall between 5% and 50% of the trust’s assets, and the projected remainder for charity must be at least 10% of the initial contribution value.8Office of the Law Revision Counsel. 26 USC 664 – Charitable Remainder Trusts

The capital gains don’t disappear. They flow out to you through the trust’s distributions under a four-tier ordering system: each payment is first treated as ordinary income to the extent the trust has current or accumulated ordinary income; once that’s exhausted, as capital gains; then as other income (including tax-exempt income); and only after all income categories are depleted does the payment become a tax-free return of principal.9Internal Revenue Service. Charitable Remainder Trusts

A large one-time gain gets recognized in smaller annual pieces over the trust’s lifetime, keeping you in lower brackets than a lump sale would. A CRT works best for investors who already have charitable intent, since the remainder ultimately leaves your estate. For someone sitting on a concentrated stock position or a low-basis property they’d rather not manage, the combination of immediate charitable deduction, deferred gain recognition, and lifetime income can beat selling outright.

Installment Sales

An installment sale spreads a capital gain over the years you actually receive payment, rather than forcing you to recognize it all at closing. Any sale where at least one payment arrives after the close of the tax year qualifies.10Office of the Law Revision Counsel. 26 USC 453 – Installment Method You calculate a gross profit ratio (total gain divided by total contract price) and apply it to each principal payment to find the taxable portion. Report it on Form 6252 for the sale year and every year payments come in.11Internal Revenue Service. About Form 6252, Installment Sale Income

Unlike the other strategies, an installment sale isn’t a reinvestment play. You’re matching the tax bill to your cash flow, not rolling proceeds into a new asset. For sellers financing the buyer directly, it’s a natural fit.

Several asset categories are excluded entirely:

  • Dealer property and inventory. If the asset would be inventory or you’re a dealer selling to customers in the ordinary course of business, the full gain is recognized in the sale year.
  • Publicly traded securities. Stocks and other securities traded on established markets cannot use the installment method; all payments are treated as received in the disposition year.

Even for qualifying property, depreciation recapture doesn’t get installment treatment. Any gain attributable to prior depreciation deductions under Sections 1245 or 1250 must be recognized in full in the year of sale, regardless of when payments arrive.10Office of the Law Revision Counsel. 26 USC 453 – Installment Method

Interest Charges on Large Installment Balances

If the sale price exceeds $150,000 and the total face amount of your outstanding installment obligations from that year exceeds $5 million at year-end, the IRS imposes an interest charge on the deferred tax liability. The charge applies to the portion of your obligations above the $5 million threshold, calculated using the federal underpayment rate.12GovInfo. 26 USC 453A – Special Rules for Nondealers For large sales, the deferral becomes an interest-bearing loan from the government rather than a free postponement.

Related-Party Sales

Selling to a family member or related entity on the installment method invites extra scrutiny. If the related buyer resells the property within two years, you must recognize the remaining deferred gain as if you’d received those proceeds yourself at the time of the resale. The rule exists to prevent families from using a straw-buyer arrangement to accelerate cash while keeping the seller’s gain deferred.13Internal Revenue Service. Publication 537 – Installment Sales The two-year trigger doesn’t apply to involuntary conversions or to sales where the IRS is satisfied that tax avoidance wasn’t a principal purpose.

Turning Deferral Into Permanent Savings

Every deferral strategy eventually reaches the point where tax comes due, unless you plan the exit. Two paths convert temporary deferral into permanent savings.

For 1031 exchange chains, the classic approach is holding the final replacement property until death. Property acquired from a decedent receives a basis equal to its fair market value on the date of death, which wipes out the entire accumulated deferred gain from every prior exchange.14Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent Your heirs inherit at current market value and can sell the next day with little or no capital gains tax. Estate planners sometimes call this “swap til you drop,” and it’s one of the most reliable wealth-transfer strategies in the tax code.

For QOF investments, the permanent exclusion works differently. Hold the QOF interest for at least ten years, then elect to step up the basis to fair market value when you sell. All appreciation inside the fund from the date of your investment forward is excluded from federal income tax.6Internal Revenue Service. Opportunity Zones Frequently Asked Questions You still owe tax on the original deferred gain in 2026, but the growth escapes entirely.

Charitable remainder trusts and installment sales don’t offer this exit. A CRT remainder goes to charity when the trust term ends or the income beneficiary dies, so there’s no inherited asset to step up. Installment obligations are generally treated as income in respect of a decedent, meaning your heirs pick up the remaining gain as payments come in, with no step-up to erase it. Only the 1031 chain held until death and the QOF ten-year exclusion zero out the tax bill.

The Net Investment Income Tax Still Applies

Deferral moves the gain to a different year. It doesn’t change how the gain is classified. When deferred capital gains hit your return, whether from a QOF inclusion event, a broken 1031 chain, or installment payments, they count as net investment income. If your modified adjusted gross income exceeds the applicable threshold, you owe an additional 3.8% surtax on top of the regular capital gains rate.15Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax

The thresholds are $250,000 for married couples filing jointly, $125,000 for married filing separately, and $200,000 for single filers.16Internal Revenue Service. Topic No. 559, Net Investment Income Tax They aren’t indexed for inflation, so more taxpayers cross them each year. For QOF investors facing the 2026 recognition event, the surtax stacked on top of the 15% or 20% capital gains rate can push the effective rate above 23% once income clears the threshold. Timing other income or bunching deductions in the recognition year can soften the hit.