Refinancing right before a 1031 sale can trigger step-transaction scrutiny. The safer pattern is to leave 6+ months between the refinance and the listing and to document an independent business reason for borrowing. When liquidity is the real goal, taking partial boot, meaning cash kept inside the exchange and taxed as recognized gain, is the most transparent route.
Three ways to pull cash around an exchange
A client has owned a commercial building for years, and it has appreciated. Now they want three things at once: to sell it, to defer the capital-gains tax by rolling the proceeds into a new property through a 1031 exchange, and to walk away with some cash. Each goal is reasonable on its own. The trouble is the sequence.
The tempting shortcut is to refinance first. A cash-out refinance isn't income, it's a loan, so the client gets money in hand tax-free, and the later sale and exchange still defer the gain. Liquidity with no tax cost. The IRS has seen this move, and it has a way of unwinding it.
One term to fix in place before the patterns: in a 1031, any cash or non-like-kind property the client keeps is called boot, and boot is taxable. The rest of the gain rides into the new property untaxed.
When liquidity has to happen around an exchange, three timing patterns come up. They look similar on paper and carry very different risk.
Pattern | Description | IRS Risk | Recommended Timing | Documentation Burden |
|---|---|---|---|---|
Pre-sale refinance | Refinance, then sell and exchange | High | 6-12+ months before listing | Must document independent business purpose |
Post-acquisition refinance | Exchange, then refinance replacement | Low-Moderate | 3-6+ months after acquisition | Standard; document improvements and business reason |
Partial boot (intentional cash-out) | Take cash during the exchange itself | Lowest | At exchange closing | Minimal; transparent within exchange structure |
Pattern 1: Refinance before the sale
Here the client refinances, pulling cash out through a larger mortgage, and only then sells and exchanges.
The appeal is clean. The refinance is a loan, not income, so it's tax-free. The sale and exchange defer the gain. The client ends up with cash and no tax bill.
The problem is the step-transaction doctrine, which lets the IRS treat a series of formally separate steps as one transaction when they look like pieces of a single pre-planned scheme. Refinance, sell, exchange: if those three moves were arranged together to pull cash out tax-free, the IRS can collapse them and treat the borrowed cash as taxable boot.
What makes the sequence look pre-planned
Red Flag | Why It Matters |
|---|---|
Refinance completed weeks before listing | Compressed timing suggests pre-planned sequence |
Refinance amount precisely matches stated liquidity need | Looks engineered rather than business-driven |
No documented business reason beyond general cash needs | No defense against step-transaction challenge |
Loan proceeds sit idle in savings while property is listed | Stated purpose never materialized |
Loan documents reference the sale or exchange | Creates paper trail of unified plan |
Multiple refinances in quick succession before sale | Pattern invites heightened scrutiny |
What keeps it looking like an independent decision
Element | Standard |
|---|---|
Timing | 6+ months (preferably 12+) between refinance and public listing or serious sale discussions |
Business purpose | Document a concrete, independent reason: equipment purchase, capital improvement, debt consolidation, market-timing rate lock |
Deployment | Deploy loan proceeds for the stated purpose within 60-90 days |
Separation | Do not discuss the sale in the same conversation as the refinance decision |
Written confirmation | Obtain a written memo from the client explaining the independent business rationale before the refinance |
Documenting the business purpose
The whole defense often comes down to one document: a memo from the client, written before the refinance, explaining why they are borrowing. A strong one is specific and stands on its own: "We plan to refinance [Property] to fund the renovation and expansion of our commercial kitchen equipment. We anticipate $150K in equipment purchases starting in Q2 2026. This decision is based on our business growth plans and market interest rates, not on any immediate plans to sell the property."
A weak one gives the IRS nothing to work with: "We need cash."
Pattern 2: Refinance after buying the replacement
Now the order flips. The client completes the exchange, takes title to the replacement property, and refinances that property to pull cash out.
This is safer for a structural reason: the exchange is already done. The replacement property is in the client's hands, and a later decision to borrow against it isn't part of the exchange. The IRS can't reach back and undo a completed exchange because the owner took out a loan afterward.
How much daylight to leave still matters.
Timing | Risk Level | Notes |
|---|---|---|
Same week as acquisition | High | No independent business reason; looks suspicious |
1-3 months after acquisition | Moderate | Marginal; document improvements or leasing activity |
3-6 months after acquisition | Low | Allow improvements, tenant activity, and market changes to create genuine business reason |
6+ months after acquisition | Lowest | Standard business decision with clear timeline separation |
A defensible version looks like this. The client closes the exchange in month one, then spends the next several months improving the property, with a new roof, HVAC, and tenant work, and signs long-term leases. In month eight they refinance at a better loan-to-value ratio - the size of the loan against the property's value - and take out $300K. Eight months of separation, documented improvements, and a clear business reason, all pointing away from a pre-planned cash grab.
Pattern 3: Take the cash as boot
When a client genuinely wants both deferral and liquidity, the most transparent route is to build the cash into the exchange itself.
The mechanics are simple. The client sells for $2M and exchanges into a replacement worth $1.5M, intentionally keeping $500K in cash. That $500K is boot and gets taxed. The $1.5M reinvestment still qualifies for deferral.
Nothing here is hidden. The liquidity goal is written into the exchange, so there is no separate step for the IRS to challenge and no room to argue that cash was extracted in disguise. And the tax bill is knowable up front: gain recognized on the boot, deferral on the rest.
This route tends to fit a particular client. One who wants liquidity and an exchange at the same moment. One whose cost basis - their tax investment in the property - is high, or whose gain is small, so recognizing some boot isn't a heavy hit. One who values simplicity and a predictable tax outcome over squeezing out the last dollar of deferral. It is also the calmest option for a client who is sensitive to audit risk.
Coordinating with the qualified intermediary
The qualified intermediary, or QI, is the third party who holds the sale proceeds during an exchange so the client never takes possession of them. Loop them in early. Walk them through any pre-sale refinance and when it happened relative to the sale, and confirm the refinance doesn't affect exchange compliance. Make sure the exchange agreement spells out exactly what is being reinvested and what, if anything, the client is keeping as intentional boot. And check that the QI's own documentation lines up with the advisor's file, so the two records tell the same story.
When to bring in tax counsel
For clients with substantial properties or an aggressive refinance-to-exchange structure, tax counsel earns its fee. Counsel can gauge step-transaction risk from the specific timing and documentation, draft memos or opinions supporting the business purpose, judge how well the client's position would hold up if questioned, and suggest changes that lower the risk.
A brief written opinion runs about $1K-$3K, which is small next to the cost of an IRS audit.
Putting it together
Client Need | Approach That Fits | Key Requirement |
|---|---|---|
Cash needed, sale not planned for 12+ months | Pre-sale refinance | Document business purpose; deploy proceeds; maintain timeline separation |
Cash needed, sale planned within 6 months | Partial boot during exchange | Structure boot transparently within the exchange |
Cash needed after exchange is complete | Post-acquisition refinance | Wait 3-6 months; improve property; document business reason |
Cash needed, sale imminent, no business purpose for refinance | Pre-sale refinance is the wrong tool | Take partial boot or accept deferral without cash extraction |
The core message for clients
"If you need liquidity and you want to exchange, we have options. We can structure it transparently via partial boot during the exchange. Or we can refinance well in advance of any sale, with solid business reasons and a long timeline. What we cannot do is refinance and list in quick succession. The IRS will see that as a step transaction. Let's plan this correctly."
Refinancing and 1031 exchanges can coexist, but the timing and the paper trail decide whether the plan holds up. A pre-sale refinance is the riskiest and needs an independent business reason to stand on. A post-acquisition refinance is generally safer, as long as it isn't done at the same time as the closing. The most defensible route is to take partial boot during the exchange and accept the tax on the cash you keep.
Frequently asked questions
Is refinancing the relinquished property before a 1031 exchange allowed?
Yes. Refinancing is allowed; the timing and documentation are what matter. Done 6+ months before a sale with an independent business reason, such as property improvements, a rate lock, or genuine cash-flow needs, it is generally defensible. Done weeks before listing, it looks like a pre-planned step to pull out tax-free cash and can be challenged under the step-transaction doctrine. The IRS question is whether the refinance was part of a unified plan to extract cash and then defer the sale gain through a 1031. A genuine, documented business reason and enough time between the two events are the defense.
What is considered a safe timeline between a pre-sale refinance and listing?
The safer standard is 6+ months between the refinance and public listing or serious sale discussions, and 12+ months is safer still. The logic: a real business reason, such as improvements, capital needs, or a rate opportunity, would not require converting to a sale almost immediately. Refinancing and listing within weeks strongly suggests the refinance was one step in a pre-planned cash extraction. Compressed timing is the biggest red flag.
Is refinancing the replacement property after acquisition risky?
It is generally safer, because the exchange is already complete and in the IRS's rear-view mirror. Even so, avoid refinancing at the same time as the acquisition, meaning closing and refinancing in the same month or right after. The safer pattern is to wait several months, hold and possibly improve the property, then refinance with a clear business reason. The risk is lower, not zero: a refinance within days of closing can still draw scrutiny of the original exchange.
What is the step transaction doctrine and how does it apply to refinance-plus-exchange scenarios?
The step-transaction doctrine lets the IRS collapse several formally separate steps into one transaction when they look like pre-planned parts of a single scheme. In the refinance context the argument runs: the client refinances to pull out cash, then, as part of the same plan, sells the property and exchanges into a replacement. If the steps were pre-planned, the IRS can recharacterize the refinance as part of the exchange and treat the cash as disguised boot. Timeline separation and business purposes that exist independently of the sale are what counter it.
How should advisors document the purpose of a pre-sale refinance?
Get a written memo from the client, dated before the refinance, laying out the business purpose: planned improvements (with contractor quotes or receipts), working capital for operations, a rate-lock opportunity, or balance-sheet reasons. The memo should not reference a planned sale. Afterward, keep the lender correspondence, the appraisal, and any evidence the purpose was real, such as invoices for improvements or proof of the cash need. If the client later refinances and sells, that contemporaneous record shows the refinance was not part of the sale plan.