(213) 723-2337Free Consultation

SPECIFIC PENAL CODES LAW — CALIFORNIA

Loitering Laws in California — PC §653b and Related Statutes

California has several loitering statutes targeting loitering at schools (PC §653b), loitering to solicit drug sales (PC §647(d)), and loitering for prostitution (PC §653.22). Most are misdemeanors but criminal records from loitering convictions can have lasting consequences.

Reviewed by Daniel S. Rubin, CA Bar 302093 · Los Angeles Criminal Defense Attorney

Quick Reference

Loitering California — At a Glance

Law / Code
PC §653b / PC §647(d)
Classification
Misdemeanor
Maximum Penalty
Up to 6 months county jail
Probation Eligible
Yes
Strike Offense
No
If Charged — Call (213) 723-2337 Immediately
Understanding the Law

What Is Loitering California Under California Law?

Legal Framework. Penal Code section 653b is California’s school-loitering statute. It generally prohibits a person who is not a student, parent, guardian, school employee, or otherwise lawfully on school grounds from coming onto or remaining on the grounds or within 300 feet of a public or private school while school is in session or children are going to or leaving school, after being asked by the principal or a person designated by the principal to leave. The prosecution must prove the statutory setting, the lack of a lawful purpose or authority to be there, a qualifying request to leave, and a willful failure to depart. The statute is not a general ban on standing in public near a school; its specific notice, location, timing, and authorization requirements matter.

The Prosecution's Burden. A violation of Penal Code section 653b is generally a misdemeanor. The statute also contains more serious provisions for a person who comes onto or remains on school grounds after being directed to leave under circumstances involving a reasonable concern for the safety of pupils or school personnel, including enhanced consequences in specified repeat or safety-related situations. Whether the prosecutor files the ordinary misdemeanor provision or alleges an aggravated school-ground theory depends on the precise subsection, prior conduct, the warning given, and the facts known to school personnel. In Los Angeles County, reports may begin with a school administrator, Los Angeles School Police, LAPD, or LASD, but the prosecution still must establish every statutory element beyond a reasonable doubt.

Potential Consequences. Penal Code section 647(d), formerly used to address loitering in or about places where controlled substances are unlawfully used, sold, or purchased, was repealed effective January 1, 2023. It is therefore not a current stand-alone offense for conduct occurring after its repeal, although older cases and online sources may still refer to it. Loitering for prostitution is separately addressed by Penal Code section 653.22, but that statute was repealed effective January 1, 2023 as well. Conduct that once drew a loitering allegation may instead be investigated under another statute, such as drug possession or sales provisions in the Health and Safety Code, trespass, public nuisance, or disorderly-conduct provisions, depending on actual conduct rather than mere presence.

PC §653b / PC §647(d)|PC §653b|PC §647(d)

05 — Defense Strategies

How Rubin Law Defends Loitering California Charges

Rubin Law, P.C. attacks the elements of PC §653b / PC §647(d) and drives outcomes that avoid conviction where possible.

Challenge the Required Order to Leave

For the ordinary school-loitering theory under Penal Code section 653b, the prosecution must prove a qualifying request or direction to leave from the principal or a person designated by the principal, followed by a willful failure to leave. A vague request, an order from someone without delegated authority, conflicting instructions, or uncertainty about what area had to be left can defeat that element. We obtain school incident reports, dispatch records, body-worn camera footage, campus maps, and witness accounts to determine the exact words used, who said them, and whether the person had a fair and practical opportunity to comply.

U.S. Const. amend. IV

Establish a Lawful Purpose or Authority

Section 653b does not criminalize every nonstudent’s presence near a school. Parents, guardians, caregivers, contractors, delivery drivers, attendees at school events, people conducting lawful business, and persons using public areas for legitimate purposes may have authority or a lawful reason to be present. The defense focuses on why the person was there, where they stood, and whether that reason was communicated or reasonably apparent. Messages with a parent or student, appointment records, delivery confirmations, employment records, event information, and nearby surveillance can show that the prosecution’s claim of unauthorized loitering ignores the actual context.

17 CCR §1219.3

Contest the Location and Time Elements

The statute applies only in defined school-related places and at defined times, including school grounds and specified proximity to a school while school is in session or children are arriving or departing. The distance requirement is not a guess. A report that merely says someone was “near a school” may be insufficient if no one measured from the relevant school boundary or established the applicable time period. We examine maps, parcel lines, photographs, bell schedules, dismissal schedules, and video timestamps. If the alleged conduct occurred beyond the statutory zone, before or after the relevant period, or at a location not covered by the charged subsection, the charge may not stand.

NHTSA SFST

Show the Conduct Was Not Willful

A conviction requires a willful failure to leave, not simply delayed movement or an innocent misunderstanding. A person may have been walking away, waiting for a ride, dealing with a disability, attempting to retrieve property, seeking clarification, or unable to hear an instruction amid traffic or a crowded dismissal. Language barriers and confusing commands can also bear directly on willfulness. We assess body-camera audio, officer positioning, traffic conditions, the person’s response, and any objective evidence that they were attempting to comply. This defense is especially important where the encounter escalated quickly from a warning to an arrest.

VC §23152

Suppress an Unlawful Detention or Search

A school administrator may ask a person to leave, but police authority to detain, search, or arrest remains constrained by the Fourth Amendment and article I, section 13 of the California Constitution. Officers generally need reasonable suspicion of criminal activity to prolong a consensual encounter into a detention, and a search requires an applicable legal justification. If LAPD, LASD, or another agency stopped the person without adequate grounds, searched belongings without valid consent or a warrant exception, or obtained statements after an unlawful detention, a motion to suppress under Penal Code section 1538.5 may exclude critical evidence.

17 CCR §1219.1

Correct Charges Based on Repealed Loitering Laws

Penal Code sections 647(d) and 653.22 were repealed effective January 1, 2023. A complaint alleging either statute for conduct after repeal raises a fundamental legal defect; prosecutors cannot obtain a conviction under a repealed criminal provision for later conduct. Even in an older case, the charging date, statutory version, and any savings-clause question must be analyzed carefully. We review the complaint, police report, arrest date, and the statute actually cited. If authorities use obsolete “drug loitering” or “prostitution loitering” terminology to justify a current charge, the case must be tied to a valid, currently enforceable statute and supported by its separate elements.

VC §23103.5

Questions

Frequently Asked — Loitering California

What is illegal loitering near a California school?

Penal Code section 653b is not a general prohibition on being near a school. Its ordinary school-loitering provisions target specified conduct by a person who is not lawfully present on school grounds or within the statute’s defined area near a public or private school during covered school times, and who willfully fails to leave after a proper request from the principal or an authorized designee. The precise subsection matters because section 653b contains several provisions. A prosecutor must prove the location, timing, lack of lawful authority or purpose where required, the identity and authority of the person giving the order, notice to leave, and a willful failure to comply. Being a parent, caregiver, delivery worker, visitor, or person engaged in other lawful activity may materially change the analysis.

Is PC 653b a felony or misdemeanor in California?

Most prosecutions under Penal Code section 653b are misdemeanors. The statute includes different provisions and can impose more serious consequences in specified circumstances, particularly where conduct on school grounds follows a direction to leave and implicates safety concerns or repeat conduct. The exact charging subsection controls the potential sentence and cannot be assumed from the shorthand label “loitering.” A misdemeanor conviction can still create a public criminal record, probation conditions, court fines and assessments, immigration concerns for noncitizens depending on the facts and disposition, and problems with employment or professional licensing. Early review of the complaint is important because a citation, arrest report, and court filing may describe the conduct differently.

Can I be arrested merely for standing on a public sidewalk near a school?

Not merely because you are standing on a public sidewalk. Penal Code section 653b has specific statutory elements, including particular locations, school-related times, notice to leave, and willful noncompliance. Public sidewalks also raise constitutional concerns because they are traditional public forums, although lawful restrictions and enforcement may apply in particular circumstances. The facts matter: whether the sidewalk was within the statutory distance, whether children were arriving or leaving, whether there was a legitimate purpose, who instructed you to leave, and whether you actually refused. Police may investigate reported conduct, but an arrest requires probable cause for a particular offense. Video, maps, dispatch audio, and the wording of the warning are often central evidence.

Is loitering to buy or sell drugs still a crime under PC 647(d)?

No. Penal Code section 647(d) was repealed effective January 1, 2023. It is not a current stand-alone offense for conduct occurring after that date. Law enforcement can still investigate and prosecutors can still charge actual drug crimes when the evidence supports them, including possession, transportation, sale, or possession for sale under the applicable Health and Safety Code provisions. But suspicion based only on presence in an area, association with others, or behavior formerly described as “drug loitering” does not itself establish a current section 647(d) violation. If a citation or complaint lists PC 647(d) for recent conduct, the charging document should be reviewed promptly for legal error and for whether another valid offense was actually alleged.

Is loitering for prostitution still illegal under PC 653.22?

Penal Code section 653.22, the former offense commonly called loitering for prostitution, was repealed effective January 1, 2023. It cannot serve as a current criminal charge for conduct after its repeal. That repeal does not eliminate all prostitution-related offenses: for example, Penal Code section 647(b) remains California’s disorderly-conduct provision addressing solicitation or agreement to engage in prostitution and acts of prostitution, subject to its own elements and constitutional limits. Police and prosecutors must prove the conduct required by the statute actually charged; they cannot substitute a person’s location, clothing, companions, or past reputation for proof. A case using outdated loitering language should be examined closely for the date of conduct and the actual statutory basis.

What should I do after a loitering citation or arrest in Los Angeles County?

Do not ignore the citation, notice to appear, or arraignment date. In Los Angeles County, a misdemeanor case may be filed in the Los Angeles Superior Court serving the arrest location, and the Los Angeles County District Attorney or a city prosecutor may decide whether to file charges depending on the offense and agency involved. Preserve helpful evidence immediately: photographs of the location, maps, phone records, messages, receipts, names of witnesses, and any video that may be overwritten. Do not contact alleged witnesses or school personnel to argue the facts. A lawyer can obtain reports, assess whether the cited statute was in force on the alleged date, and evaluate suppression, factual, and negotiated-resolution options. For case-specific guidance, Rubin Law, P.C. can be reached at (213) 723-2337.

Available 24/7 — Free Consultation

Charged with Loitering California? Call Rubin Law Now.

Daniel S. Rubin defends clients facing specific penal codes charges throughout Los Angeles County. Your first consultation is free and confidential.