> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# 42 Pa.C.S. § 9725 — Total confinement.

- **Citation**: 42 Pa.C.S. § 9725
- **Node Type**: section
- **Jurisdiction**: Pennsylvania (state)
- **Code Body**: Pennsylvania Consolidated Statutes (Aug. 2026 snapshot) (Pa.C.S.)
- **Official Source**: [https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=42](https://www.palegis.us/statutes/consolidated/view-statute?txtType=HTM&ttl=42)
- **Canonical URL**: [https://corpuslaw.us/codes/pennsylvania/title-42/chapter-97/section-9725](https://corpuslaw.us/codes/pennsylvania/title-42/chapter-97/section-9725)
- **Semantic URL**: [https://corpuslaw.us/codes/pennsylvania/title-42/chapter-97/section-9725](https://corpuslaw.us/codes/pennsylvania/title-42/chapter-97/section-9725)

## Hierarchy

Title 42 > Chapter 97

## Text

The court shall impose a sentence of total confinement if, having regard to the nature and circumstances of the crime and the history, character, and condition of the defendant, it is of the opinion that the total confinement of the defendant is necessary because:

(1) there is undue risk that during a period of probation or partial confinement the defendant will commit another crime;

(2) the defendant is in need of correctional treatment that can be provided most effectively by his commitment to an institution; or

(3) a lesser sentence will depreciate the seriousness of the crime of the defendant.

Cross References. Section 9725 is referred to in sections 9721, 9724, 9802 of this title.
