You can defer capital gains tax by rolling proceeds into another qualifying investment or structure before the IRS considers the gain “received.” The main routes are a Section 1031 like-kind exchange for real estate, an installment sale that spreads payments across years, a Qualified Opportunity Fund investment, and a charitable remainder trust. Two related tools — the primary residence exclusion and the step-up in basis at death — go further and eliminate the tax entirely rather than postponing it. Every one of these strategies runs on a fixed deadline, and missing the deadline collapses the deferral into a fully taxable sale.
Deferral matters because the combined federal rate on a long-term gain can reach 23.8% once the 20% top capital gains rate and the 3.8% net investment income tax stack together, before any state tax.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses2Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax On a large sale, the tax saved by a properly executed deferral easily justifies the legal and intermediary fees.
Section 1031 Like-Kind Exchange for Real Estate
A 1031 exchange lets you sell one investment or business property and roll the proceeds into another of similar character, with the IRS treating the swap as a continuation of your investment rather than a taxable sale.3Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment “Like kind” is broader than most people expect. A rental apartment building can be exchanged for undeveloped land, a commercial warehouse, or a ranch used in a business. Both properties must be held for investment or business use; your personal home, vacation house, and property you flip for quick resale do not qualify.4Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031
The 45-Day and 180-Day Deadlines
Two hard deadlines govern the exchange. You have 45 days from selling your original property to identify potential replacements in writing. The entire exchange must close within 180 days of that sale or by the due date of your tax return for the year including extensions, whichever comes first.3Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Miss either deadline and the IRS treats the whole transaction as a standard taxable sale. There is no grace period.
Within the 45-day window you can identify up to three replacement properties of any value. If you want to name more than three, the total value of all identified properties cannot exceed 200% of what you sold, unless you actually acquire at least 95% of what you identified.
Qualified Intermediary and Boot
You cannot touch the sale proceeds at any point. Treasury regulations require a qualified intermediary to hold the funds in a separate account from the moment of sale until the replacement property closes. If the money hits your bank account, even briefly, the IRS considers you to have received the funds and the deferral fails. Intermediary fees for a standard delayed exchange typically run $600 to $1,200; reverse exchanges cost more.
Any cash or non-like-kind property you receive is called “boot,” and it is taxable. Boot commonly appears when the replacement property costs less than what you sold, or when the new mortgage is smaller than the old one; the net debt relief counts. To defer the entire gain, the replacement must be equal to or greater in both value and debt.
Installment Sales
An installment sale under Section 453 lets you spread the tax bill across years by taking the purchase price in payments over time. As long as at least one payment arrives after the tax year of the sale, you report gain proportionally as each installment comes in.5Office of the Law Revision Counsel. 26 USC 453 – Installment Method
The math runs through a gross profit ratio. Divide your total profit by the contract price, and apply that percentage to each payment you receive. If your gross profit ratio is 40%, then $40 of every $100 payment is taxable gain and $60 is a tax-free return of basis.5Office of the Law Revision Counsel. 26 USC 453 – Installment Method This keeps a single large sale from pushing you into a higher bracket.
Two limits catch sellers off guard. Depreciation recapture cannot be deferred through the installment method; if you have been depreciating a rental property, the full recapture is taxable in the year of sale regardless of when payments arrive. And for large deals, Section 453A imposes an interest charge: if the face amount of your outstanding installment obligations from sales over $150,000 exceeds $5 million at year-end, you owe interest on the deferred tax liability on the portion above that threshold, currently at 7%.6Internal Revenue Service. Interest on Deferred Tax Liability
Qualified Opportunity Fund Investments
Qualified Opportunity Zones let you defer capital gains by reinvesting them into designated low-income communities through a Qualified Opportunity Fund. You have 180 days from the date of the sale to invest the gain into a QOF, and the original tax bill is postponed. A QOF must be organized as a corporation or partnership and hold at least 90% of its assets in qualified opportunity zone property.7Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones
The December 31, 2026 Recognition Date
If you already hold a QOF investment, this is the deadline that matters most. Under the original 2017 law, all remaining deferred gains must be recognized no later than December 31, 2026, whether or not you have sold your QOF interest. The amount owed depends on the fair market value of the QOF investment on that date, adjusted for basis increases earned by holding: investments made in 2019 or earlier and held for seven years received a 15% basis step-up, and investments held for at least five years received a 10% step-up.8Internal Revenue Service. Opportunity Zones Frequently Asked Questions Only eligible gains recognized before January 1, 2027 qualified for deferral under the original law.
The 10-Year Appreciation Exclusion
A separate benefit sits on top of the deferral. If you hold the QOF investment at least 10 years, you can adjust its basis to fair market value on sale, so growth inside the fund is never taxed.7Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones The exclusion covers appreciation only, not the originally deferred gain. For an investment made in 2019, the 10-year mark arrives in 2029, so the appreciation exclusion remains available after the original deferral has ended.
Recent federal legislation has extended and modified the program for investments made after December 31, 2026, including a five-year deferral period and a 10% basis step-up for new investments. If you are considering a new QOF investment, verify the current rules; the structure has changed from the original 2017 framework.
Charitable Remainder Trusts
A charitable remainder trust defers capital gains and generates income for you. You transfer an appreciated asset into an irrevocable trust, which then sells the asset. Because the trust is a tax-exempt entity, it pays no capital gains tax on the sale, so the full untaxed proceeds are reinvested.9Internal Revenue Service. Charitable Remainder Trusts The trust then pays you income over a set period or for life, and you owe income tax only on the distributions as they arrive. What was a one-year tax bill becomes a stream spread across decades.
Two structures exist. A charitable remainder annuity trust (CRAT) pays a fixed dollar amount each year, locked in at creation. A charitable remainder unitrust (CRUT) pays a fixed percentage of the trust’s value, recalculated annually, so payments track investment performance. Both must pay out at least 5% and no more than 50% of the trust’s value each year, and at least 10% of the assets placed in the trust must ultimately pass to the designated charity.9Internal Revenue Service. Charitable Remainder Trusts You also receive a partial charitable income tax deduction in the year you fund the trust. Legal fees for drafting a CRT typically run $2,000 to $10,000 or more, so the strategy generally makes sense only for assets with substantial unrealized gains.
Section 121 Primary Residence Exclusion
If the asset is your main home, you may not need to defer anything. Section 121 excludes up to $250,000 of gain for a single filer or $500,000 for a married couple filing jointly, provided you owned and used the home as your principal residence for at least two of the five years before the sale.10Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence This gain is permanently excluded rather than deferred.
For the joint $500,000 exclusion, both spouses must meet the use requirement and at least one must meet the ownership requirement. The exclusion can be used only once every two years.10Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence If your gain exceeds the cap, only the excess is taxable, and that excess can sometimes be handled through an installment sale or other deferral method.
Step-Up in Basis at Death
The most complete form of capital gains elimination requires no forms during your lifetime. Under Section 1014, when you die, the cost basis of your appreciated assets resets to fair market value on the date of death.11Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired From a Decedent Your heirs inherit that stepped-up basis, and all the appreciation during your lifetime escapes capital gains tax entirely.
For married couples who own property jointly, the surviving spouse receives a step-up on the deceased spouse’s half. In community property states, both halves of community property receive a full step-up, doubling the benefit. This rule is why many advisors recommend holding highly appreciated assets until death rather than selling in retirement, if you do not need the proceeds during your lifetime.
Tax-Loss Harvesting
Tax-loss harvesting reduces gains rather than deferring them, but it belongs in the same conversation. You sell investments that have declined in value to generate capital losses, then use those losses to offset your capital gains dollar for dollar. If losses exceed gains, you can deduct up to $3,000 of net loss against ordinary income ($1,500 if married filing separately), and carry remaining losses forward indefinitely.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The wash sale rule is the trap. If you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale, the IRS disallows the loss. Many investors work around this by buying a similar but not identical fund during the waiting period, such as switching between S&P 500 and total-market index funds. Carried-forward losses retain their short-term or long-term character.
Reporting a Deferred Gain
Each strategy has its own IRS form, and the form must be attached to your annual return for the year of the transaction.
- 1031 exchanges are reported on Form 8824, which captures descriptions of both properties, transfer dates, and the calculation of deferred gain.12Internal Revenue Service. Instructions for Form 8824 (2025)
- Installment sales are reported on Form 6252, which requires selling price, cost basis, and principal payments received during the year. You file this every year payments continue.13Internal Revenue Service. Form 6252 – Installment Sale Income
- Opportunity zone deferrals go on Form 8949 using code “Z” in the adjustment column, with the deferred gain entered as a negative number. You also file Form 8997 every year you hold the QOF investment.14Internal Revenue Service. 2025 Instructions for Form 894915Internal Revenue Service. Form 8997 – Initial and Annual Statement of Qualified Opportunity Fund Investments
- A charitable remainder trust files Form 5227 itself; as the income beneficiary, you report distributions on your personal return based on the trust’s character allocation.
All of these forms attach to Form 1040 and are due by April 15. An extension gives you more time to file, not more time to pay any tax owed on a partial gain.
What Happens if a Deferral Fails
A botched deferral means paying the original tax plus interest and possibly penalties. The IRS treats the gain as if it were taxable in the year it should have been reported. Interest currently runs 7% per year compounded daily.16Internal Revenue Service. Interest Rates Remain the Same for the First Quarter of 2026 On top of that, the IRS can impose a 20% accuracy-related penalty for negligence or a substantial understatement of income, doubled to 40% if a valuation misstatement is involved.17Office of the Law Revision Counsel. 26 U.S. Code 6662 – Imposition of Accuracy-Related Penalty on Underpayments
The most common failures are mechanical. Missing the 45-day identification window on a 1031 exchange. Receiving cash from a sale before a qualified intermediary is in place. Investing QOF proceeds on day 181 instead of day 180. Failing to attach the correct form. None involve fraud, but the IRS enforces the deadlines the same way regardless of intent. Treat every date as absolute, every intermediary role as untouchable, and every form as mandatory.