California Penal Code Section 1170 is the statute that governs how judges impose fixed prison or jail terms for felony convictions in California. It doesn’t set the specific years for each crime. Instead, it gives judges a framework: when a felony statute lists three possible terms, the judge chooses among them under rules that, since 2022, favor the middle or lower option and require a jury to unlock anything higher.1California Legislative Information. California Penal Code 1170
The Low, Middle, and Upper Term Triad
Most California felonies carry three possible sentence lengths. A statute might, for instance, authorize two, three, or four years. Those three numbers are the low, middle, and upper terms. PC 1170 tells the judge how to pick.
The middle term is the default ceiling. A judge can impose the middle term, or any term below it, without having to justify the choice on the record. Going above the middle term requires proof of aggravating circumstances under standards discussed below. That means the working range for most felonies now runs from the low term to the middle term unless the prosecution builds a case for more.1California Legislative Information. California Penal Code 1170
Some felonies specify a single fixed term rather than three options. In those cases the judge simply imposes that term. PC 1170 also preserves alternatives to incarceration where the offense and the defendant qualify: probation, a fine, or a suspended sentence remain available.1California Legislative Information. California Penal Code 1170
When a Judge Can Impose the Upper Term
Before SB 567 took effect, a California judge could impose the upper term based on facts the judge found by a preponderance of the evidence. That is no longer the rule. A court may now exceed the middle term only when the aggravating facts have been stipulated to by the defendant or found true beyond a reasonable doubt by a jury (or by the judge in a bench trial).1California Legislative Information. California Penal Code 1170
There is one significant carve-out. Prior convictions can still be considered by the judge alone, based on a certified record of conviction, without going to a jury. If the prosecution’s argument for the upper term rests on anything other than prior convictions, such as the violence of the crime or the vulnerability of the victim, those facts have to be proved to a jury.
A defendant can also ask that the trial on aggravating factors be separated from the trial on the underlying charges. When that request is granted, the jury doesn’t hear about the aggravation allegations until after it returns a guilty verdict on the felony itself.1California Legislative Information. California Penal Code 1170
When the Low Term Is Presumed
AB 124 added subdivision (b)(6) to PC 1170 and created a presumption that certain defendants should receive the lowest available term. The court must impose the low term if any of the following contributed to the offense:
- The defendant experienced psychological, physical, or childhood trauma such as abuse, neglect, exploitation, or sexual violence.
- The defendant was 25 or younger at the time of the offense.
- The defendant was a victim of intimate partner violence or human trafficking at the time of, or before, the offense.
The presumption isn’t absolute. A judge can override it by finding that aggravating circumstances outweigh the mitigating ones and that imposing the lower term would be contrary to the interests of justice. The burden falls on the prosecution, and the judge has to explain the reasoning on the record.2California Legislative Information. California Penal Code 1170
The practical reach is broad. Many people convicted of felonies experienced childhood trauma or were under 26 when the crime occurred, so defense attorneys routinely raise these factors, and a court that ignores them risks reversal.
Aggravating and Mitigating Factors
The California Rules of Court list the specific factors judges weigh when picking among the three terms.
Aggravating Circumstances
Factors tied to the crime itself include great violence, bodily harm, or cruelty; being armed or using a weapon; a particularly vulnerable victim; a leadership role among participants; planning or sophistication; involvement of a large amount of money or property; and exploitation of a position of trust. Factors tied to the defendant include a pattern of violent conduct, numerous or increasingly serious prior convictions, prior prison terms, and being on probation or parole at the time of the offense.3Judicial Branch of California. California Rules of Court Rule 4.421 – Circumstances in Aggravation
Aside from prior convictions, any of these facts must now be proved to a jury beyond a reasonable doubt before the upper term can be imposed.
Mitigating Circumstances
Mitigating factors push in the other direction. Crime-related ones include a minor role, victim provocation, unusual circumstances unlikely to recur, and acting under coercion. Defendant-related ones include no meaningful criminal history, a mental or physical condition that reduced culpability, childhood trauma, being a victim of intimate partner violence or human trafficking, and being under 26 at the time of the offense.4Judicial Branch of California. California Rules of Court Rule 4.423 – Circumstances in Mitigation
Several of these overlap with the presumptive lower term triggers. AB 124 essentially elevated certain longstanding mitigating factors from considerations to presumptions.
County Jail or State Prison
Not every felony conviction leads to state prison. Subdivision (h) of PC 1170, added during California’s 2011 realignment, sends many felonies to county jail instead. When the underlying statute doesn’t specify different lengths, the default subdivision (h) triad is 16 months, two years, or three years. County jail sentences may also be split, with part served in custody and part on mandatory supervision.1California Legislative Information. California Penal Code 1170
Certain defendants still go to state prison for subdivision (h) offenses:
- Anyone with a current or prior conviction for a serious or violent felony
- Anyone with an out-of-state conviction that would qualify as serious or violent in California
- Registered sex offenders
- Anyone convicted of certain aggravated white-collar crimes with special enhancements
If any of these apply, the sentence goes to state prison regardless of what the underlying statute says about subdivision (h).1California Legislative Information. California Penal Code 1170
How Much of the Sentence Is Actually Served
Time actually served in California is almost always shorter than the term imposed, because of custody credits under Penal Code 4019. The formula credits four days for every two days in actual custody, roughly halving time behind bars for people who follow facility rules and perform assigned work.5California Legislative Information. California Penal Code 4019
Credits can be lost for refusing assigned work or violating facility rules. They don’t apply to sentences shorter than four days. Additional limits apply to certain serious offenses and under the Three Strikes law, where total credits cannot exceed one-fifth of the sentence.
Laws That Override the Triad
PC 1170’s framework doesn’t stand alone. Other statutes can dramatically increase what the judge would otherwise impose.
Three Strikes
Penal Code 667, the Three Strikes law, imposes escalating penalties on defendants with prior serious or violent felony convictions. A second strike doubles the sentence for the current felony. A third strike originally carried an automatic 25 years to life, though Proposition 36 (2012) narrowed this so the life sentence generally applies only when the third strike is itself a serious or violent felony.6California Legislative Information. California Penal Code 667
Three Strikes also eliminates probation, bars diversion programs, caps custody credits at one-fifth of the sentence, and requires consecutive sentences when multiple felony counts aren’t based on the same set of facts.6California Legislative Information. California Penal Code 667
Sentence Enhancements
Enhancements add years on top of the base sentence for specific circumstances like using a firearm, inflicting great bodily injury, or committing the crime in connection with a gang. The distinction matters: aggravating factors affect which of the three triad terms applies, while enhancements are separate additional prison time layered on after that term is chosen. A sentence for a modest felony can grow substantially when multiple enhancements stack.
Recall and Resentencing Under 1170
PC 1170 also allows certain inmates to seek resentencing long after conviction. The best-known path applies to people who were under 18 when they committed an offense and received a life sentence without the possibility of parole. After serving at least 15 years, they can petition the sentencing court for recall and resentencing.1California Legislative Information. California Penal Code 1170
The petition must describe remorse and rehabilitation and establish at least one qualifying circumstance, such as a felony murder conviction, an adult codefendant, or documented rehabilitation through education and programming. The prosecution has 60 days to respond, and the court holds a hearing if the basic criteria are met. Defendants who tortured their victim, or whose victim was a law enforcement officer or firefighter, are ineligible. Meeting the criteria produces a hearing, not an automatic new sentence.1California Legislative Information. California Penal Code 1170
A separate path, PC 1170.126, applies to people serving life sentences under the older version of Three Strikes whose third strike was not a serious or violent felony. If the court finds them eligible and concludes they don’t pose an unreasonable risk of danger to public safety, the sentence can be reduced to what a second-strike defendant would receive.7California Legislative Information. California Penal Code 1170.126
What the Statute Says About Its Own Purpose
PC 1170 opens with a legislative declaration that shapes how courts read the rest. The statute says the purpose of sentencing is public safety and reducing recidivism through punishment, rehabilitation, and restorative justice. It adds that the deprivation of liberty itself satisfies the punishment purpose, that the prison system should not aggravate suffering beyond what separation inherently involves, and that the essential purpose of incarceration is rehabilitation and successful reintegration into the community.1California Legislative Information. California Penal Code 1170
This language does work in real cases. Defense attorneys cite it when arguing for lower terms, probation, or alternative dispositions, and appellate courts have used it to evaluate whether a sentence was justified. A judge who imposes the upper term without engaging with these rehabilitative goals leaves the sentence exposed on appeal.