Updated: August 14, 2026

If your San Francisco home has gone through foreclosure, one of the first questions you may have is: How long can I stay in the property?
The answer depends on several important details. The first is whether the foreclosure sale has actually occurred. The second is whether you are the former homeowner or a tenant living in the property.
Those situations can involve very different notice requirements and legal protections.
A foreclosure sale does not necessarily mean someone can remove an occupant from the property immediately. However, a former homeowner also should not assume they have an indefinite right to remain after ownership changes.
Understanding your status and responding promptly to notices can help you make better decisions about your next step.
Quick Answer: How Long Can You Stay After Foreclosure in San Francisco?
If foreclosure proceedings are still underway and the property has not been sold, you generally remain in your home during the foreclosure process. After a completed foreclosure sale, California’s post-sale possession rules apply. Former homeowners and qualifying tenants have different protections, so there is no single move-out period that applies to everyone.
The Consumer Financial Protection Bureau’s foreclosure guidance explains that homeowners can generally remain in their homes during the foreclosure process, while the period after a foreclosure sale depends on state law.
First, Confirm Whether the Foreclosure Sale Has Happened
Before deciding what to do, determine exactly where you are in the foreclosure process.
Receiving a Notice of Default, Notice of Trustee’s Sale, or another foreclosure notice does not necessarily mean ownership has already transferred.
If the trustee sale has not happened, you may still have options involving your mortgage servicer, foreclosure assistance, or selling the property.
Read our guide to stopping foreclosure in San Francisco if you are still before the foreclosure sale.
You can also review our explanation of pre-foreclosure in San Francisco to better understand the stage before a completed sale.
If the trustee sale has already occurred, your situation changes from trying to prevent foreclosure to understanding ownership, possession, notices, and possible post-sale eviction procedures.
What Happens After a California Foreclosure Sale?
Nonjudicial foreclosure is the most common foreclosure process in California.
After a completed nonjudicial foreclosure sale, the person or entity that acquires the property may seek possession from the former owner.
According to the California Courts guide to nonjudicial foreclosure, the new owner must generally give the former homeowner a 3-day written notice to quit before beginning the formal eviction process. If the former homeowner does not leave after the notice period, the new owner must use the legal eviction process to seek possession.
That distinction is important.
A foreclosure sale does not normally mean the former owner can simply be physically removed from the property that same day. At the same time, receiving a post-foreclosure notice should never be ignored.
If you receive a notice to quit, an Unlawful Detainer Summons and Complaint, or other court paperwork, review it immediately.
Important: This article provides general educational information and is not legal advice. Foreclosure and post-foreclosure rights depend on individual circumstances. If you are unsure about your rights, deadlines, ownership, eviction notices, or the validity of a foreclosure sale, speak with a qualified California attorney.
Former Homeowner vs. Tenant: Why the Difference Matters
One of the most important issues after foreclosure is identifying whether the person still living in the property is the former homeowner or a tenant.
The rules are not necessarily the same.
If You Were the Homeowner and Borrower
If you owned the property and were a party to the mortgage loan, you should not automatically assume that protections designed for tenants apply to you.
California law specifically distinguishes qualifying tenants from a party to the mortgage note who remains in the property after foreclosure.
That means information online saying that everyone automatically receives 90 days after foreclosure can be misleading.
A former homeowner may instead face the post-foreclosure possession process that applies to former owners.
If You Were a Tenant
A qualifying tenant living in a foreclosed property may have stronger protections.
The California Courts guide to tenant rights during foreclosure explains that tenants may be entitled to at least 90 days’ notice after a foreclosure sale, and some qualifying leases may continue beyond that period depending on the circumstances.
The exact result can depend on the lease, relationship between the tenant and former owner, occupancy arrangement, purchaser’s plans, and applicable state and local law.
Do Tenants Get 90 Days After Foreclosure in California?
Qualifying tenants often do, but this rule does not apply universally to everyone occupying the property.
California Code of Civil Procedure Section 1161b generally requires 90 days’ written notice for qualifying tenants or subtenants with periodic tenancies after a foreclosure sale. Some fixed-term leases may also survive foreclosure unless one of the statutory exceptions applies.
However, the law expressly states that these protections do not apply when a party to the mortgage note remains in the property as a tenant, subtenant, or occupant.
You can review the current language directly through California Legislative Information — Code of Civil Procedure §1161b.
This is why it is important to identify your legal status rather than relying on a general statement such as, “Everyone gets 90 days.”
Do San Francisco Tenants Have Additional Eviction Protections?
Potentially.
San Francisco has local eviction rules in addition to state requirements. The San Francisco Rent Board explains that most residential tenants in the city have eviction protections requiring an applicable “just cause” for eviction.
San Francisco also requires landlords to use the formal legal process. A landlord generally cannot remove a tenant by simply changing the locks, disposing of belongings, turning off utilities, or using similar self-help measures.
The city’s process generally involves a written notice, an Unlawful Detainer court case when necessary, a judgment, and enforcement through the Sheriff.
You can review the city’s current information through the official San Francisco Rent Board eviction resource.
Whether a particular San Francisco tenant is protected depends on the property, tenancy, lease, foreclosure circumstances, and applicable exemptions.
Former homeowners should not assume these tenant-specific protections automatically apply to them.
Can the New Owner Make You Leave Immediately?
For a former homeowner, California’s post-foreclosure process generally requires notice before the purchaser moves forward with a formal eviction.
That does not mean you should wait for the situation to escalate.
If you receive a notice:
- Read the entire document.
- Confirm who sent it.
- Note the date it was served.
- Keep copies.
- Do not alter the document.
- Do not ignore court papers.
- Seek legal advice promptly if anything is unclear.
The amount of time you actually remain in the property can depend on what happens after the notice, whether a case is filed, whether the occupant responds, and what the court ultimately orders.
For that reason, it is more accurate to explain the process than to promise that every former homeowner can remain for a particular number of days or weeks.
Can You Negotiate to Rent the Home From the New Owner?
Possibly.
A former homeowner can ask whether the purchaser is willing to enter into a rental or temporary occupancy arrangement after foreclosure.
However, the new owner generally does not have to agree merely because you previously owned the property.
If a rental arrangement is offered, clarify important terms such as:
- Monthly rent
- Security deposit
- Length of tenancy
- Move-out requirements
- Utility responsibilities
- Maintenance responsibilities
- Payment date
- Whether the agreement is month-to-month or fixed-term
Get important terms in writing.
Do not assume that a verbal promise to “let you stay for a while” creates the same protections as a properly documented rental agreement.
What Is Cash for Keys After Foreclosure?
Another possible outcome is a voluntary cash-for-keys agreement.
Cash for keys generally means the new owner offers an occupant money in exchange for voluntarily moving out by an agreed date and leaving the property in the condition required by the agreement.
This can sometimes provide a more predictable transition for both parties.
Before agreeing, ask:
- How much will be paid?
- When will payment occur?
- What is the exact move-out date?
- What condition must the property be in?
- Must all belongings be removed?
- When are the keys transferred?
- Does the agreement waive legal claims or other rights?
- What happens if either party does not fulfill the agreement?
Make sure the agreement is in writing.
If you do not understand a provision or believe you may have legal claims involving the foreclosure, consider having an attorney review the agreement before signing.
What Should You Do If You Receive Eviction Papers?
Do not ignore them.
An eviction case—often called an unlawful detainer in California—is a court proceeding.
A notice from the new owner and a court summons are not the same thing. Once a court case has been filed, deadlines for responding can become particularly important.
San Francisco’s official eviction guidance currently states that an unlawful detainer is filed in Superior Court after the applicable eviction notice expires. The city also directs tenants who receive an Unlawful Detainer Summons and Complaint to contact the Eviction Defense Collaborative for legal assistance.
If you receive court paperwork:
- Read every page.
- Record the response deadline.
- Keep copies of all foreclosure and occupancy documents.
- Gather your mortgage, lease, notice, and court records.
- Seek appropriate legal assistance promptly.
Do not assume a conversation with the purchaser automatically stops a pending court deadline.
What If You Believe the Foreclosure Was Improper?
If you believe there was a serious problem with the foreclosure, collect your records and speak with a qualified California attorney.
Potential concerns might involve notices, loan servicing, ownership, bankruptcy timing, payments, or other procedural issues.
Useful records can include:
- Mortgage documents
- Deed of trust
- Notice of Default
- Notice of Trustee’s Sale
- Mortgage-servicer correspondence
- Payment records
- Loan-modification correspondence
- Bankruptcy paperwork
- Trustee communications
- Sale information
- Post-sale notices
- Court documents
Whether a completed foreclosure can be challenged is a legal question that depends heavily on the facts.
Avoid assuming that a general internet article can determine whether your particular foreclosure was valid.
Can Bankruptcy Help After a Foreclosure Sale?
Timing is critical.
Chapter 13 bankruptcy may stop an ongoing foreclosure through the automatic stay and, in some situations, allow a borrower to address past-due mortgage amounts through a repayment plan.
However, that does not mean filing Chapter 13 after a completed foreclosure automatically restores ownership.
The U.S. Courts Chapter 13 Bankruptcy Basics explains that an automatic stay may stop an ongoing foreclosure, but a homeowner may still lose the property if the mortgage company completed the foreclosure sale under state law before the bankruptcy petition was filed.
If bankruptcy could affect your situation, consult an appropriate bankruptcy attorney about the exact timing and circumstances rather than assuming it will reverse a completed sale.
Practical Steps to Take After a Foreclosure Sale
Step 1: Confirm That the Sale Was Completed
Verify whether the trustee sale actually occurred rather than assuming a foreclosure notice means the sale is finished.
Step 2: Determine Your Status
Identify whether you are:
- The former homeowner
- A tenant
- A subtenant
- A family member
- Another occupant
This distinction can materially affect your rights.
Step 3: Review Every Notice
Read every post-foreclosure notice and court document carefully.
Do not assume a particular notice period applies simply because someone online described it.
Step 4: Decide Whether Negotiation Makes Sense
Depending on the new owner’s plans, you may be able to discuss:
- Additional voluntary move-out time
- A rental agreement
- Temporary occupancy
- Cash for keys
Any agreement should be documented.
Step 5: Seek Help When Legal Deadlines Are Involved
If you receive an Unlawful Detainer Summons and Complaint or believe the foreclosure was improper, professional legal assistance becomes especially important.
Step 6: Prepare for a Possible Housing Transition
Consider alternative housing, moving expenses, storage, transportation, work schedules, school needs, and other practical issues.
Preparing for a move does not mean giving up any legal rights you may have. It simply prevents you from having only one option if possession ultimately changes.
Example: Former Homeowner vs. Tenant After a San Francisco Foreclosure
Consider a hypothetical San Francisco duplex.
The owner lived in the lower unit and rented the upper unit to an unrelated tenant under a written lease. The property is then sold through foreclosure.
Both people are still living in the building, but their situations may be very different.
The former homeowner should not assume they automatically receive the same 90-day tenant protections as the person renting the upstairs unit.
The qualifying tenant may have state, lease-based, and potentially San Francisco protections that must be evaluated separately.
This example illustrates why asking “How long can I stay after foreclosure?” does not always produce one universal number.
Frequently Asked Questions
How long can I stay in my house after foreclosure in California?
It depends on whether the foreclosure sale has occurred and whether you are the former homeowner or a tenant. Different notice and possession rules may apply to each situation.
Do I have to move out immediately after foreclosure in San Francisco?
Generally, a former homeowner is not physically removed simply because the foreclosure sale occurred. The new owner must follow the applicable notice and legal possession process.
Can a former homeowner stay in the house after foreclosure?
A former homeowner may remain while the applicable post-sale possession process moves forward, but that does not create an unlimited right to stay. Review any notice promptly.
Do tenants get 90 days after foreclosure in California?
Qualifying tenants may generally receive at least 90 days’ written notice, and some leases may receive additional protection. These protections do not automatically apply to a former borrower who remains in the property.
Can I rent my house back after foreclosure?
Possibly, if the new owner agrees. A rent-back or new tenancy is generally negotiated, so important terms should be put in writing.
What is cash for keys after foreclosure?
Cash for keys is a voluntary arrangement in which the new owner may offer payment in exchange for moving out by an agreed date and complying with stated property conditions.
Can bankruptcy reverse a completed foreclosure?
Do not assume it can. Chapter 13 may stop an ongoing foreclosure in some circumstances, but filing after a foreclosure sale has already been completed does not automatically restore ownership.
Know Your Post-Foreclosure Status Before Choosing Your Next Step
If you are trying to determine how long you can stay in a San Francisco home after foreclosure, start with two questions:
Has the foreclosure sale actually happened?
Are you the former homeowner or a tenant?
Those answers can significantly change the rules that apply.
If the foreclosure sale has already occurred, focus on understanding post-sale notices, occupancy rights, possible negotiations with the new owner, and legal assistance when needed.
If the sale has not yet occurred, your options may be broader. Review our guide to stopping foreclosure in San Francisco before assuming ownership has already been lost.
If selling the property before foreclosure becomes one of the options you want to compare, you can also review how Bay Area Home Offers buys houses. A direct property sale is relevant only while the homeowner still has the legal ability to sell; it should not be presented as a solution after ownership has already transferred through a completed foreclosure sale.