Planning & Execution

Refinancing Before or After a 1031 Exchange

Learn the timing and tax implications of refinancing a property before or after a 1031 exchange. Avoid step transaction doctrine and plan your refi strategically.

Written by Top1031 ResearchPublished Updated 10 min read
Key takeaway

You can refinance before or after a 1031 exchange, but timing determines whether the IRS treats the two as one plan. Refinancing too close to the exchange risks the step-transaction doctrine, where the IRS collapses the refinance and exchange into a single move to extract cash tax-free. Most practitioners treat 6-12 months between them, plus a business purpose beyond pulling out equity, as the point where the transactions look clearly separate.

A 1031 exchange lets you sell an investment property and move the gain into a new one without paying tax on it yet. A cash-out refinance lets you take money out of a property without selling it at all. Line the two up, and you have a way to reach your equity while the tax on it stays deferred. That is exactly the combination the IRS looks at closely.

Refinancing near an exchange is allowed. What matters is timing, because timing is what tells the IRS whether the refinance was its own event or one step in a single plan to pull out cash tax-free. The tool it uses is the step-transaction doctrine, which lets it treat a series of separate steps as one transaction when that was the real objective.

Timing matrix

Timing

Risk level

Key considerations

Before the sale (cash-out refi, then sell and exchange)

Lower risk

Its own 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 refinance during the exchange window can be read as part of the exchange plan

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 sequence with the least step-transaction exposure. You refinance the relinquished property before listing it, extract the equity you need, and then sell and exchange the remaining proceeds.

How it works:

  1. You own a property worth $1,000,000 with a $400,000 mortgage.
  2. You do a cash-out refinance, raising the loan to $600,000 and receiving $200,000 in cash.
  3. 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 qualified intermediary (QI), the third party who holds the money so it never lands in your hands.
  4. You reinvest those proceeds into replacement property via a 1031 exchange.

Why it is safer: The refinance 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 refinance 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 refinance, removes most of that risk.

During the exchange: the riskiest window

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 on related properties adds complexity. For most people the refinance waits until 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 the tax through a 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 lets the IRS collapse those 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, a legitimate business reason for the refinance beyond "I wanted to access equity" carries weight. 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 just deferred through the exchange.

Documentation that supports the case

  • 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 refinance

Rate-and-term refinance vs. cash-out refinance

A rate-and-term refinance keeps the same loan balance and only changes the rate or terms. It carries almost no step-transaction risk regardless of timing, because no equity is leaving the property. The transaction is clearly distinct from the exchange.

A cash-out refinance is the scenario that creates risk, because you are pulling equity out of a property you just acquired through a tax-deferred exchange. When timing is tight, a rate-and-term refinance is far safer than a cash-out for that reason.

Interest deductibility

If you refinance and use the proceeds for personal purposes, such as paying off personal debts or 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 does affect your overall tax position. Coordinate with your CPA on how the proceeds are used and how the interest will be treated.

How the timing choices compare

Refinancing before the sale is the structure with the least step-transaction exposure: the equity comes out on its own timeline, and the exchange follows as a separate decision.

A refinance of the replacement property draws less scrutiny the more time passes. Most practitioners treat 6-12 months as the point where the two transactions start to look clearly separate, and a business purpose beyond accessing equity strengthens the position further.

When timing is tight, a rate-and-term refinance carries less risk than a cash-out, because no equity leaves the property.

Discussing refinancing plans with your CPA and QI before you close lets them advise on timing, documentation, and how the refinance affects your basis and deductibility.

The deferral on a significant gain is worth protecting. A well-timed, well-documented refinance keeps the two transactions looking distinct. An aggressive, poorly documented one gives the IRS room to argue they were always one.

For related guidance, see the 1031 exchange boot guide on how debt changes create boot, and the closing costs guide on how financing expenses are treated at closing.

The bottom line

Refinancing right before or right after an exchange to pull equity out is the exact pattern the step-transaction doctrine targets, and the IRS has tools to unwind aggressive timing. A longer gap, a genuine business purpose, and coordination with your CPA and QI are what keep the refinance and the exchange looking like separate events.

Quick answers

Frequently asked questions

Can I refinance the day before I do a 1031 exchange?

It's allowed, but risky. If the IRS sees the refinance as part of a plan to pull cash out of the exchange, the step-transaction doctrine lets it treat the two as one and disallow the exchange.

What's "step transaction doctrine"?

It's an IRS principle that collapses related transactions into one when the overall intent was a tax benefit that wouldn't be allowed if the steps were viewed together. The timing between the transactions is a big part of how that intent is judged.

How much time should I wait between an exchange and a refinance?

There's no bright-line rule, but most tax professionals point to 6-12 months as a minimum. More time is safer; less time is riskier.

Can I refinance if I'm keeping the same amount of debt?

Yes, and that's lower risk. A cash-out refinance that increases your debt is the one more likely to trigger step-transaction issues, because that's when equity actually leaves the property.

Should I talk to my CPA before refinancing?

Yes. Your CPA should understand both your exchange and your refinance plans, so they can advise on timing and documentation.

The live marketBrowse current DST offeringsCompare active offerings identified through public SEC filings and documented sources. Browse active DST offerings