Yes, in California, mistake of age is a defense to statutory rape, which California calls unlawful sexual intercourse under Penal Code 261.5. If you actually and reasonably believed the other person was 18 or older, you are not guilty, and the prosecutor must prove beyond a reasonable doubt that you did not hold that belief. The defense does not apply to lewd acts with a child under 14.
Below, our California criminal defense lawyers explain how the mistake of age defense works, what makes a belief “reasonable,” when the defense is not available and what penalties apply.
What is statutory rape in California?
California’s statutory rape law, Penal Code 261.5, makes it a crime to have sexual intercourse with a person under 18 who is not your spouse. The law calls this “unlawful sexual intercourse.” For this law, a minor is anyone under 18.1
Consent is not a defense. The law treats a person under 18 as unable to legally consent, even if they agreed or started the encounter. That is why the defendant’s belief about the other person’s age is so important.
California’s age of consent is 18, which is higher than in many other states. California has no general “Romeo and Juliet” exemption for teens close in age, but a small age gap lowers the penalty, as explained below.
How does the mistake of age defense work in California?
In 1964, the California Supreme Court held in People v. Hernandez that a charge of statutory rape can be defended when criminal intent is lacking. In that case, the defendant reasonably believed the other person was old enough to consent.2 That decision overruled older California cases that had refused to allow the defense.
Today, California’s official jury instructions for unlawful sexual intercourse include the defense. The jury is told that the defendant is not guilty if they reasonably and actually believed the other person was 18 or older. The prosecution must prove beyond a reasonable doubt that the defendant did not reasonably and actually hold that belief. If it cannot, the jury must find the defendant not guilty.3
Two things have to be true for the defense to work:
- You actually believed the person was 18 or older, and
- that belief was reasonable based on what you knew and saw at the time.
Is mistake of age an affirmative defense in California?
No. Some states make the defendant prove the mistake. In California, once the issue is raised, the burden stays on the prosecutor to disprove it beyond a reasonable doubt.4 That can make the defense stronger in California than elsewhere. Learn more about affirmative defenses.
What makes a belief about age “reasonable”?
The jury looks at all the circumstances. Evidence that can support a reasonable belief that someone was an adult includes:
- the person showed an ID, such as a driver’s license, saying they were 18 or older,
- you met at a place limited to adults, such as a 21-and-over bar that checks IDs,
- the person said they were in college, had a job requiring adult status or lived on their own,
- friends or family introduced the person as an adult, and
- texts, social media profiles or dating app profiles listed an adult age.
Evidence that can undercut the defense includes knowing the person was in high school, meeting through a school activity, or signs of age that a reasonable person would have noticed. The closer the person was to 18, the more believable a mistake usually is.
Example: Sam, 20, is charged in Riverside County under Penal Code 261.5. He met the other person at a 21-and-over club that checks IDs, and she told him she was a 19-year-old college student. Her ID and dating profile listed an adult age. At trial, the prosecutor must prove beyond a reasonable doubt that Sam did not actually and reasonably believe she was 18 or older. Given the ID check, a jury could well find his belief reasonable.
A defense lawyer gathers this evidence early: messages, photos, witness statements from people who saw the two of you together, and proof of where you met. In our experience, the strongest mistake-of-age defenses rest on objective evidence, like an ID or an age-restricted venue, rather than on the defendant’s word alone.
When is mistake of age not a defense in California?
The defense has limits. Most importantly, it does not apply to a charge of lewd or lascivious acts with a child under 14 under Penal Code 288(a). The California Supreme Court held in People v. Olsen that a reasonable mistake as to the victim’s age is not a defense to a section 288 charge.5 The court relied on the strong public policy of protecting young children.
Because of this, the same facts can be charged in different ways with very different results. Talk to a lawyer before you speak with police about any accusation involving a minor.
What are the penalties for statutory rape in California?
The penalty under Penal Code 261.5 depends on the ages of the people involved:
- Not more than three years apart: a misdemeanor.
- More than three years apart: a “wobbler” that can be charged as a misdemeanor (up to one year in county jail) or a felony.
- Defendant 21 or older and the minor under 16: a wobbler punishable by up to one year in county jail, or by two, three or four years as a felony.6
Since no California misdemeanor can carry more than 364 days, a misdemeanor sentence is capped at 364 days in practice.7
An adult can also face civil penalties of up to $2,000, $5,000, $10,000 or $25,000, depending on the age difference.8
A felony conviction under Penal Code 261.5(d) cannot be dismissed (expunged) under Penal Code 1203.4.9
Will I have to register as a sex offender?
It depends on the age gap, the date of the offense and the rest of your record. California’s registration law, Penal Code 290, was amended effective January 1, 2026, and now refers to unlawful sexual intercourse under subdivision (c) or (d) of Penal Code 261.5 for offenses on or after that date. The same law says a person convicted under 261.5(c) or (d) is not required to register if they were not more than 10 years older than the minor at the time and that is their only conviction requiring registration. A judge can still order registration in some cases under Penal Code 290.006.10 Because registration can last for many years, this is one of the most important issues to raise with a lawyer before any plea.
What should I do if I am accused of statutory rape?
Steps you take early can make or break a mistake of age defense:
- Do not talk to the police about the case without a lawyer, even to “explain.” Statements about what you knew can be used to argue your belief was not reasonable.
- Do not contact the other person or their family. Contact can lead to additional charges or a protective order.
- Save evidence of what you were told about age, such as messages, dating app profiles, photos of an ID and the names of people who were there.
- Write down where and how you met, while your memory is fresh, and give it only to your lawyer.
- Talk to a defense lawyer about whether the case can be resolved without a sex offense conviction or registration.
Talk to a California sex crimes defense lawyer
If you are under investigation or charged with unlawful sexual intercourse or another sex offense in California, our sex crimes defense lawyers can review whether the mistake of age defense applies and build the evidence to support it. Contact us for a free consultation.
Legal references:
- California Penal Code 261.5(a): “Unlawful sexual intercourse is an act of sexual intercourse accomplished with a person who is not the spouse of the perpetrator, if the person is a minor. For the purposes of this section, a ‘minor’ is a person under 18 years of age.”
- People v. Hernandez (1964) 61 Cal.2d 529, 536: “a charge of statutory rape is defensible wherein a criminal intent is lacking.”
- CALCRIM No. 1071 (Unlawful Sexual Intercourse: Minor More Than Three Years Younger): “The defendant is not guilty of this crime if (he/she) reasonably and actually believed that the other person was age 18 or older. The People must prove beyond a reasonable doubt that the defendant did not reasonably and actually believe that the other person was at least 18 years old. If the People have not met this burden, you must find the defendant not guilty of this crime.”
- CALCRIM No. 1071 (see note 3 above): “The People must prove beyond a reasonable doubt that the defendant did not reasonably and actually believe that the other person was at least 18 years old.”
- People v. Olsen (1984) 36 Cal.3d 638, 647: the court’s reasoning “compel[s] the conclusion that a reasonable mistake as to the victim’s age is not a defense to a section 288 charge.”
- California Penal Code 261.5(b)–(d) (see note 1 above): “(b) A person who engages in an act of unlawful sexual intercourse with a minor who is not more than three years older or three years younger than the perpetrator, is guilty of a misdemeanor. (c) A person who engages in an act of unlawful sexual intercourse with a minor who is more than three years younger than the perpetrator is guilty of either a misdemeanor or a felony …. (d) A person 21 years of age or older who engages in an act of unlawful sexual intercourse with a minor who is under 16 years of age is guilty of either a misdemeanor or a felony, and shall be punished by imprisonment in a county jail not exceeding one year, or by imprisonment pursuant to subdivision (h) of Section 1170 for two, three, or four years.”
- California Penal Code 18.5(a): an offense punishable by up to one year in county jail “shall be punishable by imprisonment in a county jail for a period not to exceed 364 days.”
- California Penal Code 261.5(e)(1) (see note 1 above): civil penalties “not to exceed two thousand dollars ($2,000)” where the minor is less than two years younger, $5,000 where at least two years younger, $10,000 where at least three years younger, and, for an adult over 21 with a minor under 16, “a civil penalty not to exceed twenty-five thousand dollars ($25,000).”
- California Penal Code 1203.4(b): relief under the section does not apply to “a felony conviction pursuant to subdivision (d) of Section 261.5.”
- California Penal Code 290(c)(1) and (c)(3) (as amended by Stats. 2025, ch. 780 (SB 680), effective January 1, 2026): subdivision (c)(1) refers to “subdivision (c) or (d) of Section 261.5 if the offense occurred on or after January 1, 2026,” and subdivision (c)(3) provides that “a person convicted of a violation of subdivision (c) or (d) of Section 261.5 … shall not be required to register if, at the time of the offense, the person is not more than 10 years older than the minor … and the conviction is the only one requiring the person to register. This paragraph does not preclude the court from requiring a person to register pursuant to Section 290.006.”