A capital gains rollover lets you defer federal tax on an appreciated asset by reinvesting the gain into a qualifying replacement investment, and the Internal Revenue Code offers four main paths: a Section 1031 like-kind exchange for real property, a Qualified Opportunity Fund for gains from any asset type, a Section 1045 rollover for qualified small business stock, and a Section 721 contribution of property to a partnership or REIT. None of these erase the tax. They push it into the future by moving your original gain into the basis of the new investment, so you pay when you eventually cash out without rolling again. Each path has its own eligibility rules, deadlines, and filing requirements, and missing any of them turns a planned deferral into a fully taxable sale.
Section 1031 Like-Kind Exchanges for Real Estate
Section 1031 is the most widely used rollover. It lets you swap one piece of investment or business real estate for another without recognizing gain at the time of the exchange.1Office of the Law Revision Counsel. 26 US Code 1031 – Exchange of Real Property Held for Productive Use or Investment The deferred gain reduces the basis of the replacement property, so the tax resurfaces when you sell the replacement in a taxable transaction.
Since the 2017 Tax Cuts and Jobs Act, Section 1031 applies only to real property. Stocks, bonds, partnership interests, equipment, vehicles, and other personal property are out.2Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031 Property held primarily for resale, such as a developer’s inventory, is also excluded. Both the property you give up and the one you acquire must be held for investment or used in a trade or business, which rules out a personal residence.
“Like-kind” is broader than most people assume. It refers to the nature of the asset, not its grade or use. Raw farmland is like-kind to a downtown office tower, and a commercial warehouse is like-kind to a 30-year ground lease. Any real property held for investment or business purposes is generally like-kind to any other.
Cash and Debt Relief Create Taxable Boot
If an exchange includes cash or non-like-kind property, that portion is called boot and is taxable up to the amount of your realized gain.1Office of the Law Revision Counsel. 26 US Code 1031 – Exchange of Real Property Held for Productive Use or Investment Boot shows up three ways: you pocket cash at closing, you receive personal property in the deal, or your debt drops without being offset by new debt on the replacement.
Mortgage boot is the one that catches people. Sell a property carrying a $400,000 mortgage and buy a replacement with only a $250,000 mortgage, and the $150,000 of debt relief counts as boot even though no check changed hands. The fix is to take on equal or greater debt on the replacement, or contribute additional cash to offset the difference. Any net reduction in your liabilities is taxable unless you make it up somewhere else in the transaction.
The Qualified Intermediary Rule
You cannot touch the sale proceeds. If the money hits your account even briefly, the IRS treats it as constructive receipt and the exchange fails. A Qualified Intermediary (QI) holds the funds in escrow from the moment the relinquished property closes until they are wired to buy the replacement. The exchange agreement with the QI must be signed before the sale of the property you are giving up closes.
The QI must be independent. Anyone who has served as your employee, attorney, accountant, real estate agent, or investment banker within the prior two years is disqualified. QIs are typically specialist companies with no other relationship to you.
The 45-Day and 180-Day Deadlines
Starting the day you transfer the relinquished property, you have 45 days to identify potential replacement properties in writing.1Office of the Law Revision Counsel. 26 US Code 1031 – Exchange of Real Property Held for Productive Use or Investment The notice must describe each property unambiguously, usually by street address or legal description, and must be signed and delivered to the QI or the seller of the replacement property.2Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031
Identification is capped. Under the Three-Property Rule you may identify up to three properties regardless of value. Under the 200% Rule you may identify any number of properties as long as their combined fair market value does not exceed twice the value of what you gave up. Miss the 45-day deadline and the exchange collapses.
You must then close on one or more of the identified properties within 180 days of transferring the relinquished property.1Office of the Law Revision Counsel. 26 US Code 1031 – Exchange of Real Property Held for Productive Use or Investment A wrinkle most people miss: the exchange period actually ends on the earlier of 180 days or the due date (with extensions) for your tax return for the year of the transfer. If you sell late in the year and do not file an extension, your return due date can cut the 180-day window short. The two clocks run concurrently from the transfer date, so using all 45 identification days does not reset the 180.
There is no extension process for either deadline.
Reverse and Related-Party Exchanges
If you find the replacement before the current property sells, a reverse exchange uses an Exchange Accommodation Titleholder (EAT) to take title to the new property on your behalf under a Qualified Exchange Accommodation Arrangement.3Internal Revenue Service. Revenue Procedure 2000-37 – Qualified Exchange Accommodation Arrangements The same 45-day and 180-day deadlines apply. Setup costs more because of the EAT structure.
In an exchange with a related party — a family member or an entity you control — both sides must hold their acquired properties for at least two years. If either disposes of the property inside that window, the deferred gain becomes immediately taxable, with narrow exceptions for death, involuntary conversion, or an IRS finding that the transaction was not structured to avoid taxes.
One boundary worth noting: a primary residence does not qualify at all, and vacation homes qualify only if they meet an IRS safe harbor built around rental use and limited personal use.
Qualified Opportunity Funds for Any Capital Gain
A Qualified Opportunity Fund (QOF) is the only rollover that works for gains from any asset type, including stocks, cryptocurrency, a business sale, or real estate.4Internal Revenue Service. Invest in a Qualified Opportunity Fund Created by the 2017 Tax Cuts and Jobs Act, QOFs deploy capital into economically distressed census tracts designated as Opportunity Zones.
You have 180 days from realizing the gain to reinvest the gain amount — not the full sale proceeds — into a QOF. For gains flowing through a partnership, the 180-day clock can start either when the partnership realized the gain or on the last day of the partnership’s tax year. The investment must be an equity interest; a loan to a QOF does not qualify.
The fund itself must hold at least 90 percent of its assets in Qualified Opportunity Zone property, tested every six months.5Internal Revenue Service. Opportunity Zones Frequently Asked Questions As an investor you rely on the fund manager to maintain compliance, which makes diligence on the operator a practical necessity.
The December 31, 2026 Recognition Date
Every deferred gain parked in a QOF comes due on December 31, 2026, whether or not you have sold your interest.4Internal Revenue Service. Invest in a Qualified Opportunity Fund You recognize the lesser of your original deferred gain or the current fair market value of your QOF investment. If the investment has lost value, you recognize only the lower amount.
Earlier basis step-ups for 5- and 7-year holds required investing by December 31, 2021 or December 31, 2019 respectively, so those windows have closed. Anyone investing a new gain into a QOF in 2026 gets effectively no deferral benefit, because the tax comes due at year end regardless.
The 10-Year Exclusion on QOF Appreciation
The strongest QOF benefit is still available: hold the fund interest for at least 10 years and you can elect to step up the basis to fair market value when you sell.4Internal Revenue Service. Invest in a Qualified Opportunity Fund Appreciation in the QOF investment itself becomes tax-free. The exclusion applies only to growth generated by the QOF investment, not to the original deferred gain you recognize in 2026.
Section 1045 Rollovers for Small Business Stock
Section 1045 lets an individual investor who has held qualified small business stock (QSBS) for more than six months defer the gain by purchasing replacement QSBS within 60 days of the sale.6Office of the Law Revision Counsel. 26 US Code 1045 – Rollover of Gain From Qualified Small Business Stock The deferred gain reduces the basis of the replacement stock. Corporations cannot use this provision.
Both the stock sold and the replacement must meet the QSBS definition in Section 1202(c), which generally means stock in a domestic C corporation with gross assets of $50 million or less at the time of issuance. The replacement must be purchased at cost, not received as a gift or inheritance. Ordinary income does not qualify.
Section 1045 pairs with the Section 1202 exclusion, which can eliminate up to 100 percent of gain on QSBS held for five years or more. If you have not yet reached five years on your current QSBS but want to exit, a 1045 rollover moves you into new qualifying stock while you keep building toward the full exclusion.
Section 721 Contributions to a Partnership or REIT
Under Section 721, you can contribute appreciated property to a partnership in exchange for a partnership interest without recognizing gain at the time of the contribution. In real estate, this often takes the form of a UPREIT transaction: you contribute property to a REIT’s operating partnership and receive operating partnership units in return.
The appeal is diversification without triggering tax. Instead of owning one building you hold units in a partnership that owns a portfolio managed by a professional REIT. Gain is deferred until you sell or redeem the units. There is no 45-day or 180-day deadline because the contribution happens in a single transaction. Most REITs set minimum property values and quality standards, so this path is generally available only for larger commercial properties.
Reporting Each Rollover
Every rollover has a filing requirement. Skipping the paperwork can cause the deferral to be denied outright.
For a 1031 exchange, file Form 8824 with your tax return for the year you transferred the relinquished property.7Internal Revenue Service. Form 8824 – Like-Kind Exchanges The form captures the properties, the identification and closing dates, and the computation of deferred gain and new basis. Multiple exchanges in one year each get their own section.
QOF investors file Form 8997 annually to report the status of the investment, track basis adjustments, and note any dispositions.8Internal Revenue Service. About Form 8997, Initial and Annual Statement of Qualified Opportunity Fund (QOF) Investments The remaining deferred gain that becomes taxable on December 31, 2026 goes on the 2026 return. Keep records of the original gain amount, the date of the QOF investment, and any accumulated basis adjustments.
Section 1045 rollovers go on Schedule D. You report the sale of the original QSBS and elect deferral by reducing the basis of the replacement stock. Hold on to documentation showing that both the original and replacement stock qualify as QSBS, including proof of the issuing company’s asset size, because the IRS may ask years later.