Mortgage lien priority is the order in which lenders and other creditors get paid from a property’s value, and the default rule is simple: whoever recorded first at the county recorder’s office gets paid first. That ranking decides who collects in full at a foreclosure sale, who collects a partial amount, and who walks away with nothing. Several situations override the default, including unpaid property taxes, certain homeowners association dues, federally filed tax liens, purchase money mortgages, and mechanic’s liens that relate back to when construction began.
How Recording Sets the Order
Priority turns on the date and time the recorder’s office stamps your lender’s document, not the date you signed the loan paperwork. If you closed on a home equity loan Tuesday but the lender didn’t record until Friday, anything filed in between can slot ahead of it. That is why lenders push to record quickly after closing, and why a title search immediately before recording is standard practice.
Once a mortgage or deed of trust is on record, it puts the world on notice. Any future creditor can search the county records, see the existing claim, and decide whether to lend knowing they will stand behind it. The public record is what locks in position.
First, Second, and Subordinate Mortgages
A first mortgage is the loan that sits at the top of the hierarchy. In most homes, it is the purchase money loan used to buy the property. Because nothing was recorded ahead of it, its holder collects first from any sale or foreclosure proceeds, and that security advantage is the main reason first mortgage rates are lower than rates on subordinate loans. The loan is typically documented with a promissory note and a mortgage or deed of trust that gives the lender the right to foreclose on default.1Consumer Financial Protection Bureau. What Documents Should I Receive Before Closing on a Mortgage Loan
“First” describes position, not size. A smaller refinance loan recorded before a larger home equity loan is still the first mortgage.
Any mortgage recorded after the first is subordinate. The common examples are second mortgages and home equity lines of credit, both of which let homeowners borrow against accumulated equity. These lenders know they stand behind the first mortgage, so they price the risk accordingly. Rates on second mortgages and HELOCs typically run one to three percentage points higher than first mortgage rates.
The subordinate position creates real exposure. If you owe $350,000 on a first mortgage and $75,000 on a HELOC but the home’s market value has fallen to $360,000, the HELOC lender’s collateral cushion is nearly gone. That is why junior lenders scrutinize appraisals and cap borrowing at a combined loan-to-value ratio.
Purchase Money Mortgages Get a Head Start
Purchase money mortgages break the “first to record” rule in one important way. When a lender funds the actual purchase of a property, the mortgage given as part of that transaction generally takes priority over judgment liens that already existed against the buyer. The reasoning is that the buyer never held the property free and clear. The lender’s interest attached the instant the buyer took title, leaving no gap for an older judgment to latch onto.
This matters if you have an unpaid judgment against you and then buy a home with a mortgage. The new lender’s claim will typically outrank the judgment creditor’s claim on that property, even though the judgment was docketed years earlier. The protection depends on the loan funds actually being used to acquire the property and the mortgage being executed as part of the same transaction as the deed.
Liens That Jump the Line
Some liens outrank every mortgage on the property regardless of when they were recorded.
Property Taxes and Special Assessments
Unpaid property taxes create a lien that takes priority over all existing mortgages, including the first. The IRS acknowledges this ranking: if real estate taxes have priority over mortgages under local law, they also have priority over federal tax liens.2Internal Revenue Service. Federal Tax Liens – Section: Real Property Tax and Special Assessment Liens The same principle applies to special assessments for public improvements like sewer or road projects.
If you fall behind on property taxes, the taxing authority can sell the lien or foreclose, and your mortgage lender’s claim takes a back seat. That is why mortgage servicers often collect property taxes through escrow and pay the bill directly.
HOA Super-Priority Assessments
Roughly two dozen states give homeowners association assessment liens super-priority status. In those states, a portion of unpaid HOA dues, usually the last six to nine months of assessments, ranks ahead of even a first mortgage. When an HOA forecloses over unpaid dues in one of these states, mortgage lenders often pay off the super-priority amount themselves rather than risk losing position. The lender then adds that payment to your loan balance, and if you don’t repay it, the lender may foreclose on its own.
Federal Tax Liens
When the IRS records a Notice of Federal Tax Lien, priority depends on timing. A mortgage recorded before the IRS files its notice keeps its senior position. A mortgage recorded afterward falls behind. The federal tax lien is not valid against a holder of a security interest until the IRS has filed the required notice.3Office of the Law Revision Counsel. 26 USC 6323 – Validity and Priority Against Certain Persons
HELOCs get special treatment. Advances your lender makes within 45 days after the IRS files its notice can still hold priority over the tax lien, but only if the credit line agreement was signed before the IRS filing and the lender had no actual knowledge of the notice when it disbursed the funds. Once the lender learns about the tax lien or 45 days pass, whichever comes first, any new advances fall behind the IRS.3Office of the Law Revision Counsel. 26 USC 6323 – Validity and Priority Against Certain Persons In practice, lenders freeze HELOC draws quickly once they discover a federal tax lien on the property.
Mechanic’s Liens That Relate Back
A contractor or subcontractor who isn’t paid for work on your property can file a mechanic’s lien. What makes these unusual is that many states let the lien “relate back” to the date physical work began, not the date the lien was recorded. If a contractor broke ground in March but didn’t file until August, the lien’s priority can date back to March, jumping ahead of a mortgage recorded in between.
States handle this differently. Some give mechanic’s liens absolute priority based on when work started. Others protect mortgages absolutely. A middle group lets a mortgage keep priority only if it was recorded before work began and the funds were actually disbursed. On construction projects, title companies and lenders pay close attention to visible signs of work at the property before closing, because an unrecorded mechanic’s lien waiting to relate back can undermine the new mortgage’s position.
Subordination Agreements Keep Refinances Working
A subordination agreement is a contract in which a lienholder voluntarily accepts a lower position. The classic case is a refinance. You want to replace your first mortgage, but you have an existing HELOC. Without intervention, the new refinance loan would record after the HELOC and drop into second position, which is the opposite of what the refinance lender needs. The HELOC lender has to sign a subordination agreement, formally agreeing to stay behind the new first mortgage. Fannie Mae specifically requires that a subordination agreement be executed and recorded for any refinance where subordinate financing stays in place, unless state law automatically preserves the junior lien’s subordinate position.4Fannie Mae. Subordinate Financing
HELOC lenders don’t always agree. They evaluate whether the new first mortgage increases their risk, especially if you’re refinancing into a larger loan or a higher combined loan-to-value ratio. If the HELOC lender refuses, the refinance stalls. Lenders typically charge a processing fee for the request, and the process can add several weeks to your refinance. Start the subordination request early, before your rate lock is at risk.
What Happens at Foreclosure
When a property sells at a foreclosure auction, the proceeds are distributed in strict priority order. Administrative costs come off the top: legal fees, filing charges, and auction expenses. Then the foreclosing lienholder collects what it is owed. Any remainder flows down to the next lienholder, and so on. The former homeowner receives a surplus only after every recorded lien has been paid in full.
Junior liens get extinguished when a senior lienholder forecloses. If you had a first and a second mortgage and the first mortgage holder forecloses, the second mortgage’s lien on the property is wiped out. The buyer at the sale takes the property free of that junior claim. This is the fundamental risk of subordinate financing: the collateral can vanish through no action of the junior lender.
When the Sale Doesn’t Cover Everyone
Imagine a home sells at auction for $310,000. After $10,000 in foreclosure costs, the first mortgage holder collects its $280,000 balance. That leaves $20,000, not enough to cover a $60,000 second mortgage. The second mortgage lender recovers $20,000 and loses the remaining $40,000 as a secured claim.
The lien is gone, but the debt isn’t necessarily. A junior lienholder whose lien was wiped out, sometimes called a “sold-out junior,” can still sue you personally on the promissory note for the unpaid balance. Whether they will depends on the economics. Chasing a borrower who just lost a home to foreclosure isn’t always worth the legal cost.
Several states restrict or prohibit deficiency judgments after certain foreclosures, particularly nonjudicial foreclosures on owner-occupied homes. Those protections typically apply to the foreclosing lender, not to junior lienholders who were sold out. A wiped-out second mortgage lender may still have the right to pursue a personal judgment against you, even in states with otherwise strong anti-deficiency laws. Confirm how your state’s protections apply to subordinate debt before assuming the second loan is fully behind you.
How to Protect Your Priority Position
A few habits prevent the worst surprises. Run a title search before any refinance to confirm what is recorded against your property. Old judgment liens you forgot about, or paid off but never had released, can hold up closings. When refinancing, contact your junior lienholder about subordination before you lock a rate, not after. If you receive notice that the IRS has filed a federal tax lien, tell your HELOC lender immediately, because any draws made after 45 days or after the lender learns of the lien lose their priority protection.3Office of the Law Revision Counsel. 26 USC 6323 – Validity and Priority Against Certain Persons
Property taxes deserve special vigilance. Because they outrank every other lien on the property, falling behind threatens both your ownership and your mortgage lender’s security. If your loan doesn’t include a tax escrow, set aside funds monthly so the bill doesn’t catch you off guard. A missed property tax payment is the one lien priority problem that can cascade into consequences for every creditor on the title.