A sale does not end the lease. The new owner takes the house subject to the rental agreement and has the same rights to collect rent and enforce the lease.
When your ownership ends, California law gives you two ways to handle the security deposit after lawful deductions: transfer the remaining amount to the buyer and notify the tenant, or return the remaining amount with an itemized accounting.
If you transfer the deposit, notify the tenant by personal delivery or first-class mail. Include any claims against the deposit, the amount transferred, and the buyer's name, address, and phone number. Skipping these steps can leave the new owner sharing liability for the deposit.
The new owner must give tenants its contact and rent-payment information within 15 days. We can talk through the lease and deposit handoff with you as part of the sale.