Yes, it is illegal to defecate in public in California. The most direct law is Health and Safety Code section 117555, which makes it a misdemeanor to deposit human waste on any street, alley, public highway, road, park, or other public property not set aside for waste disposal.1California Legislative Information. California Health and Safety Code 117555 A conviction carries up to six months in county jail, a fine of up to $1,000, or both.2California Legislative Information. California Code PEN 19 – Misdemeanor Punishment The same statute reaches private property when the owner has not consented.
That is the ceiling for a straightforward case. The floor and the ceiling both move once you factor in the other statutes a prosecutor can reach for, and one of them can turn a hygiene citation into a sex crime.
Other Charges That Can Apply
Prosecutors are not limited to Health and Safety Code 117555. The same act can also be charged as a public nuisance under Penal Code section 372, which is a misdemeanor carrying the same maximum penalty: up to six months in jail and a $1,000 fine.3California Legislative Information. California Code PEN 372 – Public Nuisance A public nuisance under California law is anything that injures health, offends the senses, or interferes with the comfortable enjoyment of property by a community, and public defecation fits.
On buses, trains, and inside stations, Penal Code section 640 applies. It bans urinating or defecating anywhere in a public transportation facility or vehicle outside a designated restroom, with an exception for people who cannot comply because of a disability, age, or a medical condition. The penalties here are lighter than the general misdemeanor: up to $400 in fines, up to 90 days in county jail, or both.4California Legislative Information. California Penal Code 640 – Miscellaneous Offenses
Most California cities and counties have their own ordinances too, and these tend to be enforced more actively than the state statutes because cities treat the behavior as a neighborhood quality-of-life issue. A city can classify a violation as either an infraction or a misdemeanor. As an infraction, the fine is up to $100 for a first offense, $200 for a second violation of the same ordinance within one year, and $500 for each additional violation that year, with no jail time. As a misdemeanor, the ordinance can reach the same $1,000 and six months as the state law.5Justia Law. California Code Government Code 36900-36904 – General
When It Becomes Indecent Exposure
This is where the stakes change. If the act involves exposing yourself with what the law calls lewd intent, prosecutors can charge indecent exposure under Penal Code section 314 in addition to or instead of the other charges. The prosecution has to prove you willfully and lewdly exposed yourself in a public place, or where others were present and likely to be offended.6California Legislative Information. California Penal Code 314 – Indecent Exposure
Lewd intent means the exposure was for sexual gratification or to sexually offend someone. Simply needing to relieve yourself does not meet that standard. If the exposure carries a sexual component or deliberately draws attention to the genitals, the charge shifts from a hygiene violation to a sex offense. Most public defecation cases do not reach this level, but the line matters because of what follows a conviction.
Sex Offender Registration
Any conviction under Penal Code 314 triggers mandatory sex offender registration under Penal Code section 290.7California Legislative Information. California Code PEN 290 – Sex Offender Registration A first misdemeanor conviction sits in the lowest tier of California’s three-tier system and requires registration for a minimum of ten years. Registration affects where you can live, where you can work, and how you appear in public databases.
A second or subsequent indecent exposure conviction, a first conviction after a prior child molestation conviction under Penal Code 288, or a conviction after entering an inhabited dwelling without consent elevates the charge to a felony punishable by state prison time.6California Legislative Information. California Penal Code 314 – Indecent Exposure The gap between a $400 transit fine and ten years on the sex offender registry is why the intent element matters so much when this charge is on the table.
Homelessness Is Not a Defense After Grants Pass
Some defense attorneys used to argue that punishing biological functions when no public restrooms were available was cruel and unusual, extending the Ninth Circuit’s reasoning in Martin v. Boise to urination and defecation.
The U.S. Supreme Court cut off that argument in City of Grants Pass v. Johnson (2024). By a 6-3 vote, the Court held that enforcing generally applicable laws regulating conduct on public property is not cruel and unusual punishment under the Eighth Amendment. The Court’s reasoning was that the ordinances punish an action rather than a status, so they apply equally to everyone regardless of housing situation.8Supreme Court of the United States. City of Grants Pass v. Johnson After Grants Pass, California cities have broader authority to enforce these laws, though many jurisdictions still exercise prosecutorial discretion, particularly on first offenses involving unhoused individuals.
Consequences Beyond the Case Itself
A conviction can reach further than the fine and jail time. Professional licensing boards care. The California Board of Registered Nursing, for example, requires licensees to report every conviction, including infractions, misdemeanors, and felonies, even after expungement, and identifies convictions requiring sex offender registration as substantially related to nursing duties for discipline purposes.9Board of Registered Nursing. License Discipline and Convictions Other boards in fields like law, medicine, and education apply similar disclosure and disciplinary rules.
Non-citizens face separate risk. U.S. Citizenship and Immigration Services treats indecent exposure as an offense that may or may not qualify as a crime involving moral turpitude, depending on the specific state statute and the facts of the case.10U.S. Citizenship and Immigration Services. USCIS Policy Manual Volume 12 Part F Chapter 5 – Conditional Bars for Acts in Statutory Period A crime involving moral turpitude can trigger deportation or make someone inadmissible. Anyone on a visa, holding a green card, or working toward naturalization should talk to an immigration attorney before entering any plea.
Clearing a Conviction Later
Misdemeanor convictions for public defecation under Health and Safety Code 117555, Penal Code 372, or a local ordinance can be expunged under Penal Code section 1203.4. You must have completed probation (or been discharged from it early), not be currently serving a sentence or on probation for another offense, and not have new charges pending. If the court grants the petition, it withdraws your guilty plea, enters a not-guilty plea, and dismisses the case.11California Legislative Information. California Code PEN 1203.4 – Dismissal After Probation
Expungement is not a full erasure. Professional licensing boards can still see and consider an expunged conviction, and you still have to disclose it on licensing applications. Indecent exposure convictions under Penal Code 314 may also be eligible for expungement because that statute is not on the section 1203.4 exclusion list, but the sex offender registration obligation runs on its own timeline and does not end automatically when a case is expunged.11California Legislative Information. California Code PEN 1203.4 – Dismissal After Probation