California CCP § 580b: Purchase Money Loans, Refinancing, and Deficiency

If you lose a California home to foreclosure, Section 580b of the Code of Civil Procedure can stop the lender from suing you personally for whatever the sale didn’t cover. California’s purchase money anti-deficiency rule makes the property itself the lender’s only remedy on certain loans, which means a shortfall between the debt and the sale price is the lender’s loss, not yours. The protection is not automatic for every mortgage. It applies to three specific kinds of transactions, and each has its own conditions.1California Legislative Information. California Code of Civil Procedure CCP 580b

Which Loans Section 580b Covers

The statute protects three distinct situations. A buyer who defaults on a real property purchase contract before the sale closes cannot be chased for a deficiency. A seller who finances the sale and takes back a note secured by the property cannot collect a deficiency after foreclosure, regardless of the property type. And a bank, credit union, or other institutional lender that makes a loan to buy an owner-occupied dwelling of four units or fewer cannot pursue a deficiency either.1California Legislative Information. California Code of Civil Procedure CCP 580b

The last two categories cover most real-world mortgages, and their qualification rules are different. Seller carrybacks get broad coverage with few conditions. Institutional lender loans must clear two hurdles on property type and occupancy.

Third-Party Lender Loans: The Two Conditions

For a loan from a bank or other institutional lender to qualify, the property must be a dwelling of no more than four families. Single-family homes, duplexes, triplexes, and fourplexes are in. A five-unit building or any commercial property is out. The buyer also has to occupy the property, “entirely or in part,” at the time the loan is made. That is a lower bar than requiring it to be your primary residence: buy a duplex, live in one unit, rent the other, and the loan still qualifies. Buy a fourplex purely as a rental and never move in, and it does not.1California Legislative Information. California Code of Civil Procedure CCP 580b

The loan itself has to be true purchase money. The funds must go toward the purchase price, and the property has to secure the debt. A home equity line of credit opened after you already own the home is not purchase money, even though the house is the collateral. The purchase money character is fixed at the original transaction.

Seller Carrybacks

When a seller extends credit to the buyer and takes back a note secured by the property, Section 580b blocks any deficiency, with no restriction on property type or occupancy. The protection reaches commercial buildings, vacant land, and investment properties when the seller is the lender.1California Legislative Information. California Code of Civil Procedure CCP 580b

One narrow exception has stood since 1972. In Spangler v. Memel, the California Supreme Court held that a seller who subordinates a purchase money lien to a construction loan for commercial development can pursue a deficiency if the construction lender later forecloses and wipes out the seller’s junior position. The court treated that kind of subordination as a speculative investment in the development, not a straightforward sale, and put the risk of failure on the buyer-developer. The scenario typically involves vacant land sold for development.2Justia Law. Spangler v. Memel

Guarantors and Co-Signers Are Not Covered

Subdivision (c) of Section 580b carves guarantors out of the protection. Even when the borrower is shielded, any guarantor, pledgor, or other surety on the loan remains personally liable for the shortfall.1California Legislative Information. California Code of Civil Procedure CCP 580b

This hits hardest in family transactions. A parent who guarantees a child’s home purchase loan can be sued for the deficiency even though the child cannot. Anyone asked to back a purchase money loan should go in knowing that the borrower’s anti-deficiency shield does not travel to them.

What Refinancing Does to Your Protection

Refinancing a purchase money loan used to kill the anti-deficiency shield outright, because the new loan technically wasn’t used to buy anything. California fixed that in 2012 with Senate Bill 1069, which added subdivision (b) to Section 580b effective January 1, 2013.3California Legislative Information. SB 1069 Senate Bill – CHAPTERED

Under the current rule, if a refinance pays off only the original purchase money balance plus fees, costs, and related refinance expenses, the entire new loan keeps purchase money protection. The shield moves to the replacement mortgage, and it carries through successive refinances as long as each one stays within those limits.1California Legislative Information. California Code of Civil Procedure CCP 580b

Cash-Out Splits the Loan in Two

Pull out extra cash and the picture changes. The portion of the new loan that exceeds the old purchase money balance and refinance costs, called the “new advance,” loses protection. The lender can pursue a deficiency on that new advance, but not on the portion that replaced the original purchase money debt.4California Legislative Information. SB 1069 Senate Bill – Bill Analysis

The statute also sets a payment waterfall. Your principal payments apply first to the protected purchase money portion, then to the new advance. The practical effect works against you: the protected balance pays down first, so the unprotected portion grows as a share of what you still owe. Keep records of the original purchase money balance and any cash-out amount so you can prove the split later if you ever need to.

When 580b Is Actually the Shield You Need

Section 580b is one of several California anti-deficiency statutes, and knowing which one is doing the work matters. Section 580d bans deficiency judgments any time property is sold through a nonjudicial foreclosure, meaning a trustee’s sale under a deed of trust’s power of sale. Section 580d doesn’t care whether the loan was purchase money or who the lender was.5California Legislative Information. California Code of Civil Procedure 580d

The split is simple. Section 580d protects based on how the foreclosure happens; Section 580b protects based on what kind of loan it is. Almost all California foreclosures run through trustee’s sales, so 580d usually does the heavy lifting. But a lender who wants to preserve the right to a deficiency can choose a judicial foreclosure instead. When that happens, 580d drops out and 580b becomes your primary defense. That is when the purchase money character of your loan truly matters.

Section 580e covers a different situation: short sales. If you sell for less than you owe with the lender’s written consent, 580e bars the lender from pursuing the shortfall on dwellings of four units or fewer, and bars the lender from demanding anything beyond the sale proceeds as a condition of consent. This matters when 580b doesn’t help you, such as with a pre-2013 refinance or a non-purchase-money second.6California Legislative Information. California Code of Civil Procedure 580e

Damaging the Property Can Still Cost You

Anti-deficiency protection is not a license to wreck the house. California Civil Code Section 2929 prohibits anyone whose interest is subject to a mortgage lien from doing anything that substantially impairs the lender’s security.7California Legislative Information. California Civil Code 2929

Courts have held that a lender’s claim for “bad faith waste” survives the anti-deficiency statutes. If you deliberately damage the property, strip fixtures, or let it deteriorate through neglect while in default, the lender can sue for the resulting drop in security value. Damages are measured by the amount by which the property’s value fell below the outstanding debt because of your actions. This is one of the few scenarios where losing the home to foreclosure does not end the lender’s ability to come after you personally.

Taxes After a Purchase Money Foreclosure

Section 580b eliminates personal liability on the debt, but it does not eliminate every financial consequence. Because purchase money loans protected by 580b are nonrecourse, the IRS treats the foreclosure as a sale of the property rather than a cancellation of debt. You will not owe income tax on “canceled debt,” but you may owe tax on gain from the deemed sale.8Internal Revenue Service. Publication 4681, Canceled Debts, Foreclosures, Repossessions, and Abandonments

The IRS treats the full outstanding nonrecourse balance as the amount realized on the disposition, even if the property is worth far less. Your gain or loss is that amount minus your adjusted basis, which is generally your purchase price plus improvements and minus depreciation.8Internal Revenue Service. Publication 4681, Canceled Debts, Foreclosures, Repossessions, and Abandonments

California does not fully conform to the federal exclusion for discharged qualified principal residence debt. For discharges on or after January 1, 2025, the Franchise Tax Board has stated that California remains out of conformity. You can qualify for a federal exclusion and still owe California state income tax on the same amount. Check current FTB guidance and, if an exclusion applies federally, consider filing Form 982 with your federal return and a copy with your state return.9California Franchise Tax Board. Mortgage Forgiveness Debt Relief

What a Deficiency Judgment Looks Like If 580b Doesn’t Apply

If your loan falls outside Section 580b and the lender goes the judicial foreclosure route, a deficiency judgment is a real possibility, and its reach is long. A deficiency judgment creates a lien on any other real property you own, lasting 10 years from entry and renewable.10Justia Law. California Code of Civil Procedure 697.310-697.410 – Judgment Lien on Real Property

The lender can also garnish your wages. California caps the garnishment at the lesser of 20% of disposable earnings or 40% of the amount by which weekly disposable earnings exceed 48 times the state minimum hourly wage. In cities with a higher local minimum wage, the local rate controls and the garnishable amount can shrink further.11California Legislative Information. California Code of Civil Procedure CCP 706.050

A deficiency judgment also sits in public records and credit reports, which can affect your ability to borrow or buy property for years. Losing the home and then carrying a judgment on top is the exact outcome the legislature wrote 580b to prevent for the loans it covers.