
The age of consent in California is 18. Any sexual intercourse with a person under 18 — regardless of whether the minor agreed to it, initiated it, or lied about their age — can be prosecuted as a crime under California law.
That single number, though, only tells part of the story. California treats age-of-consent violations on a sliding scale. The specific ages of both people involved determine whether the conduct is charged as a misdemeanor, a wobbler offense, or a serious felony carrying years in state prison. There is no Romeo-and-Juliet exception. The sections below break down exactly how California law works, what the penalties look like at each level, and which defenses may apply.
What Happens If Someone Has Sex with a Minor in California?
California Penal Code § 261.5 makes it a crime — commonly called statutory rape — to have sexual intercourse with anyone under 18 to whom the defendant is not married. The statute does not require force, coercion, or any showing that the minor objected. The act itself is the offense.
This is because California law treats the question of consent differently when a minor is involved. Under Penal Code § 261.6, consent means positive cooperation in act or attitude pursuant to an exercise of free will, with knowledge of the nature of the act. But where a person lacks the legal capacity to consent — and in California, anyone under 18 lacks that capacity for purposes of sexual intercourse — their willingness is irrelevant.
The California Supreme Court confirmed this principle in People v. Soto (2011) 51 Cal.4th 229. The court held that a minor’s consent is not a defense to lewd-act charges under Penal Code § 288 “under any circumstances,” including aggravated lewd acts under § 288(b)(1).
What this means in practical terms is that the question is not whether the minor said yes. The question is how old they were and how old the other person was. Those two numbers control everything that follows.

Does the Age Gap Change Whether It’s a Misdemeanor or a Felony?
It does, and this is where California law is more complicated than most people realize. Penal Code § 261.5 creates three distinct tiers of criminal risk based on the age difference between the two people involved.
When the defendant and the minor are within three years of each other in age, § 261.5(b) treats the offense as a misdemeanor. Under § 261.5(c), if the age gap exceeds three years, the offense becomes a wobbler. Under § 261.5(d), if the defendant is 21 or older and the minor is under 16, the offense is again a wobbler but with enhanced penalties.
These tiers mirror the structure described in the statutory rape sections above. What matters from the age-of-consent perspective is the cascading effect of the wobbler distinction. A felony conviction can determine whether sex offender registration applies, whether the conviction qualifies as an aggravated felony for immigration purposes under 8 U.S.C. § 1101(a)(43)(A), and whether severe long-term collateral consequences are triggered. The prosecutor’s wobbler decision is one of the most important moments in the entire case — and it happens before most defendants fully understand what is at stake.

Is There a Romeo-and-Juliet Law in California?
No. California does not have a Romeo-and-Juliet law or any statutory safe harbor for minors close in age. Two 17-year-olds who have consensual sex are both technically in violation of Penal Code § 261.5. District attorneys exercise charging discretion, and many close-in-age cases are never filed — but that discretion is a practical reality, not a legal protection. There is no statute that makes the conduct lawful.

Can “I Didn’t Know Their Age” Be Used as a Defense?
This depends entirely on what statute the defendant is charged under, and the answer splits sharply.
For statutory rape under Penal Code § 261.5, an honest and reasonable belief that the other person was 18 or older is a recognized defense under People v. Hernandez (1964) 61 Cal.2d 529. The belief must be both actually held and objectively reasonable under the circumstances — but when those conditions are met, a charge of statutory rape is defensible when criminal intent is lacking.
For lewd acts on a child under 14 under Penal Code § 288, the answer is the opposite. People v. Olsen (1984) 36 Cal.3d 638 forecloses the mistake-of-age defense entirely based on the strong public policy of protecting children of tender years.
If you are facing an age-of-consent situation, knowing which statute applies — § 261.5 or § 288 — is the threshold question that determines whether this defense path exists at all.

What Are the Penalties for Statutory Rape in California?
The penalties escalate based on the ages involved, and they extend well beyond the § 261.5 tiers.
For § 261.5 statutory rape itself, the misdemeanor tier (§ 261.5(b), three years or less age gap) carries up to one year in county jail. The wobbler tiers (§ 261.5(c) and (d)) can result in county jail on the misdemeanor side or state prison on the felony side. The § 261.5(d) tier — defendant 21 or older, minor under 16 — carries enhanced felony penalties.
But § 261.5 is not the only statute that applies to sexual conduct with a minor. Depending on the specific ages and acts involved, prosecutors may charge under more serious statutes that carry much longer sentences.
Depending on the specific ages and acts involved, prosecutors may file under the more serious statutes that apply to conduct with younger children. Penal Code § 288(a) criminalizes lewd acts on a child under 14 (3, 6, or 8 years). Penal Code § 288.5 covers continuous sexual abuse of a child under 14 (6, 12, or 16 years). At the most severe end, Penal Code § 288.7 applies when the defendant is 18 or older and the victim is 10 or younger — carrying 25 years to life for intercourse or sodomy and 15 years to life for oral copulation or sexual penetration.
California’s One Strike Law (Penal Code § 667.61) can push sentences dramatically higher — to 15-to-life, 25-to-life, or even life without parole when the victim is under 14. These enhancement circumstances must be specifically pled in the charging document under People v. Mancebo (2002) 27 Cal.4th 735.

Why Should You Talk to a Lawyer Now?
The sections above illustrate something that is not obvious from a Google search. California does not treat age-of-consent cases as a single offense with a single penalty. The same conduct can be charged under different statutes, at different severity levels, with or without enhancements — and the consequences range from a misdemeanor conviction to life in prison.
The decisions that shape those outcomes happen early. The district attorney’s wobbler decision under § 261.5(c) or (d) determines whether a case proceeds as a misdemeanor or a felony. The choice of charging statute — § 261.5 versus § 288 versus § 288.7 — determines the available defenses and the sentencing range. The viability of a Hernandez mistake-of-age defense depends on evidence that must be identified and preserved before it disappears. Each of these decision points is influenced by what a defense attorney does, or fails to do, in the earliest stages of the case.
At Randhawa Law in San Diego, attorney Monty Randhawa brings a perspective grounded in this specific context. As a former supervisor in the General Trial Unit of the Criminal Division at the San Diego City Attorney’s Office, Monty spent five years on the prosecution side — handling thousands of criminal cases and trying over 25 jury trials. That experience means he understands how charging decisions get made, what factors move a prosecutor toward or away from felony filing, and where the leverage points are in negotiations over charge severity.
If you or someone close to you is facing a situation involving California’s age-of-consent laws, the window for taking action is open now. Contact Randhawa Law to discuss the specifics of your case.
