Sometimes. California may count actual custody in a residential rehabilitation facility toward a sentence when the confinement meets Penal Code section 2900.5 and relates to the conduct underlying the conviction. A treatment stay is not automatically custody just because the facility restricts movement. The order or release condition, actual restrictions, dates, case connection and any credit waiver all matter.

What makes the stay count?

Section 2900.5 includes qualifying custody in a rehabilitation or similar residential facility, including a placement imposed as a probation or release condition. The court looks at what actually happened, not just the program’s name. Wholly voluntary self-admission does not become qualifying custody merely because the facility restricts movement. In People v. Davis, the court rejected credit for a self-admitted program where the record did not establish qualifying custody or a sufficient connection to the later case. (Penal Code § 2900.5; People v. Davis)

The time also must be attributable to the same conduct as the sentence. If treatment occurred while another case was pending, identify which case or condition actually required the placement; do not assume time on one case automatically reduces a different sentence.

Build a reliable date and conditions record

Gather the sentencing or release order, probation terms, program admission and discharge records, daily attendance or custody logs, and any written facility rules about leaving, supervision and discipline. The sentencing court determines the admission and release dates. Compare those dates with the conduct and case for which credit is sought, and flag any gaps or overlapping cases for counsel to address. (Penal Code § 2900.5)

Read the plea and probation record for an express credit waiver. A knowing waiver may affect residential treatment credit even if probation is later revoked and a prison sentence follows. The California Supreme Court has recognized a waiver of future residential credits in that setting; the signed form alone may not show what was explained or waived. (People v. Jeffrey)

A useful request to counsel is specific: “Here is the order, the facility’s custody rules, the verified dates, the case this placement addressed, and the plea transcript—does section 2900.5 permit these days to count?” Do not rely only on an informal program letter or assume every treatment day will be credited.

For a broader overview of sentencing advocacy, see the firm’s practice page. For help reviewing a sentencing-credit record, contact the Law Offices of David S. Chesley at (800) 755-5174.