What’s the Tax Impact of Selling vs. Refinancing?

The tax impact of selling versus refinancing comes down to one line: a sale is a taxable event, a refinance is not. Selling converts your equity into cash the IRS can measure, which usually means capital gains tax and, for rental owners, depreciation recapture. Refinancing hands you cash too, but that cash is a loan you owe back, so nothing about it counts as income. Everything else in the comparison flows from that split.

Why Refinance Proceeds Aren’t Taxed

Cash from a refinance isn’t income because you haven’t gained anything in net terms. You received money, but you also took on an equal obligation to repay it. The IRS taxes transactions that leave you wealthier, and swapping equity for debt is a wash on paper. That holds whether you do a simple rate-and-term refinance or a cash-out refinance where you borrow more than you currently owe.

The tax neutrality also holds regardless of how you spend the proceeds. Home improvements, debt consolidation, a vacation — none of it converts the money into taxable income. How you spend it can affect whether interest on the new loan is deductible, but that’s a separate question from whether the cash itself is taxed.

What You’ll Owe if You Sell

Your taxable gain is the difference between the sale price and your adjusted basis, meaning your original purchase price plus the cost of permanent improvements. A new roof, a kitchen renovation, an added bathroom all raise your basis and shrink the gain. Routine maintenance and repairs don’t.

How long you owned the property sets the rate. Held one year or less, the profit is taxed at ordinary income rates. Held longer than a year, you qualify for long-term capital gains rates of 0%, 15%, or 20%, depending on your total taxable income and filing status.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses

For 2026, single filers pay 0% on long-term gains up to $49,450 of taxable income, 15% up to $545,500, and 20% above that. Married couples filing jointly hit the 15% bracket at $98,900 and the 20% bracket at $613,700.2Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 The thresholds adjust for inflation each year, but the rate structure stays the same. Selling at a year and a day rather than at eleven months can cut your rate roughly in half.

The Net Investment Income Tax

Higher earners face an additional 3.8% surtax on net investment income, capital gains included. It applies when modified adjusted gross income exceeds $200,000 for single filers or $250,000 for joint filers, and those thresholds aren’t indexed for inflation.3Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax The surtax hits the lesser of your net investment income or the amount by which your income tops the threshold. A joint-filing couple with $300,000 in total income and a $100,000 gain from a sale would owe 3.8% on $50,000, or an extra $1,900 on top of the regular capital gains tax. Refinancing avoids this entirely because loan proceeds aren’t investment income.

When Selling a Home Can Be Tax-Free

If the property is your home rather than an investment, one of the most generous breaks in the code is available. You can exclude up to $250,000 of profit from taxable income, or $500,000 if married filing jointly.4Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence For most owners, the exclusion wipes out the entire gain.

To qualify, you need to have owned and used the home as your primary residence for at least two of the five years before the sale. The two years don’t need to be consecutive; they just need to add up. You also can’t have claimed this exclusion on another home sale within the past two years.4Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence

This changes the calculus. If your gain sits under the exclusion limit, selling costs nothing in capital gains tax. Refinancing also costs nothing in tax, but it saddles you with a bigger loan. For homeowners with modest gains, selling can actually be the cleaner move, because the exclusion makes the profit tax-free and you walk away without a debt balance.

Depreciation Recapture Hits Rental Owners Hard

If you own rental property, you’ve been claiming depreciation deductions each year to offset rental income. The IRS lets you write off the building’s value over time, and it wants that benefit back when you sell. Recaptured depreciation is taxed at a maximum rate of 25%, regardless of your income bracket, and it applies to the total depreciation you claimed or should have claimed during ownership.5Office of the Law Revision Counsel. 26 U.S. Code 1 – Tax Imposed

This is where refinancing offers the sharpest tax edge for investors. No sale, no recapture. You can pull cash out of a rental through a refinance, keep taking annual depreciation deductions, and defer the recapture tax indefinitely. Some investors run this play for decades, refinancing periodically while the property continues appreciating.

On a property with $150,000 in claimed depreciation, selling creates an immediate $37,500 recapture bill at the 25% rate, on top of whatever capital gains tax you owe on the remaining profit. Refinancing avoids that number entirely.

Closing Costs Are Treated Differently

Both transactions come with real closing costs, but the tax treatment isn’t comparable.

Sale costs reduce your taxable gain directly. Agent commissions, title insurance, legal fees, transfer taxes, and other closing costs come off the sale price before you calculate profit.6Internal Revenue Service. Publication 523 – Selling Your Home On a $500,000 sale with $30,000 in total closing costs, your proceeds for tax purposes drop to $470,000.

Refinance costs work differently. Points and origination fees can’t be deducted all at once; they get spread over the full term of the new loan, deducted proportionally with each monthly payment.7Internal Revenue Service. Real Estate (Taxes, Mortgage Interest, Points, Other Property Expenses) 6 If you refinance again or pay off the loan early, any remaining unamortized points can be deducted in that year.8Internal Revenue Service. Topic No. 504, Home Mortgage Points Points attributable to cash-out proceeds used specifically for home improvements may be deductible in the year paid, under the same rules as points on a purchase mortgage.

Interest Deductibility After a Refinance

Your ability to deduct interest on the new loan depends on what the borrowed money was used for. Interest on debt used to buy, build, or substantially improve the home securing the loan is deductible, up to $750,000 in total mortgage debt ($375,000 if married filing separately).9Internal Revenue Service. Publication 936 – Home Mortgage Interest Deduction The cap was set by the Tax Cuts and Jobs Act and made permanent in 2025.

If you do a cash-out refinance and spend the extra money on something other than home improvements, such as paying off credit cards, buying a car, or covering tuition, the interest on that portion isn’t deductible. You’ll need to track how every dollar of the cash-out was spent, because mixing improvement spending with personal spending forces you to split the interest calculation.9Internal Revenue Service. Publication 936 – Home Mortgage Interest Deduction

One reality check most refinancing articles skip: the mortgage interest deduction only helps you if you itemize, and in 2026 the standard deduction is $16,100 for single filers and $32,200 for married couples filing jointly.2Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Only about 8% of taxpayers claim the mortgage interest deduction, because their total itemized deductions don’t exceed the standard amount. If interest deductibility is part of your case for refinancing, run the numbers first.

Ways to Soften the Tax if You Do Sell

A 1031 Exchange for Investment Property

Investment property owners who want to sell without the immediate tax hit have a third option: a like-kind exchange under Section 1031. Instead of paying capital gains tax and depreciation recapture at sale, you roll the proceeds into a replacement property and defer the taxes.10Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

The deadlines are strict and can’t be extended. You have 45 days from the sale of the original property to identify potential replacement properties in writing, and 180 days to close on the replacement. Both properties must be held for business or investment use; a personal residence doesn’t qualify.10Internal Revenue Service. Like-Kind Exchanges Under IRC Section 1031

Some investors try to combine refinancing with a 1031 exchange, pulling cash out first and then exchanging to defer the gain. The IRS watches this closely. If you refinance shortly before an exchange, the agency may treat the sequence as a single transaction and classify the cash-out proceeds as taxable boot. Investors who go this route generally wait at least six to twelve months between the refinance and the exchange, and document a legitimate business reason for the refinance beyond extracting equity.

Installment Sales

If you sell and receive at least one payment after the tax year of the sale, you can spread the capital gains tax over the years you actually collect payments rather than paying it all upfront.11Office of the Law Revision Counsel. 26 U.S. Code 453 – Installment Method The installment method is automatic for qualifying sales; you have to elect out of it if you’d rather pay everything in the sale year.

Each payment gets split into three components: return of basis (tax-free), capital gain (taxed at capital gains rates), and interest income (taxed as ordinary income). This can be useful when a lump-sum gain would push you into a higher bracket or trigger the 3.8% net investment income tax. The tradeoff is that you become the lender and carry the risk that the buyer stops paying.

What the IRS Sees

The paperwork trails diverge sharply. After a sale, the closing agent files Form 1099-S with the IRS reporting the gross proceeds.12Internal Revenue Service. Instructions for Form 1099-S – Proceeds From Real Estate Transactions You report the sale on Form 8949 and carry the result to Schedule D.13Internal Revenue Service. Instructions for Form 8949 Even if the primary residence exclusion wipes out your entire gain, you may still receive a 1099-S. The IRS sees the gross number; it’s your job to show the exclusion applies. Keep receipts for capital improvements, the original closing disclosure, and any casualty loss records, because you can’t recreate them after the fact.6Internal Revenue Service. Publication 523 – Selling Your Home

After a refinance, there’s no 1099-S because no sale occurred. Your new lender issues Form 1098 each year showing mortgage interest paid and any deductible points, and that information flows onto Schedule A if you itemize.14Internal Revenue Service. About Form 1098, Mortgage Interest Statement The IRS doesn’t need to know you refinanced, only that you’re paying interest and claiming a deduction for it.