- 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.
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.