Hanging around outside a closed storefront might seem harmless, but depending on the circumstances, it can expose a person to real legal consequences in Pennsylvania. There is no single statewide law that criminalizes loitering outside a business after closing, but related state offenses and local municipal ordinances can make the conduct illegal depending on the specific circumstances. Pennsylvania’s approach to loitering is fragmented across a handful of narrow state statutes and a patchwork of local ordinances, rather than one comprehensive rule.

No General Statewide Loitering Law
Unlike some states with a broad, catch-all loitering statute, Pennsylvania’s Crimes Code does not contain a single provision that generally criminalizes hanging around outside a private business after hours. Instead, Pennsylvania’s statewide criminal code addresses only narrow, specific categories of loitering, while broader loitering restrictions are typically handled at the local level through municipal ordinances that vary from city to city and township to township.
The Statewide Statute: 18 Pa.C.S. § 5506
Pennsylvania’s Crimes Code does include a specific loitering provision at Title 18, Section 5506, “Loitering and prowling at night time.” This statute makes it a third-degree misdemeanor for a person to maliciously loiter or maliciously prowl at night around a dwelling house or other place used for living or dwelling purposes belonging to or occupied by another. Notably, this provision is limited to dwellings and residential occupancy, meaning it does not directly apply to a commercial business closed for the night. Someone lingering outside a retail store or office building after hours would generally fall outside the scope of this particular statute.
Disorderly Conduct as a Broader Catch-All
Pennsylvania’s disorderly conduct statute, found at 18 Pa.C.S. § 5503, is often the state-level charge used when loitering behavior crosses into more disruptive territory. This law criminalizes conduct such as engaging in fighting or threatening behavior, making unreasonable noise, using obscene language, or creating a hazardous or physically offensive condition without a legitimate purpose, when done with intent to cause public inconvenience, annoyance, or alarm. A person who is merely standing outside a closed business without causing any disturbance would not typically violate this statute, but loitering that escalates into loud, disruptive, or threatening behavior can trigger disorderly conduct charges.
Local Municipal Ordinances Fill the Gap
Because state law leaves a significant gap, many Pennsylvania municipalities have adopted their own local loitering ordinances specifically addressing commercial properties. For example, some municipalities prohibit loitering on private property customarily used by the public as part of a commercial business when that loitering obstructs pedestrian or vehicle passage, interferes with customers trying to access the business, or involves unreasonable noise or offensive conduct. These local ordinances often require the property owner to post “No Loitering” signs at regular intervals to give proper legal notice, and penalties typically include modest fines and the possibility of a short jail term for violations. Because these rules are set at the local level, the specific requirements and penalties can vary significantly depending on which city or borough a person is in.
Trespass Law May Also Apply
Even without a specific local loitering ordinance, Pennsylvania’s general criminal trespass statute, found at 18 Pa.C.S. § 3503, can apply if a business owner or employee directly tells a person to leave the property after closing, or if the property has been properly posted against trespassing. Remaining on the property after receiving that kind of notice can constitute defiant trespass, discussed in earlier coverage of Pennsylvania’s trespass laws, regardless of whether a specific loitering ordinance exists in that particular municipality.
Bottom Line
Whether loitering outside a closed business is illegal in Pennsylvania depends heavily on the specific municipality’s ordinances, whether the person was warned or asked to leave, and whether the conduct escalated into disorderly behavior. Anyone facing a citation or charge related to loitering should consult a licensed Pennsylvania attorney familiar with the relevant local ordinances.
