Is Sleeping in Your Car Legal in California? (2026)
Partially — Sleeping in Your Car is legal with restrictions in California as of 2026.
Law changed in 2024: In 2024, a federal court ruling (Johnson v. Grants Pass) has limited the ability of cities to punish homeless individuals for sleeping in public when no shelter is available, which may affect enforcement. However, cities like Carlsbad have recently e...
Quick Answer
Sleeping in your car is not explicitly illegal under California state law, but many cities and municipalities have local ordinances prohibiting overnight parking or vehicle habitation. In 2024, a federal court ruling limited cities' ability to enforce anti-camping laws under certain circumstances. Check local rules before sleeping in your vehicle.
What the Law Says
While no statewide law bans sleeping in a car, California Vehicle Code allows local authorities to regulate it. Many cities, such as Los Angeles (LAMC 85.02) and San Mateo, have ordinances that prohibit using a vehicle for habitation, often with specific time and location restrictions.
— Cal. Penal Code § 647
| Category | Details |
|---|---|
| State Law | No state ban, but local ordinances may prohibit |
| Common Local Rules | N/A |
| Potential Penalties | Local fines, towing, or trespassing charges possible. |
| Pending Legislation | None known |
In 2024, a federal court ruling (Johnson v. Grants Pass) has limited the ability of cities to punish homeless individuals for sleeping in public when no shelter is available, which may affect enforcement. However, cities like Carlsbad have recently expanded their camping bans to include vehicles.
Enforcement Reality
While no state law prohibits sleeping in a car, enforcement is highly dependent on local ordinances. Many cities, such as Los Angeles (LAMC 85.02) and San Mateo, have specific prohibitions on vehicle habitation, especially overnight. Enforcement can range from warnings to fines, particularly in coastal and urban areas.
A common mistake is assuming that the absence of a state law means it's legal everywhere. Many cities have strict local ordinances. Another mistake is parking in areas with posted restrictions or on private property, which can lead to immediate towing or fines.
Local Exceptions
State law sets the baseline. These cities or counties have additional rules that may differ:
Bottom Line
Sleeping in Your Car is legal with restrictions in California. This activity is permitted, but specific conditions apply. Violating those conditions can result in fines or criminal charges. Read the rules carefully and consult an attorney if unsure.
California vs. the Rest of the US
Across the US, sleeping in your car is fully legal in 37 states, restricted in 13, and illegal in 0. California falls in the RESTRICTED category.
View the full 50-state map →Reviewed by cross-referencing the cited state statute against current legislative databases and regulatory publications.
Sources & Verification
This page was reviewed by Ethan Harper by comparing the legal status against the cited state statute. AllowedHere is an informational resource and does not provide legal advice. Consult a licensed attorney for guidance specific to your situation.
Comprehensive California Legal Guides
Explore all related legal topics in California — statutes, penalties, and enforcement in one place.