The California Penal Code is the state’s master criminal statute. Enacted in 1872, it defines every criminal offense in California, sets the punishment for each, and lays out the rules that govern arrests, trials, sentencing, victim restitution, deadlines for filing charges, and the process for clearing a record after conviction. It applies uniformly across all 58 counties and replaced the common-law rules that governed criminal behavior before it.
If you are trying to understand what the code does, the quickest way in is through the four questions it answers for almost every criminal case: how serious is the offense, how long can the sentence run, how long do prosecutors have to file, and what can be done about the record afterward.
How Crimes Are Classified
Every offense in California falls into one of three categories based on severity.1California Legislative Information. California Penal Code 16 – Crimes and Public Offenses
Felonies
Felonies are the most serious offenses. Unless a specific statute sets a different punishment, a felony conviction carries 16 months, two years, or three years in custody.2California Legislative Information. California Penal Code 18 – Preliminary Provisions Many individual statutes override that default with longer terms. A felony conviction can also strip certain civil rights, including the right to own a firearm and, while incarcerated, the right to vote.
Not every felony means state prison. Under a 2011 law known as realignment, many nonviolent, non-serious, non-sexual felonies are served in county jail. The main exceptions that still require state prison are defendants with prior serious or violent felony convictions, registered sex offenders, and those sentenced under certain enhancement provisions.3California Legislative Information. California Penal Code 1170(h)
Misdemeanors
A misdemeanor is punishable by up to six months in county jail, a fine of up to $1,000, or both, unless a specific statute sets a higher penalty.4California Legislative Information. California Penal Code 19 – Punishment for Misdemeanor Regardless of how a particular statute is worded, no single misdemeanor sentence can exceed one year in county jail.5California Legislative Information. California Penal Code 19.2 Common misdemeanors include petty theft, simple assault, and first-offense DUI.
Infractions
Infractions sit at the bottom of the severity scale. Most traffic tickets are infractions. They carry no jail time, resolve with a fine, and do not create a criminal record the way misdemeanors and felonies do.
Wobblers
Some offenses are “wobblers,” meaning a prosecutor can charge them as either a felony or a misdemeanor. If a wobbler is charged as a felony, the judge can still reduce it to a misdemeanor at sentencing, when granting probation, or on a later defense motion. Once designated a misdemeanor, the offense carries misdemeanor consequences from that point forward.6California Legislative Information. California Penal Code 17 – Preliminary Provisions The decision usually turns on the facts of the offense, the defendant’s criminal history, and the strength of the evidence.
What a Sentence Can Add to the Base Term
The number in the offense statute is often not the full sentence. The Penal Code attaches extra time when certain aggravating facts are present, and it adds mandatory financial penalties to every conviction.
Three Strikes
Under Penal Code Section 667, a defendant with prior “strike” convictions—serious or violent felonies—faces escalating punishment for each new felony. A second strike doubles the sentence for the new felony. A third strike becomes an indeterminate life term with a minimum of 25 years before parole eligibility.
A 2012 reform narrowed the third-strike rule. The 25-to-life sentence now generally applies only when the current offense is itself a serious or violent felony. If the new offense is nonviolent, the court sentences under the second-strike doubling rule instead, unless specific exceptions apply, such as cases involving firearm use or sex offenses requiring registration.7California Legislative Information. California Penal Code 667 Judges also retain discretion to dismiss a prior strike in the interest of justice through what are commonly called Romero motions.
Firearm Enhancements
Using a gun during certain serious felonies triggers steep add-on sentences under Penal Code Section 12022.53. Personally using a firearm adds 10 years, and the gun does not need to be loaded or functional. Intentionally firing a firearm adds 20 years. Firing a gun and causing great bodily injury or death adds 25 years to life. These enhancements run consecutively, on top of the sentence for the underlying felony. Qualifying offenses include murder, robbery, carjacking, kidnapping, and several sexual assaults.8California Legislative Information. California Penal Code 12022.53
Restitution
Every criminal conviction triggers a mandatory restitution fine. The court must impose it unless it finds extraordinary reasons not to, and a defendant’s inability to pay is not a valid basis for waiving it. For felonies, the fine ranges from $300 to $10,000. For misdemeanors, it ranges from $150 to $1,000.9California Legislative Information. California Penal Code 1202.4
When a victim has suffered actual economic loss, the court must also order the defendant to pay full restitution directly to the victim, covering medical bills, lost wages, property damage, and counseling costs. A restitution order is enforceable as a civil judgment, so the victim can pursue collection even after the criminal case ends.9California Legislative Information. California Penal Code 1202.4
How Long Prosecutors Have to File Charges
The Penal Code sets deadlines for charging. If prosecutors miss the window, the case cannot go forward, regardless of the evidence.
- Most misdemeanors: one year from the offense.10California Legislative Information. California Penal Code 802
- Most felonies: three years.
- Murder, embezzlement of public funds, and offenses punishable by life in prison: no time limit.11California Legislative Information. California Penal Code 799
- Many serious sex crimes committed on or after January 1, 2017: no time limit.11California Legislative Information. California Penal Code 799
The clock usually starts when the crime is complete, but two rules can pause it. Time the defendant spends outside California after the offense does not count toward the deadline, up to a three-year pause. If another prosecution for the same conduct is already pending in a California court, the deadline is paused until that case resolves.12California Legislative Information. California Penal Code 803 For certain fraud and forgery offenses, the deadline may not start until the crime is actually discovered.
Clearing a Conviction Later
A California conviction does not necessarily follow you forever. The Penal Code provides two paths for limiting its impact.
Petition-Based Dismissal
Under Penal Code Section 1203.4, a person who has completed probation can petition the court to withdraw the guilty plea and have the case dismissed. After dismissal, you can legally state on most employment applications that you have not been convicted of a crime.13California Legislative Information. California Penal Code 1203.4
Eligibility requires that you have finished all probation terms, are not currently serving a sentence or facing new charges, and are not on probation for another offense. An unpaid restitution order or restitution fine cannot be used as grounds to deny the petition. If probation was never granted, a person convicted of a misdemeanor or infraction can petition one year after the conviction date. A Section 1203.4 dismissal does not completely erase the record; the conviction and dismissal may still appear on background checks, but California law restricts how employers can use that information.
Automatic Record Relief
California also has a Clean Slate process that does not require you to file anything. The Department of Justice reviews arrest and conviction records monthly and automatically grants relief to eligible individuals. When relief is granted, the Department limits who can see the record during fingerprint-based background checks, and superior courts restrict public access to the underlying records.14State of California – Department of Justice – Office of the Attorney General. Automatic Record Relief – Penal Code Sections 851.93 and 1203.425
Automatic relief is not the same as sealing or expungement. It limits disclosure rather than erasing the record, and certain employers, including law enforcement agencies, can still access the information.
How the Penal Code Changes
The code is not static. It changes through two channels.
The California Legislature can add, repeal, or amend any section by passing a bill through both chambers, which the Governor then signs or vetoes. Most signed bills take effect the following January 1.15California State Capitol Museum. Life Cycle of a Bill16California State Senate. Legislative Deadlines Urgency bills, which require a two-thirds vote in each chamber and a statement explaining the need for immediate action, take effect the day the Governor signs them.
Voters can also change the code directly. Under Article II of the California Constitution, citizens can place a proposed statute on the ballot by collecting signatures equal to 5 percent of the votes cast in the last gubernatorial election.17Justia. California Constitution Article II Section 8 A majority vote makes it law. Proposition 47 in 2014 reclassified several nonviolent felonies as misdemeanors by setting a $950 threshold below which most theft offenses could only be charged as misdemeanors.18California Courts. Proposition 47 Frequently Asked Questions Proposition 36 in 2024 partially rolled those changes back, reintroducing felony charges for repeat drug possession offenders, allowing stolen property values to be aggregated across separate thefts to reach the felony threshold, and creating new enhancements for organized retail theft and fentanyl sales.19California State Senate. Criminal Laws Created or Amended by Proposition 36
Provisions enacted by voter initiative generally cannot be amended or repealed by the legislature unless the initiative itself authorizes legislative changes. Some sections of the Penal Code can only be altered by another vote of the people.
Finding a Specific Section
The Penal Code is divided into six numbered Parts, each broken into Titles, Chapters, and Sections. Part 1 (Sections 25–680.4) contains the definitions of specific offenses such as theft, assault, homicide, and fraud, with their penalties. Part 2 (Sections 681–1620) covers criminal procedure: arrests, search warrants, preliminary hearings, trials, sentencing, and appeals. Part 3 (Sections 2000–10008) addresses state prisons and county jails. Part 4 (Sections 11006–14315) sets guidelines for law enforcement conduct. Part 5 (Sections 15001–15003) establishes a peace officers’ memorial. Part 6 (Sections 16000–34400) regulates firearms and other dangerous weapons.20California Legislative Information. California Penal Code Table of Contents A reader looking for burglary laws would search Part 1; someone researching how search warrants work would look in Part 2.