Trespass in a structure or building is the crime of entering or remaining inside someone else’s enclosed property without permission, and in most states a straightforward case is a misdemeanor punishable by jail time of 30 days to a year. The charge gets heavier fast. Walking into an occupied home, carrying a weapon, or entering a protected site like a school or airport can push the offense into felony territory with years of prison exposure. The specific penalty depends on three things: what kind of structure you entered, whether you had notice that entry was forbidden, and what you did or carried while you were inside.
What Counts as a Structure
Statutes define “structure” broadly. Most states follow the Model Penal Code, which protects any building or occupied structure, meaning any temporary or permanent construction with a roof, walls, or both. Finished homes, commercial warehouses, construction trailers, storage sheds, barns, and portable buildings all qualify. Some states separate a “structure” (any roofed enclosure) from a “dwelling” (a place where someone sleeps) and attach harsher penalties to dwelling trespass.
The protected area usually extends beyond the walls to include the curtilage, the ground immediately surrounding a building that functions as part of it. The U.S. Supreme Court in United States v. Dunn set out four factors courts use to identify curtilage: how close the area is to the dwelling, whether it falls within an enclosure around the home, how the area is used, and what steps the resident took to block observation or access. A fenced backyard, an attached porch, and a carport typically fall inside. An unfenced field a quarter-mile from the house generally does not. The practical result is that stepping into a fenced yard can carry the same legal weight as walking through the front door.
What the Prosecution Has to Prove
Criminal trespass in a structure has two core elements: unauthorized presence and the mental state behind it.
The first element is satisfied in one of two ways. You either entered the structure without permission, or you remained inside after your permission expired. Walking into a store during business hours is lawful. Hiding in the stockroom after closing is not. A dinner guest who refuses to leave after the host asks them to go has crossed from rudeness into potential criminal liability.
The mental state requirement varies by jurisdiction, but most states require at least knowledge that the entry was unauthorized. The Model Penal Code frames it as entering or remaining while “knowing that he is not licensed or privileged to do so.” That is a lower bar than specific intent. Prosecutors do not have to prove you planned a crime inside or intended any harm. They only have to show you knew you were not supposed to be there. An honest mistake — walking into the wrong apartment because the hallways look identical — can defeat this element because the awareness is missing.
How Notice and Authorization Work
Whether you received notice that entry was forbidden sits at the center of most trespass cases. State laws and the Model Penal Code recognize three standard forms of notice.
The first is direct communication. A property owner, tenant, or authorized person like a security guard verbally tells you to leave or not to enter. This is the clearest form of notice and the hardest to dispute in court.
The second is posted signs. “No Trespassing” or “Private Property” signs placed where a reasonable person would see them give notice to anyone entering. Most states require signs to be conspicuous and positioned at entry points, though specific size and spacing rules differ by jurisdiction.
The third is physical barriers. Fencing, locked gates, and other enclosures obviously designed to keep people out serve as implied notice. Climbing a fence or squeezing through a gap in a barrier demonstrates awareness that entry is restricted.
Many jurisdictions also allow police to issue formal trespass warnings on behalf of a property owner. Once that warning is documented, returning to the property gives officers a straightforward basis for arrest. Property owners dealing with repeat trespassers often request these warnings specifically because they eliminate any later dispute about whether notice was given.
Authorization can also be revoked in real time. The moment it is withdrawn, a lawful visitor becomes a trespasser if they refuse to leave. A store manager telling a disruptive customer to leave has withdrawn the implied invitation that comes with opening a business to the public. A landlord asking a guest to leave a common area has done the same. The law does not require a reason. The only question is whether the revocation was clearly communicated.
Penalty Tiers
Criminal trespass in a structure is typically a misdemeanor, but the classification and sentence range differ sharply from state to state. At the lighter end, some states treat a first offense as a petty misdemeanor or violation with no more than 30 days in jail. At the heavier end, entering a dwelling at night or trespassing on certain protected properties — nuclear facilities, airports, schools — can be classified as a felony with prison terms measured in years.
Most states use a tiered system where the penalty escalates with the type of structure and the circumstances.
Basic trespass in a non-residential structure is generally a low-level misdemeanor. Jail exposure typically runs from 30 days to six months, with fines that vary by state.
Trespass in an occupied dwelling is usually bumped to a higher misdemeanor or a low-level felony. The presence of another person creates a risk of confrontation, and legislatures penalize that risk accordingly. Sentences in this tier commonly reach up to one year.
Armed trespass elevates the charge to a felony in most states. Carrying a firearm or other dangerous weapon during the trespass can push potential prison exposure to five years or more, and the collateral consequences of a felony conviction are far more severe than those of a misdemeanor.
The Model Penal Code draws its own line: trespass in a dwelling at night is a misdemeanor, while trespass in any other building is a petty misdemeanor. Many states adopted some version of that framework and then added their own aggravating factors. Where you trespass, when you trespass, and what you carry while doing it all shape how the legal system treats the offense.
Trespass Versus Burglary
These two charges are routinely confused, and the difference matters. Both involve entering a building without permission. The dividing line is intent. A trespasser enters or remains without authorization. A burglar enters or remains without authorization while intending to commit another crime inside, such as theft, assault, or vandalism. That added intent turns the offense from a misdemeanor into a serious felony in virtually every state.
The practical consequences are large. Ducking into an unlocked warehouse to get out of the rain may support a trespass charge. Ducking into the same warehouse planning to steal copper wire is burglary, whether or not anything is actually taken. Prosecutors prove burglary intent through circumstantial evidence: tools associated with theft, movement directly toward valuables, flight with property. The mental state at the moment of entry is what separates the two crimes, and it is why burglary can carry decades of prison exposure while trespass typically carries months.
Defenses That Can Defeat the Charge
Several recognized defenses can defeat or reduce a trespass charge, though their availability varies by state.
Mistake of fact is the most straightforward. If you genuinely believed you had permission to be in the building, you lacked the mental state required for conviction. This works when the belief was objectively reasonable, such as entering the wrong unit in an identical-looking apartment complex, or being told to come inside by the owner’s spouse without the owner’s knowledge. It does not work when the claimed mistake is implausible or self-serving.
Necessity applies when you entered to avoid a greater harm, like breaking into a cabin during a blizzard or taking shelter in a building to escape an attacker. Private necessity justifies the entry but does not erase liability for any damage you caused. You will not face trespass charges, but you may still owe the owner for a broken window or damaged lock. The privilege lasts only as long as the emergency does.
Abandoned building is an affirmative defense under the Model Penal Code and many state statutes. If the structure was genuinely abandoned with no indication of active ownership, a court may find the trespass element unsatisfied. The bar is high. A boarded-up building with “No Trespassing” signs is not abandoned, because someone clearly still asserts control over it.
Open to the public can defeat a charge when the building was accessible to the general public and you complied with any posted conditions. Walking into a government building during posted hours, or entering a business that has its doors open, falls within this defense. It disappears the moment an authorized person tells you to leave and you refuse.
Implied consent based on custom or social norms can apply as well. A delivery driver walking up to a front door has an implied license to be there. So does a neighbor stepping into your open garage to return a borrowed tool. Courts evaluate this by looking at common social practices and the parties’ history of interaction, and implied consent cannot be stretched from ambiguous behavior alone.
Record Consequences
Even a misdemeanor trespass conviction creates a criminal record that stays with you. Employers running background checks will see it. Federal law prohibits blanket policies rejecting anyone with a conviction, but individual hiring decisions often turn on whether the offense is relevant to the job. The EEOC advises employers to weigh three factors: the seriousness of the offense, how much time has passed, and the nature of the position being sought. 1U.S. Equal Employment Opportunity Commission. Arrest and Conviction Records: Resources for Job Seekers, Workers and Employers A five-year-old trespass conviction matters less for a desk job than a recent one does for someone applying to work in property management or security.
Professional licensing boards can be harsher. Many license applications ask about criminal history and evaluate it case by case. A felony trespass conviction — the kind tied to armed trespass or entry at a protected facility — creates far more barriers than a misdemeanor. Federal law specifically bars people with certain criminal convictions from working as airport security screeners or accessing secure areas of airports and seaports. 2Office of the Law Revision Counsel. 18 USC 1036 – Entry by False Pretenses to Any Real Property, Vessel, or Aircraft of the United States or Secure Area of Any Airport or Seaport
Expungement is available in many states for misdemeanor convictions, but eligibility rules and waiting periods vary widely. Some states allow expungement after a set number of conviction-free years. Others limit it to cases that were dismissed or where the conviction was later vacated. A felony trespass conviction is significantly harder to expunge and may be permanent in some jurisdictions. Anyone facing a trespass charge, even one that looks minor, should weigh the long-term record consequences before deciding whether to fight it or accept a plea.