Quick summary
No. In California, loitering by itself is not a crime. It becomes one only when a specific law applies, such as lingering on someone else’s property to commit a crime (Penal Code 647(h)), refusing to leave property when asked, or loitering in public to buy sex or drugs.
- When it’s a crime: Under PC 647(h), PC 602, PC 653b (schools) and PC 653.25 (buying sex, new in 2026), the key is your purpose or a refused request to leave.
- Penalties: Most are misdemeanors with up to 6 months in county jail and a $1,000 fine. A few carry more.
- Defenses: You had a lawful reason to be there, you had no intent to commit a crime, or police stopped you without legal grounds.
- Example: Jay waits outside a school to pick up his little sister. He commits no crime: he has a lawful reason to be there and no intent to commit one.
In this article, our California criminal defense lawyers answer 12 common questions about California’s loitering laws:
- 1. What counts as loitering in California?
- 2. Loitering to commit a crime (PC 647(h))
- 3. Refusing to leave: trespass (PC 602)
- 4. Loitering near schools (PC 653b)
- 5. Loitering to buy sex (PC 653.25)
- 6. Drug loitering, failing to disperse and bar loitering
- 7. How long until it’s loitering?
- 8. Local and gang loitering ordinances
- 9. Penalties at a glance
- 10. Defenses to a loitering charge
- 11. Loitering laws that were repealed or struck down
- 12. Frequently asked questions
1. What counts as loitering in California?
In California, “loitering” means lingering somewhere without a lawful reason and for the purpose of committing a crime if the chance comes up.1
That second part matters most. California’s Supreme Court has said the word excludes “mere waiting for any lawful purpose.” Waiting for a ride, resting on a bench or standing outside a store is not loitering.
Loitering alone is not a state crime
No California statute punishes simply hanging around. Each loitering law adds something more: a criminal purpose, a specific place (private property, a school, a bar), or a refusal to leave after being asked.
This flowchart shows which law can apply, based on where you were and what you were doing:
Which laws cover loitering in California?
- PC 647(h): lingering on someone else’s private property to commit a crime.
- PC 602: refusing to leave property when the owner or police ask you to.
- PC 653b: loitering at a school or where children gather.
- PC 653.25: loitering in public to buy sex.
- H&S 11532: loitering in public to commit a drug offense.
- PC 416 and PC 303a: refusing an order to disperse, and begging drinks in a bar.
2. Loitering to commit a crime (PC 647(h))
In California, Penal Code 647(h) is the main loitering law. It makes it a crime to loiter, prowl or wander on someone else’s private property with no lawful reason and with the intent to commit a crime if the chance arises. The law reads:
“Who loiters, prowls, or wanders upon the private property of another, at any time, without visible or lawful business with the owner or occupant. As used in this subdivision, ‘loiter’ means to delay or linger without a lawful purpose for being on the property and for the purpose of committing a crime as opportunity may be discovered.”2
In plain words, being on someone’s property is not enough. The prosecutor must show why you were there.
What the prosecutor must prove
Under the California jury instruction, the prosecutor must prove that you:3
- delayed, lingered, prowled or wandered on someone else’s private property,
- had no lawful purpose for being there, and
- intended to commit a crime if the opportunity arose.
Example: Marco cuts through a neighbor’s side yard at night, trying car door handles in the driveway. That can be loitering under PC 647(h). If Marco were cutting through to reach his own house, it would not.
Penalties for PC 647(h)
A 647(h) violation is “disorderly conduct, a misdemeanor.”4 It carries up to 6 months in county jail and a fine of up to $1,000.5 A related offense, PC 647(i), covers peeking into a home’s door or window while loitering on the property.
3. Refusing to leave: trespass (PC 602)
In California, staying on property after being told to leave can be trespass under Penal Code 602. Two parts of the law fit loitering best:6
- 602(o), refusing to leave: staying on property that is not open to the public after the owner, or police acting for the owner, asks you to leave.
- 602(m), occupying without consent: entering and occupying someone’s property without the owner’s permission.
Most 602 trespass offenses are misdemeanors with up to 6 months in jail and a $1,000 fine.7 Staying somewhere long-term without permission, such as sleeping there, can also be charged as illegal lodging under PC 647(e). See also PC 602.5 for entering someone’s home without consent.
Example: Dana sits in a closed office complex’s gated parking lot after hours. The property manager asks her to leave and she refuses. That can be trespass under PC 602(o). If nobody asked her to leave, it would not be.
What if the business is open?
A store, restaurant or mall open to the public can still ask you to leave. Refusing is a crime under Penal Code 602.1 only if you were also intentionally obstructing or intimidating the business or its customers. That offense carries up to 90 days in jail and a $400 fine.8
4. Loitering near schools (PC 653b)
In California, Penal Code 653b makes it a crime to loiter at a school or a public place where children gather (such as a playground or public pool), and then either:9
- stay after being asked to leave, or
- come back within 72 hours after being asked to leave.
The request must come from the school’s chief administrator (or the person acting in that role), a school security officer authorized in writing, or a city police officer, sheriff’s deputy or CHP officer.
You must have intended to commit a crime
Under 653b, “loiter” means to linger or idle about a school or public place “without lawful business for being present.”10 A California appeals court has held that the law also requires proof that you had the specific intent to commit a crime. That intent requirement is what makes the law constitutional.11
Example: A parent waits by the school fence after being told to wait in the car, because she wants to talk to her son’s teacher. She has a lawful reason and no criminal purpose, so it’s not loitering under PC 653b.
Penalties for PC 653b
A first 653b violation is a misdemeanor with up to 6 months in jail and a $1,000 fine. Penalties are higher only for two groups:12
- Registered sex offenders (PC 290): up to $2,000 on a first conviction, and mandatory jail time of 10 days or 90 days on repeat convictions.
- Registered gang members (PC 186.30, which applies after a conviction under PC 186.22): up to 1 year in jail.
5. Loitering to buy sex (PC 653.25)
Since January 1, 2026, California Penal Code 653.25 makes it a crime to loiter in a public place with the intent to buy sex.13
The law lists the kind of behavior that can show that intent:
- circling an area in a car and repeatedly waving to, contacting or trying to stop people,
- making repeated, unauthorized stops along areas known for prostitution, or
- other conduct that shows you were trying to arrange paid sex.
A violation is a misdemeanor.14 On top of the usual penalties, the court must add a $1,000 fine. The law targets buyers. Loitering to sell sex is no longer a crime (see section 11), but solicitation and prostitution under PC 647(b) still are.
Example: Ron drives slowly around the same blocks at night, pulling over to call out to people on the sidewalk. Police could charge him under PC 653.25. A driver who is lost and stops to ask for directions is not loitering.
6. Drug loitering, failing to disperse and bar loitering
Loitering to commit a drug offense (H&S 11532)
California Health and Safety Code 11532 makes it a misdemeanor to loiter in a public place with the intent to commit a drug offense.15 The law lists signs police look for, such as acting as a lookout or passing small packages for cash. But no single sign proves intent on its own.
In 2024, the California Supreme Court held that a man’s presence in a known drug area at night, combined with avoiding officers, did not justify stopping him on suspicion of drug loitering.16
Failing to disperse (PC 416)
In California, Penal Code 416 makes it a misdemeanor for two or more people who gather to disturb the peace or commit an unlawful act to refuse a police order to disperse.17 Because the First Amendment protects peaceful gatherings, courts have limited the law:
“We construe Penal Code section 416 as empowering a public official to demand dispersal only where there is probable cause to believe that the purpose of an assembly is unlawful, according to the facts and circumstances of each individual case.”18
In other words, police cannot order a peaceful, lawful group to break up and then arrest people for staying. If you personally damaged property, the court must also order you to pay for it, or to do community service if you can’t pay.19
Loitering in a bar to beg for drinks (PC 303a)
In California, Penal Code 303a makes it a misdemeanor to hang around a bar or restaurant that serves alcohol to beg customers to buy you drinks.20
7. How long until it’s loitering?
California law sets no time limit for loitering. Whether you were there for 5 minutes or 5 hours, what matters is why you were there, where you were and whether you were asked to leave.21
Parking lots
Sitting in your car in a parking lot is not a crime by itself. It can become trespass if the lot is closed to the public and the owner, or police acting for the owner, tells you to leave and you stay.22 A “No loitering” sign alone does not make waiting there a state crime. What matters is whether one of the laws above applies, such as refusing to leave when asked.
Sidewalks, parks and other public places
You have a right to be in public places. Standing on a sidewalk or sitting in a park is not a state crime unless one of the laws above applies, such as loitering near a school with intent to commit a crime, or loitering to buy sex or drugs. Some cities have their own rules, covered in the next section.
8. Local and gang loitering ordinances
Many California cities and counties have their own loitering ordinances, such as gang-loitering rules. The penalties and rules depend on the city or county where you were cited, so check the local code.
Courts read gang-loitering laws strictly. In one Los Angeles County case, a California appeals court reversed a gang-loitering finding against a teenager who was seen standing on a sidewalk talking with a fellow gang member. Nothing he did showed he meant to intimidate anyone or publicize the gang.23
9. Penalties at a glance
Here are California’s main loitering laws, what makes each one a crime and the usual maximum penalty:
| Law | Where | What makes it a crime | Maximum penalty |
|---|---|---|---|
| PC 647(h) | Someone else’s private property | No lawful purpose, and intent to commit a crime | 6 months jail, $1,000 |
| PC 602(o) | Property not open to the public | Refusing to leave when the owner or police ask | 6 months jail, $1,000 |
| PC 602.1 | Business open to the public | Obstructing the business and refusing to leave | 90 days jail, $400 |
| PC 653b | Schools, places where children gather | Staying or returning within 72 hours after a request to leave, with intent to commit a crime | 6 months jail, $1,000 (more for registered sex offenders and gang members) |
| PC 653.25 | Public places | Intent to buy sex | 6 months jail, $1,000, plus a mandatory $1,000 fine |
| H&S 11532 | Public places | Intent to commit a drug offense | 6 months jail, $1,000 |
| PC 416 | Any gathering | Refusing a lawful order to disperse an unlawful assembly | 6 months jail, $1,000 |
| PC 303a | Bars and restaurants serving alcohol | Begging customers to buy you drinks | 6 months jail, $1,000 |
All of these are misdemeanors. A judge may grant misdemeanor (summary) probation instead of jail. After probation, you can usually ask the court to clear the conviction under PC 1203.4.
10. Defenses to a loitering charge
In California, a loitering charge often depends on the officer’s guess about why you were somewhere. That makes these cases very defensible. In our experience, prosecutors often reduce or dismiss loitering charges once we show a lawful reason for being there.
You had a lawful reason to be there
Waiting for a ride, working, shopping or picking up a child is not loitering. California’s Supreme Court has said loitering excludes “mere waiting for any lawful purpose.”24
You didn’t intend to commit a crime
Under PC 647(h) and PC 653b, the prosecutor must prove you meant to commit a crime.25 PC 653.25 and H&S 11532 likewise require proof that you intended to buy sex or commit a drug offense. We often see cases where the only evidence of intent is that the person was in a “high-crime area” or walked away from police. That’s rarely enough.
Police stopped you without legal grounds
The Fourth Amendment requires police to have reasonable suspicion before they detain you. Being in a known drug area at night and avoiding officers is not enough on its own.26 If the stop was illegal, a motion to suppress can keep out what police found. That can lead to the charge being dismissed or reduced.
You were falsely accused
Property owners, neighbors and security guards sometimes call police about people they simply don’t want around. If the accuser exaggerated or misread what you were doing, that is a defense. See our page on false accusations and our overview of legal defenses.
11. Loitering laws that were repealed or struck down
Loitering with intent to commit prostitution (former PC 653.22)
California repealed Penal Code 653.22 effective January 1, 2023.27 It had let police arrest people based only on their belief about a person’s intent, and critics said it led to profiling. Later bills to bring it back failed, so loitering to sell sex is not a crime in California.
If you were convicted under the old law, you can ask the court to:28
- recall or dismiss your sentence and seal the conviction, if you are still serving it, or
- dismiss and seal the conviction, if you already finished your sentence.
Why loitering laws get struck down
Courts strike down loitering laws that are too vague, such as laws that let police arrest people just for being somewhere. In 1983, the U.S. Supreme Court struck down California’s old loitering law, former PC 647(e). It had required people who “loiter or wander” to show “credible and reliable” identification when police asked.29 In 1999, the Court struck down a Chicago gang-loitering ordinance because defining loitering as staying in one place “with no apparent purpose” gave police too much discretion.30
That is why California’s current laws all require something more than presence: a criminal purpose, a specific place or a refused request to leave.
12. Frequently asked questions
Is loitering illegal in California?
Not by itself. Loitering is a crime in California only under a specific law, such as PC 647(h) (lingering on private property to commit a crime), PC 653b (schools) or PC 653.25 (to buy sex).
How long can you stay somewhere before it’s loitering?
California sets no time limit. What matters is your purpose, where you are and whether you refused a request to leave.
Can police make me leave a parking lot?
If the lot is closed to the public and the owner, or police acting for the owner, asks you to leave, staying can be trespass under PC 602(o). Simply sitting in an open lot is not a crime.
Is loitering a misdemeanor or a felony in California?
California’s loitering laws are misdemeanors, usually punishable by up to 6 months in jail and a $1,000 fine. None of them is a felony.
Can I clear a loitering conviction from my record?
Usually yes. Most misdemeanor convictions can be dismissed under PC 1203.4 after probation. Old PC 653.22 convictions can be dismissed and sealed because that law was repealed.
Charged with loitering in California? Contact us for help
If you or a loved one was cited or arrested for loitering, trespass or a related charge in California, our criminal defense attorneys can review the stop and the evidence. Contact us for a free consultation. We can be reached 24/7.
Legal references:
- People v. Superior Court (Caswell) (1988) 46 Cal.3d 381, 390: the word “loiter” excludes “mere waiting for any lawful purpose” and means “lingering in the designated places for the purpose of committing a crime as opportunity may be discovered” (quoting In re Cregler (1961) 56 Cal.2d 308, 311–312).
- California Penal Code 647(h) PC: “Who loiters, prowls, or wanders upon the private property of another, at any time, without visible or lawful business with the owner or occupant. As used in this subdivision, ‘loiter’ means to delay or linger without a lawful purpose for being on the property and for the purpose of committing a crime as opportunity may be discovered.”
- CALCRIM No. 2915, Loitering (Pen. Code, § 647(h)): the People must prove that the defendant delayed, lingered, prowled, or wandered on the private property of someone else; had no lawful purpose for being there; and intended to commit a crime if the opportunity arose.
- California Penal Code 647 PC: “a person who commits any of the following acts is guilty of disorderly conduct, a misdemeanor.”
- California Penal Code 19 PC: “every offense declared to be a misdemeanor is punishable by imprisonment in the county jail not exceeding six months, or by fine not exceeding one thousand dollars ($1,000), or by both.”
- California Penal Code 602 PC: “a person who willfully commits a trespass by any of the following acts is guilty of a misdemeanor: … (m) Entering and occupying real property or structures of any kind without the consent of the owner, the owner’s agent, or the person in lawful possession. … (o)(1) Refusing or failing to leave land, real property, or structures belonging to, or lawfully occupied by, another and not open to the general public, upon being requested to leave by (1) a peace officer at the request of the owner, the owner’s agent, or the person in lawful possession … or (2) the owner, the owner’s agent, or the person in lawful possession.”
- Penal Code 19 PC (see note 5 above).
- California Penal Code 602.1(a) PC: a person who “intentionally interferes with any lawful business … by obstructing or intimidating those attempting to carry on business, or their customers, and who refuses to leave the premises … after being requested to leave … is guilty of a misdemeanor, punishable by imprisonment in a county jail for up to 90 days, or by a fine of up to four hundred dollars ($400), or by both.”
- California Penal Code 653b(a) PC: “every person who loiters about any school or public place at or near which children attend or normally congregate and who remains at any school or public place at or near which children attend or normally congregate, or who reenters or comes upon a school or place within 72 hours, after being asked to leave by the chief administrative official of that school … or by a member of the security patrol of the school district who has been given authorization, in writing, … or a city police officer, or sheriff or deputy sheriff, or Department of the California Highway Patrol peace officer is a vagrant, and is punishable by a fine of not exceeding one thousand dollars ($1,000) or by imprisonment in a county jail for a period not exceeding six months, or by both.”
- California Penal Code 653b(d) PC: “‘loiter’ means to delay, to linger, or to idle about a school or public place without lawful business for being present.”
- In re Gary H. (2016) 244 Cal.App.4th 1463, 1468: “section 653b passes constitutional muster because it includes a scienter element: it requires proof that a person loitering near a school had the specific intent to commit a crime.”
- California Penal Code 653b(b)–(c) PC: a person required to register as a sex offender faces up to $2,000 and six months on a first conviction, at least 10 days in jail after one prior and at least 90 days after two or more; a person required to register under Penal Code 186.30 faces up to $1,000 and one year on a first conviction and up to $2,000 and one year after that.
- California Penal Code 653.25 PC (added by AB 379, Stats. 2025, ch. 82, effective January 1, 2026): “(a) It is unlawful for any person to loiter in any public place with the intent to purchase commercial sex. This intent is evidenced by acting in a manner and under circumstances that openly demonstrate the purpose of inducing, enticing, or soliciting prostitution, or procuring another to commit prostitution such as circling an area in a motor vehicle and repeatedly beckoning to, contacting, or attempting to contact or stop pedestrians or other motorists, making unauthorized stops along known prostitution tracks, or engaging in other conduct indicative of soliciting to procure another to engage in commercial sex. (b) A violation of this section shall, in addition to any other punishment, be punished by a fine of one thousand dollars ($1,000).”
- California Penal Code 653.26 PC: “A violation of any provision of this chapter is a misdemeanor.”
- California Health and Safety Code 11532 HS: “(a) It is unlawful for any person to loiter in any public place in a manner and under circumstances manifesting the purpose and with the intent to commit an offense specified in Chapter 6 (commencing with Section 11350) and Chapter 6.5 (commencing with Section 11400).” Subdivision (b) lists circumstances such as acting as a “look-out” and transferring “small objects or packages for currency in a furtive fashion.” Subdivision (c): “no one circumstance or combination of circumstances is in itself determinative of intent.” Health and Safety Code 11536 HS: “A violation of any provision of this chapter is a misdemeanor.”
- People v. Flores (2024) 15 Cal.5th 1032, 1045: “The record, considered in its totality, fails to support a reasonable suspicion that Flores was loitering for the purpose of committing a narcotics offense (as the officer suspected) or was otherwise engaged in ‘criminal activity.’”
- California Penal Code 416(a) PC: “If two or more persons assemble for the purpose of disturbing the public peace, or committing any unlawful act, and do not disperse on being desired or commanded so to do by a public officer, the persons so offending are severally guilty of a misdemeanor.”
- Chambers v. Municipal Court (1977) 65 Cal.App.3d 904, 911: “We construe Penal Code section 416 as empowering a public official to demand dispersal only where there is probable cause to believe that the purpose of an assembly is unlawful, according to the facts and circumstances of each individual case.”
- California Penal Code 416(b) PC: a person who “personally causes damage to real or personal property” while violating subdivision (a) “shall make restitution,” or community service if the court finds the person unable to pay.
- California Penal Code 303a PC: “It shall be unlawful, in any place of business where alcoholic beverages are sold to be consumed upon the premises, for any person to loiter in or about said premises for the purpose of begging or soliciting any patron or customer of, or visitor in, such premises to purchase any alcoholic beverage for the one begging or soliciting. Violation of this section shall be a misdemeanor.”
- Penal Code 647(h) PC (see note 2 above).
- Penal Code 602 PC (see note 6 above).
- In re Daniel G. (2004) 120 Cal.App.4th 824, 835 (reversing a finding under Los Angeles County Code 13.44.010, gang loitering): “We therefore hold that the evidence was insufficient to sustain the petition.”
- Caswell, 46 Cal.3d at p. 390 (see note 1 above).
- Penal Code 647(h) PC (see note 2 above); Gary H., 244 Cal.App.4th at p. 1468 (see note 11 above).
- Flores, 15 Cal.5th at p. 1045 (see note 16 above).
- SB 357 (Stats. 2022, ch. 86), repealing former Penal Code 653.20 and 653.22, effective January 1, 2023.
- California Penal Code 653.29 PC: a person “currently serving a sentence for a conviction of violating former Section 653.22 … may petition for a recall or dismissal of sentence,” and the court “shall seal the conviction as legally invalid”; a person “who has completed their sentence” may apply “to have the conviction dismissed and sealed because the prior conviction is now legally invalid.”
- Kolender v. Lawson (1983) 461 U.S. 352, 353: former Penal Code 647(e) “as it has been construed is unconstitutionally vague within the meaning of the Due Process Clause of the Fourteenth Amendment by failing to clarify what is contemplated by the requirement that a suspect provide a ‘credible and reliable’ identification.”
- City of Chicago v. Morales (1999) 527 U.S. 41, 61: the ordinance was invalid because its definition of loitering, “to remain in any one place with no apparent purpose,” gave police “vast discretion.”