Is Prostitution Illegal in California? Penalties & Defenses

Yes, prostitution is illegal in California. Penal Code 647(b) makes it a crime to engage in, agree to, or solicit sex in exchange for money or anything of value, and the law applies equally to the person selling and the person buying. A completed sexual act is not required; agreeing to the exchange is enough. Penalties start at the misdemeanor level for a first offense and climb into serious felony territory when the case involves a minor, a pimp or panderer, or human trafficking.

What the Law Prohibits

Penal Code 647(b) covers three separate acts: engaging in prostitution, agreeing to engage in it, and soliciting someone else to engage in it. Neither party has to follow through for the agreement itself to be a crime.1California Legislative Information. California Penal Code 647 (2025)

The agreement does not have to be spoken. Gestures, showing cash, or handing money over with an implied understanding can each establish intent. Prosecutors regularly build cases from recorded conversations captured during undercover stings, where officers pose as either the buyer or the seller. Text messages and communications sent through dating or escort apps are also admissible and now feature in a growing share of solicitation prosecutions.1California Legislative Information. California Penal Code 647 (2025)

Penalties for a First and Repeat Offense

A first violation of Penal Code 647(b) is a misdemeanor. The maximum penalties are up to six months in county jail, a fine of up to $1,000, and mandatory completion of an AIDS/HIV education program. Judges may add probation conditions such as community service or counseling, and buyers are sometimes ordered into a “John School” program.1California Legislative Information. California Penal Code 647 (2025)

Repeat convictions come with mandatory minimum jail time that judges cannot waive. A second conviction requires at least 45 days in jail. A third or later conviction requires at least 90 days. The statutory fine cap stays at $1,000, but court assessments, penalty surcharges, and program fees push the real out-of-pocket cost higher.1California Legislative Information. California Penal Code 647 (2025)

When the Charges Become Felonies

California punishes anyone who profits from or facilitates someone else’s prostitution much more harshly than the two people in the transaction.

Aiding, Pimping, and Pandering

Penal Code 653.23 makes it a crime to direct, recruit, or help someone commit prostitution, or to collect any portion of the proceeds. Drivers, lookouts, and money collectors are the typical targets. Even steering a customer toward a sex worker can support charges under this section.2California Legislative Information. California Penal Code 653.23 (2021)

Pimping (Penal Code 266h) means knowingly living off or receiving support from another person’s prostitution earnings. Pandering (Penal Code 266i) covers encouraging, persuading, or procuring someone to become a sex worker, or receiving anything of value for connecting a person with prostitution. An unsuccessful attempt to convince someone to enter sex work still qualifies. Both offenses carry three, four, or six years in state prison when the person engaged in prostitution is an adult.3California Legislative Information. California Penal Code 266i

When a Minor Is Involved

Pimping or pandering a minor aged 16 or 17 carries three, four, or six years in prison. If the minor is under 16, the sentence is three, six, or eight years. Prosecutors do not need to prove the defendant knew the minor’s age, and mistake about age is not a defense.4Justia. CALCRIM No. 1150 – Pimping (Pen. Code 266h)

Human Trafficking

Human trafficking for sexual exploitation under Penal Code 236.1 carries the steepest penalties in this area. When trafficking involves pimping, pandering, or similar offenses against an adult, the sentence is 8, 14, or 20 years in state prison and a fine of up to $500,000. When the victim is a minor, the sentence is 5, 8, or 12 years, rising to 15 years to life if force, fraud, or coercion was used, plus a fine of up to $500,000. Cases involving violence often carry stacked charges such as kidnapping or assault.5California Legislative Information. California Penal Code 236.1 (2025)

Minors Are Treated as Victims

Since January 2017, when SB 1322 took effect, a minor under 18 cannot be criminally prosecuted for prostitution in California. The law treats them as victims. Federal law does the same: the Trafficking Victims Protection Act classifies any minor in commercial sex as a trafficking victim by definition. The criminal exposure falls entirely on the adults involved, and the enhanced pimping and pandering penalties above apply regardless of any claim that the minor consented or lied about their age.

Loitering With Intent Is No Longer a Crime

Until 2023, Penal Code 653.22 made it a crime to loiter in a public place with intent to commit prostitution. SB 357, the Safer Streets for All Act, repealed that statute. Standing in a particular area or approaching vehicles is no longer a basis for a prostitution-related arrest on its own. People previously convicted under the old law can petition to have those convictions dismissed and their records sealed.6California Courts Self Help Guide. Relief for Human Trafficking Victims

Common Defenses

Entrapment

Entrapment is the most common defense in sting cases, and California’s version is more defendant-friendly than the standard used in many other states. The test is objective: whether law enforcement used tactics so aggressive that a reasonable, law-abiding person would have been pressured into committing the crime. The defendant’s own predisposition does not matter.

Being offered a chance to buy or sell sex during a sting does not qualify on its own. The defense requires repeated pressure, emotional manipulation, or other overbearing conduct by the officer. When someone approaches an undercover officer on their own initiative, offers money, and arranges the exchange without any coaxing, entrapment will not succeed. Most solicitation defenses fail on that point.

Trafficking Victim Defense

Under Penal Code 236.14, a person who committed a nonviolent prostitution offense as a direct result of being trafficked can petition the court to vacate the conviction. If the court grants the petition, the arrest and conviction are treated as though they never happened, and all related records are sealed and destroyed. The petitioner must show a link between the trafficking and the offense; once that link is established, the court presumes in the petitioner’s favor.6California Courts Self Help Guide. Relief for Human Trafficking Victims

Clearing an Old Conviction

California has expanded the ways someone can clear a prostitution-related record.

  • Trafficking victims can petition under Penal Code 236.14 to vacate a nonviolent conviction and seal related records.
  • Old felony prostitution convictions can be vacated under Penal Code 1170.22. Prostitution can no longer be charged as a felony in California as of 2018.
  • Convictions under the repealed loitering statute (former Penal Code 653.22) can be dismissed and sealed.

Each pathway requires filing a petition with the court. The California Courts Self Help Guide publishes the forms for each.6California Courts Self Help Guide. Relief for Human Trafficking Victims

Federal Charges for Interstate Activity

State charges are not the only risk. When prostitution crosses state lines or uses interstate communication, federal law adds a separate layer of exposure.

The Mann Act (18 U.S.C. § 2421) makes it a federal crime to knowingly transport someone across state lines for the purpose of prostitution. Conviction carries up to 10 years in federal prison.7Office of the Law Revision Counsel. 18 U.S. Code 2421 – Transportation Generally The Travel Act (18 U.S.C. § 1952) targets anyone who uses interstate travel or communication to promote or manage an illegal business, including prostitution, and carries up to five years in federal prison.8Office of the Law Revision Counsel. 18 U.S. Code 1952 – Interstate and Foreign Travel or Transportation in Aid of Racketeering Enterprises The FOSTA-SESTA legislation, enacted in 2018, also increased federal scrutiny of individuals arranging commercial sex through online platforms that operate across state lines.

Consequences Beyond the Sentence

The formal sentence is often the least of the long-term damage.

Employment and Licensing

Even a misdemeanor shows up on background checks and can disqualify you from jobs in healthcare, education, law, and childcare. Many employers and licensing boards treat prostitution offenses as involving moral turpitude, which is a disqualifying factor for certain credentials.

Immigration

Prostitution-related convictions are generally classified as crimes involving moral turpitude under federal immigration law. Non-citizens can face inadmissibility, deportation, or visa denial. Waivers exist in limited situations but require proof of extreme hardship to a qualifying family member, and the standard is difficult to meet.9U.S. Citizenship and Immigration Services. Application for Waiver of Grounds of Inadmissibility Under Section 212(h)

Taxes

The IRS requires that all income be reported, including money earned from illegal activity. Prostitution income must be reported on Schedule 1 or Schedule C.10Internal Revenue Service. Publication 17 (2025), Your Federal Income Tax Failing to report it can trigger a separate federal tax evasion charge, which carries up to five years in prison and a fine of up to $100,000.11Office of the Law Revision Counsel. 26 U.S. Code 7201 – Attempt to Evade or Defeat Tax

Vehicle Impoundment

Some California cities have local ordinances letting police seize and impound vehicles used in a prostitution offense. These usually apply to repeat offenders with a prior conviction in the preceding three years. Impoundment can last up to 30 days, and the vehicle owner pays all towing and storage costs.