Yes, you can sell your house before paying off the mortgage, and it is how most home sales work. At closing, the buyer’s funds are used to pay off your remaining loan balance directly, any other liens are cleared, closing costs come out of the proceeds, and you keep whatever equity is left. The mechanics exist to make sure your lender gets paid, the buyer receives clear title, and your share reaches you.
Why the Mortgage Has to Be Paid Off When You Sell
Almost every mortgage contains a due-on-sale clause, which lets the lender demand the full remaining balance when you sell or transfer the property. Federal law specifically authorizes lenders to enforce this.1Office of the Law Revision Counsel. 12 US Code 1701j-3 – Preemption of Due-on-Sale Prohibitions That is the first reason the loan is settled at closing rather than passed to the buyer.
The second reason is the lien. Your mortgage is a recorded claim against the property in local land records, and a buyer cannot receive clean title while that claim exists. The buyer’s title company will confirm every lien is satisfied before closing. If a property somehow transferred with the lien still in place, the lender could foreclose regardless of who owned the home.
Any other debts secured by the house — a home equity line of credit, a second mortgage — are separate liens that also have to be paid at closing. Priority generally follows a first-recorded, first-paid rule, so the original mortgage is satisfied ahead of junior liens.
A few 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 ordinary sense, so the payoff rule doesn’t reach them.
Getting Your Payoff Amount
Before you list, ask your loan servicer for a payoff statement. It shows the exact amount needed to fully satisfy the loan as of a specific date, including per diem interest that keeps accruing until closing. Your monthly statement does not give you this figure.
Federal law requires the 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 or foreclosure, and reverse mortgages, allow the servicer additional time but still a reasonable response. Some servicers charge a fee to prepare the statement. If your closing date shifts, request an updated statement, because the daily interest changes the total.
How the Payoff Happens at Closing
A closing agent or escrow officer, acting as a neutral third party, distributes the funds. Working from your payoff statement, the agent wires the exact payoff to your lender before any remaining equity is released to you. That sequence is what guarantees the lender is made whole first.
Once the lender receives the payoff, it is required to execute a satisfaction of mortgage — called a deed of reconveyance in some states — and that document is recorded with the county to publicly confirm the lien is gone.3FDIC. Obtaining a Lien Release Most states set a deadline of roughly 30 to 90 days for the lender to record the release, with penalties for missing it. If you have a HELOC or second mortgage, the closing agent sends separate payoffs to those lenders and each records its own release.
You’ll receive a Closing Disclosure at the end. It’s a standardized form that accounts for every dollar in the transaction, showing what the buyer paid, what each lender received, and what you took home.
Your Escrow Refund
If your mortgage included an escrow account for taxes and insurance, there will likely be a balance left when the loan is paid off. Federal law requires the servicer to return that balance to you within 20 business days of receiving the full payoff.4Consumer Financial Protection Bureau. 12 CFR 1024.34 – Timely Escrow Payments and Treatment of Escrow Account Balances The refund arrives as a separate check mailed to you, not through the closing agent, so make sure the servicer has your updated address.
What Else Comes Out of Your Sale Proceeds
The mortgage payoff isn’t the only expense taken from the sale price. Real estate agent commissions are typically the largest, averaging about 5% to 5.5% of the sale price, and are still generally paid from the seller’s side despite recent changes to how buyer-agent compensation is negotiated.
Other seller-side closing costs generally include:
- Owner’s title insurance for the buyer, which sellers pay in many states, running a median of roughly 0.67% of the purchase price
- Transfer taxes charged by the state or locality when property changes hands
- Prorated property taxes through the closing date
- Recording fees for filing the deed and the mortgage satisfaction
- Attorney or settlement fees, depending on your state’s practice
Excluding the mortgage payoff and agent commissions, these usually add up to 1% to 3% of the sale price. With commissions included, total seller costs commonly reach 6% to 8% or more.
Prepayment penalties rarely apply anymore. Most mortgages originated after January 2014 are qualified mortgages and cannot include one at all.5Federal Register. Ability-to-Repay and Qualified Mortgage Standards Under the Truth in Lending Act – Regulation Z On older or non-conforming loans that do carry one, federal law caps it at 2% of the amount prepaid during the first two years and 1% during the third year, with none allowed after year three. Your payoff statement will show whether any penalty applies.
If You Owe More Than the Home Will Sell For
When your mortgage balance is higher than what a buyer will pay, the sale proceeds alone won’t cover the payoff. You have two paths.
Bring Cash to Closing
If the shortfall is manageable, you can wire the difference to the closing agent so the payoff is made in full. The transaction then proceeds like any other sale, without the credit and tax consequences of a short sale.
Ask the Lender for a Short Sale
If you can’t cover the gap, you can ask your lender to accept less than the full balance in exchange for releasing the lien. This is a short sale, and it requires written approval from the lender. Approval isn’t automatic; the lender weighs whether accepting less is better than pursuing foreclosure.
You’ll typically submit a financial disclosure package documenting your income, assets, and debts, along with a hardship letter explaining why you can’t cover the difference — job loss, medical expenses, divorce, and the like. Review can take weeks or months. Without the lender’s written consent, the lien stays and the sale can’t close.
For loans backed by Fannie Mae, all parties sign a short sale affidavit confirming the transaction is at arm’s length, meaning the buyer and seller are unrelated and have no undisclosed side agreements.6Fannie Mae. Short Sale Affidavit (Form 191) Other investors often impose similar requirements.
Even after approving a short sale, some lenders reserve the right to pursue a deficiency judgment for the unpaid balance. Whether they can depends on state law and the terms of the approval letter. Some states prohibit deficiency judgments after short sales; others allow them unless the lender specifically waives the deficiency in writing. Read the approval terms closely to confirm whether you remain personally liable.
Both a short sale and a foreclosure stay on your credit reports for seven years, though a short sale — particularly one completed without missed payments — generally causes less damage than a foreclosure, which brings both the event itself and the missed payments leading up to it.
Taxes on the Sale
Two tax issues can come up: capital gains on your profit, and, if you did a short sale, tax on forgiven debt.
The Home Sale Gain 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, 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.7Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence You can only use the exclusion once every two years, and any gain above the threshold is taxable.8Internal Revenue Service. Topic No. 701, Sale of Your Home
The size of your mortgage doesn’t affect this calculation. The gain is measured from your purchase price plus qualifying adjustments, not from your loan balance.
Forgiven Debt After a Short Sale
If your lender forgives part of your balance through 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 include it on your return.9Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments
A federal exclusion for forgiven mortgage debt on a primary residence ran from 2007 through 2025 and, as of early 2026, has not been renewed, though extension legislation has been introduced.9Internal Revenue Service. Publication 4681 – Canceled Debts, Foreclosures, Repossessions, and Abandonments Without that exclusion, the main remaining option 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 walk you through whether you qualify.
When a Buyer Can Take Over Your Mortgage Instead
In limited cases, a buyer can assume your existing loan rather than requiring you to pay it off. All FHA-insured mortgages are assumable, so a qualified buyer can step into the loan at its current rate and terms.10U.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 must formally approve the assumption and release you from personal liability.
Conventional loans almost always include a due-on-sale clause that blocks assumption, so the balance is paid off at closing through the standard process.1Office of the Law Revision Counsel. 12 US Code 1701j-3 – Preemption of Due-on-Sale Prohibitions Assumptions are most attractive when rates are rising and the existing loan carries a lower rate, but they remain a small share of sales because most outstanding mortgages are conventional.