Published November 13, 2026 | Last reviewed November 2026
Short answer: in a 1031 exchange, paying off your old mortgage counts as money received unless you offset it with new debt or added cash, but cash you take at closing cannot be offset by taking on a bigger loan. That one rule drives most refinance questions. The exchange regulations do not set a waiting period for a refinance before or after an exchange, so timing and purpose are questions to settle with your CPA before you sign loan papers.
Owners who want both tax deferral and some cash in hand usually ask the same thing: can I pull equity out with a loan, either before I sell or after I buy, and still keep the exchange fully deferred? To answer it, you first need to see how the IRS nets debt and cash in an exchange.
How Debt and Cash Are Netted in an Exchange
Treas. Reg. 1.1031(d)-2 and IRS Publication 544 set out the netting rules. In plain English:
- Debt relief counts like cash. If the other side takes over your mortgage, or the property you give up is transferred subject to it, you are treated as receiving money in that amount for figuring the gain you must recognize.
- New debt offsets old debt. Publication 544 says you can decrease, but not below zero, the money you are treated as receiving by the liabilities you take on and by cash you pay.
- Cash received is not offset by new debt. The regulation's Example 2 states it directly: consideration received in cash or other property is not offset by consideration given in the form of an assumption of liabilities, but cash or other property you give is offset against liabilities you are relieved of.
The Form 8824 instructions build the same logic into line 15, which counts cash received plus net liabilities assumed by the other party, after subtracting liabilities you assumed, cash you paid and other property you gave up.
The Regulation's Own Example
Example 2 in Treas. Reg. 1.1031(d)-2 involves two apartment owners. The first owner's building carries an $80,000 mortgage. He trades it for a building carrying a $150,000 mortgage and also receives $40,000 in cash.
- His $80,000 of debt relief is fully offset by the $150,000 of debt he takes on.
- The $40,000 cash is not offset by the extra debt. The regulation says only the $40,000 cash is treated as money for Section 1031(b), and $40,000 of his gain is recognized.
The other owner, who paid the cash, is the mirror image. His $150,000 of debt relief is offset by the $80,000 of debt he takes on and by the $40,000 he paid, leaving $30,000 of recognized gain.
The lesson for a Sacramento owner: if you want cash at the closing table, a larger replacement loan will not shelter it.
Refinancing Before the Sale
A cash-out refinance on the property you plan to sell changes the numbers in two ways.
- You get cash outside the exchange. The loan proceeds reach you before the sale, not through the intermediary.
- The payoff at sale gets bigger. The larger mortgage is paid off at closing, which is debt relief. To keep that relief from becoming taxable, you generally need at least as much debt on the replacement property, or added cash, under the netting rules above.
The regulations we read do not say how long before a sale a refinance can or should happen, and they do not address a refinance taken in anticipation of an exchange. Because of that silence, bring your CPA the loan timeline, the lender's reason for the loan and how the money was used before you list the property.
Refinancing After the Purchase
The Form 8824 calculation looks at the liabilities and cash that move as part of the exchange. A loan placed on the replacement property after the exchange closes is not one of the line items the instructions list for line 15 or line 18.
That does not make every post-closing refinance automatically safe. No primary source we reviewed gives a safe waiting period. If a refinance is arranged as part of the purchase plan, ask your CPA whether it should be viewed as separate from the exchange, and keep the paperwork that shows when and why the loan was made.
Do not borrow against the exchange account
The deferred exchange safe harbors require your exchange agreement to say you have no right to receive, pledge, borrow or otherwise obtain the benefits of the money held by the intermediary before the exchange period ends, with limited exceptions. That is Treas. Reg. 1.1031(k)-1(g)(6). Using the exchange account itself as loan collateral is the wrong tool for raising cash.
Questions to Bring to Your CPA and Lender
- What is the total debt being paid off on the property I am selling, including any recent refinance?
- How much debt, or added cash, do I need on the replacement property to offset that payoff?
- Am I planning to take any cash at closing? If so, how much gain will that cash trigger, given that new debt cannot offset it?
- If I refinance before or after, what records should I keep to show the loan's timing and purpose?
- Does any recognized gain include depreciation related gain? See depreciation recapture and a 1031.
Closing costs and prorations change the cash figure too. See closing costs and 1031 funds. If you are still deciding whether to exchange at all, start with keep or sell and how a 1031 exchange works.
The Practical Takeaway
Debt you shed can be matched with debt you take on. Cash you pocket cannot. Everything else about refinancing around an exchange, including timing, is a facts question that the regulations leave open, so the safest move is to show your CPA the loan plan before the property goes on the market.
Need a local CPA, attorney, lender or exchange-savvy agent? Request a referral.
Common questions
Is paying off my mortgage in a 1031 exchange taxable?
Debt relief is treated as money received under Treas. Reg. 1.1031(d)-2 and Publication 544, but it can be offset by debt you take on with the replacement property or by cash you add.
Can a bigger loan on the replacement property cover cash I take at closing?
No. Example 2 in Treas. Reg. 1.1031(d)-2 says cash received is not offset by liabilities you assume, so cash taken at closing is generally taxable to the extent of your gain.
How long should I wait to refinance after a 1031 exchange?
The exchange regulations do not set a waiting period. Ask your CPA to review the timing and purpose of the loan and keep records of both.
Can I borrow against the money my qualified intermediary is holding?
The safe harbor in Treas. Reg. 1.1031(k)-1(g)(6) requires the exchange agreement to bar you from receiving, pledging or borrowing against those funds before the exchange period ends, with limited exceptions.
Sources
- 26 CFR 1.1031(d)-2, Treatment of assumption of liabilities (Cornell LII)
- 26 CFR 1.1031(k)-1, Treatment of deferred exchanges (Cornell LII)
- IRS Publication 544, Sales and Other Dispositions of Assets
- IRS Instructions for Form 8824, Like-Kind Exchanges
Sources checked November 13, 2026. Last reviewed November 2026.
General information only, not tax or legal advice. Consult a CPA or tax attorney.