When a property has more than one lien attached to it, a second mortgage, a judgment, a tax lien, and it goes to a completed foreclosure sale, not every lien disappears the same way. What survives and what gets wiped out comes down almost entirely to one thing: which lien was recorded first.
Quick answer: A foreclosure sale generally wipes out liens recorded after the foreclosing lender’s lien, junior liens, while liens recorded before it, senior liens, survive the sale and become the new owner’s responsibility. Property tax liens always survive regardless of recording order, since they carry top priority under the law. Federal tax liens follow their own special rules, including a 120-day window during which the IRS can redeem the property even after the sale.
The Basic Rule: Priority Determines Survival
California generally follows a “first in time, first in right” rule for lien priority. When a property goes to a foreclosure sale conducted by a specific lienholder, typically the first mortgage:
- Liens recorded before that foreclosing lien, senior liens, survive the sale. The new owner takes the property still subject to them.
- Liens recorded after that foreclosing lien, junior liens, are generally wiped out, meaning they no longer attach to the property once the sale completes.
This is why a first mortgage foreclosure typically wipes out a second mortgage, a HELOC, or a judgment lien recorded afterward, while a foreclosure by a junior lienholder, say a second mortgage lender foreclosing, would not wipe out the first mortgage, which remains attached to the property regardless.
Where Property Tax Liens Fit
Property tax liens sit outside this ordinary priority system entirely. They carry top priority regardless of when they were recorded relative to other liens, and they survive virtually every type of foreclosure sale. A buyer at a foreclosure auction generally still needs to account for any outstanding property tax obligations.
What Happens to the Underlying Debt When a Lien Is Wiped Out
This is a detail that surprises a lot of people: a junior lien being wiped out from the property doesn’t necessarily mean the debt itself disappears. If a second mortgage or a judgment lien is extinguished by a senior lender’s foreclosure sale, the lien no longer attaches to the property, but the underlying debt can still be personally owed by the borrower, now as an unsecured debt, unless a specific legal protection applies. Whether that debt can still be pursued depends on the type of loan and applicable anti-deficiency protections, which is a question worth reviewing with an attorney for a specific situation.
How Federal Tax Liens Are Treated Differently
Federal tax liens don’t follow the same simple wipeout rule as other junior liens, because federal law adds an extra layer of protection for the government’s interest.
- If the federal tax lien is senior to the foreclosing lien, meaning it was recorded first, the tax lien is undisturbed by the foreclosure and survives, remaining attached to the property regardless of the sale.
- If the federal tax lien is junior, meaning it was recorded after the foreclosing lien, and proper notice of the sale was given to the IRS, the tax lien can be extinguished by the sale, the same as other junior liens.
- Even when extinguished, the IRS gets a second chance. Under 26 U.S.C. § 7425, the federal government generally has 120 days from the date of a non-judicial foreclosure sale, or the applicable state redemption period if longer, to redeem the property by paying the winning bidder the sale price plus interest and certain expenses.
This redemption right is unique to federal liens and doesn’t apply to ordinary private junior liens like a second mortgage or a judgment from a private creditor.
Other Federal Liens Can Be Trickier Too
Beyond tax liens specifically, certain other federal government liens, including some liens tied to federal loan modification programs, may not be fully extinguished by an ordinary non-judicial foreclosure sale in the same way private junior liens are. In some cases, title professionals have concluded that a judicial foreclosure, rather than the standard non-judicial process, may be needed to clearly extinguish these specific federal liens, which is a specialized area worth flagging for an attorney or title company if a federal lien beyond an ordinary tax lien is discovered on a property’s title.
Quick Reference: What Survives a Foreclosure Sale
| Lien Type | Typical Treatment |
|---|---|
| Property tax lien | Always survives, regardless of recording order |
| First mortgage (if it’s the foreclosing lien) | Satisfied by the sale; not “surviving” in the usual sense |
| Second mortgage or HELOC, recorded after the foreclosing lien | Generally wiped out from the property; underlying debt may remain personally owed |
| Judgment lien, recorded after the foreclosing lien | Generally wiped out from the property |
| HOA lien, recorded after the foreclosing lien | Generally wiped out, though HOA “super lien” portions can have special rules |
| Federal tax lien, senior to the foreclosing lien | Survives, undisturbed |
| Federal tax lien, junior to the foreclosing lien, proper notice given | Extinguished, but subject to the IRS’s 120-day redemption right |
| Other junior federal government liens | May not be fully extinguished by a non-judicial sale in every case |
Why This Matters for Someone Facing Foreclosure
Understanding this priority structure clarifies a few important points:
- A second mortgage or judgment lienholder losing their lien position doesn’t necessarily mean the debt disappears. It’s worth understanding whether that debt could still be pursued personally.
- Selling before a foreclosure completes, rather than letting the process run its course, generally resolves every lien through escrow at once, in a negotiated way, rather than leaving some liens wiped out and others surviving unpredictably.
- A buyer purchasing at a foreclosure auction takes on real risk if senior liens or certain federal liens exist on the property, which is part of why buying at auction requires careful title research beforehand.
A Realistic Example
A property in Panorama City has a first mortgage, a second mortgage taken out a few years later, and an old judgment lien recorded after both. When the first mortgage lender forecloses, the sale generally wipes out both the second mortgage’s lien on the property and the judgment lien, since both were recorded after the first mortgage. The second mortgage lender and the judgment creditor lose their security interest in the property, though the underlying debts may still be pursued against the borrower personally as unsecured obligations, depending on the specific loan type and any applicable protections. A property tax lien on the same property, regardless of when it was recorded, would have survived the sale and remained the new owner’s responsibility.
Legal and Financial Considerations
None of this is legal advice. An attorney can confirm lien priority for a specific property and address whether an underlying debt from a wiped-out lien could still be pursued personally. A title company can identify every recorded lien and its priority position before a sale, whether voluntary or through foreclosure. A tax professional can address any tax questions tied to debt that survives or is forgiven.
Los Angeles-Specific Notes
All liens on Los Angeles County properties, mortgages, judgments, HOA liens, tax liens, and federal liens, are recorded with the Los Angeles County Registrar-Recorder/County Clerk, making a title search there the most reliable way to confirm exact recording dates and priority for a specific property before assuming how a foreclosure sale would affect any particular lien.
Frequently Asked Questions
Do all liens get wiped out when a house goes to foreclosure?
No. Liens recorded before the foreclosing lien generally survive the sale, while liens recorded after it are generally wiped out. Property tax liens always survive regardless of recording order.
If my second mortgage gets wiped out by a foreclosure, do I still owe that money?
The lien on the property is extinguished, but the underlying debt may still be personally owed as an unsecured obligation, depending on the loan type and any applicable legal protections. An attorney can address the specifics.
Are federal tax liens treated the same as other junior liens?
Not entirely. If a federal tax lien is senior to the foreclosing lien, it survives undisturbed. If it’s junior and proper notice was given to the IRS, it can be extinguished, but the IRS then has 120 days to redeem the property by paying the winning bidder.
What does it mean for the IRS to “redeem” the property?
It means the federal government can pay the winning bidder the sale price, plus interest and certain expenses, within 120 days of the sale, to reclaim the property despite the foreclosure.
Do property tax liens ever get wiped out by a foreclosure sale?
Generally, no. Property tax liens carry top priority and typically survive any type of foreclosure sale, becoming the new owner’s responsibility.
What happens to an HOA lien when a property is foreclosed?
An HOA lien recorded after the foreclosing lien is generally wiped out, though a portion of unpaid assessments, sometimes called a “super lien” in other contexts, can carry special treatment depending on the specifics.
Is buying a property at a foreclosure auction risky because of liens?
It can be, since a buyer generally takes the property subject to any surviving senior liens, including certain federal liens that may not be fully extinguished by a standard non-judicial sale. Careful title research beforehand is essential.
Does selling before a foreclosure completes avoid these lien complications?
Generally, yes. Selling voluntarily resolves every valid lien through escrow at once, in a negotiated way, rather than leaving the outcome to whatever happens through a foreclosure sale.
How EZ Casa Buyer May Help
We work with Los Angeles homeowners who have multiple liens on their property and want to understand how those liens would be affected by a foreclosure, compared to resolving them through a voluntary sale. We can help get title work started early to identify exactly what’s recorded and in what order.
Tell Us About Your Property
Selling a Rental Property Before Foreclosure
A rental property can become difficult to maintain when mortgage payments, repairs, vacancies, or tenant problems reduce cash flow. Selling may be one way to resolve the mortgage before foreclosure progresses further. Investors facing foreclosure in Los Angeles should calculate their equity, debts, and potential sale proceeds before choosing this route.
Selling a House With Liens During Foreclosure
Properties may have debts beyond the first mortgage, including second mortgages, HELOCs, judgments, HOA obligations, or tax-related liens. These can affect the amount required to complete a sale. Homeowners facing foreclosure in Los Angeles should identify liens early so they have a clearer picture of their equity and possible proceeds.

