An unrecognized gain is economic profit from selling or exchanging an asset that a specific provision of the Internal Revenue Code allows you to leave off your current year’s tax return. The profit really happened, but the code treats it as if it hadn’t, usually by embedding the deferred tax into the cost basis of whatever you acquire next. A few provisions go further and erase the gain permanently. Most only postpone it.
Realized, Recognized, and Unrecognized: Three Terms That Get Confused
Getting these three straight is the whole game.
A realized gain is the raw profit when you dispose of an asset for more than your adjusted basis. Adjusted basis is generally what you paid, plus capital improvements, minus depreciation you’ve claimed. Buy a rental for $400,000, take $50,000 in depreciation, sell for $750,000: adjusted basis is $350,000 and realized gain is $400,000. That’s what you actually made.
A recognized gain is the portion of that profit you must report and pay tax on in the current year. For most transactions the two numbers match. You sell stock, you report the profit, you pay the tax.
An unrecognized gain is the slice of realized profit a specific IRC section lets you skip reporting for now. The economic gain occurred. The tax code just doesn’t count it yet. In almost every case, the reason it can skip the return is that the tax liability has been rolled into the basis of a replacement asset, where it waits for a future taxable event.
Where Unrecognized Gain Shows Up
Several code sections create unrecognized gain. Each has its own trigger and its own trap.
Sale of a Primary Residence
If you owned and lived in your home as your principal residence for at least two of the five years before the sale, you can exclude up to $250,000 of gain from your income. Married couples filing jointly can exclude up to $500,000, provided both spouses meet the use requirement and at least one meets the ownership requirement.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence
This one is unusual. The excluded gain isn’t deferred to a future asset — it’s permanently removed from the tax base. Gain above the thresholds is fully recognized in the year of sale. You don’t have to buy another home, and you can use the exclusion again on a later sale as long as you haven’t used it within the prior two years.
Like-Kind Exchanges of Real Property
Section 1031 lets you swap real property held for business or investment purposes for other real property of like kind without recognizing gain on the exchange.2Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Since the Tax Cuts and Jobs Act took effect in 2018, this only covers real property; exchanges of equipment, vehicles, artwork, and other personal or intangible property no longer qualify.3Internal Revenue Service. Like-Kind Exchanges – Real Estate Tax Tips
The timing is unforgiving. You have 45 days from transferring the relinquished property to identify potential replacement properties, and 180 days (or the due date of your tax return, whichever comes first) to close on the replacement.2Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment Miss either deadline and the entire gain becomes taxable.
If you also receive cash, debt relief, or non-like-kind property, that portion is called boot, and you recognize gain up to the amount of boot received. Exchange a $600,000 property for a $550,000 replacement plus $50,000 in cash and the $50,000 is taxable now, even though the rest of the gain stays deferred.
Involuntary Conversions
When property is destroyed, stolen, or condemned and the insurance payout or condemnation award exceeds your adjusted basis, Section 1033 lets you defer the resulting gain by reinvesting the proceeds into replacement property that is similar or related in service or use.4Office of the Law Revision Counsel. 26 USC 1033 – Involuntary Conversions The window is generally two years after the close of the first tax year in which any gain is realized, extended to three years for real property condemned for public use. Condemned business or investment real property gets a looser standard: like-kind property is enough, not the stricter similar-or-related-in-service-or-use test.
Transfers to a Controlled Corporation
Section 351 lets you transfer appreciated property to a corporation in exchange for its stock without recognizing gain, as long as you (or the group of transferors together) control the corporation immediately after the exchange.5Office of the Law Revision Counsel. 26 USC 351 – Transfer to Corporation Controlled by Transferor Control means at least 80% of total combined voting power and at least 80% of every other class of stock.6Internal Revenue Service. Revenue Ruling 2003-51 The corporation takes a carryover basis in the transferred assets. Boot received beyond stock triggers gain recognition up to the boot amount.
Qualified Opportunity Zone Investments
Section 1400Z-2 offers two layered benefits for capital gains reinvested into qualified opportunity funds. First, the original gain is deferred. Second, if you hold the opportunity zone investment for at least 10 years, you can elect to step up your basis to fair market value at the time of sale, so any post-acquisition appreciation escapes tax entirely.7Office of the Law Revision Counsel. 26 USC 1400Z-2 – Special Rules for Capital Gains Invested in Opportunity Zones
For gains invested before the end of 2026, the deferred original gain must be recognized no later than December 31, 2026, regardless of whether you’ve sold the investment. For new investments made after December 31, 2026, a recent amendment changed the recognition trigger to five years after the investment date rather than a fixed calendar deadline.
How the Basis Adjustment Carries the Tax Forward
Every deferral provision works through the same mechanism: substituted basis. Your replacement asset doesn’t get a basis equal to what it’s worth. It takes the basis of whatever you gave up, adjusted for any boot paid or received. The gap between that basis and market value is your deferred tax liability sitting in plain sight.
Say you exchange a rental with an adjusted basis of $150,000 for a new property worth $600,000 in a qualifying Section 1031 exchange with no boot. Realized gain is $450,000. Recognized gain is zero. Your basis in the new property is $150,000, not $600,000. That $450,000 gap is exactly the unrecognized gain, now embedded in the replacement property.
The low basis affects you twice. Annual depreciation deductions on the new property come off $150,000, not $600,000, so your write-offs shrink. And when you eventually sell in a taxable transaction, the gain is measured from that $150,000 floor. Sell for $700,000 down the road and you recognize $550,000: the original $450,000 of deferred gain plus $100,000 of new appreciation.
When the Deferred Gain Finally Gets Taxed
Deferral is postponement, not pardon. Several events can force the gain out of hiding.
A Taxable Sale of the Replacement Property
The most common trigger is selling the replacement property without rolling into another qualifying exchange. Because the substituted basis is artificially low, the sale captures both the original deferred gain and any new appreciation, taxed at whatever capital gains or ordinary income rates apply that year.
Missed Deadlines and Failed Requirements
Blow a statutory requirement and the whole realized gain becomes taxable in the year it should have been recognized. Miss the 45-day identification window on a 1031 exchange, fail to reinvest involuntary conversion proceeds within the two- or three-year replacement period, drop below the 80% control threshold on a corporate transfer, and there is no partial credit for coming close.
Step-Up in Basis at Death
This is where deferral can turn into permanent elimination. When a property owner dies, inherited assets generally receive a new basis equal to fair market value at the date of death.8Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent All of the unrecognized gain sitting in the substituted basis effectively vanishes. An investor who spent decades chaining 1031 exchanges can pass those properties to heirs with a clean basis, and no one ever pays the deferred tax. This is the main reason investors chain 1031 exchanges for life.
One exception blocks the obvious workaround. If you gift appreciated property to someone within one year of their death and the property passes back to you as an inheritance, you don’t get the step-up. Your basis remains what it was in the decedent’s hands immediately before death.8Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent
Lifetime Gifts
Gifting appreciated property during your life does not eliminate the deferred gain. The recipient takes your basis — a carryover basis — and inherits your embedded tax liability along with the asset.9eCFR. 26 CFR 1.1015-1 – Basis of Property Acquired by Gift When the recipient sells, they recognize the gain you deferred. The tax hasn’t been avoided. It’s just been handed off.
Reporting Requirements Even When No Tax Is Owed
Deferring gain doesn’t mean skipping the paperwork. The IRS wants the transaction documented and the deferred amount calculated even when nothing is owed this year.
Like-kind exchanges go on Form 8824, which walks through the exchange details, the amount of gain deferred, any boot received, and the basis of the replacement property.10Internal Revenue Service. About Form 8824, Like-Kind Exchanges If boot triggers partial recognition, you may also need Form 4797 or Form 6252 depending on the type of property and whether you’re receiving payments over time.11Internal Revenue Service. Instructions for Form 8824
Involuntary conversions under Section 1033 are reported by attaching a statement to your return for the year of realization, electing deferral and describing the replacement property or your plan to acquire it. Section 351 transfers require both the transferor and the corporation to report exchange details and the basis of transferred assets. A 20% accuracy-related penalty applies when a substantial understatement of income tax results from improperly claimed deferrals.
Keep thorough records of your original basis, the substituted basis of every replacement asset, and each exchange in the chain. That paper trail is the only way to correctly calculate your gain when a taxable sale finally arrives. Investors who chain multiple 1031 exchanges over decades sometimes lose track of the original basis, and the resulting mess is genuinely hard to unwind.