Yes, you can sell a house before you pay it off, and most home sales work exactly this way. At closing, the buyer’s purchase money is used to pay off your remaining mortgage balance directly, any other liens on the property are cleared, closing costs come out of the proceeds, and whatever is left is yours. You never have to pay the loan off in advance out of your own pocket to put the house on the market.
The mechanics are handled by a neutral closing or escrow agent who moves the money in a specific order so that your lender is satisfied, the buyer receives a clean title, and your equity reaches you. Understanding each step helps you estimate what you’ll walk away with and spot the situations where selling gets more complicated.
Why Your Mortgage Has to Be Paid Off at Closing
Nearly every mortgage contains a due-on-sale clause, a provision that lets your lender demand the full remaining balance when you sell or transfer the property. Federal law specifically authorizes lenders to enforce these clauses.1Office of the Law Revision Counsel. 12 US Code 1701j-3 – Preemption of Due-on-Sale Prohibitions That’s the main reason your loan has to be paid off during the sale rather than passed to the buyer.
Your mortgage also creates a lien, a legal claim recorded in local land records that gives your lender a security interest in the property. The buyer’s title company will check for liens and will not let the sale close until the mortgage is set to be paid and the lien released. If somehow a property were transferred without clearing the lien, the lender could still foreclose regardless of who was living there.
If you’ve taken out a home equity line of credit or a second mortgage, those create separate liens that also have to be paid off at closing. Lien priority generally follows a “first recorded, first paid” rule, so your original mortgage gets satisfied before any junior liens receive their share.
A handful of transfers are exempt from the due-on-sale clause under federal law, including transfers to a spouse or child, into a living trust where you remain a beneficiary, as part of a divorce decree, or after a borrower’s death.1Office of the Law Revision Counsel. 12 US Code 1701j-3 – Preemption of Due-on-Sale Prohibitions These are not sales in the usual sense, so they don’t apply to a normal listing.
Finding Out Exactly What You Owe
Before listing, contact your loan servicer and request a payoff statement. This document shows the exact amount needed to fully satisfy your loan as of a specific date. It differs from your monthly statement because it includes per diem interest, the daily interest charge that continues to accrue between your last payment and the expected closing date. If the closing date slides even a few days, request an updated statement, because the payoff figure moves with it.
Federal law requires your servicer to provide the payoff statement within seven business days of receiving your written request.2eCFR. 12 CFR 1026.36 – Prohibited Acts or Practices and Certain Requirements for Credit Secured by a Dwelling Loans in bankruptcy, foreclosure, or reverse mortgages get a bit more time but must still respond within a reasonable period. Some servicers charge a small administrative fee for the statement.
What Comes Out of Your Sale Price
Your mortgage payoff is only one of several things deducted from the buyer’s purchase funds. Knowing the full list helps you estimate your net proceeds and spot a shortfall before you’ve committed to a price.
Real estate agent commissions are usually the biggest line item. Sellers still typically cover the total commission, which averages roughly 5% to 5.5% of the sale price, and it comes directly out of your gross proceeds.
Other seller-side closing costs generally include:
- Title insurance. In many states the seller pays for the buyer’s owner’s policy, with a median cost around 0.67% of the purchase price.
- Transfer taxes charged by the state, county, or city when property changes hands.
- Prorated property taxes through the closing date, settled at the closing table.
- Recording fees to file the deed transfer and mortgage satisfaction with the county.
- Attorney or settlement fees, depending on your state’s practice.
Together, these costs (not counting the mortgage payoff and commissions) usually run 1% to 3% of the sale price. Add commissions and the total often reaches 6% to 8%.
Prepayment penalties are mostly a non-issue on modern loans. Most mortgages originated after January 2014 are qualified mortgages and cannot carry a prepayment penalty at all.3Federal Register. Ability-to-Repay and Qualified Mortgage Standards Under the Truth in Lending Act – Regulation Z If you have an older or non-conforming loan with a penalty, federal law caps it at 2% of the amount prepaid during the first two years and 1% in the third year, with no penalty after year three. Your payoff statement will show whether any penalty applies.
How the Money Moves at Closing
A closing agent or escrow officer handles distribution of the buyer’s funds. The agent uses your payoff statement to wire the exact payoff amount directly to your lender before any remaining equity is released to you. Any junior lienholders, like a HELOC lender, get paid in the same sequence. Closing costs are deducted. Only then are the leftover proceeds sent to you.
Once paid, your lender executes a satisfaction of mortgage or a deed of reconveyance, depending on your state. That document is filed with the county recorder to publicly confirm the lien is gone, and the buyer takes title free of your former mortgage.4FDIC. Obtaining a Lien Release You’ll also receive a Closing Disclosure, a standardized form accounting for every dollar in the transaction.
If your mortgage had an escrow account for taxes and insurance, there will probably be a balance left in it. Your servicer must return that balance to you within 20 business days of receiving the full payoff.5Consumer Financial Protection Bureau. 12 CFR 1024.34 – Timely Escrow Payments and Treatment of Escrow Account Balances The refund usually arrives as a separate check in the mail, not through the closing agent, so make sure the servicer has your current address.
What If You Owe More Than the House Will Sell For
If your mortgage balance exceeds what a buyer is willing to pay, the sale proceeds won’t be enough to cover the payoff. You have two realistic options.
Bring Cash to Closing
If the gap is small, you can wire or write a check for the difference at closing. The transaction then proceeds like any other sale. This avoids the credit damage and tax issues that come with a short sale, but it only works if you have the savings available.
Ask Your Lender for a Short Sale
In a short sale, you ask your lender to accept less than the full balance owed and release the lien anyway. The lender has to give written approval before the sale can close, and that approval isn’t automatic. You typically submit a financial disclosure package with documentation of your income, assets, debts, and a hardship letter (job loss, medical bills, divorce, and the like). Review can take weeks or months. Without written consent, the lien stays and the sale cannot legally close.
Approval doesn’t always end the debt. Some lenders reserve the right to pursue a deficiency judgment for the unpaid balance after a short sale. Whether they can depends on state law and the terms of the approval letter. Some states bar deficiency judgments after a short sale; others allow them unless the lender explicitly waives the deficiency in writing. Read the approval terms carefully before signing.
Both a short sale and a foreclosure stay on your credit reports for seven years. A short sale, especially one completed without missed payments, generally does less damage than a foreclosure, which also drags along the missed payments that led up to it.
Taxes on the Sale
Two tax issues come up when you sell a home with a mortgage: capital gains on any profit, and tax on any debt forgiven in a short sale.
The Capital Gains Exclusion
If you sell for more than you originally paid (adjusted for improvements and selling costs), the profit is a capital gain. Federal law lets you exclude up to $250,000 of that gain from taxable income, or up to $500,000 if you file jointly with a spouse, as long as you owned and lived in the home as your primary residence for at least two of the five years before the sale.6Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence You can only use this exclusion once every two years, and any gain above the threshold is taxed as a capital gain.7Internal Revenue Service. Topic No. 701, Sale of Your Home
The size of your mortgage doesn’t change the calculation. The gain is based on sale price versus your original purchase price (plus qualifying adjustments), not on how much you still owe.
Forgiven Debt in a Short Sale
If a lender forgives part of your mortgage balance in a short sale, the IRS generally treats the forgiven amount as taxable income. The lender files a Form 1099-C for canceled debt of $600 or more, and you report it on your return.8Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments
From 2007 through 2025, a federal exclusion let homeowners avoid tax on forgiven mortgage debt on a primary residence. That exclusion expired at the end of 2025 and, as of early 2026, has not been renewed, though legislation to extend it has been introduced.8Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments Without it, the main remaining way to avoid tax on forgiven short sale debt is the insolvency exception: if your total debts exceed your total assets at the time of forgiveness, you can exclude the canceled amount up to the degree of your insolvency. A tax professional can help you figure out whether you qualify.
When a Buyer Can Take Over Your Loan Instead
In limited cases, a buyer can assume your existing mortgage rather than requiring a full payoff. All FHA-insured mortgages are assumable by a qualified buyer at the current interest rate and terms.9U.S. Department of Housing and Urban Development. Are FHA-Insured Mortgages Assumable? VA loans are also generally assumable. The buyer has to meet the lender’s credit and income standards, and the lender has to formally approve the assumption and release you from personal liability.
Conventional mortgages almost always contain a due-on-sale clause that blocks assumption.1Office of the Law Revision Counsel. 12 US Code 1701j-3 – Preemption of Due-on-Sale Prohibitions If your loan is conventional, the balance has to be paid in full at closing through the ordinary process. Assumptions get more attention when interest rates have risen, since the buyer inherits your lower rate, but they’re still a small share of sales because most outstanding loans are conventional.