Skip to content
Rules & law

Is It Illegal to Sleep in Your Car?

No federal law forbids sleeping in your car. Whether it’s legal tonight depends on three things: where you park, who owns the ground, and whether you’ve been drinking.

Sinan Cekic
IT enthusiast · builds free data tools

Published Oct 27, 2026 · Updated Oct 27, 2026 · 7 min read

Key takeaways

  • There is no federal or statewide ban on sleeping in a car in general – the limits come from cities, property owners and rest area rules.
  • Many cities ban living or sleeping in vehicles on public streets, sometimes only at night or in certain zones.
  • Rest areas usually allow a few hours of rest; camping is what’s banned.
  • Sleeping it off can still be a DUI in many states if you’re in “physical control” of the vehicle.
On this page
  1. The short answer
  2. Rest areas and rest stops
  3. City streets and local ordinances
  4. Private property: stores, truck stops and parking lots
  5. Public land: national forests and BLM land
  6. Sleeping in your car after drinking
  7. How to sleep in your car legally and safely
  8. Truck drivers: sleeping in the cab

The short answer

Sleeping in your car is not a crime in itself anywhere in the United States. There is no federal law against it, and no state bans the act of sleeping in a vehicle everywhere. But that doesn’t mean you can do it anywhere. Whether you can legally sleep in your car tonight depends on where you park, who owns the ground, and what state you’re in when it comes to alcohol.

Think of it in layers. State law sets rules for state property such as rest areas. Cities and counties set rules for their streets and parks. Private owners set rules for their lots. And separate from all of that, DUI laws can apply to a parked car. This guide walks through each layer.

Rest areas and rest stops

Rest areas are the most common place to sleep in a car on a road trip – and the easiest to get right. Most states allow a rest stop for a few hours; what they ban is camping. Limits we verified range from 2 hours in Pennsylvania and Tennessee to 8 hours in California and Washington and 24 hours in Texas.

Our guide Can you sleep at rest areas? has a state-by-state table with the official source for each limit. The rule of thumb: sleep inside the vehicle, stay within the posted time, and don’t set anything up outside.

City streets and local ordinances

Cities are where most problems start. Many municipalities have ordinances that prohibit using a vehicle as living quarters, sleeping in a parked vehicle on public streets, or overnight parking in certain areas. Some apply only between certain hours, some only near homes, schools or parks, and some only to oversized vehicles such as RVs.

These ordinances change often and differ from one city to the next, even within the same metro area. Signs at the curb (“No parking 2 a.m.–6 a.m.”, “No overnight parking”) are the quickest clue. If you’re not sure, a non-emergency call to the local police is better than a knock on the window.

Parking rules apply too, sleeping or not: street sweeping, permit zones and maximum parking times can get you a ticket or a tow even if no one minds that you’re asleep.

Private property: stores, truck stops and parking lots

On private property, the owner decides – within local law. A store or truck stop can allow overnight parking, forbid it, or allow it only with permission. Some well-known chains have tolerated overnight parking at many locations, but the decision is usually up to the store manager and local rules, and many stores in larger cities don’t allow it.

Without permission, staying on private property after you’ve been asked to leave can count as trespassing. The safest approach is to ask inside, park at the edge of the lot, and leave early. Our free overnight parking guide covers the common options and their etiquette.

Public land: national forests and BLM land

Much of the federal land in the West is open to dispersed camping, which includes sleeping in your vehicle. The Bureau of Land Management generally allows dispersed camping for up to 14 days in a 28-day period, and national forests have similar limits. Local closures, fire restrictions and special rules apply, so check the agency’s page for the specific area before you go.

National parks are stricter: sleeping in your car is usually only allowed in designated campgrounds, not in trailhead lots or along park roads.

Sleeping in your car after drinking

This is the one that surprises people. In many states, you can be charged with DUI or DWI while parked if you are in “actual physical control” of the vehicle – for example, sitting in the driver’s seat with the keys in the ignition or the engine running for heat. Courts look at the whole picture: where you sit, where the keys are, whether the engine or lights are on, and where the car is parked.

If you’ve been drinking, the safest option is not to sleep in your car at all. If you must, sit in the back seat, keep the keys out of the ignition and out of reach, and keep the engine off. Rules differ by state, and nothing here is legal advice.

How to sleep in your car legally and safely

  • Pick places that explicitly allow it: rest areas within their limit, truck stops that permit it, campgrounds, or public land open to dispersed camping.
  • Read every sign at the entrance – time limits and “no overnight parking” rules are almost always posted.
  • Keep a low profile: no cooking, chairs or gear outside the vehicle.
  • Crack a window slightly for fresh air, and never run the engine with the exhaust blocked (snow, a wall, a garage).
  • Lock the doors, keep the key within reach and park in a well-lit area near other vehicles.
  • Be ready to move on politely if asked – arguing is rarely worth it at 2 a.m.

Truck drivers: sleeping in the cab

For commercial drivers, sleeping in the vehicle is part of the job. Federal hours-of-service rules require property-carrying drivers to take 10 consecutive hours off duty after 11 hours of driving, and the sleeper berth is where most of them spend it. The legal question for truck drivers is less “may I sleep” than “where may I park this truck for 10 hours” – which is why truck parking is scarce near cities in the evening. See our truck parking and truck stops pages.

Find the next rest area on your route

Every stop with direction of travel, exit and amenities.

Open the map

Frequently asked questions

Can you sleep in your car at a rest stop?

In most states, yes, within the posted time limit. Camping – tents, chairs or setting up outside – is banned almost everywhere. See our state-by-state table in “Can you sleep at rest areas?”.

Is it illegal to sleep in your car in a parking lot?

Not by itself. On private property it’s up to the owner and local rules; if you’re asked to leave and don’t, it can become trespassing. Ask first if you can.

Can you get a DUI while sleeping in your car?

In many states, yes, if you are in “actual physical control” of the vehicle while intoxicated – for example in the driver’s seat with the keys in the ignition. If you’ve been drinking, don’t sleep in the driver’s seat with the engine on.

Is it legal to sleep in your car on the street?

That depends on the city. Many cities ban sleeping in or living in vehicles on public streets, often at night or in certain areas. Check posted signs and local ordinances.

Sources

  1. BLM – Camping on public lands
  2. FMCSA – Summary of Hours of Service Regulations
  3. Cal. Code Regs. tit. 21, § 2205
  4. Tex. Transp. Code § 545.411
  5. 67 Pa. Code § 443.2
  6. TDOT – Welcome Centers & Rest Areas

Rules change. If you find an error, tell us – see our editorial policy for how we check facts.

Sinan Cekic
IT enthusiast · builds free data tools

Sinan is an IT enthusiast from Bad Homburg, Germany, who builds free tools that turn open data into answers for everyday problems – from bike pumps (bike-pump.com) to rest stops. He doesn’t drive a truck for a living; every rule in these guides comes from the state or federal source linked next to it.