In Pennsylvania, the liens that survive foreclosure are the ones recorded before the foreclosing lien, plus real estate tax liens and municipal utility claims, which stay attached to the property almost no matter what. Liens recorded after the foreclosing lien are wiped out at the sale and no longer burden the new owner’s title. That is the short answer to what liens survive foreclosure in Pennsylvania, and the rest comes down to figuring out which category a given lien falls into and which type of sale is taking place.
First in Time, First in Right
Pennsylvania ranks liens by when they were recorded in the county land records. A lien recorded earlier is senior; a lien recorded later is junior. The priority statute spells out the recording triggers for each category: purchase money mortgages rank from the date of delivery if recorded within ten days, other mortgages from the date left for record, and judgments from the time they are rendered or entered.1Pennsylvania General Assembly. Pennsylvania Code 42-8141 – Time From Which Liens Have Priority
That order controls what happens at the sale. When a senior lienholder forecloses, every junior lien on the property is eliminated and the buyer takes clean of them. When a junior lienholder forecloses, every senior lien remains, and the buyer inherits responsibility for those balances. A second-mortgage holder who forecloses cannot touch the first mortgage; whoever buys at that sale steps into the former owner’s shoes for the first-mortgage debt.
Property Taxes and Municipal Utility Claims Always Survive
Unpaid real estate taxes sit above the ordinary priority ladder. Government claims for property taxes are treated as senior to virtually all other liens regardless of when they were recorded, so if you buy at a mortgage foreclosure sale, outstanding tax liens come with the property.
Municipal utility charges behave the same way. Under the Municipal Claim and Tax Lien Law, liens for unpaid water, sewer, and trash collection must be “fully paid and satisfied out of the proceeds of any judicial sale” before any mortgage, judgment, or other claim is paid, with the only exceptions being the sale costs themselves and tax liens.2Pennsylvania General Assembly. Pennsylvania Code 53 PS 7106 – Municipal Claims First Lien Before bidding on any property, pull the municipal account balances. Those charges do not vanish because a mortgage was foreclosed.
Upset Tax Sales vs. Judicial Tax Sales
Pennsylvania’s tax sale system runs in two stages, and the lien consequences are opposite. Knowing which one you are at is the difference between a clean deed and a trap.
Upset Sales Keep the Liens
When a county tax claim bureau sells for delinquent taxes, it first holds an upset sale. The property is sold subject to all existing liens. Mortgages, judgments, and other encumbrances stay attached. The upset price covers the delinquent taxes, and the buyer takes the property with every other lien intact. There is no post-sale redemption period for the former owner.3Pennsylvania General Assembly. Real Estate Tax Sale Law, Act of Jul 7 1947, No 542 – Section 607
Judicial Sales Wipe the Slate
If no one meets the upset price, the bureau can petition the court for a judicial sale. A judicial tax sale conveys the property “freed and cleared of all tax and municipal claims, mortgages, liens, charges and estates,” with a narrow exception for separately taxed ground rents.4Pennsylvania General Assembly. Real Estate Tax Sale Law, Act of Jul 7 1947, No 542 – Section 612 Even a first mortgage that would survive an ordinary foreclosure is extinguished. An upset bargain can hide six-figure mortgages; a judicial sale delivers free-and-clear title by court order.
Federal Tax Liens and the IRS Redemption Window
IRS liens for unpaid federal income taxes follow federal rules. A foreclosure by a senior lienholder can extinguish an IRS lien the way it extinguishes other junior liens. But the federal government keeps a backstop: a statutory right of redemption.
The IRS may redeem the property within 120 days of the sale or the redemption period allowed under state law, whichever is longer.5Office of the Law Revision Counsel. 26 USC 7425 – Discharge of Liens Pennsylvania grants no post-sale redemption period in tax sales, so the IRS window defaults to the 120-day federal minimum.3Pennsylvania General Assembly. Real Estate Tax Sale Law, Act of Jul 7 1947, No 542 – Section 607
If the IRS redeems, it pays the purchaser the winning bid plus six percent annual interest from the date of sale and any net expenses the purchaser incurred to maintain the property.6eCFR. 26 CFR 301.7425-4 – Discharge of Liens; Redemption by United States The IRS then takes title and resells to apply proceeds against the taxpayer’s balance.7Internal Revenue Service. Internal Revenue Manual 5.12.5 – Redemptions The agency uses this right selectively, targeting distressed-price sales with real equity left on the table. If a property had an IRS lien going into the sale, treat the first 120 days as a cloud on your title.
HOA and Condominium Assessment Liens
If the property sits in a planned community, the association’s lien for unpaid assessments has its own priority rule. Under the Uniform Planned Community Act, an assessment lien is senior to most other liens, with three exceptions: liens recorded before the community’s declaration, first mortgages recorded before the assessment’s due date, and real estate tax liens.8Pennsylvania General Assembly. Pennsylvania Code 68-5315 – Lien for Assessments
Because first mortgages outrank the association, a first-mortgage foreclosure generally wipes out the HOA lien. The statute carves out a six-month protection though: assessments that came due in the six months immediately before the judicial sale must be paid from the sale proceeds before junior creditors or the former owner receive anything.8Pennsylvania General Assembly. Pennsylvania Code 68-5315 – Lien for Assessments Anything older is divested whether the proceeds cover it or not. Buy at a first-mortgage foreclosure sale and you will not inherit years of back dues. Buy at a junior lienholder’s foreclosure and the HOA lien is likely senior to that junior lien and survives. Condominium units fall under a parallel framework in the Uniform Condominium Act, so check assessments on any unit regardless of the sale type.
Mechanics’ Liens
A contractor or subcontractor who performs work and goes unpaid can file a mechanics’ lien, and the priority rule is unusual. For new construction, the lien relates back to the date work visibly began on the ground, not the filing date. For repairs or alterations, priority runs from the filing date. Either way, mechanics’ liens are subordinate to purchase money mortgages and to certain open-end construction mortgages.9Pennsylvania General Assembly. Pennsylvania Code 49 PS 1508 – Priority of Lien
Survival in foreclosure comes down to timing. If visible work on a new building started before the foreclosing mortgage was recorded, the mechanics’ lien may be senior and survive. In most residential situations the original mortgage predates construction, so the mechanics’ lien is junior and gets wiped. Contractors have up to six months after completing work to file, so a property with recent renovations may carry a mechanics’ lien that is not yet of record.
Judgment Liens
A judgment lien arises when a creditor wins a lawsuit and records the judgment in the county where the debtor owns property. It attaches as of the date the judgment is rendered or entered.1Pennsylvania General Assembly. Pennsylvania Code 42-8141 – Time From Which Liens Have Priority Its fate in foreclosure turns entirely on whether it was recorded before or after the foreclosing lien.
A judgment recorded after the mortgage is junior and gets wiped at a mortgage foreclosure sale. A judgment recorded before the mortgage is senior and transfers to the new owner. Judgment liens always sit below real estate tax liens, so a tax sale eliminates them. This is the lien type that most often blindsides buyers at sheriff’s sales. An old judgment from a lawsuit no one remembers may not jump out of a casual title search, and if it predates the mortgage, it comes with the deed.
Wiped Out on Title Is Not the Same as Forgiven
Foreclosure is an action against the property, not against the borrower personally. When a junior lien is stripped from the title at a foreclosure sale, the underlying debt does not automatically disappear for the borrower. In Pennsylvania, the lender can petition the court for a deficiency judgment to collect any shortfall, and the petition must be filed within six months after the sheriff’s deed is executed and delivered.10Pennsylvania General Assembly. Pennsylvania Code 42-5522 – Six Months Limitation Miss that window and the right is gone.
When the foreclosing lender buys the property itself, the court uses the property’s fair market value, not the sale price, to reduce the borrower’s liability, so a lowball bid at the lender’s own sale will not translate into an inflated deficiency.11Pennsylvania General Assembly. Pennsylvania Code 42-8103 – Deficiency Judgments For a junior lienholder whose claim came off the title, the debt still exists as an unsecured obligation, but there is no second bite at that same property.