How Creditors and Lienholders Get Paid in Foreclosure

When a foreclosed home is auctioned, the money is distributed in a fixed order: first the costs of running the sale, then unpaid property taxes and government assessments, then the foreclosing mortgage lender, then any junior lienholders in the order their claims were recorded, and finally the former homeowner if anything is left. That is the short answer to how creditors and lienholders get paid in foreclosure. The longer answer matters because most sales don’t produce enough to reach the bottom of the list, and the borrower’s exposure doesn’t end when the gavel falls.

The Payment Order

Federal law governing certain government-held mortgages codifies what is broadly the standard priority structure across most foreclosures:1Office of the Law Revision Counsel. 12 USC 3762 – Disposition of Sale Proceeds

  • Costs of the foreclosure — attorney’s fees, trustee fees, filing costs, and other expenses of conducting the sale come off the top.
  • Tax liens and assessments — unpaid property taxes and government assessments are paid next, reflecting their super-priority status.
  • The senior mortgage — the lender holding the first-priority mortgage receives payment for the outstanding principal, accrued interest, late fees, and any advances it made for things like property insurance or taxes.
  • Junior lienholders — second mortgages, home equity lines of credit, judgment liens, and other junior claims are paid in their recorded priority order.
  • The former homeowner — any remaining surplus goes to the borrower who lost the property.

Most foreclosure sales don’t generate enough to pay everyone on the list. Properties at auction frequently sell below market value because buyers demand a discount for the risk and inconvenience of buying sight-unseen at a courthouse. Junior lienholders often get nothing, and sometimes even the senior lender takes a loss.

How Lien Priority Decides the Order

The ranking rests on “lien priority,” the system courts use to decide who has the strongest claim to the sale proceeds. The foundational rule is straightforward: the first lien recorded against the property has the highest priority. A first mortgage recorded in 2015 outranks a second mortgage recorded in 2020, which outranks a judgment lien filed in 2023. Each creditor stands in line based on when their claim was officially recorded in the public records.

Some liens jump to the front regardless of when they were recorded. Property tax liens almost universally hold “super-priority” status, meaning unpaid property taxes get paid before any mortgage lender sees a dollar. The reasoning is that government tax claims fund the services that make the property valuable in the first place.

In roughly 20 states, homeowners association liens can also claim a limited form of super-priority, allowing the HOA to recover a certain number of months of unpaid assessments ahead of even the first mortgage. The specifics vary significantly by state, both in how many months of assessments qualify and in how the lien interacts with the mortgage.

Mechanic’s liens for contractors who performed work on the property follow their own rules. These liens generally take priority based on when they were recorded, but in some states a contractor’s lien can “relate back” to the date construction began or a notice of commencement was filed. A contractor who records a lien months after a second mortgage could still outrank that mortgage if the construction project started earlier.

What the Senior Lender Actually Collects

The foreclosing lender isn’t just paid the loan balance. It can recover the outstanding principal, accrued interest, late fees, and any advances it made on the borrower’s behalf — commonly for forced-place insurance or delinquent property taxes it paid to protect its lien position. All of that comes out of the sale proceeds before any junior lienholder is paid a dollar. In many foreclosures, that payment alone exhausts what the auction produced.

What Happens to Junior Lienholders

When a senior lienholder forecloses, the sale wipes out all junior liens on the property. A second mortgage, a judgment lien, a home equity line of credit: if those were recorded after the foreclosing mortgage, they’re removed from the title when the property transfers to the new buyer. The new owner takes the property free of those claims.

Here is what catches many borrowers off guard. While the lien on the property is gone, the underlying debt often survives. A second mortgage lender whose lien was wiped out in foreclosure has lost its security interest in the property, but it can still pursue the borrower personally for the unpaid balance. The lender might sue for a money judgment, send the account to collections, or sell the debt to a buyer who will. The lien is gone; the obligation is not, unless the lender specifically releases it or state law bars collection.

Borrowers who assume the foreclosure resolved all of their mortgage-related debts sometimes discover months later that a junior lienholder is coming after them for a balance they thought was settled.

When the Sale Falls Short: Deficiency Judgments

A “deficiency” is the gap between what a borrower owed on the mortgage and what the foreclosure sale brought in. If a borrower owed $300,000 and the property sold for $250,000, the $50,000 difference is the deficiency. In many states, the foreclosing lender can go to court and obtain a deficiency judgment: a court order allowing the lender to collect that remaining balance from the borrower personally through wage garnishment, bank levies, or other collection methods.

Recourse vs. Nonrecourse Loans

Whether a lender can chase a deficiency depends largely on whether the loan is “recourse” or “nonrecourse.” A recourse loan holds the borrower personally liable for the full debt, so the lender can pursue any shortfall after foreclosure. A nonrecourse loan limits the lender’s recovery to the property itself; once the property is gone, the lender can’t come after the borrower for more money, regardless of the sale price.2Internal Revenue Service. Recourse vs. Nonrecourse Debt Whether a mortgage is recourse or nonrecourse depends on state law and sometimes on the type of loan. Most mortgages in the United States are technically recourse loans.

Anti-Deficiency Protections

At least a dozen states have laws that restrict or outright prohibit deficiency judgments on certain residential mortgages, including Alaska, Arizona, California, Hawaii, Minnesota, Montana, North Dakota, Oklahoma, Oregon, and Washington. These protections vary in scope. Some states block deficiency judgments only for purchase-money mortgages (loans used to buy the home), while others apply more broadly. Some restrict deficiency judgments only after non-judicial foreclosures, giving lenders the option to pursue a judicial foreclosure if they want to preserve the right to a deficiency. The details matter enormously, and borrowers facing foreclosure in any state should verify whether their specific loan and foreclosure type qualify for protection.

When the Sale Brings More Than Owed: Surplus Funds

Occasionally a foreclosure auction generates more money than what’s needed to satisfy all liens and costs. When that happens, the extra money doesn’t belong to the lender or the auction buyer. It belongs first to any junior lienholders who weren’t fully paid, and then to the former homeowner.

The catch is that surplus funds don’t arrive automatically. In most jurisdictions, the former homeowner must actively file a claim, provide proof of prior ownership, and sometimes attend a court hearing to collect the money. Deadlines for filing these claims vary by state, and missing the window can mean the funds are treated as unclaimed property, making recovery far more difficult. If you’ve lost a home to foreclosure and believe the sale generated more than you owed, check the court records or contact the trustee who conducted the sale promptly. Waiting is the most common and most expensive mistake people make with surplus funds.

Redemption Rights After the Sale

In roughly half of states, borrowers have a “statutory right of redemption” that allows them to reclaim the property even after the foreclosure sale has occurred. Redemption periods range from 30 days to over a year depending on the state. To exercise this right, the former homeowner must pay the full foreclosure sale price plus any applicable interest and fees, and in some states, the entire original debt.

This is separate from the “equitable right of redemption,” which exists before the foreclosure sale and simply means you can stop the process by paying what you owe before the auction happens. The equitable right ends when the sale occurs; the statutory right, where it exists, begins after the sale. For creditors and auction buyers, statutory redemption creates uncertainty, because the sale isn’t truly final (and funds aren’t fully distributed in some states) until the redemption period expires. That uncertainty is one reason properties in states with long redemption periods sometimes sell for less at auction, which in turn affects how far the proceeds will stretch down the priority list.