Answer: The bank is only entitled to retain the amount owed on the loans plus any legally authorized costs of the foreclosure sale. Any exceed proceeds could go to you or to creditors that have priority over you.
Suppose you had a second mortgage for $75,000. California Civil Code § 2924k(a)(3) requires that surplus funds be paid to "to satisfy the outstanding balance of obligations secured by any junior liens or encumbrances in the order of their priority." The second mortgage holder would make a claim to the $50,000 above what was necessary to satisfy your obligation under the first mortgage. You might also have judgment creditors who have put a lien on your home that would have priority over you.
About the Author: Carl H. Starrett II has been a licensed attorney since 1993 and is a member in good standing with the California State Bar and the San Diego County Bar Association. Mr. Starrett practices in the areas of bankruptcy, business litigation, construction, corporate planning and debt collection.