Refinancing Before or After a 1031 Exchange
10 min read · How-To Guides · Last updated
Key Takeaway
You can refinance before or after a 1031 exchange, but timing matters. Refinancing too close to the exchange risks "step transaction doctrine" where the IRS views the refi and exchange as one integrated plan to extract cash tax-free. Safe timing is 6-12 months between the exchange and refinancing. Document that the refi serves a business purpose beyond extracting exchange equity.
The Refinancing Temptation
Here's a scenario many investors face: you just completed a 1031 exchange, buying a beautiful replacement property. The property is worth $2 million, and you have $1.5 million in equity.
You think: "I could refinance this property, pull out $500,000 in cash, and still keep it as a rental. I'd defer the taxes from my exchange and get cash too."
It's tempting. And it seems like it might be permissible. But it's dangerous.
The IRS has a doctrine called "step transaction doctrine." In simple terms, it means the IRS can look at a series of related transactions and view them as one integrated plan, rather than as separate transactions. If the overall plan achieves a tax benefit you wouldn't get if you did the transactions differently, the IRS can disallow it.
A refinance immediately after an exchange, with the intent to extract equity, looks like exactly this kind of plan: sell property, defer taxes via 1031 exchange, then pull out the equity via refinance. From the IRS's perspective, the net effect is that you've cashed out of your investment and deferred taxes. That's not what Section 1031 is supposed to do.
So timing matters. And documentation matters. And having a legitimate business purpose for the refi matters.
Let's talk through the two scenarios: refinancing before the exchange, and refinancing after.
Scenario 1: Refinance Before Selling (Cash-Out Refi)
You own a property worth $1 million with a $400,000 mortgage. You're considering a 1031 exchange.
One option: refinance before selling. Do a cash-out refi, pull out $200,000 in equity (taking your loan to $600,000), and then sell the property and do a 1031 exchange.
How this works:
- Refinance property for $600,000 (up from $400,000).
- Receive $200,000 in cash.
- Sell the property for $1 million.
- Proceeds are $1 million (sale price) minus $600,000 (loan payoff) = $400,000 net to you.
- But you already extracted $200,000 via the refi.
- So your total cash is $600,000, but you've only deferred taxes on the $400,000 you reinvest.
From a tax perspective, the $200,000 you took out via the refi is separate. It's not part of the exchange. It's just cash flow from refinancing.
Why this approach is safer:
The refi happens before the exchange. They're separated by time and documentation. The refi is a distinct transaction with its own business purpose (accessing cash to pay down debt, fund a business, make improvements, etc.). Then, separately, you sell and do an exchange.
The IRS won't try to integrate these as a single plan because they're clearly distinct. The refi happened first, on its own timeline. The exchange happened later.
The risk:
If the refi is very close in time to the sale (say, same week), and it's obvious that the refi was done solely to extract equity before the exchange, the IRS might still question it. But if there's a reasonable gap (weeks or months) and you have a stated business purpose for the refi, you're on solid ground.
Scenario 2: Refinance After Closing on Replacement (Riskier Timing)
The riskier scenario is refinancing after you've acquired your replacement property via 1031 exchange.
How this works:
- You complete a 1031 exchange, buying a replacement property for $1 million (or more to fully deploy exchange proceeds).
- You hold the property for a few weeks or months.
- You refinance the property, borrowing $600,000 and taking $200,000 in cash.
- You now have the property (with $600,000 debt) and $200,000 in cash.
Why this is riskier:
If the refinance happens too soon after the exchange, the IRS might argue that the entire sequence was a plan to extract cash while deferring taxes. They could use step transaction doctrine to:
- Disallow the exchange, arguing it was part of a larger plan to extract equity
- Require you to pay taxes on the entire gain from the original property sale
- Add interest and penalties for non-compliance
The IRS's argument would be: "You deferred taxes on $1 million of proceeds, reinvested in a replacement property, and then immediately extracted the equity. The net effect is the same as if you'd sold, cashed out, and paid no taxes. That's not a 1031 exchange; that's tax evasion."
It's a strong argument if the timing is too aggressive.
How Much Time Is Safe?
There's no bright-line rule in the IRS regulations. But based on case law and IRS rulings, most tax professionals recommend:
Safe zone: 6-12 months minimum between exchange and refinance.
If you close on your replacement property in January and you don't refinance until August, you're in good shape. There's enough time that the transactions appear separate.
Risky zone: Refinancing within a few weeks of exchange closing.
If you close on your replacement property and refinance within a month, the IRS can more easily argue that the transactions are integrated.
Safest zone: 12+ months and a demonstrated business purpose.
The longer the gap, the safer you are. And if you can point to a legitimate business reason for the refi (improving the property, reducing interest rate, consolidating debt), that helps too.
Documentation and Business Purpose
Even if you wait 6-12 months, document your business purpose for the refinance.
Don't just say: "I needed cash."
Instead, say: "I refinanced to fund building improvements that increased the property's value" or "I refinanced to reduce my interest rate and improve cash flow" or "I refinanced to consolidate multiple loans."
These are legitimate business purposes. They show that the refinance wasn't done solely to extract exchange proceeds.
Keep documentation:
- The appraisal showing the property's increased value (if applicable)
- The loan documents showing the new interest rate and terms
- Receipts for improvements funded by the refi proceeds
- Bank statements showing the proceeds were used for stated purposes, not just pocketed
If the IRS ever audits your exchange, this documentation shows that your refinance was a distinct, separate transaction with its own business purpose, not part of a larger plan to extract cash.
Debt Equality: A Safe Harbor
One relatively safer approach is refinancing for the same loan amount.
If your replacement property has a $600,000 loan and you refinance for $600,000 (maybe to reduce your interest rate from 6% to 4%), you're not extracting equity. You're just managing your debt.
This is lower risk because:
- You're not pulling cash out.
- The refi is clearly a distinct transaction.
- There's no question of integrating the refi with the exchange to extract cash.
In fact, if you're keeping debt constant or paying down debt, the step transaction argument almost never applies.
Refinancing the Original Property Before Selling
Here's another timing question: what if you refinance your property before you sell it (in contemplation of an exchange)?
Example: You own a property worth $1 million with $400,000 in debt. You plan to sell and do a 1031 exchange. You decide to refinance first, taking $200,000 in cash-out, raising the debt to $600,000. Then you sell.
This is generally safe. Here's why:
- The refi happens first, on its own timeline and terms.
- You're extracting cash before the exchange, not after.
- When you sell, you have $1 million in proceeds minus $600,000 in debt payoff = $400,000 net.
- You reinvest that $400,000 (or more) in exchange property.
The IRS won't try to integrate the pre-sale refi with the exchange because they're clearly separate events. The refi has its own timeline and purpose.
This is actually a smart strategy if you need cash and you're planning an exchange. Refi first, extract the cash you need, then sell and exchange the remaining equity.
Tax Deduction Considerations
Here's one more thing to consider: if you refinance and use the proceeds for personal use (not improving the property), the interest on the refinance loan might not be deductible.
Example: You refinance and pull out $200,000 in cash to pay off personal debts. The $200,000 in loan proceeds is not deductible. The interest on that $200,000 portion of the loan is personal interest, not investment interest, and it's not deductible.
But if you use the refi proceeds to improve the property or expand your business, the interest might be deductible.
This doesn't affect the 1031 exchange itself, but it affects your overall tax situation. Coordinate with your CPA on how the refi proceeds are used and how interest will be treated.
The Bottom Line
You can refinance before or after a 1031 exchange. But timing and documentation matter.
Before an exchange: Safe. Refi first, extract equity, then sell and exchange the remaining proceeds.
After an exchange: Wait 6-12 months minimum. Document a business purpose beyond extracting equity. Avoid aggressive timing that looks like a plan to extract cash while deferring taxes.
The step transaction doctrine is real. The IRS has used it to disallow aggressive exchanges. Don't test the limits. If you're refinancing a replacement property, wait long enough and document your business purpose.
And absolutely discuss your refinance plans with your CPA and your QI before you do anything. They can advise on safe timing and documentation.
The 1031 exchange benefit (deferring six figures in capital gains taxes) is strong enough. Don't jeopardize it by refinancing too aggressively.
Want to understand more about how refinancing affects your basis and hold period? Check out our guide to 1031 holding periods. Or if you're planning a complex exchange with refinancing involved, talk to a qualified advisor who can coordinate all the details.
Ready to take the next step?
Talk to an independent advisor who can help you evaluate your specific situation. Free consultation, no obligation.
Find an Advisor →The Bottom Line
Don't try to refinance immediately before or after an exchange to pull out equity. The IRS has tools to unwind aggressive timing. Wait 6-12 months, ensure the refi serves a legitimate business purpose, and coordinate with your CPA and QI. The tax deferral benefit is strong enough without taking timing risks.
Frequently Asked Questions
Related Articles
1031 Exchange Closing Costs: What Exchange Funds Can Pay
Learn which closing costs can be paid from your 1031 exchange funds without creating boot. Includes categorized breakdown and escrow instructions for your closing officer.
How to Fill Out IRS Form 8824 (Worked Example + Common Mistakes)
Step-by-step guide to completing IRS Form 8824 with a worked example. Includes common mistakes, reporting tips, and a pre-tax checklist.
1031 Exchanges With LLCs, Partnerships, and Multiple Owners
The "same taxpayer" rule requires the entity that sells to be the entity that buys. Learn how LLCs and partnerships affect 1031 exchanges and what mistakes to avoid.