How Is Jail Time Calculated in California: Credits and Rules

To calculate how jail time is served in California, start with the sentence the judge imposes, subtract any time already spent in custody, then apply conduct credits, which for most county jail inmates work out to roughly a day of credit for every day served. Violent felony convictions are the major exception: those sentences must be served at 85%. Enhancements, consecutive terms, and alternative programs can each move the final number up or down.

The Base Sentence the Judge Imposes

For most felonies, California law offers the judge three options: a low term, a middle term, and a high term. A second-degree burglary, for example, carries options of 16 months, two years, or three years. The specific numbers vary by offense, but the three-tier structure runs through most determinate-sentence crimes.

Under Penal Code 1170 as amended by SB 567, the judge generally cannot go above the middle term. The high term requires aggravating facts that the defendant admits or that a jury finds beyond a reasonable doubt. The low term is required when the defendant experienced trauma, was a victim of intimate partner violence or human trafficking, or was a youth at the time of the offense, unless aggravating factors outweigh that consideration.1California Legislative Information. California Code PEN 1170

The most serious offenses carry indeterminate sentences instead. For murder and similar crimes, the court sets a minimum (such as 25 years to life), and the Board of Parole Hearings decides the actual release date. There is no fixed end date the way there is with a determinate sentence.

Credit for Time Already Spent in Custody

Every day held in custody before sentencing counts. Under Penal Code 2900.5, that includes time in jail after arrest, in a work furlough facility, in a rehabilitation program, in a hospital, or on home detention. If pre-sentence custody already exceeds the sentence the judge imposes, the sentence is considered fully served.2California Legislative Information. California Code PEN 2900.5

One limit matters: the custody being credited must relate to the same conduct that led to the conviction. Time held on an unrelated case does not count. The sentencing judge calculates the exact number of credit days and puts that number in the formal judgment.2California Legislative Information. California Code PEN 2900.5

Conduct Credits in County Jail

Penal Code 4019 governs credit-earning for people held in county jail, whether they are serving a sentence, awaiting trial, or held as a condition of probation. For every four days in custody, two days come off the sentence: one for satisfactory work performance and one for following the rules. A well-behaved inmate ends up serving roughly half the imposed term.3California Legislative Information. California Penal Code 4019

Credits are not automatic. They can be denied for refusing assigned work or breaking facility rules. And an inmate must be committed for at least four days to earn any credit at all. The statute states the Legislature’s intent that a four-day term be deemed served after just two actual days if all credits are earned.3California Legislative Information. California Penal Code 4019

Credits in State Prison

State prison inmates earn credits under Penal Code 2933. For every six months of continuous incarceration, an inmate can earn up to six months of credit reduction, mirroring the day-for-day pattern in county jail. Credits are tied to compliance with rules and participation in assigned programs.4California Legislative Information. California Code PEN 2933

The statute treats credit as a privilege, not a right. Disciplinary violations can cause forfeiture, though an inmate who stays violation-free for a required period can apply to have forfeited credits restored.4California Legislative Information. California Code PEN 2933

The 85% Rule for Violent Felonies

People convicted of violent felonies listed in Penal Code 667.5(c) face much steeper restrictions. Under Penal Code 2933.1, these inmates can earn no more than 15% of their sentence in worktime credits, so they serve at least 85% of the imposed term. The 15% cap applies in state prison and in county jail during the pre-sentencing period.5California Legislative Information. California Penal Code 2933.1

The difference is large. A non-violent offender sentenced to four years might serve roughly two years with full credits. A violent offender with the same four-year sentence would serve at least three years and five months. This is where the biggest gap in jail-time calculation shows up, and it catches many defendants off guard when a lawyer explains the real number.

Multiple Counts: Concurrent or Consecutive

When there is more than one conviction, the judge decides whether the sentences run at the same time or one after the other. Two five-year concurrent terms mean five years total. The same terms consecutive mean ten. Penal Code 669 leaves the choice to the court’s discretion.6California Legislative Information. California Penal Code 669

In practice, crimes involving multiple victims or committed on separate occasions are far more likely to draw consecutive terms. A single incident with overlapping charges more commonly results in concurrent sentences. Any full calculation of time has to account for which rule the court applied.

Enhancements That Add Time

Enhancements add mandatory time on top of the base sentence based on how the crime was committed or the defendant’s record. The best-known is the “10-20-life” firearm rule under Penal Code 12022.53:

  • Using a firearm adds 10 years (the gun need not be loaded or operable).
  • Firing a firearm adds 20 years.
  • Firing and causing great bodily injury or death adds 25 years to life.

These enhancements apply to specific felonies listed in the statute, including murder, robbery, carjacking, kidnapping, and certain sexual offenses. Each enhancement runs consecutively to the base sentence, so a robbery with a fired gun could carry the base term plus 20 years.7California Legislative Information. California Penal Code 12022.53

Three Strikes

California’s Three Strikes Law increases sentences based on prior convictions for serious or violent felonies. A second strike doubles the sentence for the new offense.8Legislative Analyst’s Office. The Three Strikes and You’re Out Law

After Proposition 36 in 2012, the 25-to-life sentence on a third strike applies only when the new offense is itself a serious or violent felony. If the third strike is a nonviolent, nonserious felony, the sentence is doubled instead. Certain drug, sex, and gun-related offenses can still trigger the life sentence even when they are not classified as violent.9Legislative Analyst’s Office. Proposition 36 – Three Strikes Law – Sentencing for Repeat Felony Offenders

Where the Sentence Is Served, and Early Parole

Since 2011, realignment under AB 109 has routed many lower-level felons to county jail rather than state prison. Penal Code 1170(h) directs that people convicted of non-violent, non-serious, non-sex-offense felonies serve their time locally. The judge can impose either a straight jail term or a “split sentence” dividing the time between custody and mandatory community supervision.1California Legislative Information. California Code PEN 1170

Where the sentence is served changes the credit rules that apply. County jail inmates earn conduct credits under Penal Code 4019, which follow the day-for-day formula, and someone sentenced to several years for a qualifying felony may serve the entire term locally under those rules.

Proposition 57, passed in 2016, amended the California Constitution to allow early parole consideration for people convicted of nonviolent felonies. Once an inmate has served the full base term for the primary offense, the Board of Parole Hearings can review the case and grant early release. The “full term” for this purpose means the sentence the judge imposed, without counting conduct credits.10CDCR. Proposition 57 Nonviolent Parole Review Litigation

Proposition 57 also directed the California Department of Corrections and Rehabilitation to adopt regulations expanding credit-earning for rehabilitation, education, and good behavior. Those credits go beyond the standard Penal Code 2933 formula and can shorten the time before parole review.

Programs That Count as Time Served

Several programs replace or reduce traditional jail custody. Eligibility depends on the offense, the defendant’s record, and what the county offers.

Drug Diversion

Penal Code 1000 allows pretrial diversion for specified drug possession and personal-use offenses. If the defendant has no recent felony convictions, the charge did not involve violence, and the prosecutor confirms eligibility, the court pauses the case while the defendant completes a treatment program. The diversion period runs 12 to 18 months, with extensions for good cause. Successful completion results in dismissed charges.11California Legislative Information. California Penal Code 1000

Mental Health Diversion

Penal Code 1001.36 covers mental health diversion. The defendant must have a diagnosed mental disorder (such as bipolar disorder, schizophrenia, or PTSD) that was a significant factor in the charged offense. The court also has to find that symptoms would respond to treatment and that the defendant would not pose an unreasonable risk to public safety. Certain serious offenses, including murder and some sex crimes, are excluded.12California Legislative Information. California Penal Code 1001.36

Home Detention

Penal Code 1203.016 lets county boards of supervisors run home detention programs where eligible inmates serve their sentence at home under electronic monitoring, which can include GPS. The statute does not limit eligibility to nonviolent offenders on its own terms, so each county sets its own criteria. Time in home detention counts toward the sentence, and participants can be removed for failing to follow the rules.13California Legislative Information. California Penal Code 1203.016

Work Furlough

Under Penal Code 1208, people sentenced to county jail may be allowed to work at a regular job or find new employment during the day and return to custody at night. The work furlough administrator decides eligibility, though the sentencing judge can block work furlough at the time of sentencing. Time in the program counts as time served.14California Legislative Information. California Code PEN 1208

Time Added for Probation and Parole Violations

Violating probation can lead the court to revoke probation and impose the original suspended sentence. Common triggers include missed check-ins, failed drug tests, and new arrests. After a hearing, the judge can continue probation with modified conditions, impose a short jail term, or revoke probation and send the person to serve the full original sentence.

Parole violations work similarly. People on post-release community supervision after realignment face revocation hearings in superior court and can be returned to county jail. State parolees go through the Board of Parole Hearings. Either way, custody time for the violation adds to the person’s overall incarceration, and any accurate calculation of jail time has to include it.