Under California’s anti-deficiency statutes, a lender usually cannot sue you for the shortfall between what you owed on your mortgage and what the home brought at a foreclosure or short sale. The protection is strongest for owner-occupied homes, purchase money loans, non-judicial (trustee) foreclosures, and lender-approved short sales. It weakens or disappears for cash-out refinances taken to court, investment property, guarantors, and a few other situations worth knowing before you assume you’re clear.
Purchase Money Loans Are Protected
Code of Civil Procedure Section 580b bars any deficiency on a loan used to buy an owner-occupied home of up to four units. It doesn’t matter whether the lender forecloses in court or through a trustee sale. If the loan paid for the home you live in, the lender cannot pursue you for the gap.1California Legislative Information. California Code of Civil Procedure Section 580b (2025)
The protection covers the primary purchase loan and any junior loans taken out at closing as part of the same purchase. A common example: an 80% first mortgage combined with a 10% second, both originated at closing. Both are purchase money loans, and neither lender can chase a deficiency.1California Legislative Information. California Code of Civil Procedure Section 580b (2025)
Seller carryback notes count too. When a seller finances part of the purchase price and takes a note secured by the property, the seller-lender cannot pursue a deficiency after foreclosure.1California Legislative Information. California Code of Civil Procedure Section 580b (2025)
The limits: the property must be a dwelling of four units or fewer, and the buyer has to occupy at least part of it. A loan on a commercial building, vacant land, a five-unit apartment complex, or a rental you never live in doesn’t qualify.
Refinances Keep Protection, Cash-Out Does Not
Refinancing used to strip anti-deficiency protection from a purchase money loan. That changed on January 1, 2013, when a new subdivision of Section 580b took effect. A refinanced purchase money loan now keeps its protection, and so does any later refinance of that loan.1California Legislative Information. California Code of Civil Procedure Section 580b (2025)
The exception is new money. If the refinance advanced funds beyond what was needed to pay off the original purchase loan plus transaction costs, the new advance is not protected. Only the portion of the refinanced balance traceable to the original purchase debt keeps its shield. Payments you make are applied first to the protected purchase money balance, meaning the protected share shrinks first while the unprotected cash-out portion sticks around.1California Legislative Information. California Code of Civil Procedure Section 580b (2025)
If a large cash-out is involved and foreclosure comes, tracing which dollars are still protected can get messy. The borrower carries the burden of showing how much of the balance qualifies.
Trustee Sales Wipe Out Any Deficiency
Most California foreclosures are non-judicial: the lender uses the trustee sale process instead of filing a lawsuit. Code of Civil Procedure Section 580d bars any deficiency judgment when the lender goes that route. This protection applies to every loan type, so a cash-out refinance, a home equity line of credit, or an investment property loan is shielded from a deficiency as long as the lender forecloses non-judicially.2California Legislative Information. California Code of Civil Procedure Section 580d (2025)
The trade-off is deliberate. Non-judicial foreclosure lets the lender avoid the time and expense of a lawsuit; in exchange, the lender accepts the trustee sale price as full satisfaction. A lender who wants to preserve the right to chase a deficiency has to file a judicial foreclosure instead.
Because lenders overwhelmingly prefer the faster, cheaper option, most California homeowners who lose a home never face a deficiency judgment. The economic incentive that pushes lenders toward trustee sales is the same incentive that eliminates your personal exposure.
Short Sales Cannot Leave You With a Deficiency
A short sale is a sale for less than the mortgage balance with the lender’s written approval. Code of Civil Procedure Section 580e handles these. When the loan is secured only by the home being sold (a dwelling of four units or fewer), no deficiency can be owed or collected at all. The lender must accept the sale proceeds as full payment.3California Legislative Information. California Code of Civil Procedure Section 580e (2025)
If the loan is also secured by other property, the deficiency is still barred, but through a different mechanism: the short sale is treated as a non-judicial foreclosure under Section 580d, which carries its own deficiency bar.3California Legislative Information. California Code of Civil Procedure Section 580e (2025)
Section 580e also blocks lenders from demanding side payments. A lender cannot approve the short sale and then require you to kick in additional money to cover part of the gap as a condition of that approval.3California Legislative Information. California Code of Civil Procedure Section 580e (2025)
One boundary matters here: Section 580e does not apply if the borrower is a corporation, LLC, or limited partnership. Investors who hold property through business entities don’t get the protection.
When a Lender Can Still Come After You
The protection is strong but not universal. Several situations still leave a borrower exposed.
- Judicial foreclosure on a non-purchase-money loan. A cash-out refinance, a standalone home equity line, or an investment property loan can produce a deficiency if the lender chooses to foreclose through the courts. In that case, Code of Civil Procedure Section 726 caps the deficiency at the gap between the debt and the property’s fair market value on the sale date, and the lender must apply within three months of the sale or lose the right.4California Legislative Information. California Code of Civil Procedure Section 726 (2025)
- Larger and non-residential properties. Section 580b’s automatic protection stops at four units and requires owner occupancy. Loans on commercial buildings, vacant land, and apartment buildings with five or more units can generate deficiency judgments after a judicial foreclosure.
- Sold-out junior lienholders. When a senior lender forecloses non-judicially, a junior lien gets wiped out. The California Supreme Court has held that the junior lienholder, having lost its security, is not barred by Section 580d from suing the borrower personally on the underlying note, so long as the junior loan wasn’t itself a purchase money loan protected by Section 580b. This is one of the biggest practical risks for borrowers who have a first mortgage plus a non-purchase-money second or HELOC.
- Bad faith waste. If a borrower intentionally damages or destroys the property, the lender can pursue those damages despite the anti-deficiency statutes. The California Supreme Court set that line in Cornelison v. Kornbluth.5California Supreme Court Resources. Cornelison v. Kornbluth
- Fraud. Loans obtained through deception can trigger a fraud action regardless of anti-deficiency protection. Section 580e expressly preserves fraud claims in the short sale context.3California Legislative Information. California Code of Civil Procedure Section 580e (2025)
Section 726 also imposes the one-action rule: a lender with a mortgage on real property can bring only one lawsuit to collect the debt, and it has to be a foreclosure action. The lender cannot ignore the security and sue you on the note.4California Legislative Information. California Code of Civil Procedure Section 726 (2025)
Guarantors Are Not Covered
Both Section 580b and Section 580d carve out guarantors, pledgors, and other sureties. Even when the borrower is fully shielded, the lender can still pursue anyone who personally guaranteed the loan or pledged separate collateral.1California Legislative Information. California Code of Civil Procedure Section 580b (2025)2California Legislative Information. California Code of Civil Procedure Section 580d (2025)
This regularly catches family members and small business co-signers off guard. The borrower may walk away clean while the guarantor stays fully on the hook.
The Tax Bill After Forgiven Debt
Avoiding a deficiency judgment doesn’t necessarily mean avoiding financial consequences. When a lender cancels mortgage debt, the IRS generally treats the forgiven amount as taxable income. If you owed $500,000 and the lender accepted $400,000, that $100,000 can appear on your return.6Internal Revenue Service. Publication 4681 (2025), Canceled Debts, Foreclosures, Repossessions, and Abandonments
Whether the loan is recourse or nonrecourse changes the math. Many California residential mortgages are effectively nonrecourse because the anti-deficiency statutes block personal liability. When a nonrecourse loan is foreclosed, the IRS treats the full debt as the sale price of the property; there is no separate canceled debt income, though a taxable gain on the property itself is possible. With recourse debt, the forgiven amount above fair market value is canceled debt income.6Internal Revenue Service. Publication 4681 (2025), Canceled Debts, Foreclosures, Repossessions, and Abandonments
Federal law under IRC Section 108 has historically excluded canceled debt on a principal residence from taxable income. That exclusion covers discharges before January 1, 2026, or discharges under a written agreement entered before that date. After the cutoff, the exclusion is not available unless Congress extends it. Two other exclusions still apply regardless of the deadline: debt canceled in a Title 11 bankruptcy is excluded entirely, and if you are insolvent (liabilities greater than the fair market value of assets) at the time of cancellation, you can exclude canceled debt up to the amount of your insolvency.7Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness
California adds a wrinkle. The Franchise Tax Board has stated that California does not conform to the federal exclusion for qualified principal residence debt for discharges on or after January 1, 2025. Forgiven mortgage debt that is excluded federally may still need to be included on your California return. The bankruptcy and insolvency exclusions do still apply at the state level.8Franchise Tax Board. Mortgage Forgiveness Debt Relief
This is where people get caught off guard: no deficiency judgment, but a tax bill arrives months later. If a significant amount of mortgage debt is about to be canceled, talk to a tax professional before the sale or foreclosure closes so you know what you’ll owe.