The 1031 Exchange: Mechanics of Deferred Real Estate Gains
For real estate investors, the Section 1031 Exchange is one of the most powerful wealth-building tools in the Internal Revenue Code. It allows you to sell a rental property, defer paying capital gains taxes and depreciation recapture taxes, and reinvest the proceeds into a new "like-kind" replacement property.
However, a 1031 exchange is highly technical. The IRS mandates strict timelines (45 days to identify, 180 days to close) and exact cash handling rules. One minor ledger mistake can invalidate the exchange, triggering an immediate tax liability.
In this guide, we'll walk through the double-entry accounting mechanics of booking a 1031 exchange.
Rule #1: You Cannot Touch the Cash
The most critical rule of a 1031 exchange is that the seller must never have actual or constructive receipt of the sale proceeds.
If the cash from the sale is deposited into your business checking account for even a second, the exchange is voided. Instead, the funds must flow directly to a Qualified Intermediary (QI). The QI holds the funds in escrow until they are wired to the closing agent for the purchase of the replacement property.
In your ledger, you will track this using a temporary asset account:
1750 - 1031 QI Escrow (Asset)
Step-by-Step Accounting Guide
Let's walk through a concrete example.
The Relinquished Property (Old Property)
- Original Purchase Price: $300,000.00
- Accumulated Depreciation: $50,000.00
- Adjusted Basis: $250,000.00 ($300k - $50k)
- Outstanding Mortgage: $150,000.00
- Sale Price: $500,000.00
- Exchange closing costs: $30,000.00
- Net Cash proceeds sent to QI: $320,000.00 ($500k sale - $150k mortgage payoff - $30k costs)
The Replacement Property (New Property)
- Purchase Price: $700,000.00
- New Mortgage: $380,000.00
- QI Funds Applied: $320,000.00
Part 1: Booking the Sale of the Old Property
When the sale of the relinquished property closes, you must clear the old asset and its accumulated depreciation from your books, write off the old mortgage liability, and book the cash sent to the QI.
Because the gain is deferred, you also create a Deferred 1031 Gain account on the balance sheet.
Calculation of Deferred Gain:
Journal Entry:
- Dr
2400 - Mortgages Payable(Old Loan Payoff) —$150,000.00 - Dr
1750 - 1031 QI Escrow(Cash held by QI) —$320,000.00 - Dr
1610 - Accumulated Depreciation - Buildings(Clearing old depr.) —$50,000.00 - Cr
1510 - Buildings(Old cost basis) —$300,000.00 - Cr
2800 - Deferred 1031 Gain(Liability/Equity contra) —$220,000.00
Effect: The old property, old mortgage, and historical depreciation are cleared. You now have a $320,000 asset with the QI and a $220,000 deferred gain credit. The entry balances perfectly.
Part 2: Booking the Purchase of the New Property
When you close on the new replacement property, you record the new asset at its purchase price, set up the new mortgage liability, and clear the funds held by the QI.
Journal Entry:
- Dr
1510 - Buildings(New Property) —$700,000.00 - Cr
1750 - 1031 QI Escrow(Funds released) —$320,000.00 - Cr
2400 - Mortgages Payable(New Loan) —$380,000.00
Effect: The replacement property is added to your books, the new mortgage is set up, and the QI escrow account is cleared to zero.
Part 3: Determining the New Tax Basis
For tax purposes, the basis of your new property is reduced by your deferred gain:
Mogul Books tracks this automatically. In your balance sheet, the asset Buildings ($700,000) and the contra-account Deferred 1031 Gain (-$220,000) net together to show your correct adjusted tax basis of $480,000.
When you calculate the new depreciation schedules, you must base them on the adjusted tax basis of $480,000 (allocated between land and building), NOT the $700,000 purchase price. Over-depreciating will trigger audit failures.
How Mogul Books Simplifies 1031 Accounting
Managing two separate closing statements (sale and purchase) and calculating the adjusted basis reduction can keep any operator up at night.
In Mogul Books, you can run a 1031 Exchange Workflow:
1. Initiate the Exchange: Select the property you want to sell. Mogul Books automatically locks the asset, stops monthly depreciation, and calculates your current adjusted basis.
2. Track QI Activities: As the transaction closes, Mogul Books maps the escrow balances to your QI account automatically.
3. Roll Over to New Asset: When you acquire the new property, you link it to the exchange workflow. Mogul Books automatically calculates the deferred gain, structures the purchase journal entries, and sets up your new depreciation schedules based on the adjusted tax basis.
