Criminal trespass in Texas is defined by Penal Code Section 30.05: entering or remaining on someone else’s property without effective consent after receiving notice that entry is forbidden or being told to leave.1State of Texas. Texas Penal Code Section 30.05 – Criminal Trespass It’s always a misdemeanor, but the class depends on where the trespass happened and whether the person was armed. A minor boundary incursion onto farmland can be a $500 fine. Walking into a house, a shelter, or a fenced chemical plant, or carrying a weapon while trespassing anywhere, can mean up to a year in county jail.
What the State Has to Prove
Two elements. First, that you entered or stayed on property belonging to someone else without effective consent. Second, that you either knew entry was forbidden or were told to leave and didn’t. “Entry” under the statute means your entire body crossed onto the property, not just a hand or a foot.1State of Texas. Texas Penal Code Section 30.05 – Criminal Trespass
Effective consent is the concept that trips people up. Consent doesn’t count if it was obtained through deception or coercion. Someone who lies about being a utility worker to get into a fenced yard never had valid consent. Consent can also be revoked: if a homeowner invites you in and then tells you to leave, your continued presence becomes a trespass once you’ve had a reasonable chance to go.
The “without effective consent” element requires the state to show you knew you weren’t welcome. If you genuinely believed you had permission, that cuts against the prosecution. Courts look at the whole picture, including what notice was given and whether a reasonable person in your position would have recognized it.
What Counts as Notice in Texas
Texas recognizes several ways an owner can communicate that entry is off-limits. Any of these is legally sufficient under Section 30.05(b):1State of Texas. Texas Penal Code Section 30.05 – Criminal Trespass
- A verbal or written warning from the owner or someone who appears authorized to speak for the owner.
- A fence or other enclosure obviously designed to keep people out or to contain livestock.
- “No Trespassing” signs or similar postings placed where an intruder would reasonably see them.
- Vertical purple paint marks on trees or fence posts, at least eight inches tall and one inch wide, with the bottom of the mark three to five feet off the ground. Marks must sit no more than 100 feet apart on forested land or 1,000 feet apart on open land.2Texas Parks & Wildlife Department. Frequently Asked Questions – Law Enforcement, Trespassing
- A crop grown for human consumption that is actively being cultivated, harvested, or ready for harvest at the time of entry.
Purple paint carries the same legal weight as a posted sign. The rule exists because signs get stolen, weathered, or torn down in rural areas, and marking miles of ranchland with signage is impractical. If you see purple stripes on a Texas fencepost, you’ve been notified.
Penalty Tiers
Class C Misdemeanor
Trespassing on agricultural land within 100 feet of the boundary, or on residential land within 100 feet of a protected freshwater area, is a Class C misdemeanor. The maximum is a $500 fine with no jail time.1State of Texas. Texas Penal Code Section 30.05 – Criminal Trespass3State of Texas. Texas Penal Code 12.23 – Class C Misdemeanor This tier is for minor boundary incursions rather than deliberate intrusions.
Class B Misdemeanor
Most trespass cases land here. Up to 180 days in county jail and a fine of up to $2,000.4Justia. Texas Penal Code Chapter 12 – Punishments This is the default when no aggravating factor pushes the charge higher.
Class A Misdemeanor
Up to one year in jail and a fine of up to $4,000.4Justia. Texas Penal Code Chapter 12 – Punishments The charge jumps to Class A in any of these situations:
- Trespass on a habitation or shelter center. Habitation includes any structure used for overnight accommodation, such as houses, apartments, and domestic violence shelters.1State of Texas. Texas Penal Code Section 30.05 – Criminal Trespass
- Trespass on a critical infrastructure facility: chemical plants, refineries, power stations, water treatment plants, natural gas facilities, telecommunications offices, ports, railroad yards, and broadcast transmission facilities. The site must be completely enclosed by a fence or barrier designed to keep people out.5State of Texas. Texas Penal Code Chapter 30
- Trespass on a Superfund site listed on the federal National Priorities List or the Texas state registry of contaminated sites.5State of Texas. Texas Penal Code Chapter 30
- Trespass on college or university property when you already have a prior conviction for trespassing on that same institution’s property.
- Carrying a deadly weapon during the trespass, regardless of where it happens.
One detail matters in practice: the critical infrastructure elevation only applies if the facility is fully enclosed by a fence or physical barrier. A power substation with no fence around it is still a trespass, but as a Class B rather than a Class A.
Defenses That Actually Work
Most trespass defenses attack one of two elements: notice or effective consent.
The Notice Wasn’t Adequate
If the state can’t prove you had notice that entry was forbidden, the charge fails. Faded or missing signs, broken fences, and purple paint markings that don’t meet the statutory size or spacing requirements all create openings. Unmarked or unsurveyed property lines support the argument that you didn’t realize you’d crossed onto someone else’s land. Notice is the element prosecutors most often struggle to prove cleanly, so it’s usually where defense strategy starts.
You Reasonably Believed You Had Permission
If you reasonably believed you had the owner’s consent, that’s a defense. It comes up in landlord-tenant disputes, employment situations, and family property disagreements. A former employee returning to a workplace to retrieve personal belongings may have a plausible consent argument. The test is whether the belief was reasonable at the time, not whether it turned out to be right.
Necessity
Texas Penal Code Section 9.22 recognizes a necessity defense when someone trespasses to avoid a greater harm. Three conditions: you reasonably believed the trespass was immediately necessary to avoid imminent harm, the harm you were avoiding clearly outweighed the trespass, and no statute specifically excludes the justification.6State of Texas. Texas Penal Code Chapter 9 – Justification Excluding Criminal Responsibility Running into someone’s barn to escape a tornado, or crossing private land to reach an injured person, are the standard examples. The defense doesn’t cover situations where trespassing was just more convenient than the alternative.
Federal Property Is a Separate Track
Trespassing on federal property in Texas, including military bases and restricted federal buildings, is prosecuted under federal law rather than the state Penal Code. Unauthorized entry onto a military installation violates 18 U.S.C. § 1382 and carries up to six months in federal prison, a fine, or both.7Office of the Law Revision Counsel. 18 U.S. Code 1382 – Entering Military, Naval, or Coast Guard Property Entering restricted federal buildings or grounds can bring up to one year under 18 U.S.C. § 1752, or up to ten years if a weapon is involved or someone is seriously injured.8Office of the Law Revision Counsel. 18 U.S. Code 1752 – Restricted Building or Grounds Federal cases go through the federal court system, which operates differently from Texas state courts.
What a Conviction Does to Your Record
Even a Class B or Class C trespass creates a criminal record that shows up on background checks. Consumer reporting agencies in Texas can’t report criminal history older than seven years, but that protection disappears for jobs paying more than $75,000 a year.9Texas State Law Library. Background Checks – Restrictions After a Criminal Conviction Licensing boards in healthcare, education, and security often ask about criminal history and can deny or revoke a license based on a conviction.
Texas has two paths for limiting the damage. If the charge was dismissed for qualifying reasons, such as completion of a pretrial diversion program or a finding that the charge lacked probable cause, you may be entitled to expunction under Code of Criminal Procedure Chapter 55A.10State of Texas. Texas Code of Criminal Procedure Chapter 55A – Expunction of Criminal Records Expunction destroys the record as if the arrest never happened.
If you were convicted and placed on community supervision, an order of nondisclosure is the likelier option. For criminal trespass specifically, you can petition for nondisclosure immediately after completing supervision, since trespass under Chapter 30 is not one of the offenses that trigger a mandatory waiting period.11Texas Office of Court Administration. An Overview of Orders of Nondisclosure Nondisclosure doesn’t erase the conviction, but it seals it from most private background checks. Certain government agencies and licensing boards can still see it. If you received deferred adjudication rather than a straight conviction, a separate nondisclosure provision with its own requirements may apply, which is why the type of plea you accept early in a case affects what options remain later.