TL;DR — Key Takeaways
- How to remove a squatter in California depends first on what the occupant legally is, because the statutes supply different routes. Code of Civil Procedure section 1161 reaches a tenant, defined at subdivision 7 as any person who hires real property. Someone who never hired is outside that definition and outside that route.
- Self-help is the one move that reliably costs an owner money. Civil Code section 789.3 prohibits interrupting utilities or changing locks with intent to terminate an occupancy, and imposes actual damages plus up to $100 for each day of violation with a floor of $250 per cause of action – statutory amounts as of drafting – and mandatory attorney’s fees to the prevailing party.
- The forcible entry and forcible detainer statutes cut both ways. Code of Civil Procedure section 1160(a)(2) gives a remedy against someone who entered at night or during the occupant’s absence and refuses to surrender after five days’ demand – but subdivision (b) limits it to a former occupant who was in peaceable and undisturbed possession within the five days preceding the entry.
- There is one genuine exception to the court-order rule. Under Civil Code section 1946.5, where a single lodger rents a room in a dwelling unit the owner personally occupies, the lodger’s right to remain terminates by operation of law when the notice period expires.
- Adverse possession is almost never the real issue. Code of Civil Procedure section 325 requires five continuous years of occupation plus timely payment of all state, county, and municipal taxes for that period, proved by certified county tax collector records.
The Direct Answer
To remove a squatter in California, first classify the occupant, because the route depends on it. A tenant or subtenant is removed through an unlawful detainer action. A person holding after a perfected sale is removed on a three-day notice under a different section. Self-help lockouts and utility shutoffs carry statutory penalties in every case.
How to Remove a Squatter in California: Classify the Occupant First
Sections below are marked for the side they speak to. This one is the step owners skip, and skipping it is what turns a two-month problem into a six-month one.
“Squatter” is not a category in the California codes. The statutes that supply remedies each define who they reach, and the definitions do not overlap neatly.
Code of Civil Procedure section 1161 – the unlawful detainer chapter – reaches a “tenant of real property,” and subdivision 7 defines “tenant” as any person who hires real property, excluding those whose occupancy is described in Civil Code section 1940(b). A person who pays or promises to pay for occupancy hires. A person who broke in and has paid nothing has not.
Code of Civil Procedure section 1161a reaches a person who holds over after a perfected sale – under a writ of execution, a judicial or power-of-sale foreclosure, a Civil Code section 2924 trustee’s sale, or a sale by the occupant themselves – on a three-day written notice to quit served under section 1162.
Code of Civil Procedure sections 1159 and 1160 address forcible entry and forcible detainer, which are about how possession was taken or is being held rather than about a rental relationship.
And Civil Code section 1946.5 covers a single lodger in an owner-occupied dwelling, with its own mechanism.
So the first document in the file should not be a notice. It should be an answer to what this person is – whether they ever paid or promised to pay, whether anyone with authority let them in, how and when they got in, and whether the property has changed hands.
What Is the Difference Between a Squatter, a Holdover Tenant, and a Guest?
Three categories with three different exposures, and the middle one is the one owners most often misdescribe.
| Holdover tenant | Guest or invited occupant | True squatter | |
|---|---|---|---|
| How they got in | With permission, under a tenancy that has ended | With permission, from the owner or a tenant | Without permission from anyone with authority |
| Hired the property | Yes | No | No |
| Reached by CCP Sec. 1161 | Yes, subdivision 1 covers holding over after expiration of the term | Their position derives from whoever let them in | Not as a “tenant” under subdivision 7 |
| Owner’s route | Unlawful detainer | Depends on whether they have become a tenant | Forcible detainer where its conditions are met; otherwise ejectment or the criminal trespass route |
| Self-help permitted | No | No | No |
A holdover tenant California law still treats as within the unlawful detainer chapter is not a squatter, however the situation feels. Section 1161(1) makes a tenant guilty of unlawful detainer when they continue in possession after expiration of the term for which the property was let, provided the expiration is of a nondefault nature and without the landlord’s permission. The same subdivision expressly covers a person who became an occupant as a servant, employee, agent, or licensee where that relationship has been lawfully terminated – so an on-site manager who stops working and stays is inside the chapter too.
An unauthorized occupant California rental owners discover mid-tenancy – a partner, a relative, a friend of a tenant who has moved in – is usually neither a squatter nor a tenant. They are somebody the tenant let in, and their right to be there derives from that tenant. Whether they have acquired rights of their own is the subject of a later section.
The true squatter, who took possession without permission from anyone with authority, is the rarest of the three and the one the word is used for least accurately.
Can a California Owner Remove an Occupant Without a Court Order?

Almost never, and the attempt is expensive.
Civil Code section 789.3(a) prohibits a landlord, with intent to terminate an occupancy, from willfully causing the interruption or termination of any utility service furnished to the tenant – water, heat, light, electricity, gas, telephone, elevator, or refrigeration – whether or not the service is under the landlord’s control. Subdivision (b) prohibits, with the same intent, preventing reasonable access by changing the locks or using a bootlock or similar device, removing outside doors or windows, or removing the occupant’s personal property or furnishings without prior written consent except under the abandoned-property procedure at Civil Code section 1980 and following.
The remedies at subdivision (c) are the reason this matters more than the prohibition. An owner who violates the section is liable for the occupant’s actual damages, plus an amount not exceeding $100 for each day or part of a day the violation continues, and in no event less than $250 for each separate cause of action. Subsequent or repeated violations not committed contemporaneously with the first are treated as separate causes of action with separate awards. Subdivision (d) makes attorney’s fees to the prevailing party mandatory – “shall award” – and allows injunctive relief during the action.
Civil Code section 1940.2 adds a second penalty for the same conduct viewed differently. It is unlawful for a landlord, for the purpose of influencing a tenant to vacate, to engage in conduct violating specified Penal Code sections, to use or threaten force or menacing conduct interfering with quiet enjoyment, to commit a significant and intentional violation of the entry statute, or to threaten to disclose information about immigration or citizenship status. A tenant who prevails, including in small claims court, is entitled to a civil penalty of up to $2,000 for each violation. The dollar figures here are the statutory amounts as of drafting; the Legislature adjusts them periodically, so confirm the current numbers before relying on them.
One carve-out is written into subdivision (b). Nothing in it applies “to occupancies defined by subdivision (b) of Section 1940” – the same transient-occupancy exclusion that shapes the unlawful detainer definition above. It runs through both the eviction route and the self-help penalty.
For owners, note what these sections do not turn on. Neither requires that the occupant be a lawful tenant with a valid lease. Section 789.3 speaks of property “used by a tenant as his residence” under “any lease or other tenancy or estate at will, however created,” and section 1940.2 does not condition liability on the tenancy’s validity. An owner who is confident the occupant has no right to be there, and acts on that confidence with a locksmith, is betting the $100-a-day meter and a mandatory fee award on being right about a question a court has not yet decided.
When Does an Occupant Gain Tenant Rights?
There is no day count, and the widely repeated idea that thirty days converts a guest into a tenant is not in the statutes.
What the codes supply is a definition rather than a clock. A “tenant” under Code of Civil Procedure section 1161(7) is a person who hires real property. Hiring is the payment or promise of consideration for occupancy. So the facts that matter are whether the occupant pays anything, whether payments have been accepted, whether they were given exclusive use of a defined space, whether they receive mail there, and whether the owner or a tenant treated them as having a right to stay rather than a permission that could be withdrawn.
Two statutory consequences follow once someone is a tenant, and both are substantial.
The just cause clock starts. Civil Code section 1946.2(a) requires just cause to terminate after a tenant has continuously and lawfully occupied a residence for 12 months, with a 24-month rule where additional adult tenants were added to the lease. Section 1946.2(e) then exempts nine categories of property, two of which matter here: (e)(4) exempts housing where the tenant shares a bathroom or kitchen with the owner who maintains their principal residence at the property, and (e)(5) exempts owner-occupied single-family residences where the owner-occupant rents no more than two units or bedrooms.
Notice periods attach. Civil Code section 1946.1 requires 60 days’ notice from the owner to end a periodic tenancy, or 30 days where occupancy has been under a year.
For owners, the practical control is documentary and it operates before the question arises: a written guest policy, a lease clause on unauthorized occupants, and no acceptance of money from anyone who is not on the lease. Accepting rent from an occupant is the single act most likely to answer the hiring question against the owner.
For occupants, the evidence of a tenancy is the same evidence: what was paid, what was accepted, and what space was given.
What Is the Correct Legal Process to Regain Possession?

There are three statutory routes and one non-statutory one, and the classification in the first section decides which applies.
Unlawful detainer, where the occupant is a tenant or subtenant. Serve the notice the situation requires – three days under Code of Civil Procedure section 1161(2), (3) or (4), or the 30 or 60 days under Civil Code section 1946.1 – in one of the three ways section 1162 permits. File the complaint after the period expires. Under section 1167(a) the defendant’s response is due within 10 days excluding weekends and judicial holidays, with five additional court days for mail service. Under section 1170.5(a) trial is held not later than the 20th day after the request to set it, and a writ of execution issues immediately on request if the plaintiff prevails. Section 1174 governs judgment, the five-day stay in certain nonpayment cases, and the handling of personal property left behind.
The three-day notice under section 1161a, where title has been perfected. Where the property was sold under a writ of execution, a foreclosure by judicial proceeding or express power of sale, a Civil Code section 2924 trustee’s sale, or a sale by the occupant, a person holding over may be removed after a three-day written notice to quit served under section 1162. Subdivision (c) carves out a tenant or subtenant of a rental housing unit sold by one of those means: they get written notice at least as long as the term of hiring, not exceeding 30 days. And Code of Civil Procedure section 1161b, separately, gives a month-to-month tenant in possession at a foreclosure sale 90 days.
Forcible detainer, where its narrow conditions are met. Section 1160(a)(1) reaches a person who by force, menaces, or threats of violence unlawfully holds and keeps possession, however it was acquired. Section 1160(a)(2) reaches a person who unlawfully enters in the night-time or during the occupant’s absence and, after a demand for surrender, refuses for five days to surrender to the former occupant. But subdivision (b) defines that former occupant as one who, within five days preceding the unlawful entry, was in peaceable and undisturbed possession. That five-day window is why the forcible detainer route is usually unavailable against an occupant who has been in place for weeks.
Ejectment, the ordinary civil action to recover possession, which sits outside the summary chapter and does not carry its compressed timeline. It is the fallback where no summary route fits, and it is slower.
For owners, two practical points. Section 1159 is why the temptation to act must be resisted: a person is guilty of forcible entry who breaks open doors or windows or enters by any kind of violence or circumstance of terror, and separately one who enters peaceably then turns out the party in possession by force, threats, or menacing conduct. And a criminal trespass complaint is a parallel track rather than a substitute – it does not adjudicate possession.
The One Real Exception: A Single Lodger in an Owner-Occupied Home
Civil Code section 1946.5 is the only place in this area where the statute dispenses with a court judgment, and its conditions are strict.
Subdivision (c) defines a “lodger” as a person contracting with the owner of a dwelling unit for a room, or room and board, within the dwelling unit personally occupied by the owner, where the owner retains a right of access to all areas occupied by the lodger and has overall control of the dwelling unit. Subdivision (d) limits the section to owner-occupied dwellings where a single lodger resides, and says expressly that nothing in it affects the rights of lodgers where more than one lodger resides.
Where it applies, subdivision (a) lets either party terminate by written notice given at least as long before expiration of the term as Civil Code section 1946 specifies – 30 days for a month-to-month arrangement – served in the manner of Code of Civil Procedure section 1162 or by certified or registered mail, restricted delivery, return receipt requested. Subdivision (b) then provides that on expiration of the notice period, any right of the lodger to remain is terminated by operation of law, and removal may be effected under Penal Code section 602.3 or other applicable law.
Two cautions. The single-lodger limit is the whole exception – a second lodger takes the situation outside the section. And the interaction with Civil Code section 1946.2 needs care: subdivision (e)(4) exempts housing where the tenant shares a bathroom or kitchen with a resident owner, which will often but not always align with a lodger arrangement.
How Adverse Possession Actually Works, and Why It Almost Never Applies
This is the fear that drives the urgency, and the statute is the reassurance.
Code of Civil Procedure section 325(a) provides that for adverse possession claimed by a person whose title is not founded on a written instrument, judgment, or decree, land is deemed to have been possessed and occupied in two cases only: where it has been protected by a substantial enclosure, or where it has been usually cultivated or improved.
Subdivision (b) is the part that decides it. In no case shall adverse possession be considered established under any section of the code unless it is shown that the land has been occupied and claimed for five years continuously, and that the claimant, together with their predecessors and grantors, has timely paid all state, county, or municipal taxes levied and assessed on the land for that five-year period. Payment must be established by certified records of the county tax collector.
That tax requirement is why the doctrine so rarely reaches an occupied residential property. Someone is paying the property taxes, and it is the owner. An occupant who has not paid five years of assessed taxes, provable from the tax collector’s certified records, cannot establish adverse possession however long they have stayed.
For owners, delay creates procedural problems – a longer relationship, more evidence of acceptance, a stronger argument that the occupant hired the property – rather than a risk of losing title. Those are serious, and they are the reason to move promptly. Title is not what is at stake.
When to Bring Counsel In
Four moments. Before any notice is served, because the notice has to match the route and the route depends on a classification that is easy to get wrong. Before any self-help, because Civil Code section 789.3 runs a $100-a-day meter with a $250 floor and a mandatory fee award, and Civil Code section 1940.2 adds up to $2,000 per violation. As soon as money changes hands with an occupant who is not on the lease, because acceptance is the fact most likely to convert the situation. And where the property has recently changed hands, because section 1161a, section 1161b and section 1946.1 supply three different notice periods and the wrong one restarts the clock.
Several adjacent questions are covered separately: what the unlawful detainer lawsuit involves, which notice period applies to which situation, how a landlord decides whether a breach justifies a notice, who is liable when several people share a lease, and what defenses arise once an eviction has been filed.
Work with Bay Legal
Bay Legal, PC represents California property owners in possession disputes involving squatters, holdover occupants, and unauthorized residents, and advises on the notice and route decisions that determine how long recovery takes. If someone is in your property who should not be, call (650) 668-8000 in Northern California or (213) 668-8000 in Southern California, or schedule a consultation at https://baylegal.com/contact-us/.
Frequently Asked Questions
What is the difference between a squatter, a holdover tenant, and a guest?
A holdover tenant came in with permission under a tenancy that has since ended, hired the property, and sits inside the unlawful detainer chapter – which also covers a servant, employee, agent, or licensee whose relationship has been lawfully terminated. A guest came in with permission from the owner or a tenant and has not hired anything, so their position derives from whoever let them in. A true squatter took possession without permission from anyone with authority and is not a “tenant” for the chapter’s purposes, which is what complicates the route.
Can a California owner remove an occupant without a court order?
Except for a single lodger in an owner-occupied home, no. Interrupting utilities or changing the locks with intent to terminate an occupancy exposes the owner to actual damages plus up to $100 for each day of violation, never less than $250 per cause of action, with attorney’s fees to the prevailing party mandatory rather than discretionary. A separate statute adds a civil penalty of up to $2,000 per violation for conduct aimed at influencing a tenant to vacate.
When does an occupant gain tenant rights?
There is no day count, and the idea that thirty days converts a guest into a tenant is not in the statutes. What matters is whether the person hired the property – whether they pay or promised to pay for occupancy, whether payments were accepted, whether they were given exclusive use of a defined space, and whether they were treated as having a right to stay rather than a permission that could be withdrawn. Accepting money from someone who is not on the lease is the single act most likely to answer that question against the owner.
What is the correct legal process to regain possession?
Where the occupant is a tenant or subtenant, an unlawful detainer: the notice the situation requires, service by one of the three permitted methods, a complaint, a response due within 10 days excluding weekends and judicial holidays, and trial no later than the 20th day after the request to set it. Where title has been perfected through a sale or foreclosure, a three-day notice to quit under a different section, with longer notice for a tenant of a sold rental unit. Where possession was taken by force or during the occupant’s absence, forcible detainer, though its conditions are narrow. Otherwise ejectment.
How does adverse possession actually work and how rare is it?
It requires five continuous years of occupation and, critically, timely payment by the claimant of all state, county, and municipal taxes levied on the land throughout that period, proved by certified county tax collector records. Where the claim rests on no written instrument, the land must also have been protected by a substantial enclosure or usually cultivated or improved. Because the owner is the one paying the taxes on an occupied home, the doctrine almost never reaches this situation. Delay creates evidentiary and procedural problems, not a risk to title.



