California Legal Blog

Contact Us for a Free Consultation

Loitering in California: Meaning and When It Is a Crime

Posted by Bulldog Law | Nov 11, 2026

Loitering in California

Updated October 2026 | The Bulldog Law | California Criminal Defense

Loitering by itself is not a crime in California. The word means lingering or remaining in a place without an apparent purpose, and the state has no statute that punishes that alone; laws that did were struck down decades ago as too vague to tell people what was forbidden. What California punishes is loitering plus an element: lingering on private property with intent to commit a crime (Penal Code 647(h), often called prowling), loitering around a school without lawful business (Penal Code 653b), loitering near a public restroom to engage in a lewd act (Penal Code 647(d)), and refusing to leave a business or private property after being asked (Penal Code 602.1 and 602(o)). All of them are misdemeanors. The old statute that punished loitering with intent to commit prostitution was repealed in 2023. And city ordinances, not state law, govern sitting, lying, and camping on sidewalks.

The Bulldog Law's attorneys see loitering in two forms. The first is a charge, usually 647(h) or 653b, that grows out of a call about someone in a yard, a parking structure, or near a school. The second, and the more common, is a loitering encounter that turns into something else: a stop, a search, and a charge for whatever the search found. What follows is the legal meaning of loitering, each California statute with the element that makes it a crime, the boundary with trespass, the local ordinances, how a loitering stop becomes a search, and the resolutions. Call (888) 928-1609 or message our team.

Why there is no general loitering crime

Until the 1980s, many California cities and the state itself had laws that punished wandering or loitering without a visible purpose, and police used them to clear people from streets at will. The United States Supreme Court ended that in 1983 in a case from San Diego, holding that California's requirement that a person loitering on the street produce "credible and reliable" identification on demand was unconstitutionally vague because it gave officers unlimited discretion to decide who was loitering, and in 1999 it struck down a Chicago ordinance that let police disperse anyone standing with a gang member "with no apparent purpose" on the same ground. Cornell's Legal Information Institute summarizes the doctrine. The rule that emerged is the one California now follows: a loitering law must attach the lingering to a specific place or a specific prohibited purpose, so that an ordinary person can tell what conduct is forbidden and an officer cannot arrest on a whim. A person standing on a public sidewalk, sitting in a park, or waiting outside a store is committing no crime, and an officer who orders them to move has no basis to arrest if they decline, unless a specific statute or ordinance applies.

The California loitering statutes

Each of the statutes below is a misdemeanor, and each requires an element beyond the lingering itself. The table shows the statute, what it covers, the extra element the prosecution must prove, and the penalty.

Statute

Conduct

Extra element required

Penalty

PC 647(h)

Loitering, prowling, or wandering on the private property of another

Without visible or lawful business with the owner or occupant, and with intent to commit a crime if the opportunity arises; includes peeking into an inhabited building while loitering

Up to 6 months jail, $1,000

PC 653b

Loitering about a school or a public place where children attend or gather

No lawful business and no parental or school authorization; enhanced if the person is a registered sex offender

Up to 6 months, $1,000; up to 1 year with a prior; up to 1 year and $2,000 for a registrant

PC 647(d)

Loitering in or about a toilet open to the public

Purpose of engaging in or soliciting a lewd, lascivious, or unlawful act

Up to 6 months, $1,000

PC 647(e)

Lodging in a building, structure, vehicle, or place

Without the permission of the owner or person in control

Up to 6 months, $1,000

PC 602.1

Intentionally interfering with a lawful business by obstructing or intimidating customers or employees

Refusal to leave after being asked by the owner, agent, or a peace officer

Up to 90 days, $400

PC 602(o)

Refusing to leave private property or a structure not open to the public

Request to leave by the owner, agent, or a peace officer at the owner's request

Up to 6 months, $1,000

Former PC 653.22

Loitering with intent to commit prostitution

Repealed effective January 1, 2023 by SB 357

Convictions eligible for dismissal and sealing

Prowling: Penal Code 647(h)

The charge people usually mean by "loitering" is Penal Code 647(h), which makes it disorderly conduct to loiter, prowl, or wander upon the private property of another, at any time, without visible or lawful business with the owner or occupant. The statute defines loitering for this purpose as delaying or lingering without a lawful purpose for being on the property and for the purpose of committing a crime as opportunity may be discovered, and it separately covers a person who, while loitering, peeks in the door or window of an inhabited building. The intent element is what the prosecution must prove and what the defense contests: being in a yard, a carport, or an apartment courtyard without permission is at most trespass, and 647(h) requires evidence that the person was there to commit a crime, usually inferred from the hour, concealment, tools, trying door handles, or looking into windows. A person who cut through a property, was looking for a lost pet, was at the wrong address, or was waiting for a resident who had invited them has lawful business or no criminal purpose, and the charge fails. Our page on Penal Code 647 disorderly conduct covers the rest of the statute, including public intoxication under 647(f), which is frequently charged alongside 647(h) in late-night encounters.

Schools: Penal Code 653b

Penal Code 653b makes it a misdemeanor to loiter about any school or public place at or near which children attend or normally congregate, or to reenter or come upon such a place within 72 hours after being asked to leave by the school's chief administrator or a peace officer, without lawful business and without the authorization of the school or of a parent of a child there. A first offense carries up to six months in jail and a $1,000 fine; a prior conviction raises the maximum to one year; and a registered sex offender faces up to one year and a $2,000 fine with a six-month minimum on a second offense. The statute is enforced most often against people seen near a campus repeatedly, people in a park adjoining a school, and non-custodial parents at a school after being told to leave. Lawful business is a defense, and so is authorization: a parent picking up a child, a person attending a public event, a person passing through a park, or a person waiting at a bus stop that happens to adjoin a school is not loitering under 653b, and the 72-hour reentry provision applies only after a request to leave by the specified people.

Loitering, trespass, and refusing to leave

The line between loitering and trespass is intent and location. Trespass under Penal Code 602 is entering or remaining on property without permission, and several of its subdivisions require only a refusal to leave after a request, with no criminal purpose at all. A person on a public sidewalk is on public property and can be neither trespassing nor, absent a specific statute, loitering unlawfully. A person in a store, a mall, a parking structure, or a lobby is on private property open to the public, where the owner can withdraw permission by asking the person to leave, and refusing is trespass under 602(o) or, if the person is interfering with the business, under 602.1. A person in a yard or a non-public area is on private property not open to the public, where presence without permission is trespass and presence with intent to commit a crime is 647(h). Aggravated trespass under Penal Code 601 is the felony version, requiring a credible threat followed by entry, and transit and railroad trespass is governed by the Vehicle Code. In practice, a person charged with loitering is often charged with trespass in the alternative, and the defense that defeats the intent element of 647(h) frequently leaves a trespass count that is resolved with an infraction or diversion.

Local ordinances: sitting, lying, and camping

Most enforcement against people simply present in public spaces is under municipal codes, not state law. Cities across California have ordinances that prohibit sitting or lying on sidewalks during certain hours, camping or storing property in public areas, blocking entrances, and remaining in parks after closing, and the United States Supreme Court held in 2024 that enforcing such camping ordinances against people with nowhere else to sleep does not violate the Eighth Amendment, which has led to broader enforcement since. These ordinances are usually infractions or misdemeanors under local law, each with its own elements, notice requirements, and defenses; many require a warning and an offer of shelter before a citation, and several have been limited by court injunctions in specific cities. A citation under a municipal code is defended under that code, and our attorneys review the ordinance, the warning and notice provisions, and any applicable injunction before advising on it.

When a loitering stop becomes a search

The practical importance of loitering law is less in the charge than in the encounter. A call about a person loitering brings an officer, and what happens next depends on whether the officer has reasonable suspicion of a crime. An officer may approach anyone and ask questions, and a person is free to decline and walk away from a consensual encounter. An officer may detain a person only on reasonable suspicion of criminal activity, and loitering in a public place, without more, does not supply it; presence in a high-crime area, the hour, and nervousness have each been held insufficient alone. An officer who does have reasonable suspicion may detain and, with a further basis to believe the person is armed, pat down for weapons, and a detention without that basis makes any evidence found suppressible. A large share of the drug, weapon, and burglary-tool cases our attorneys handle began as loitering calls, and the first question in each is whether the officer had a lawful basis to go from a conversation to a detention to a search. A person stopped during a loitering encounter is not required to answer questions beyond identifying themselves when lawfully detained, and should not consent to a search.

Resolutions

A first loitering charge under 647(h), 653b, or 602.1 is ordinarily resolved without a conviction: by diversion under Penal Code 1001.95, which lets a judge divert most misdemeanors over the prosecutor's objection and dismisses the case on completion; by a civil compromise where there is an identifiable property owner; or by a plea to an infraction such as disturbing the peace. A conviction is a misdemeanor eligible for expungement after probation. A 653b charge carries a particular concern for anyone with a prior sex offense, because the enhanced penalties and the implications for registration and probation are serious, and for anyone whose work involves schools, because the conviction will appear on a background check. A 647(h) conviction, with its intent-to-commit-a-crime element, reads like a burglary precursor on a record and is worth contesting for that reason even when the exposure is small. For a non-citizen, none of these offenses is ordinarily a crime involving moral turpitude or an aggravated felony, but 647(d) and the former 653.22 raise separate immigration issues and are reviewed by our immigration attorneys before any plea.

Frequently asked questions

What is loitering?

Loitering means lingering or remaining in a place without an apparent lawful purpose. On its own it is not a crime in California. The state has no general loitering statute, and the United States Supreme Court has struck down laws that punished simply standing around as unconstitutionally vague. What California punishes is loitering plus something: lingering on private property with intent to commit a crime, loitering around a school without lawful business, loitering near a public restroom to commit a lewd act, or refusing to leave a business or private property after being asked.

Is loitering illegal in California?

Not by itself. There is no California statute that makes it a crime to stand, sit, or wait in a public place. Loitering becomes a crime only when a specific statute attaches it to a purpose or a location: Penal Code 647(h) (prowling on private property with intent to commit a crime), Penal Code 653b (loitering around schools), Penal Code 647(d) (loitering near a public toilet for a lewd purpose), and Penal Code 602.1 and 602(o) (obstructing a business or refusing to leave private property). Cities also have municipal ordinances on sitting, lying, and camping on sidewalks, which are infractions or misdemeanors under local law.

What is the penalty for loitering in California?

Every California loitering offense is a misdemeanor. Penal Code 647 offenses carry up to six months in county jail and a $1,000 fine. Penal Code 653b, loitering around a school, carries up to six months and $1,000 on a first offense and up to one year with a prior conviction, and a longer term when the person is a registered sex offender. Most first offenses are resolved with diversion, a fine, or probation, and a conviction is eligible for expungement after probation.

What is the difference between loitering and trespassing?

Trespassing under Penal Code 602 is entering or remaining on someone else's property without permission, and it does not require any criminal intent beyond that. Loitering under Penal Code 647(h) is lingering on private property without lawful business and with intent to commit a crime if the opportunity arises, which is why it is sometimes called prowling. A person can trespass without loitering, by walking across a fenced field, and can loiter without trespassing, by waiting on a public sidewalk, although the sidewalk loitering is not a crime unless a specific statute applies.

Can police make you leave a public place for loitering?

Police can ask anyone to move along, but in a public place they cannot arrest a person simply for refusing unless the person is violating a specific statute or ordinance, such as blocking a sidewalk, obstructing a business entrance, or violating a local sitting or camping ordinance. On private property open to the public, such as a store or a mall, the owner or manager can ask a person to leave, and refusing to leave after being asked is trespass under Penal Code 602(o) or 602.1, which police can enforce. Police may also detain a person briefly if they have reasonable suspicion of a crime, and a loitering encounter is often the start of such a detention.

Was loitering for prostitution repealed in California?

Yes. Penal Code 653.22, which made it a misdemeanor to loiter in a public place with intent to commit prostitution, was repealed by Senate Bill 357, effective January 1, 2023, after findings that it was enforced disproportionately against transgender women and women of color on the basis of appearance. People convicted under the former statute can petition to have the conviction dismissed and sealed. Prostitution itself, solicitation, and pimping remain crimes under Penal Code 647(b) and related statutes.

Related reading from our attorneys

Charged after a loitering call? The intent element and the stop are the case

The Bulldog Law's criminal defense attorneys handle prowling, trespass, disorderly conduct, and the drug and weapon charges that grow out of loitering stops across California. Call (888) 928-1609 or reach us online.

About the Author

Bulldog Law

Bulldog Law is a dedicated criminal defense, personal injury, and cryptocurrency dispute resolution firm with licensed attorneys and experienced support staff across California. Our team of trial attorneys, paralegals, and legal professionals brings decades of combined experience handling complex state and federal matters  including serious felonies, DUI, domestic violence, special education law, employment disputes, and high-stakes crypto fraud recoveries. We pride ourselves on thorough case preparation, aggressive advocacy, and personalized client service. Every blog post is researched and reviewed by members of our legal team to provide practical, up-to-date information for individuals and businesses facing legal challenges. If you need trusted legal representation or have questions about your case, contact Bulldog Law today at (888) 928-1609 for a confidential consultation. Offices throughout California including Glendale, Sacramento, San Francisco, San Diego, and more.

We offer criminal defense, immigration, personal injury and cryptocurrency legal services in both English and Spanish. Call us at (888) 928-1609 for a free consultation.


Menu