What Liens Take Priority Over a First Mortgage?

Several kinds of liens can take priority over a first mortgage, even when the mortgage was recorded first. Property tax and special assessment liens jump to the front by statute. In many states, a capped portion of unpaid homeowners’ association dues does the same. Mechanic’s liens can outrank a mortgage through a doctrine that dates their priority back to when work started, not when the lien was filed. And a federal tax lien can outrank a mortgage if the IRS filed its notice before the mortgage was recorded.

The Default Rule: First in Time, First in Right

Ordinary lien priority runs by recording date. The first lien recorded in public land records gets paid first from foreclosure proceeds. A mortgage recorded in 2018 collects in full before a second mortgage recorded in 2020 sees a dollar. Everything after that falls further back in line.

Priority only matters when a sale doesn’t cover every claim against the property. If the money runs out, junior lienholders take whatever is left, which is sometimes nothing. The exceptions below exist because legislatures decided certain debts are important enough to override that ordering.

Property Tax and Special Assessment Liens

A delinquent property tax lien is the clearest example of a claim that outranks a first mortgage. When a homeowner falls behind on local or state property taxes, the taxing authority’s lien moves ahead of every other claim against the property, no matter when any mortgage was recorded. Governments depend on property tax revenue for schools, roads, and emergency services, and no private lender’s claim is allowed to block that funding.

The debt compounds fast. Interest on unpaid property taxes commonly runs 5% to 9% annually depending on the jurisdiction, and many localities add penalties and fees. Some jurisdictions sell delinquent tax debt to private investors, who then hold the lien and can eventually force a sale if it goes unpaid.

Special assessment liens work the same way. When a local government installs sidewalks, sewer lines, or other infrastructure that benefits your property, it can levy an assessment to cover the cost. Most jurisdictions give that assessment priority over a first mortgage on the theory that the improvement increased the property’s value.

Homeowners’ Association and Condo Association Liens

In a significant number of states, a portion of an unpaid HOA or condo assessment gets super-priority status and jumps ahead of the first mortgage. Associations need dues to maintain common areas, pay insurance, and keep the community running. If the mortgage always came first, associations could be starved of funds while a foreclosure dragged on.

The priority is capped. States that follow model legislation typically limit it to six to nine months of unpaid assessments plus related collection costs. Any amount beyond that cap falls back into normal priority order behind the first mortgage. That’s enough to keep the association solvent without dramatically undercutting the lender’s overall position.

The practical impact still catches lenders off guard. An HOA can foreclose on its super-priority lien, and in some jurisdictions that foreclosure can extinguish the first mortgage entirely. That’s why many loan agreements require borrowers to stay current on association dues, and why lenders monitor HOA delinquencies closely.

Mechanic’s Liens

Contractors, subcontractors, and material suppliers who don’t get paid for work on a property can file a mechanic’s lien. What makes these liens unusual is the “relation-back” doctrine. Priority doesn’t date from when the lien was filed. It dates back to when work first began on the property. If a contractor started a kitchen renovation in March and the homeowner recorded a new mortgage in April, a mechanic’s lien filed months later can still outrank that mortgage because the work predates the recording.

The exact relation-back date varies. Some states use the date of first visible work. Others use the date materials were first delivered. Others use the date the contract was signed. The window a contractor has to actually file the lien after completing work also varies, running anywhere from roughly 30 days to eight months.

For homeowners and lenders, the hazard is that mechanic’s lien rights can exist invisibly. A subcontractor hired by your general contractor, someone you’ve never met, can hold a priority claim against your property that doesn’t appear in any public record until the lien is filed. A title search run during that gap will miss it.

Federal Tax Liens

When a taxpayer owes federal taxes and ignores the IRS’s demand for payment, a lien automatically attaches to everything they own, real estate included.1Office of the Law Revision Counsel. 26 U.S. Code 6321 – Lien for Taxes Unlike a property tax lien, though, a federal tax lien does not automatically outrank a first mortgage.

The IRS lien becomes effective against a mortgage holder only after the IRS files a Notice of Federal Tax Lien in the appropriate local filing office where the property sits.2Office of the Law Revision Counsel. 26 U.S. Code 6323 – Validity and Priority Against Certain Persons Until that notice is filed, a lender with an already-recorded mortgage has priority. After it’s filed, standard first-in-time rules apply. A mortgage recorded before the notice keeps its senior position. A mortgage recorded after loses.

Another feature sets the federal tax lien apart: its reach. A mortgage attaches only to the specific property listed in the loan documents. The IRS lien attaches to all property and rights to property belonging to the taxpayer, including property acquired after the lien arises.1Office of the Law Revision Counsel. 26 U.S. Code 6321 – Lien for Taxes Selling or foreclosing on one property doesn’t wipe out the underlying tax debt; the lien follows the taxpayer to other assets.

If Only One Spouse Owes the Tax

Couples who own property as tenants by the entirety sometimes assume the IRS can’t touch the home when only one spouse owes. That assumption is wrong. In United States v. Craft (2002), the U.S. Supreme Court held that each spouse holds individual property rights in entireties property and that a federal tax lien can attach to those rights even when only one spouse is liable. If your spouse has an unpaid federal tax liability, your jointly held home is not automatically shielded.

Subordination Agreements Can Rearrange the Order

Priority isn’t always fixed by recording dates or statute. Lienholders can voluntarily swap positions through a subordination agreement, in which a senior lienholder agrees to let a junior lienholder move ahead. This happens more often than most homeowners realize.

The typical case is refinancing. Say you have a first mortgage and a home equity line of credit. When you refinance the first mortgage, the old one is paid off and a new one is recorded. Under strict first-in-time rules, the home equity line would now be senior because it was recorded earlier than the new mortgage. To prevent that, the refinancing lender requires the home equity lender to sign a subordination agreement, putting the new first mortgage back on top.

Subordination agreements must be in writing and recorded to be effective. If you have a second mortgage or home equity line and you’re refinancing, expect extra time while lenders negotiate. Some junior lienholders refuse to subordinate, which can kill a refinance.

How to Find These Liens Before They Surprise You

A professional title search is the standard way to uncover liens on a property. It examines public records at the county recorder’s office, including deeds, mortgages, tax records, and court judgments, to piece together who has a claim and in what order.

Title searches catch most recorded liens, but they have blind spots. Mechanic’s liens that haven’t been filed yet, municipal utility charges, and some HOA assessment liens may not appear in the record on the day of the search. Claims like these can surface after closing.

Title insurance exists to cover that risk. A lender’s policy protects the mortgage lender’s priority position if an undiscovered lien appears. An owner’s policy protects the buyer’s equity. Both are typically issued at closing. If a covered lien turns up later, the insurer pays to resolve it or compensates the insured for the loss. Given that some priority liens are invisible until they’re filed, title insurance is the only realistic backstop against claims a diligent search couldn’t have found.