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
None identified. State law applies uniformly across California. Local ordinances may still vary — check with your city or county government for any additional rules.
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 38 states, restricted in 12, and illegal in 0. California falls in the RESTRICTED category.
View the full 50-state map →Neighboring States
Laws change at state lines. Here is how bordering states compare on Sleeping in Your Car:
Frequently Asked Questions
Is sleeping in your car legal in California?
What are the restrictions on sleeping in your car in California?
What mistakes do people make with sleeping in your car in California?
Does the law on sleeping in your car change at the California border?
Interactive Tools
See your overall risk score for California based on all your activities.
Get Risk Score →See how Sleeping in Your Car laws change if you relocate from California.
Relocation Analyzer →Check if Sleeping in Your Car laws change at state borders on your route.
Plan Your Trip →Get Sleeping in Your Car Legal Updates
Get notified when sleeping in your car laws change in any state.
No spam. Unsubscribe anytime.
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.