EBM Living®
House Hacker's Manual

Sell or Refinance: Two Ways to Access Your Equity and How Each Is Taxed

Selling turns equity into cash but may trigger tax. A cash-out refinance is not taxable because it is a loan, but it adds debt and its interest may not be deductible. Here is how the two compare.

4 min read
Sell or Refinance: Two Ways to Access Your Equity and How Each Is Taxed main image

If you have owned a property for a few years, you may have built meaningful equity: the difference between what the property is worth and what you owe. Rising values, principal paydown and improvements all add to it.

There are two main ways to turn that equity into cash. You can sell, or you can borrow against the property, most often through a cash-out refinance. The tax treatment of each is quite different.

Option 1: Sell the property

Selling gives you access to all of your equity, less your loan payoff and selling costs. Commissions are negotiable, and commission practices changed after the 2024 National Association of Realtors settlement, so budget for commissions, transfer taxes, escrow and title fees based on actual quotes.

Selling also ends your ownership, including future appreciation and rental income, and it may create a taxable gain. Your gain is the sale price, less selling costs, minus your adjusted basis (what you paid, plus improvements, minus depreciation you claimed).

How the home sale exclusion works

If the property is your main home, Section 121 lets you exclude up to $250,000 of gain, or $500,000 for most married couples filing jointly. Key rules:

  • You must have owned and lived in the home for at least two of the five years before the sale, and generally not used the exclusion in the prior two years.

  • Gain equal to depreciation taken after May 6, 1997 cannot be excluded and is taxed at up to 25%.

  • If you rented the home before moving in, gain allocated to rental periods after 2008 may not be excludable. Rental periods after you move out, within the five-year window, do not reduce the exclusion this way.

  • If you live in one unit of a duplex or fourplex, only the gain on your unit qualifies. Gain on the rental units is taxable, unless you defer it with a 1031 exchange.

Option 2: Cash-out refinance

A cash-out refinance replaces your mortgage with a larger loan, and you receive the difference in cash. How much you can borrow depends on the loan program and the property. For conventional loans sold to Fannie Mae, typical maximums in 2026 are 80% of value for a one-unit primary residence, 75% for a two- to four-unit property you live in, and 70% to 75% for investment properties. Government-backed and portfolio loans have their own limits, and lenders can set stricter ones, so confirm the figures with your lender.

For example, on a single-family home you live in worth $500,000 with a $300,000 mortgage, an 80% loan is $400,000. After paying off the old loan, you receive about $100,000, less closing costs.

Why refinance proceeds are not taxed

Borrowed money is not income, because you have to repay it. That is why cash from a refinance is not taxed when you receive it. It does not reduce the gain you will report if you sell later.

Whether you can deduct the interest on the new loan depends on how you use the cash:

  • On your home: interest on the cash-out portion is deductible as mortgage interest only if you use it to buy, build or substantially improve that home, you itemize, and you are within the $750,000 acquisition debt limit.

  • On a rental property: interest is traced to how you spend the money. Cash used to improve the rental or buy another investment property generally produces deductible interest. Cash used for personal spending produces personal interest, which is not deductible, even though the loan is secured by a rental.

Refinancing also has costs. You take on more debt and a higher payment, may give up a lower interest rate on your existing loan, restart the loan term, and pay closing costs that often run 2% to 5% of the loan amount. Some owners use a home equity loan or line of credit instead, to keep their first mortgage in place.

When each tends to make sense

Selling may fit when you plan to move, the property no longer fits your plans or is costly to maintain, or you want to reinvest the equity elsewhere.

Refinancing may fit when you want to keep the property, its rent comfortably covers a larger payment, and the new rate and terms are acceptable.

Example: Sarah's duplex

Sarah bought a duplex five years ago for $400,000. She lives in one unit and rents the other, owes $250,000, and the property is now worth $600,000.

If she sells, assuming 6% in total selling costs ($36,000), her proceeds are about $314,000 before tax. Because she lives in only one unit, her gain is split. The half allocated to her unit can be excluded if she meets the ownership and use tests. The half allocated to the rental unit, including the depreciation she has claimed on it, is taxable unless she defers it with a 1031 exchange.

If she refinances with a conventional loan at 75% of value, the maximum for a two-unit property she lives in, her new loan is $450,000. After paying off $250,000, she receives about $200,000 before closing costs, keeps the duplex and its rent, and still has $150,000 of equity. The cash is not taxable. If she uses it to buy another rental, the interest on that portion is generally deductible. If she spends it on personal expenses, it generally is not.

Try your numbers

Sell or refinance calculator

Get this calculator in Excel

Enter your email and the Excel workbook downloads right away.

You'll also get occasional new articles from EBM Living. Unsubscribe anytime.

The property
$
$
$
$
$
$
How you use it
%
Filing status

100% for a home, 50% for one unit of a duplex, 0% for a rental.

If you sell
%
%
%
If you refinance
%
%
%

Max loan starts at 75% of value, a typical conventional limit for a 2 to 4 unit property you live in.

SellRefinance
Cash before tax$314,000$186,500
Tax due$33,973$0
Cash you keep$280,027$186,500
Property and its rentGoneYou keep both
Equity left in it$0$150,000
Mortgage paymentNone$2,994/mo

Cash from refinancing, tax-free

$186,500

You keep the property and $150,000 of equity, while selling would cost $33,973 in tax

The trade-off: your payment goes from $1,450 to $2,994 a month (+$1,544), and the loan has to be repaid.

Tax on a sale

Gain
$193,000
Excluded on the share you live in (50%)
−$82,000
From past depreciation, taxed up to 25%
$29,000
Other taxable gain, at 20%
$82,000
Federal and California tax
$33,973

Refinance cash is a loan, so it is not taxed, and a later sale is taxed as above. Leaves out the 3.8% net investment income tax and any 1031 exchange. Interest on cash spent personally is generally not deductible. Loan limits vary by lender. Estimates only, not tax advice.

The bottom line

Selling locks in your gain and may trigger tax, though the home sale exclusion can shelter much of it on the part you live in. Refinancing keeps the property and avoids tax on the cash, but adds debt, and the interest is only deductible for qualifying uses. Run the numbers for both with your lender and CPA before deciding.

This article is general information, not tax or legal advice. Tax rules change, and the right approach depends on your circumstances. Consult a qualified tax professional before acting.

Enjoying this article?

Get the next one in your inbox. No spam, and you can unsubscribe anytime.