TL;DR Is it illegal to sleep in your car? It depends on where you park — no one national law decides it. Sleeping is rarely the problem; the spot is. A private lot runs on the owner’s permission and trespassTrespass: entering or staying on someone else’s property without permission. In Texas (Penal Code § 30.05) it becomes a crime once you had notice to keep out, or were told to leave and stayed. law, some cities have an ordinanceOrdinance: a law passed by a city or county. It applies only inside that city or county, which is why the answer can change when you cross a city limit. against sleeping or living in a vehicle, and state rest areas set time limits: 24 hours in Texas, 8 in California, 3 in Florida. One trap catches people who were trying to be responsible: in Texas, Florida, and Minnesota, sleeping it off behind the wheel can still bring a DUI charge, under what some states call actual physical controlActual physical control: wording in some DUI laws that reaches a person who is not driving but is in a position to start and move the vehicle. Texas uses the word “operating” instead, with a similar effect.. If an officer knocks, stay calm, explain that you were too tired to drive, and move if you are told to.
Too Tired to Drive, Nowhere to Stay: Where Can You Legally Park and Sleep?
It is 1:40 a.m. on the interstate. You have been driving since noon, the lane lines are starting to blur, and the next motel you can afford is two hours away. You take the exit. There is a state rest area, a big store lot with the lights still on, and a quiet residential street. Three places to park, and three different sets of rules: a state time limit, a private owner’s permission, and whatever the city council wrote into its code. Some people reading this are on a road trip. Some are sleeping in a car because there is nowhere else to go tonight. The law is the same for both. This guide takes it one location at a time, then covers drinking and what to say when a flashlight taps the glass.
Is It Illegal to Sleep in Your Car? The Short Answer
We found no federal statute that makes sleeping in a parked car a crime across the country. The rules come from four other places: whoever owns the ground under your tires, the city, the state, and — on public land — the federal agency in charge of it. Cities and states have wide room to write those rules. In City of Grants Pass v. Johnson (2024), the Supreme Court ruled 6–3, in an opinion by Justice Gorsuch, that enforcing generally applicable laws regulating camping on public property is not “cruel and unusual punishment” under the Eighth Amendment. The Oregon city’s ordinances covered sleeping on sidewalks and streets, camping on public property, and camping and overnight parking in city parks. An earlier Ninth Circuit ruling, Martin v. Boise, had barred criminal penalties for sleeping outside on public property when a homeless person could not obtain shelter; Grants Pass ended that rule. The Court did not create a crime. It left the choice to local and state lawmakers. So the practical answer is a checklist. Private land — you need permission. City streets — read the signs and the city code. Rest areas — follow the posted limit. Federal land — use the places open to camping. And after drinking — the driver’s seat is a legal risk even when the car never moves.
Sleeping in Your Car, Place by Place
Situation 1 · Private property Store lots, gas stations, apartment complexes — the owner decidesA parking lot open to customers is still private property. Under Texas Penal Code § 30.05, a person commits criminal trespass by entering or remaining on someone else’s property without effective consent when the person had notice that entry was forbidden, or received notice to depart and failed to do so. Notice can be spoken, written, or posted on a sign.
A store that lets travelers park overnight is giving permission, not recognizing a right, and it can take that permission back with a sign or one sentence from a security guard. Ask inside first. If you are told to leave, leave; staying is what turns a nap into a trespass case.
Situation 2 · City streets Local ordinances and state camping laws — the rule that changes at the city limitSome cities regulate vehicle dwelling directly. San Diego Municipal Code § 86.0137 bars using a vehicle for habitation on streets or public property between 9 p.m. and 6 a.m., and at any time within 500 feet of a residence or school. A December 2023 police training bulletin tells officers not to enforce the nighttime restriction when legal parking options, including safe parking lots, are full, closed, or not reasonably available. Los Angeles Municipal Code § 85.02 bars using a vehicle as a dwelling between 9 p.m. and 6 a.m. on any residential street, and at any time within one block (500 feet) of a park, school, preschool, or daycare. Its status matters: the section’s own text says it expires on January 1, 2020 unless extended by ordinance, and the published code shows no amendment after August 2019.
State camping laws treat vehicles differently:
- Texas — Penal Code § 48.05 makes camping in a public place without consent a Class C misdemeanor. “Camp” means residing temporarily in a place with shelter, such as a tent, tarp, sleeping bag, or blankets. The text does not mention vehicles.
- Florida — § 125.0231 stops cities and counties from allowing regular public camping or sleeping on public property, but the definition excludes “Lodging or residing overnight in a motor vehicle that is registered, insured, and located in a place where it may lawfully be.”
- Kentucky — KRS 511.110, the unlawful camping statute, says it does not prevent a person from sleeping temporarily in a vehicle parked lawfully on a public road, street, or parking lot for less than 12 hours.
- Indiana — Senate Enrolled Act 285, effective July 1, 2026, bars camping, sleeping, or long-term shelter on state or local government land not authorized for it. A first contact brings a warning; the misdemeanor applies only if the person is within 300 feet of that spot at least 48 hours later. The chapter does not mention vehicles.
Situation 3 · Rest areas State highway rest stops — legal for a while, and the clock is postedTxDOT lists 76 Texas safety rest areas with restrooms open 24 hours a day. Each state sets its own time limit:
- Texas — Transportation Code § 545.411: it is an offense to remain at a rest area longer than 24 hours, or to put up a tent or structure, if a sign gives notice or an officer tells you. After an officer’s notice you have eight hours to leave.
- California — 21 CCR § 2205: no more than 8 hours in any 24-hour period, and camping is prohibited.
- Washington — RCW 47.38.020: no more than 8 hours within a 24-hour period, and no camping.
- Florida — Rule 14-28.002: up to 3 hours, or up to 10 hours for commercial motor vehicle operators. Camping is prohibited.
- Virginia — 24VAC30-51-30, effective March 11, 2026: “No overnight parking is permitted in rest areas.”
Read the sign as you pull in. In four of these five states a rest area is a lawful place to sleep, but only inside the posted limit.
Situation 4 · Federal land National forests, BLM land, and national parks — three different answersOn Bureau of Land Management land, dispersed camping is generally limited to 14 days within any 28-day period, though limits vary by field office. National forests set their own: the Black Hills National Forest allows up to 14 days in any 60-day period, and a Mendocino National Forest order allows 14 days within any 30-day period.
National parks are stricter. Federal regulations define camping to include the “parking of a motor vehicle, motor home or trailer, or mooring of a vessel for the apparent purpose of overnight occupancy” (36 CFR § 1.4), and they prohibit camping outside designated sites or areas (36 CFR § 2.10). Sleeping in your car at a park pullout or trailhead is camping under that definition, so use a campground.
Situation 5 · After drinking Sleeping it off in the driver’s seat — the DUI problemTexas Penal Code § 49.04(a) says: “A person commits an offense if the person is intoxicated while operating a motor vehicle in a public place.” The word is operating, not driving, and the chapter does not define it. Texas courts apply the test from
Denton v. State (Tex. Crim. App. 1995): looking at all the circumstances, did the person take action to affect the functioning of the vehicle in a way that would enable its use? In
Freeman v. State (Tex. App.—Dallas 2002), a driver found asleep with the engine running and the gearshift in drive had her DWI conviction upheld.
Other states draw the line elsewhere. Florida’s DUI statute, § 316.193, reaches anyone “driving or in actual physical control of a vehicle.” In State v. Fleck (Minn. 2010), the Minnesota Supreme Court upheld a conviction of a man asleep behind the wheel in his own apartment parking spot, engine off and cold, keys in the center console. California’s Supreme Court went the other way in Mercer v. Department of Motor Vehicles (1991), holding that “drive” requires proof the vehicle actually moved, while noting that other charges, such as public intoxication, can still apply.
These cases turn on where the person sat, where the keys were, whether the engine was running, and what gear the car was in. Texas also has a public intoxication offense (Penal Code § 49.02) that needs no vehicle. A ride, a friend’s couch, or a room avoids the question entirely.
What to Say When an Officer Knocks on Your Window
Calm, short, and truthful
A knock on the glass is often a welfare check — work the Supreme Court has described as “community caretaking functions, totally divorced from the detection, investigation, or acquisition of evidence relating to the violation of a criminal statute.” Turn on the interior light, keep your hands visible, and lower the window enough to talk.
“Good evening, officer. I got too tired to drive safely, so I pulled over to sleep.”
If you are not sure the spot is allowed:
“Is it a problem for me to be parked here? If it is, I’ll move.”
If you are told to move but you are not safe to drive:
“I’m not able to drive safely right now. Can I call someone for a ride, or walk from here?”
If the questions keep going:
“Am I being detained, or am I free to go?”
If the officer asks to look through the car:
“I don’t consent to a search.”
Do not argue about the ordinance at the window, and never give a false name. Three guides go deeper:
when you have to show ID to police,
your rights during a traffic stop, and
when police can search your car.
Sleeping in Your Car: What You Can vs. Can’t Do
✓ YOU CAN USUALLY
- Sleep at a state rest area inside the posted time limit
- Sleep in a private lot when the owner or manager has said yes
- Sleep in your vehicle on BLM or national forest land open to dispersed camping, within the stay limit
- Ask whether you are free to go, and decline consent to a search
✗ YOU CAN’T
- Stay on private property after you have been told to leave
- Ignore a city ordinance or a no-overnight-parking sign because you are only sleeping
- Outstay a rest-area limit, or park overnight where the state bans it, like Virginia
- Sleep in your car in a national park outside a designated campsite
- Assume a parked car protects you from a DUI charge after drinking
- Give an officer a false name — a crime under Texas Penal Code § 38.02 if you are detained or arrested
The engine trap: running the engine for heat or air conditioning creates two problems. The first is safety. The CDC says “Carbon monoxide (CO) is an odorless, colorless gas that kills without warning,” that it is in the fumes from cars and trucks, and that a small exhaust leak can let it build up inside a car. People who are asleep or have been drinking can die before they notice symptoms. Never idle in a garage or any enclosed space. The second problem is legal: a running engine is one of the facts courts point to in “operating” cases.
Myths About Sleeping in Your Car, Busted
Myth: “Sleeping in your car is illegal everywhere.”
False. Texas lets you stay at a rest area for up to 24 hours, Kentucky’s camping law leaves room for under 12 hours in a lawfully parked vehicle, and Florida’s public camping law excludes a registered, insured, lawfully parked vehicle.
Myth: “Store parking lots are open to the public, so I have a right to stay overnight.”
False. Open to customers is not public property. Overnight parking there is permission from the owner, and once you are told to leave, staying can be criminal trespass.
Myth: “If the engine is off, I can’t get a DUI.”
Not safe to assume. In State v. Fleck, the engine was off and cold, the keys were in the console, and the conviction stood. It depends on your state’s wording and the facts.
Myth: “The Supreme Court made it a crime to sleep in your car.”
False. Grants Pass held that enforcing camping laws on public property does not violate the Eighth Amendment. It created no offense; each city and state still writes its own rules.
Sleeping-in-Your-Car Questions People Actually Ask
Tap a question to open it.
Is it illegal to sleep in your car in Texas?
Not by itself under the state statutes covered here. Texas’s public camping statute, Penal Code § 48.05, does not mention vehicles, and Transportation Code § 545.411 allows up to 24 hours at a rest area. The limits come from trespass law (§ 30.05), city ordinances, and the DWI and public intoxication statutes. Check your city’s code, because cities can add rules.
Can you sleep in your car at a rest stop?
In four of the five states we checked, yes, for a limited time. Texas allows up to 24 hours, California and Washington allow 8 hours in a 24-hour period, and Florida allows 3 hours for most drivers. Virginia’s rule says no overnight parking is permitted in rest areas. Camping or pitching a tent is prohibited in all five.
Can you sleep in your car in a Walmart or other store parking lot?
Only with the store’s permission. A store lot is private property, and permission is up to the store. Ask a manager first. If you are told to leave, go — in Texas, remaining after notice to depart is criminal trespass under Penal Code § 30.05.
Can you get a DUI for sleeping in your car?
Yes, in some states. Texas’s DWI law covers “operating” a vehicle, and a Texas court upheld the conviction of a driver asleep with the engine running and the car in drive. Florida’s law covers “actual physical control,” and Minnesota’s high court upheld a conviction with the engine off. California requires proof the vehicle moved, though other charges remain possible.
Can police knock on your window and make you move?
Yes, an officer can check on you, and can enforce a posted time limit, a city ordinance, or a property owner’s request that you leave. Stay calm, explain why you stopped, and move if told to. If you cannot drive safely, say so and ask to call for a ride.
Is it legal to sleep in your car on a residential street?
It depends on the city. San Diego’s code bars vehicle habitation on streets from 9 p.m. to 6 a.m., and at any time within 500 feet of a residence or school. Los Angeles wrote a similar rule in § 85.02, though its text says it expires in 2020 unless extended. Search your city’s code for “camping” and “vehicle,” and read the signs on the block.
Is it illegal to live in your car, and where can you get help?
No single law answers that; the same local rules apply, and ordinances aimed at “dwelling” or “habitation” are written for this situation. If you need shelter tonight, dial 211, a confidential line answered around the clock that connects callers with local housing and shelter help. If you are 18 and were just told to leave home, see
whether your parents can kick you out at 18.
Sleeping in Your Car: Key Terms, Explained
Trespass — entering or staying on property without the owner’s consent after notice. The law that governs private parking lots.
Ordinance — a city or county law. Vehicle dwelling and overnight parking rules usually live here.
Camping ban — a law against camping or sleeping on public property. Some exclude vehicles and some do not say.
Dispersed camping — camping on federal land outside a developed campground, allowed on BLM and national forest land with a stay limit.
Actual physical control — DUI wording that reaches a person positioned to start and move a vehicle, even if it never moved.
Welfare check — an officer checking whether someone is okay. Courts call this community caretaking.
The Law Behind Sleeping in Your Car
Links to the full texts are in Sources below.
City of Grants Pass v. Johnson (2024)The Supreme Court held, 6–3, that enforcing generally applicable camping laws on public property is not cruel and unusual punishment. Justice Gorsuch wrote the opinion; Justice Sotomayor dissented, joined by Justices Kagan and Jackson.
Martin v. City of Boise (9th Cir. 2019)The earlier rule in the Ninth Circuit: no criminal penalties for sleeping outside on public property when a homeless person could not obtain shelter. Grants Pass rejected it.
Desertrain v. City of Los Angeles (9th Cir. 2014)The Ninth Circuit struck down an earlier version of Los Angeles’s § 85.02 as unconstitutionally vague. The section now in the code names specific hours and locations.
Texas Penal Code § 49.04 and Denton v. State (1995)The Texas DWI statute uses the word “operating,” and the Court of Criminal Appeals reads it by looking at everything the person did to make the vehicle usable.
Vehicle Sleeping Law That’s Still Moving
The edges to watch as of October 2026:
- State camping laws after Grants Pass — Florida’s and Kentucky’s statewide laws date from 2024, and Indiana’s took effect July 1, 2026. Each handles vehicles differently.
- City vehicle ordinances — in February 2026 the Colorado Springs City Council voted 7–2 for an ordinance against vehicle camping on public property, according to local news reports.
- Federal pressure — Executive Order 14321, signed July 24, 2025, tells federal agencies to give grant priority to states and cities that enforce prohibitions on urban camping.
- Texas — Senate Bill 241, which would have pushed cities to enforce the state camping ban more strictly, passed the Senate but did not become law in 2025, the Texas Tribune reported.
When these move, this article gets updated.
One important note: this question is decided locally. The state examples here are Texas, California, Florida, Washington, Virginia, Kentucky, Indiana, and Minnesota; your state, county, and city may differ on every point. Read the signs before you park, and search your city’s municipal code for “camping” and “vehicle.” For how the layers fit together, see
how federal and state law interact.
The Bottom Line on Whether It Is Illegal to Sleep in Your Car
The law does not ask whether you were asleep. It asks whose ground you were on and what that owner, city, state, or agency allows. A rest area gives you a set number of hours. A store lot gives you whatever the manager says. A city street gives you whatever the council wrote. A national park gives you a campsite or nothing. And if you have been drinking, the driver’s seat can be a charge of its own. So read the sign, ask permission, keep the engine off, and move when you are told to. Pulling over when you are too tired to drive is the right call; the only question is where. Now you know.
Sources
Primary sources:
- City of Grants Pass v. Johnson, 603 U.S. ___ (2024) — full opinion — supreme.justia.com
- Martin v. City of Boise, 920 F.3d 584 (9th Cir. 2019) — law.justia.com
- Desertrain v. City of Los Angeles, No. 11-56957 (9th Cir. 2014) — law.justia.com
- Cady v. Dombrowski, 413 U.S. 433 (1973) — supreme.justia.com
- Texas Transportation Code § 545.411 — use of rest area — law.justia.com
- TxDOT — safety rest area list — txdot.gov
- Texas Penal Code § 30.05 — criminal trespass — statutes.capitol.texas.gov
- Texas Penal Code § 48.05 — prohibited camping — statutes.capitol.texas.gov
- Texas Penal Code §§ 49.02 and 49.04 — public intoxication and driving while intoxicated — statutes.capitol.texas.gov
- Texas Penal Code § 38.02 — failure to identify — statutes.capitol.texas.gov
- Freeman v. State, No. 05-00-01920-CR (Tex. App.—Dallas 2002), applying Denton v. State, 911 S.W.2d 388 (Tex. Crim. App. 1995) — caselaw.findlaw.com
- Florida Statutes § 316.193 — driving under the influence — flsenate.gov
- State v. Fleck, No. A08-0072 (Minn. Jan. 21, 2010) — mn.gov
- Mercer v. Department of Motor Vehicles, 53 Cal.3d 753 (1991) — scocal.stanford.edu
- Los Angeles Municipal Code § 85.02 — use of vehicles for dwelling — codelibrary.amlegal.com
- San Diego Police Department document OR 19-11 — vehicle habitation ordinance (Municipal Code § 86.0137), May 16, 2019 — sandiego.gov
- San Diego Police Department Training Bulletin 23-17 — enforcement of vehicle habitation, December 20, 2023 — sandiego.gov
- Florida Statutes § 125.0231 — public camping and public sleeping — flsenate.gov
- Kentucky Revised Statutes § 511.110 — unlawful camping — legislature.ky.gov
- Indiana Senate Enrolled Act 285 (2026) — iga.in.gov
- California Code of Regulations, title 21, § 2205 — safety roadside rest areas — law.cornell.edu
- Revised Code of Washington § 47.38.020 — limitations on use of rest areas — leg.wa.gov
- Florida Administrative Code Rule 14-28.002 — public use of rest areas — law.cornell.edu
- Virginia Administrative Code, 24VAC30-51 — waysides and rest areas — law.lis.virginia.gov
- 36 CFR § 1.4 — National Park Service definitions — ecfr.gov
- 36 CFR § 2.10 — camping and food storage — ecfr.gov
- Bureau of Land Management — camping on public lands — blm.gov
- Black Hills National Forest — dispersed camping — fs.usda.gov
- Mendocino National Forest — dispersed camping stay limits, Order 08-25-16 — fs.usda.gov
- Executive Order 14321, Ending Crime and Disorder on America’s Streets (July 24, 2025) — govinfo.gov
- CDC — carbon monoxide poisoning basics — cdc.gov
- 211 — about the 211 network — 211.org
Secondary sources:
LawJustic is for educational purposes only and does not provide legal advice. Rules on sleeping in a vehicle vary by state, county, and city and change often. If you have been cited or charged, contact a licensed attorney in your state. Last reviewed: October 2026.