2023 California Code › Penal Code - PEN › PART 2 - OF CRIMINAL PROCEDURE › TITLE 7 - OF PROCEEDINGS AFTER THE COMMENCEMENT OF THE TRIAL AND BEFORE JUDGMENT › CHAPTER 4.5 - Trial Court Sentencing › ARTICLE 1 - Initial Sentencing › Section 1170.1.

1170.1. (a) Except as otherwise provided by law, and subject to Section 654, when any person is convicted of two or more felonies, whether in the same proceeding or court or in different proceedings or courts, and whether by judgment rendered by the same or by a different court, and a consecutive term of imprisonment is imposed under Sections 669 and 1170, the aggregate term of imprisonment for all these convictions shall be the sum of the principal term, the subordinate term, and any additional term imposed for applicable enhancements for prior convictions, prior prison terms, and Section 12022.1. The principal term shall consist of the greatest term of imprisonment imposed by the court for any of the crimes, including any term imposed for applicable specific enhancements. The subordinate term for each consecutive offense shall consist of one-third of the middle term of imprisonment prescribed for each other felony conviction for which a consecutive term of imprisonment is imposed, and shall include one-third of the term imposed for any specific enhancements applicable to those subordinate offenses. Whenever a court imposes a term of imprisonment in the state prison, whether the term is a principal or subordinate term, the aggregate term shall be served in the state prison, regardless as to whether or not one of the terms specifies imprisonment in a county jail pursuant to subdivision (h) of Section 1170.
(b) If a person is convicted of two or more violations of kidnapping, as defined in Section 207, involving separate victims, the subordinate term for each consecutive offense of kidnapping shall consist of the full middle term and shall include the full term imposed for specific enhancements applicable to those subordinate offenses.
(c) In the case of any person convicted of one or more felonies committed while the person is confined in the state prison or is subject to reimprisonment for escape from custody and the law either requires the terms to be served consecutively or the court imposes consecutive terms, the term of imprisonment for all the convictions that the person is required to serve consecutively shall commence from the time the person would otherwise have been released from prison. If the new offenses are consecutive with each other, the principal and subordinate terms shall be calculated as provided in subdivision (a). This subdivision shall be applicable in cases of convictions of more than one offense in the same or different proceedings.
(d) (1) When the court imposes a sentence for a felony pursuant to Section 1170 or subdivision (b) of Section 1168, the court shall also impose, in addition and consecutive to the offense of which the person has been convicted, the additional terms provided for any applicable enhancements. If an enhancement is punishable by one of three terms, the court shall, in its sound discretion, order imposition of a sentence not to exceed the middle term, except as otherwise provided in paragraph (2).
(2) The court may impose a sentence exceeding the middle term only when there are circumstances in aggravation that justify the imposition of a term of imprisonment exceeding the middle term, and the facts underlying those circumstances have been stipulated to by the defendant, or have been found true beyond a reasonable doubt at trial by the jury or by the judge in a court trial.
(3) The court shall also impose any other additional term that the court determines in its discretion or as required by law shall run consecutive to the term imposed under Section 1170 or subdivision (b) of Section 1168. In considering the imposition of the additional term, the court shall apply the sentencing rules of the Judicial Council.
(e) All enhancements shall be alleged in the accusatory pleading and either admitted by the defendant in open court or found to be true by the trier of fact.
(f) When two or more enhancements may be imposed for being armed with or using a dangerous or deadly weapon or a firearm in the commission of a single offense, only the greatest of those enhancements shall be imposed for that offense. This subdivision shall not limit the imposition of any other enhancements applicable to that offense, including an enhancement for the infliction of great bodily injury.
(g) When two or more enhancements may be imposed for the infliction of great bodily injury on the same victim in the commission of a single offense, only the greatest of those enhancements shall be imposed for that offense. This subdivision shall not limit the imposition of any other enhancements applicable to that offense, including an enhancement for being armed with or using a dangerous or deadly weapon or a firearm.
(h) For any violation of an offense specified in Section 667.6, the number of enhancements that may be imposed shall not be limited, regardless of whether the enhancements are pursuant to this section, Section 667.6, or some other provision of law. Each of the enhancements shall be a full and separately served term.
(Amended (as amended by Stats. 2016, Ch. 887, Sec. 8) by Stats. 2021, Ch. 731, Sec. 2. (SB 567) Effective January 1, 2022. Section operative January 1, 2022, by its own provisions.)