Big Sale TaxHans Goldstein: Tax & Exit Planning
Home / Tax Tools / Cash-out refinance before a sale
Tax tool analysis

Cash-out refinance before a sale: what it does and does not do for your tax

deferral red flag
Short answerLoan proceeds are not income, so a cash-out refinance puts cash in your hands with no tax today. It does not reduce the gain when you sell: the gain is the price minus your adjusted basis, whatever you owe. On an installment sale, debt paid off at closing, and debt over basis that the buyer takes over, count as year-one payments. Before a 1031, it can be boot.

How it works

Borrowing is not income because you owe the money back. A cash-out refinance on a building worth $3,000,000 with a $600,000 basis can put $1,400,000 in your account with no tax due. That is the whole appeal.

At a sale, though, gain is the amount realized minus adjusted basis (IRC 1001). The amount realized includes debt the buyer pays off or takes over (Treas. Reg. 1.1001-2). So the refinance changes how much cash you net at closing, not how much gain you report. Debt larger than basis still produces gain, which surprises owners who have refinanced several times and walk away from a sale with little cash and a large tax bill.

Three ways owners use it

  1. Borrow instead of selling. Keep the property, refinance, and hold until death, when heirs take a stepped-up basis (IRC 1014). This defers the gain for life, at the price of interest, property risk and continued management. See holding for the step-up.
  2. Refinance, then sell for cash. The loan is paid off from the sale proceeds. Total gain and total tax are the same as without the refinance; you simply received part of the cash earlier.
  3. Refinance, then sell on an installment note. The idea is to take cash through the loan and defer gain on the note. The installment rules are written to stop this, as the next section shows.

The installment sale rules on mortgages

Under the installment method, gain is reported as payments are received. Three rules decide how a mortgage counts:

  • Payoff at closing is a payment. Cash the buyer uses at closing to pay off your loan is a payment to you in the year of sale.
  • Debt the buyer takes over counts only above basis. Qualifying debt the buyer assumes or takes the property subject to is a payment only to the extent it exceeds your basis (Temp. Treas. Reg. 15a.453-1(b)(3)(i)).
  • Debt placed in contemplation of the sale is not qualifying debt if the arrangement accelerates recovery of your basis (Temp. Treas. Reg. 15a.453-1(b)(2)(iv)). Then the whole assumed amount can be treated as a payment.

One more limit applies after the sale: borrowing against the installment note itself is treated as receiving payment on the note for notes from sales over $150,000 (IRC 453A(d)), with an exception for farm property. See the Section 453A pledge rule.

Worked example

Assumptions (illustrative): married couple filing jointly in Texas, $100,000 of other income, 2026 tables. Sale price $3,000,000, adjusted basis $600,000, gain $2,400,000, so 80% of each dollar of payment is gain. Taxes from the sale computed with the Big Sale Tax engine.

PlanYear-one paymentGain in year oneTax from the sale in year one
No loan. $300,000 down, seller note for $2,700,000$300,000$240,000$34,755
Cash-out refinance of $1,400,000 two months before the sale. Buyer pays $1,400,000 at closing to retire the loan, seller note for $1,600,000$1,400,000$1,120,000$239,408

The refinance put $1,400,000 in the seller's pocket early, but the loan payoff at closing is a year-one payment, so most of the gain lands in year one anyway. Total gain over the life of the note is $2,400,000 in both plans.

Refinancing before a 1031 exchange

In a 1031 exchange, cash or other property you receive is boot and is taxed (IRC 1031(b)). A refinance shortly before listing, with the loan then paid off at the sale, can be argued by the IRS to be cash taken out of the exchange under the step transaction doctrine, especially when the loan had no purpose apart from the sale. Courts have looked at timing, whether the loan was arranged before the sale was in view, and whether it had an independent business reason. Refinancing the replacement property after the exchange closes is the more common, cleaner way to pull cash. See 1031 boot.

Interest tracing: is the interest deductible?

Interest is classified by how you spend the loan proceeds, not by what secures the loan (Temp. Treas. Reg. 1.163-8T). Proceeds spent on the rental or business generate business or rental interest; proceeds invested generate investment interest, deductible only up to net investment income (IRC 163(d)); proceeds spent on personal items generate nondeductible personal interest (IRC 163(h)). Keep refinance proceeds in a separate account and document each use.

Who it fits, and who it does not

Good fit: owners who want cash and plan to keep the property for the long term or for life; owners who refinanced for a business reason well before any sale was in view.

Poor fit: sellers who refinance right before an installment sale or a 1031 hoping to take cash out without tax; owners whose rent cannot carry the higher debt service.

IRS stance and audit risk

A refinance by itself is a normal financing event. The audit risk is in the timing: debt placed in contemplation of a sale under the installment regulations, and the step transaction doctrine in an exchange. Lender documents, the loan application date and how the proceeds were used are the evidence that decides these cases.

Costs and fees

Origination fees, appraisal and title costs, any prepayment penalty on the existing loan and on the new loan if you sell soon, and interest for as long as the debt is outstanding. A loan paid off a few months later at closing often costs more than it is worth.

How it compares with a Section 453 installment sale

A refinance gives cash now and keeps the gain intact; an installment sale gives cash over time and spreads the gain. They work against each other when the loan is paid off at closing. A cleaner approach many sellers model is a cash carve-out at closing to retire existing debt plus a seller note on the rest, with the cost of that choice priced in. See seller financing and compare scenarios.

What to know

A cash-out refinance is useful money, but it is debt, not a tax strategy for a sale. It carries interest and fees, and it does not reduce the gain. When a sale follows soon after, the loan payoff is a year-one payment on an installment sale, and debt placed in contemplation of the sale can lose its favorable treatment. Before a 1031, the IRS can treat refinance cash as boot. The interest deduction depends on what you do with the proceeds.

Frequently asked questions

Is a cash-out refinance taxable?
No. Loan proceeds are not income because you must repay them. The tax question arises later, when the property is sold.
Does refinancing before selling reduce capital gains tax?
No. Gain is the sale price minus adjusted basis. The loan changes how much cash you net at closing, not the gain.
What if my mortgage is more than my basis?
You still have gain on the full difference between price and basis. On an installment sale, debt over basis that the buyer takes over is a year-one payment, and a payoff at closing is a payment.
Can I refinance before a 1031 exchange?
It is risky right before the sale, because the IRS can treat the cash as boot. Refinancing the replacement property after the exchange is the more common approach.
Is the interest on a cash-out refinance deductible?
It depends on how you spend the proceeds. Business or rental use, investment use and personal use each have different rules under the interest tracing regulations.
How Hans helps: the $5,000 Big Sale Tax Analysis models this path side by side with every other option for your sale and ends with a written recommendation. See the analysis.
Next step

Know your number before you sign.

The Big Sale Tax Analysis is a flat $5,000. Start with a free scoping call; you are invoiced only after it, and only if you go ahead.

Prefer email? Request the analysis by email.

Book a callCall Hans