Pennsylvania Trespassing Laws: Types, Penalties, and Defenses

Pennsylvania trespassing laws treat unauthorized entry onto someone else’s property as a criminal offense, with penalties running from a summary violation and a small fine up to a second-degree felony carrying as much as ten years in prison. Where a particular incident lands on that scale depends on three things: how the person got onto the property, whether they were warned to stay out or leave, and what they intended to do once they were there. Property owners also have civil options on top of the criminal charges.

Felony Criminal Trespass

The most serious trespassing charges apply to buildings and occupied structures. Under 18 Pa. C.S. § 3503(a), knowingly entering a building, an occupied structure, or a secured portion of one without permission is a felony, and the grade depends on how the person got in.1Pennsylvania General Assembly. Title 18 Crimes and Offenses – Chapter 35 Burglary and Criminal Trespass

Walking through an unlocked door, sneaking in by subterfuge, or hiding inside is a third-degree felony. That carries up to seven years in prison and fines up to $15,000. Forcing a lock, breaking a window, or otherwise breaking in bumps the same conduct up to a second-degree felony, with a maximum sentence of ten years in prison.

The rule covers any building or occupied structure, not just homes. Prosecutors treat unauthorized entry into secured facilities like power plants or government buildings aggressively, and felony trespass often accompanies a burglary charge when evidence suggests the person went in to commit another crime.

Defiant Trespass

Defiant trespass is what most people picture when they think of trespassing: ignoring a “No Trespassing” sign or refusing to leave when the owner tells you to go. Under 18 Pa. C.S. § 3503(b), a person commits this offense by entering or remaining on property despite notice that entry is forbidden. Notice can come from posted signs, fencing or other enclosures, purple paint marks on trees or posts, or a personally delivered warning.1Pennsylvania General Assembly. Title 18 Crimes and Offenses – Chapter 35 Burglary and Criminal Trespass

How the warning was delivered controls the grade:

  • Ignoring posted signs, fencing, or purple paint marks, with no personal confrontation, is a summary offense. The maximum penalty is 90 days in jail and a $300 fine.
  • Defying an order to leave that was communicated in person by the owner or someone authorized to speak for them is a third-degree misdemeanor. Up to one year in jail and fines up to $2,500.
  • Defying an order to leave school grounds, when the order comes from a school official or law enforcement officer, is a first-degree misdemeanor. Up to five years in prison and fines up to $10,000.

That school-grounds provision catches parents off guard. Refusing to leave school property after an administrator tells you to go is a much heavier charge than ignoring a sign on a neighbor’s fence.

Simple Trespass

Simple trespass under 18 Pa. C.S. § 3503(b.1) does not require any warning at all. A person commits this offense by knowingly entering or remaining on property with the intent to cause damage, create a nuisance, or threaten the occupant’s sense of security. Nothing has to actually get damaged. Entering with the wrong intent is enough.

Simple trespass is a summary offense punishable by up to 90 days in jail and a $300 fine. In practice, police often use it as a starting point. Someone found on private property at night with tools or other suspicious items may be charged with simple trespass first, with burglary or criminal mischief added if the evidence supports it.1Pennsylvania General Assembly. Title 18 Crimes and Offenses – Chapter 35 Burglary and Criminal Trespass

Agricultural Trespass

Farmland gets its own offense under 18 Pa. C.S. § 3503(b.2), and the penalties are steeper than for ordinary defiant trespass. Farms face unique risks from unauthorized visitors, including crop damage, livestock contamination, and disease spread between animals.

Knowingly entering posted or verbally restricted farmland is a third-degree misdemeanor. If the trespasser intends to damage crops, disrupt farm operations, or interfere with livestock, the charge rises to a first-degree misdemeanor, carrying up to five years in prison and fines up to $10,000.1Pennsylvania General Assembly. Title 18 Crimes and Offenses – Chapter 35 Burglary and Criminal Trespass

Agricultural operations involving animals also have federal protection under the Animal Enterprise Terrorism Act (18 U.S.C. § 43), which targets people who use interstate travel or commerce to damage or interfere with an animal enterprise through criminal trespass, vandalism, harassment, or threats. Federal penalties scale with the economic damage and any injury caused, and can stack on top of state charges.2Office of the Law Revision Counsel. 18 USC 43 – Force, Violence, and Threats Involving Animal Enterprises

How to Legally Post Your Property

Properly posting your property is what converts a simple trespass situation into a defiant trespass charge, which carries heavier penalties. Posted signs count as legal notice even without a verbal warning. The statute doesn’t require a specific spacing distance; the standard is whether the posting is “reasonably likely to come to the attention of intruders.” Placing signs at entry points, along boundaries, or at regular intervals usually satisfies that.3Pennsylvania General Assembly. Pennsylvania Code Title 18 – Section 3503 Criminal Trespass

Since 2020, purple paint marks are also allowed as an alternative to traditional signs. Paint holds up better in weather and is harder for a trespasser to tear down. The marks have to meet three requirements:

  • Vertical lines at least eight inches long and one inch wide.
  • The bottom of each mark between three and five feet from the ground.
  • Marks no more than 100 feet apart, placed where they are readily visible to anyone approaching.

The purple paint option applies everywhere in Pennsylvania except Philadelphia and Allegheny counties. Landowners in those two counties need traditional signs or fencing.4Commonwealth of Pennsylvania. Purple Paint Law – Game Commission

When Entry Isn’t Trespassing

Some entries onto private property aren’t trespassing, even without the owner’s permission. Law enforcement officers can enter when they have a valid search warrant, probable cause to believe a crime is occurring, or exigent circumstances such as pursuing a fleeing suspect or responding to someone in immediate danger. Firefighters and emergency medical personnel have similar authority when responding to calls.

Utility workers and government inspectors can access private property for maintenance, repairs, and inspections tied to essential services, generally with advance notice when feasible.5Pennsylvania General Assembly. Pennsylvania Code Title 74 – Section 1704

Private citizens can also enter another person’s property in genuine emergencies, such as seeking shelter during a severe storm or helping someone in immediate danger. Courts evaluate these necessity claims by asking whether entering was the only reasonable way to prevent serious harm and whether the person left promptly without causing unnecessary damage.

Civil Liability for Trespassers

Trespassing is also a civil wrong. Under Pennsylvania tort law, trespass to land is an intentional tort, and property owners can sue even without proving physical damage. The unauthorized entry itself is the legal harm.

When trespassing does cause damage, owners can recover repair costs, lost revenue, and diminished property value. Pennsylvania courts have awarded damages for soil contamination, unauthorized tree removal, and structural damage. For ongoing or repeated trespassing, an owner can seek an injunction, a court order prohibiting the trespasser from coming back. Violating the injunction carries contempt-of-court penalties. In particularly egregious cases, such as trespassing meant to harass or intimidate, courts may award punitive damages on top of actual losses.

If a Trespasser Gets Hurt on Your Property

Pennsylvania property owners often worry about being sued when a trespasser is injured on their land. The general rule is more protective than most people expect: landowners owe no duty of care to unknown trespassers. You do not have to make your property safe for people who are not supposed to be there.

That protection has limits. Once you know or should reasonably know trespassers are on your property, you can’t engage in willful or reckless conduct that could hurt them. You can’t set traps, and you can’t ignore a dangerous condition you know trespassers will encounter. If people regularly cut across a particular part of your land, you have a duty to use reasonable care regarding any highly dangerous artificial conditions in that area and to warn of risks that could cause death or serious injury.

Attractive Nuisance and Child Trespassers

Children get more protection. Under the attractive nuisance doctrine, an owner can be liable for injuries to trespassing children when the property has an artificial condition, such as a swimming pool or abandoned machinery, that the owner knows attracts children who don’t appreciate the danger. The owner has to know children are likely to trespass, the condition has to pose an unreasonable risk of serious harm, and the burden of making it safe has to be small compared to the risk. Unfenced pools are the classic example. Common features like walls, fences, and gates generally don’t qualify.

Trespassers, Squatters, and Adverse Possession

In limited circumstances, a long-term trespasser can eventually claim legal ownership of the land through adverse possession. Pennsylvania requires at least 10 years of continuous possession that is actual, exclusive, visible, notorious, distinct, and hostile to the true owner’s rights.6Pennsylvania General Assembly. Pennsylvania Consolidated Statutes Title 42 Section 5527.1 – Ten Year Limitation

Each element matters. “Hostile” means the possession infringes on the true owner’s rights without permission, so a tenant or anyone using the land with the owner’s consent can never claim adverse possession. “Open and notorious” means the occupation is obvious enough that the owner would notice if they bothered to check. And “exclusive” means the possessor treats the land as their own and keeps others off it.

The practical distinction between a trespasser and a squatter comes down to intent and duration. A trespasser enters without permission and has no claim to the property. A squatter occupies vacant property over time and may eventually assert ownership through adverse possession. That distinction has real consequences: you can call the police to remove a trespasser, but a squatter who has established occupancy may have to be removed through a formal ejectment proceeding in court.

Removing a Trespasser From Your Property

Pennsylvania law allows peaceful self-help. You are not required to go through court if you can regain possession without force or threats. The key word is “peaceful.” Physically dragging someone off your land or threatening violence can expose you to assault charges or civil liability, even if the person had no right to be there.

The calculus changes when an unauthorized occupant has been living on the property long enough to resemble a tenant. Squatters who have done things like make improvements or pay property taxes may have picked up protections that require a formal ejectment lawsuit. An ejectment action is a court proceeding where a judge determines who has the right to possess the property and, if the owner wins, issues an order directing the sheriff to remove the occupant. Filing fees vary by county.

When in doubt, calling local police is the safest first step. Officers can remove a trespasser on the spot when the situation is straightforward. If the person claims a right to be there or the facts are ambiguous, police will usually tell you it’s a civil matter, and you’ll need to file in court.