Tools Blog
State Guide

Sleeping in Your Car in Texas: What the Law Says

Texas Penal Code 48.05 bans camping in public places, but its shelter definition does not name a vehicle. What that means for a night in your car.

▸ State rules
RuleStatusLimitSourceVerified
Sleeping in your carStatewide, plus local ordinancesVariesLimitNo posted hour cap foundcapitol.texas.gov/tlodocs/87R/billt…Verified2026-07-17
The fine print
No statute bans sleeping in a vehicle by name, but Penal Code 48.05 makes camping (residing temporarily with shelter) in a public place without consent a Class C misdemeanor; a vehicle is not named in the shelter definition, so one night of rest in a legally parked car is not clearly covered, while living in a vehicle with bedding on public property may be. Does not apply on private property with permission. Local ordinances vary 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.

Texas does not ban sleeping in a vehicle by name, but since 2021 it has a statewide public camping ban, and the honest answer lives in the gap between those two facts. The statute is Penal Code 48.05, created by HB 1925, and we verified its text on 2026-07-17.

What state law says

The operative line: “A person commits an offense if the person intentionally or knowingly camps in a public place without the effective consent of the officer or agency having the legal duty or authority to manage the public place.” It is a Class C misdemeanor, the same grade as a traffic ticket.

The word doing the work is camps, defined as residing temporarily in a place with shelter. The statute lists what counts as shelter, and a vehicle is not named in that definition. So the statute splits your question into two different nights:

One night of rest in a legally parked car is not clearly covered. You are not obviously residing anywhere, and your car is not a listed shelter.

Living in a vehicle on public property, with bedding, gear, and the look of a residence, may be covered. That is much closer to what the statute describes, and we are not going to tell you it is safe.

Two boundaries are clean. The statute only reaches public places, so a private lot with the owner’s permission is outside it entirely. And it does not repeal local law: Texas cities keep their own parking and camping ordinances, which vary widely.

Where people actually get in trouble

The predictable places. Public parks and plazas after hours, where 48.05 and local ordinances stack. Private lots without permission, which is trespassing regardless of the penal code. Posted streets, where the sign is the law that gets enforced. The sign always beats this page.

The clearest legal option in Texas is a rest area: Transportation Code 545.411 allows up to 24 hours, tents excluded, detailed on the Texas rest areas page. A truck stop with permission is the private-property version of the same answer.

How to check locally

Look up the code of ordinances for the city you are stopping in; the big Texas metros each regulate this differently. Ask the manager before staying in any business lot. And if you are stringing nights together, free camping in Texas on public land built for it beats testing the edges of a penal statute.

Frequently asked questions

Can you sleep in your car in Texas?

No Texas statute bans sleeping in a vehicle by name. The relevant law is Penal Code 48.05, passed in 2021, which makes camping in a public place without consent a Class C misdemeanor. Camping there means residing temporarily with shelter, and a vehicle is not named in the shelter definition, so one night of rest in a legally parked car is not clearly covered. Living in a vehicle with bedding set up on public property may be. Private property with permission is outside the statute entirely, and cities add their own ordinances. Verified 2026-07-17.

Is it illegal to live in your car in Texas?

On public property, it may be. Penal Code 48.05 targets residing temporarily in a public place with shelter, and a car being used as a residence, with bedding and gear, looks a lot more like what the statute describes than a driver napping does. On private property with the owner's consent, the statute does not apply at all. We cannot give you a bright line because the statute does not draw one.

Can you sleep at a Texas rest area?

Yes, for up to 24 hours. Texas Transportation Code 545.411 makes it an offense to remain longer than 24 hours or to erect a tent or structure. Sleeping inside your vehicle within that window is lawful. That makes rest areas the clearest legal option in the state.

Can Walmart or a truck stop let you stay overnight in Texas?

Yes. Penal Code 48.05 only applies to public places without consent. A private lot where the owner or manager permits overnight parking is outside the statute. Whether a given store allows it is the store's call, so ask inside.

Next step

Check the rules in your state.

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