Lien position is the legal ranking that decides which creditors get paid, and in what order, when a property is sold or goes through foreclosure. The lender or claimant in first position collects in full before anyone below sees a dollar; each junior lienholder waits its turn against whatever is left. That ranking drives interest rates, loan approvals, and whether a creditor walks away paid or empty-handed after a foreclosure sale.
How Priority Is Set: First to Record, First in Line
The default across nearly every jurisdiction is straightforward. Whoever records a lien in the county land records first holds the senior position. A mortgage recorded Monday morning outranks one recorded Tuesday afternoon, even if the Tuesday loan was negotiated first.
Recording does more than stamp a date on the document. It creates what lawyers call constructive notice: every future lender and buyer is legally presumed to know about liens already on file, whether they actually checked or not. A bank considering a second mortgage can pull the records, see the first mortgage sitting there, and price its loan for the added risk of standing behind it. When the records are clean, ranking is easy. The complications show up when a lien slips through, when a junior creditor is entitled to leapfrog, or when the order shifts through agreement or court doctrine.
Liens That Jump the Line
Several categories of liens outrank earlier-recorded ones because legislatures or courts decided the underlying debt is too important to sit behind a private mortgage.
Property Tax Liens
Unpaid real estate taxes almost always take the top spot. A local government tax lien outranks even a first mortgage recorded years earlier. If a homeowner owes $8,000 in back taxes and $250,000 on a mortgage, the tax authority collects its full balance before the lender sees anything. A prolonged tax delinquency can lead to a tax sale that wipes out every other lien on the property.
HOA and Condo Assessment Liens
Roughly 20 or more states give homeowners’ association and condominium association liens a form of super-priority over first mortgages. The super-priority slice is usually capped at a limited number of months of unpaid regular assessments, often six to nine, not the full delinquent balance. When a first mortgage lender forecloses in one of these states, the association collects that capped amount from the sale proceeds first. Anything owed beyond the cap drops back into the normal ranking.
Federal Tax Liens
When someone owes federal taxes and ignores an IRS demand for payment, the government gets an automatic lien on everything that person owns, including real estate. This lien arises by operation of law the moment the IRS assesses the tax and the taxpayer fails to pay after demand.1Office of the Law Revision Counsel. 26 U.S. Code 6321 – Lien for Taxes However, the federal tax lien isn’t valid against certain third parties until the IRS files a Notice of Federal Tax Lien in the public records.2Office of the Law Revision Counsel. 26 USC 6323 – Validity and Priority Against Certain Persons A mortgage recorded before that notice is filed generally keeps its senior position.
Even after the IRS files, certain interests still beat the federal tax lien. Local property tax liens and special assessments hold their place if they would outrank a comparable security interest under state law. Residential mechanic’s liens for repair or improvement on homes with four or fewer units also stay ahead, as long as the contract price doesn’t exceed $5,000.2Office of the Law Revision Counsel. 26 USC 6323 – Validity and Priority Against Certain Persons
For a home equity line of credit, disbursements made within 45 days of the IRS filing can still keep their priority over the federal lien, provided the lender didn’t know about the filing. Once the lender learns of the notice or the 45 days run out, whichever comes first, new advances on that line fall behind the IRS.3Internal Revenue Service. 5.17.2 Federal Tax Liens
Mechanic’s Liens and Relation Back
Mechanic’s liens protect contractors, subcontractors, and suppliers who improve a property but don’t get paid. The unusual feature is the relation-back doctrine. In many states, the lien’s priority dates back to when work first began, not when the paperwork was filed. A roofer who started in January but didn’t file until June can outrank a mortgage recorded in March, because the effective date relates back to January.
That creates real risk for construction lenders. A bank recording a mortgage mid-project might discover it is actually junior to mechanic’s liens tied to the project’s start. Lenders defend against this by requiring lien waivers from contractors at each draw, confirming that workers have been paid for completed phases.
Voluntary and Involuntary Liens
How a lien is created affects where it lands in the ranking.
Voluntary liens are the ones you agree to. A traditional mortgage is the most common. You sign the loan documents, the lender records the mortgage, and it takes its slot based on recording date. A home equity loan or line of credit works the same way and usually sits in second position behind the primary mortgage.
Involuntary liens are imposed without the owner’s consent. A judgment lien arises when a creditor wins a lawsuit and records the money judgment in the county where the debtor owns property. That recorded judgment becomes a lien on the property. Judgment liens typically expire after a set number of years, often five to ten depending on the state, and must be renewed to stay enforceable. They accrue interest at a statutory rate that varies by jurisdiction, commonly in the range of single digits to low double digits per year.
Purchase Money Mortgages Get Special Treatment
A purchase money mortgage is the loan that funded the buyer’s acquisition of the property. Courts recognize that the buyer never truly held free-and-clear equity in the first place: the mortgage money and the property title changed hands at the same moment. Because of this, most states give purchase money mortgages priority over judgment liens already on file against the buyer personally. Without this rule, anyone with a judgment lien could block a debtor from ever buying a home, since the lien would immediately attach and outrank the new mortgage.
When Priority Shifts After the Fact
Subordination Agreements
Lienholders can voluntarily rearrange their ranking through a subordination agreement. This comes up most often during a refinance. Say you have a first mortgage and a home equity line of credit in second position. When you refinance, the old first mortgage is paid off and a new one replaces it. Without an agreement, the home equity line automatically jumps to first position, because the lien ahead of it just disappeared. The home equity lender signs a subordination agreement to stay in second position so the new primary lender can take first.
The agreement needs to be recorded to bind future parties. Without a recorded agreement, the priority shift happens automatically by operation of law, and the new mortgage lender ends up in second position, often without realizing it until a problem surfaces.
Equitable Subrogation
Sometimes a refinancing lender pays off a senior mortgage but fails to obtain a subordination agreement from an intervening lienholder. The new lender expected first position but technically falls behind the intervening lien. Courts in many states apply equitable subrogation to fix this, allowing the refinancing lender to step into the priority slot of the old mortgage it paid off, so the intervening lienholder doesn’t receive a windfall.
Courts generally require the refinancing lender to show it intended to hold first position, that its funds actually paid off the senior debt, and that the intervening lienholder wouldn’t be materially harmed by the reassignment. Some courts refuse to apply the doctrine if the refinancing lender had actual knowledge of the intervening lien and ignored it, though constructive notice from the public records usually isn’t enough on its own. Details vary by state.
What Position Means at Foreclosure
Priority becomes real money at a foreclosure sale. Proceeds follow a strict waterfall: administrative costs of the sale come off the top, then the highest-ranked lienholder, then the next, and so on down the line. If a property sells for $300,000 and the first mortgage balance is $250,000, that lender collects in full. The remaining $50,000 flows to the next lien in line. Any surplus after every lien is satisfied belongs to the former homeowner.
The harder scenario is a short sale price. If the first mortgage balance is $350,000 and the property brings $300,000, the first-position lender takes the entire amount and still comes up short. Every junior lienholder gets nothing from the sale, and their liens are wiped off the title. This loss of collateral is why second-position lenders charge higher rates. They are pricing in the real possibility of walking away empty-handed.
Deficiency Judgments
A foreclosure that wipes out a junior lien eliminates the creditor’s security interest in the property, but it doesn’t necessarily erase the underlying debt. In most states, the junior lienholder can pursue a deficiency judgment against the borrower for the unpaid balance, converting a secured debt into an unsecured personal obligation. Some states restrict or ban deficiency judgments, particularly for purchase money loans on primary residences, so the outcome depends heavily on state law.
When a Junior Lienholder Forecloses
The math changes when the foreclosure is started by a junior lienholder rather than the senior one. A junior foreclosure does not eliminate senior liens. The buyer at that auction takes the property subject to every lien that outranks the foreclosing creditor. If a second-position creditor forecloses and a $200,000 first mortgage is still outstanding, the auction buyer inherits that $200,000 obligation on top of whatever they paid at the sale. Inexperienced auction buyers get blindsided here, thinking they got a deal when they actually bought into someone else’s senior debt. Careful bidders run a title search before raising a paddle.
Checking and Protecting Your Position
Title insurance exists largely because lien priority can be difficult to untangle. Before closing on a purchase or refinance, a title company searches the public records for existing liens, judgments, tax debts, and other encumbrances. If the search misses something, or a lien that should have been cleared turns out to still be active, the title insurance policy covers the loss. Lender’s title insurance is required on virtually every mortgage transaction. Owner’s policies are optional but often worth the cost.
A thorough title search is the best defense against inheriting an unexpected lien. It reveals existing mortgages, judgment liens, tax liens, HOA assessment liens, mechanic’s liens, and federal tax lien notices. Problems caught before closing can be resolved. Problems missed are what the insurance is there to cover.