Tools Blog
State Guide

Sleeping in Your Car in California: What the Law Says

No California law bans sleeping in your car statewide. CVC 22507 lets each city write its own parking rules, which is why the answer changes at every city line.

▸ State rules
RuleStatusLimitSourceVerified
Sleeping in your carStatewide, plus local ordinancesVariesLimitNo posted hour cap foundleginfo.legislature.ca.gov/faces/codesTOCSel…Verified2026-07-17
The fine print
No CVC division creates a vehicle-habitation offense. CVC 22507 authorizes LOCAL parking restrictions by ordinance, which is why vehicle-dwelling rules in California are municipal (LA and many cities have their own). Local ordinances vary widely by city.

Parking overnight to sleep and camping are two different acts under most rules. Camping usually means setting up outside the vehicle: a tent, an awning, chairs, a fire. Staying inside a legally parked vehicle is often treated differently. Which one applies to you.

Always check locally

The posted sign and the officer on the ground beat this table. Rules change; the date above is when we last checked.

No California state law bans sleeping in your car. What the state does instead is delegate. Vehicle Code section 22507 authorizes cities and counties to restrict parking by local ordinance, which is why the rules change at every city line and why the honest answer to “is it legal in California” is “in which city?” We verified the Vehicle Code on 2026-07-17.

What state law says

No division of the California Vehicle Code creates a vehicle-habitation offense. That is the verified statewide answer, and it is worth being precise about because so many people assume California banned car sleeping outright. It did not. It built a machine for cities to do it themselves: CVC 22507 hands local governments the authority to restrict parking by ordinance, and vehicle-dwelling rules in California are municipal as a result. Los Angeles has its own and is the famous example, but many cities have written their own versions. Our table says “varies” because that is the verified structure of the law, not because we did not look.

Where people actually get in trouble

In California the main risk is exactly the thing the state authorized: local vehicle-habitation and overnight-parking ordinances, often street-by-street and hour-by-hour. That makes posted signs unusually important here, because the sign is frequently the only visible evidence of which ordinance covers that block. The sign wins over this page and over whatever an app told you. The other constant is private property: a lot belongs to its owner, permission is the rule, and a quiet night without it is still trespassing.

So where can you sleep tonight

Where the rules are written down once instead of 400 times. See California rest area rules for what is verified about overnight parking on state highway property, and free camping in California for the national forest and BLM options, where sleeping in your vehicle is ordinary dispersed camping and the stay limit is published. If you are weighing lots and truck stops, store parking explains how permission works there.

How to check locally

Search the municipal code of the specific city for “vehicle,” “habitation,” “lodging,” and “oversized vehicle,” because California ordinances come in several flavors. Then read the signs on the actual block, including the small print about hours. If a city’s code is ambiguous, assume it has a rule and park somewhere with a written yes instead. In a state with this many jurisdictions, the written yes is worth a detour.

Frequently asked questions

Can you sleep in your car in California?

There is no statewide ban. We verified on 2026-07-17 that no division of the California Vehicle Code creates a vehicle-habitation offense. But CVC 22507 authorizes cities and counties to restrict parking by local ordinance, so the real answer depends on the city you are parked in. Check the local code and the posted signs.

Is it illegal to sleep in your car in Los Angeles?

Los Angeles has its own vehicle-dwelling rules, which is exactly the pattern CVC 22507 makes possible, and many other California cities have their own too. We have not verified the current LA ordinance on this page, so read the city's code and the posted signs before you park there.

Why does every California city have different car-sleeping rules?

Because the state designed it that way. CVC 22507 authorizes local parking restrictions by ordinance, so each city and county writes its own. That is why a street that is fine in one city can be a citation a block away in the next.

Can you sleep in your car at a California rest area?

Rest areas are state property with their own rules, separate from the city-by-city picture on streets. See our California rest area page for what is verified about overnight parking there.

Next step

Check the rules in your state.

All 50 states, every rule cited to an official source and dated.