California loitering laws don’t include a single, general ban on standing around in public. Instead, the Penal Code and Health and Safety Code contain a handful of narrow statutes, each tied to a specific place or purpose: loitering on private property with criminal intent, loitering near a school after being asked to leave, loitering to commit a drug offense, loitering in a bar to cadge drinks, and — starting in 2026 — loitering to buy commercial sex. Every one of them requires more than mere presence. Prosecutors have to prove an unlawful purpose or a specific triggering act, and that requirement is where most of these cases turn.
Loitering on Private Property
Penal Code 647(h) is the broadest of the state’s loitering statutes and the one most people have in mind when they ask about the law. It makes it a misdemeanor to loiter, prowl, or wander on someone else’s private property without lawful business and with the purpose of committing a crime if the opportunity arises.1California Legislative Information. California Code PEN 647 – Disorderly Conduct Despite being tucked inside the “disorderly conduct” section, it applies to private property specifically — parking lots, apartment complexes, commercial buildings, and similar locations where you have no reason to be.
To convict, prosecutors must prove four things: that you were on someone else’s private property, that you had no lawful purpose for being there, that you intended to commit a crime if the chance came up, and that your reason for being on the property was to find that opportunity.2Justia. CALCRIM No. 2915 – Loitering Being on someone’s property without permission isn’t enough on its own. That’s trespassing. The criminal-intent element is what separates 647(h) from simple trespass, and it’s where most of these cases are won or lost.
Loitering Near Schools
Penal Code 653b covers people who linger around schools or public places where children gather. It works differently from most loitering statutes because it has a “refuse to leave” trigger: you violate the law by loitering near a school without lawful business and then remaining after a school official, school security officer, or police officer asks you to leave. Returning within 72 hours after being told to leave also violates the statute.3California Legislative Information. California Code PEN 653b – Loitering About Schools or Public Places The jury instructions add that prosecutors must also prove intent to commit a crime if the opportunity arose.4Justia. CALCRIM No. 2917 – Loitering About School
A first offense for the general population carries up to six months in county jail, a fine of up to $1,000, or both. Penalties escalate sharply for people already required to register with the state, and those enhancements are covered further down.
Drug-Related Loitering
Health and Safety Code 11532 makes it illegal to loiter in any public place in a way that shows you intend to commit a drug offense, whether that means possessing, selling, or using controlled substances.5California Legislative Information. California Code HSC 11532 – Loitering for Drug Activities It’s a state law, so it applies everywhere in California, though some cities have issued their own enforcement guidance.
The statute lists circumstances that officers and prosecutors may use to establish intent:
- Acting as a lookout for what appears to be a drug transaction
- Transferring small objects for cash in a furtive way
- Trying to conceal yourself or objects connected to drug activity
- Using signals or language that suggest you are summoning drug buyers
- Repeatedly stopping or beckoning to passersby on foot or in vehicles
- Possessing drug paraphernalia or being visibly under the influence
- Having a prior drug conviction within the past five years
These factors carry more weight when the conduct happens in an area known for drug activity.5California Legislative Information. California Code HSC 11532 – Loitering for Drug Activities No single factor is enough. Courts look at the totality of the circumstances.
Loitering to Solicit Commercial Sex
This area of law has changed dramatically. In 2022, California repealed Penal Code 653.22, the statute that had criminalized loitering with intent to engage in prostitution. SB 357, the Safer Streets for All Act, eliminated it after years of criticism that enforcement fell disproportionately on women of color and transgender individuals.6California Legislative Information. SB-357 Crimes – Loitering for the Purpose of Engaging in Prostitution Nobody can be charged under the old 653.22 today.
Effective January 1, 2026, AB 379 creates a new statute, Penal Code 653.25, that targets loitering with intent to purchase commercial sex.7California Legislative Information. AB-379 Crimes – Prostitution The focus has shifted from sellers to buyers. Intent can be shown through behavior such as circling an area by car and repeatedly trying to contact pedestrians, making unauthorized stops along areas known for prostitution, or other conduct indicating an attempt to solicit someone for commercial sex.
Loitering in Bars to Solicit Drinks
Penal Code 303a is a narrow statute that makes it a misdemeanor to loiter inside or around a bar or other establishment that serves alcohol for the purpose of begging or pressuring patrons to buy you a drink.8California Legislative Information. California Code PEN 303a It’s still on the books and occasionally used, and a violation can also trigger administrative consequences for the establishment’s liquor license.
Penalties
Most loitering offenses in California are misdemeanors. Under Penal Code 19, the default punishment for a misdemeanor without a separately specified penalty is up to six months in county jail, a fine of up to $1,000, or both.9California Legislative Information. California Penal Code 19 Section 647(h) and the basic offense under 653b both fall within this range.3California Legislative Information. California Code PEN 653b – Loitering About Schools or Public Places
In practice, first-time offenders with no criminal history rarely see the maximum. Judges often impose probation, community service, or a modest fine when the underlying conduct was minor. Drug-related loitering may add conditions like substance-abuse counseling. For many people, the real sting isn’t the sentence but the record that follows.
Enhanced Penalties Under 653b
Section 653b reserves its harshest penalties for two groups: registered sex offenders and people required to register under California’s gang-activity provisions in Section 186.30.
For registered sex offenders caught loitering near schools, a first offense carries up to six months in jail, a fine of up to $2,000, or both. A second offense triggers a mandatory minimum of 10 days in jail, with no early release until those 10 days are served, plus a fine of up to $2,000 and a jail ceiling of six months. A third or subsequent offense carries a mandatory minimum of 90 days in jail, no early release until those 90 days are served, a fine of up to $2,000, and the same six-month cap.
For people registered under gang-activity provisions, a first offense carries up to one year in jail, a fine of up to $1,000, or both. A second offense raises the fine ceiling to $2,000 and requires the court to consider a minimum of 10 days’ imprisonment. A third or subsequent offense keeps the one-year cap and $2,000 fine ceiling, and the court must consider a minimum of 90 days’ imprisonment.3California Legislative Information. California Code PEN 653b – Loitering About Schools or Public Places The jump from the general population’s six-month maximum to a full year for gang registrants is significant, and the mandatory-minimum structure for sex offenders leaves judges little discretion.
Common Defenses
Every California loitering statute requires some form of unlawful purpose or intent, so the strongest defense is usually a legitimate explanation for being where you were. Waiting for a friend, taking a break during a walk, checking your phone near a business — any credible account undercuts the state’s case. The prosecution has to prove criminal intent beyond a reasonable doubt, and that’s hard to do from mere presence.
Section 653b has its own built-in defense. The basic offense isn’t complete unless an authorized person actually told you to leave the school area. The same goes for the 72-hour re-entry provision: if you returned outside that window, the statute doesn’t reach the conduct.3California Legislative Information. California Code PEN 653b – Loitering About Schools or Public Places
Constitutional challenges also remain viable. Loitering statutes have long been vulnerable to vagueness attacks, going back to the U.S. Supreme Court’s 1972 decision in Papachristou v. City of Jacksonville, which struck down a vagrancy ordinance that failed to give ordinary people fair notice and gave police unlimited discretion.10Justia. Papachristou v. City of Jacksonville, 405 U.S. 156 (1972) Newer city ordinances face the same scrutiny. Selective-enforcement claims are another route to dismissal, though they require concrete evidence of a discriminatory pattern.
Your Rights If Police Stop You
Most loitering investigations start with an officer walking up to someone in a public space. The line between a voluntary conversation and a formal detention matters.
If an officer approaches and starts asking questions without restricting your movement, the encounter is consensual and you’re free to walk away. Fourth Amendment protections kick in only when the officer detains you, which requires articulable facts suggesting a crime. A hunch isn’t enough. A brief detention (a Terry stop) has to be short and reasonably related to the reason for the stop.
California has no “stop and identify” statute. In most loitering encounters, you’re not legally required to give your name. The U.S. Supreme Court held in Hiibel v. Sixth Judicial District Court (2004) that states can require identification during a lawful Terry stop, but only if the state has enacted such a law.11Legal Information Institute. Hiibel v. Sixth Judicial District Court of Nevada, 542 U.S. 177 (2004) California hasn’t. You may still be asked for ID, but you generally can’t be arrested solely for declining.
Miranda warnings apply once you’re placed under arrest, not before. If you want to invoke your right to remain silent during a voluntary encounter, the safest move is to say so out loud rather than simply going quiet.
Collateral Consequences and Clearing Your Record
A misdemeanor loitering conviction can ripple outward in ways the sentence itself doesn’t capture. Background checks will surface it. Professional licensing boards in healthcare, education, and real estate review criminal history and may open additional review during an application or renewal. For noncitizens, even a misdemeanor can create immigration consequences depending on the offense and status. Drug-related loitering under Health and Safety Code 11532 is especially risky because federal immigration law treats drug offenses more severely than most other misdemeanors. Anyone in that situation should consult an immigration attorney before entering a plea.
California’s expungement process, technically a dismissal under Penal Code 1203.4, lets you withdraw a guilty or no-contest plea (or have a guilty verdict set aside) and have the case dismissed. You’re eligible after completing probation, or earlier if the court exercises its discretion. At the time you petition, you can’t be currently serving a sentence for another offense, on probation, or facing pending charges.12California Legislative Information. California Penal Code 1203.4 A successful dismissal releases you from most penalties tied to the conviction, though the record still shows a conviction that was later dismissed. The prosecutor must receive at least 15 days’ notice before the court rules, so build that timeline into any plan to clear the record.