California does not have one general loitering law. Instead, several Penal Code and Health and Safety Code sections make it a crime to linger in specific places — private property, school grounds, drug corridors, bars — but only when the prosecution can also prove you were there with an unlawful purpose. Simply standing in a public space is not a crime anywhere in the state. California loitering laws have shifted meaningfully in the past few years, with one major statute repealed in 2022 and a new buyer-focused prostitution loitering law taking effect January 1, 2026.
Here is what each of the active statutes actually covers, what prosecutors have to prove, and what a conviction can cost you.
Loitering on Private Property
Penal Code 647(h) is the closest thing California has to a general loitering offense, and it applies only to private property — parking lots, apartment complexes, commercial buildings, and similar locations where you have no reason to be.1California Legislative Information. California Code PEN 647 – Disorderly Conduct It is a misdemeanor.
To convict, the prosecution has to prove four things: you were on someone else’s private property, you had no lawful business being there, you intended to commit a crime if the opportunity came up, and finding that opportunity was your reason for being there.2Justia. CALCRIM No. 2915 – Loitering Being somewhere you shouldn’t be is trespass, not 647(h). The criminal-intent element is where most of these cases are decided.
Loitering Near Schools
Penal Code 653b targets people who linger around schools or public places where children gather. It works differently from the other loitering statutes because of a built-in trigger: you violate it 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, or by returning within 72 hours after being told to leave.3California Legislative Information. California Code PEN 653b – Loitering About Schools or Public Places The jury instructions also require proof of intent to commit a crime if the opportunity arose.4Justia. CALCRIM No. 2917 – Loitering About School
For the general population, a first offense carries up to six months in county jail, a fine of up to $1,000, or both. Penalties escalate sharply for registered sex offenders and people required to register under California’s gang-activity provisions. More on those tiers below.
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 — possession, sale, or use of a controlled substance.5California Legislative Information. California Code HSC 11532 – Loitering for Drug Activities It is a state law, so it applies everywhere in California.
The statute itself lists the circumstances officers and prosecutors can 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 suggesting you’re 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. No single factor is enough on its own; courts look at the totality of the circumstances.5California Legislative Information. California Code HSC 11532 – Loitering for Drug Activities
Prostitution-Related Loitering Was Repealed, Then Rewritten
This area of the law has changed twice in four years, and the current state of it depends on the date.
In 2022, California repealed Penal Code 653.22, which had criminalized loitering with intent to engage in prostitution. SB 357, the Safer Streets for All Act, eliminated the statute after criticism that it was disproportionately enforced against women of color and transgender individuals.6California Legislative Information. SB-357 Crimes – Loitering for the Purpose of Engaging in Prostitution That repeal remains in effect. Nobody can be charged under the old 653.22.
Effective January 1, 2026, AB 379 creates Penal Code 653.25, which targets loitering with intent to purchase commercial sex.7California Legislative Information. AB-379 Crimes – Prostitution The new law aims at buyers rather than sellers. Intent can be shown through conduct like circling an area by car and repeatedly trying to contact pedestrians, making unauthorized stops along areas known for prostitution, or similar behavior indicating an attempt to solicit someone for commercial sex. The law has drawn criticism for potentially broad enforcement, and legal challenges to its scope may emerge as cases work their way through the courts.
Soliciting Drinks in Bars
Penal Code 303a 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 is narrow, but it is still occasionally used, and a violation can also trigger administrative consequences for the establishment’s liquor license.
Penalties for a Loitering Conviction
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 Penal Code 647(h) and the basic offense under 653b both fall within this range.
First-time offenders with no criminal history rarely receive the maximum. Judges often impose probation, community service, or a modest fine, especially when the underlying conduct was minor. Drug-related loitering charges may include conditions like substance-abuse counseling as part of probation. The lasting consequence for most people is the criminal record itself, not the sentence.
Enhanced Penalties Under Section 653b
Section 653b reserves its harshest penalties for two groups: registered sex offenders and people required to register under California’s gang-activity provisions (Section 186.30).3California Legislative Information. California Code PEN 653b – Loitering About Schools or Public Places
For registered sex offenders caught loitering near schools, a first offense is up to six months in jail, a fine of up to $2,000, or both. A second offense carries a mandatory minimum of 10 days in jail (up to six months), with no early release until those 10 days are served, plus a fine of up to $2,000. A third or subsequent offense carries a mandatory minimum of 90 days in jail (up to six months), with no early release until those 90 days are served, plus a fine of up to $2,000.
For people registered under gang-activity provisions, a first offense is up to one year in jail, a fine of up to $1,000, or both. A second offense is up to one year in jail and a fine of up to $2,000, with the court required to consider a minimum of 10 days’ imprisonment. A third or subsequent offense is up to one year in jail and a fine of up to $2,000, with the court required to consider a minimum of 90 days’ imprisonment.
What Police Can and Cannot Do During a Loitering Stop
Most loitering investigations begin with an officer walking up to someone in a public space. The difference between a voluntary conversation and a formal detention matters.
If an officer approaches and starts asking questions without detaining you, the encounter is consensual. You are free to walk away without answering. The Fourth Amendment doesn’t apply until the officer restricts your movement, which requires articulable facts suggesting you are committing, have committed, or are about to commit a crime. A hunch isn’t enough. If an officer does detain you briefly, the detention must be short and reasonably related to its purpose.
California does not have a stop-and-identify statute. In most loitering encounters you are not legally required to provide your name, and you generally cannot be arrested solely for declining to show identification. The U.S. Supreme Court ruled in Hiibel v. Sixth Judicial District Court (2004) that states can require you to identify yourself during a lawful stop, but only when the state has passed a statute requiring it.10Legal Information Institute. Hiibel v. Sixth Judicial District Court of Nevada, 542 U.S. 177 (2004) California has not.
Miranda protections apply once you are placed under arrest. Before that point, police are not required to read you your rights, and silence during a voluntary encounter can potentially be used against you. If you want to invoke your right to remain silent, say so out loud rather than simply going quiet.
Defenses That Work in Loitering Cases
Because every California loitering statute requires some form of unlawful purpose, the most effective defense is usually a credible lawful reason for being where you were. Waiting for a friend, taking a break during a walk, checking your phone near a business — any legitimate explanation undercuts the intent element. The state has to prove criminal intent beyond a reasonable doubt, and intent is notoriously hard to establish from someone’s mere presence.
For Section 653b specifically, the “asked to leave” requirement is a built-in defense. If no authorized person actually told you to leave the school area, the basic offense has not been completed. The same applies to the 72-hour re-entry provision. Returning after that window is not covered by the statute.3California Legislative Information. California Code PEN 653b – Loitering About Schools or Public Places
Challenging the law itself remains a viable strategy in some cases. If a statute or local ordinance is written so broadly that it could sweep in obviously lawful behavior, a vagueness or overbreadth challenge may result in dismissal. Courts have been striking down vague loitering ordinances since Papachristou v. City of Jacksonville in 1972, and newer California ordinances are not immune to the same scrutiny.11Justia. Papachristou v. City of Jacksonville, 405 U.S. 156 (1972) Selective enforcement claims — that the law was applied disproportionately against a particular racial or demographic group — can also support dismissal, though they require concrete evidence of discriminatory patterns.
Collateral Consequences of a Conviction
A misdemeanor loitering conviction can carry weight beyond the sentence. Employers running background checks will see it, and in competitive hiring it can cost you opportunities even when the charge is minor. Professional licensing boards in fields like healthcare, education, and real estate review criminal history, and a conviction may trigger extra scrutiny during application or renewal.
For noncitizens, even a misdemeanor can create immigration consequences depending on the offense and the person’s status. Drug-related loitering under Health and Safety Code 11532 is particularly 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.
Clearing a Loitering Conviction From Your Record
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 become eligible after completing probation, or earlier if the court exercises its discretion. At the time of the petition you cannot 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 and disabilities tied to the conviction, though it doesn’t erase the record. The entry shows as a conviction that was later dismissed, which for most employment and licensing purposes is a meaningful improvement. The prosecutor must receive at least 15 days’ notice before the court rules on the petition, so build that into your timeline.