Refinancing Before or After a 1031 Exchange
10 min read · Planning & Execution · Last updated
Reviewed by
Key Takeaways
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.
Refinancing near a 1031 exchange is permissible, but timing determines whether the IRS treats the refinance as a separate transaction or as part of an integrated plan to extract equity while deferring taxes. The step-transaction doctrine is the risk. The structure below organizes the analysis around three timing windows.
Timing matrix
| Timing | Risk level | Key considerations |
|---|---|---|
| Before the sale (cash-out refi, then sell and exchange) | Lower risk | Refi is a distinct event with its own timeline; separated from the exchange by time and documentation |
| During the exchange (between Day 0 and Day 180) | High risk | Any refi during the exchange window can be viewed as part of the exchange plan; generally avoid |
| After closing on the replacement | Depends on gap | Less than 2-3 months: elevated risk. 6-12 months: moderate risk. 12+ months with business purpose: lower risk |
Before the sale: refinance first, then exchange
This is the safest sequence. You refinance the relinquished property before listing it, extract the equity you need, and then sell and exchange the remaining proceeds.
How it works:
- You own a property worth $1,000,000 with a $400,000 mortgage.
- You do a cash-out refinance, raising the loan to $600,000 and receiving $200,000 in cash.
- Separately and later, you sell the property for $1,000,000. After paying off the $600,000 mortgage and selling costs, the net proceeds go to your QI.
- You reinvest those proceeds into replacement property via a 1031 exchange.
Why it is safer: The refi happened first, on its own timeline, with its own business purpose (accessing capital, funding improvements, consolidating debt). The exchange happened later as a separate decision. The IRS has little basis to integrate the two.
Timing note: If the refi closes the same week as the sale, the IRS could still question the sequence. A gap of several weeks or more, combined with a documented reason for the refi, eliminates most risk.
During the exchange: generally avoid
Refinancing between the sale of the relinquished property and the closing of the replacement property is risky and unusual. Exchange proceeds are held by the QI during this window, and any parallel refinancing activity on related properties creates complexity. In most cases, postpone refinancing until after the exchange is complete.
After closing on the replacement: timing and business purpose
The more common question is whether you can refinance the replacement property after the exchange to pull out equity.
The IRS concern is straightforward: if you sell a property, defer taxes via 1031, and then immediately extract the equity through a refinance, the net result looks the same as selling and cashing out. The step-transaction doctrine allows the IRS to collapse these steps into a single transaction and disallow the exchange.
How much time is enough?
There is no bright-line rule in the code or regulations. Based on case law and practitioner guidance:
| Gap between exchange closing and refi | Assessment |
|---|---|
| Less than 30 days | Very high risk; difficult to defend |
| 1-3 months | Elevated risk; the IRS can readily argue integration |
| 3-6 months | Moderate risk; defensible with strong business purpose |
| 6-12 months | Lower risk; most practitioners consider this the minimum safe zone |
| 12+ months | Substantially safer; the transactions appear clearly separate |
Business purpose matters as much as timing
Even with a reasonable gap, document a legitimate business reason for the refinance beyond "I wanted to access equity." Strong purposes include:
- Funding capital improvements to the replacement property
- Reducing the interest rate or improving loan terms
- Consolidating multiple loans
- Accessing capital for a separate business need unrelated to the exchange
Weak purposes (or no stated purpose) invite scrutiny. The IRS is more likely to integrate transactions when the only apparent motivation is extracting the equity that was deferred through the exchange.
Documentation to maintain
- Appraisal showing the replacement property's value at the time of refinance
- Loan documents showing the new interest rate and terms
- Receipts or records showing how the refinance proceeds were used
- Written notes or correspondence reflecting the business reason for the refi
Rate-and-term refinance vs. cash-out refinance
A rate-and-term refinance (same loan balance, better rate or terms) carries almost no step-transaction risk regardless of timing. You are not extracting equity. The transaction is clearly distinct from the exchange.
A cash-out refinance is the scenario that creates risk, because you are pulling equity from a property you just acquired through a tax-deferred exchange.
If you need to refinance shortly after closing, a rate-and-term refi is far safer than a cash-out refi.
Interest deductibility
If you refinance and use the proceeds for personal purposes (paying off personal debts, non-investment spending), the interest on the cash-out portion may not be deductible as investment interest. If you use the proceeds to improve the property or fund another investment, the interest may remain deductible.
This does not affect the 1031 exchange itself, but it affects your overall tax position. Coordinate with your CPA on how the proceeds are used and how interest will be treated.
Planning recommendations
-
If you need cash, refinance before the sale. Extract equity through a pre-sale cash-out refi, then sell and exchange the remaining proceeds. This is the cleanest structure.
-
If you plan to refinance the replacement property, wait at least 6-12 months. The longer the gap, the stronger your position. Document a business purpose beyond accessing equity.
-
Prefer rate-and-term refinancing when timing is tight. If you need to refinance within a few months of closing, a rate-and-term refi (no cash out) carries minimal risk.
-
Discuss refinancing plans with your CPA and QI before you close. They can advise on safe timing, documentation, and how the refinance affects your basis and deductibility.
The 1031 deferral on a significant gain is worth protecting. A well-timed, well-documented refinance preserves that benefit. An aggressive, poorly documented one puts it at risk.
For related guidance, see the 1031 exchange boot guide (how debt changes create boot) and the closing costs guide (how financing expenses are treated at closing).
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 Calculator: How to Estimate Your Tax Savings
Most investors hear "capital gains tax" and multiply their gain by 15% or 20%. That captures one of four tax layers. A California investor selling a property with significant depreciation could face an effective rate above 35% when you stack federal capital gains, depreciation recapture at a...
How to Choose a Qualified Intermediary (and What to Watch For)
A QI (also called an accommodator or facilitator) performs four critical functions:
1031 Exchange Into NNN (Triple Net) Property
In a triple-net (NNN) lease, the tenant pays three categories of operating expenses on top of base rent: property taxes, building insurance, and maintenance/repairs. The landlord receives rent and has virtually no operating responsibilities.