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
- 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.
- 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.
- 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.
| Plan | Year-one payment | Gain in year one | Tax 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?
Does refinancing before selling reduce capital gains tax?
What if my mortgage is more than my basis?
Can I refinance before a 1031 exchange?
Is the interest on a cash-out refinance deductible?
Sources
- Temp. Treas. Reg. 15a.453-1 (eCFR)
- IRC 453 (Cornell LII)
- IRC 453A pledge rule (Cornell LII)
- IRC 1001 and Treas. Reg. 1.1001-2 (eCFR)
- IRC 1031 (Cornell LII)
- Temp. Treas. Reg. 1.163-8T interest tracing (eCFR)
- IRC 163 (Cornell LII)
Last reviewed October 3, 2026. Education only, not legal or tax advice.
Keep comparing
Installment sale (Section 453)
Report the gain as the buyer pays you instead of all in the year of sale, under rules that have been in the tax code for decades.
ReadSeller financing
Carry the buyer's note, collect interest, and pay the tax as the principal comes in, with the right collateral and terms behind it.
Read1031 boot
Cash out, debt not replaced, or a note from the buyer: how boot is taxed in a 1031, how mortgage netting works, and how to spread boot over time.
ReadSection 453A pledge rule
Borrowing against your installment note can trigger the deferred tax early; here is exactly when, how much, and who is exempt.
ReadStep-up at death (hold)
Holding an appreciated asset until death can erase the built-in gain for heirs; here is when that beats selling now and when it does not.
ReadWrap-around mortgage
Keeping your old loan in place under a bigger seller-financed note can cut year-one gain, if the lender and the paperwork cooperate.
ReadKnow 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.