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) 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 discretion, impose the term that best serves the interest of justice, and state the reasons for its sentence choice on the record at the time of sentencing. 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.
(i) (1) The maximum term of imprisonment imposed pursuant to this section shall not exceed twice the number of years imposed by the trial court as the base term pursuant to subdivision (b) of Section 1170, and may include a portion of an applicable enhancement or enhancements, except as specified in paragraph (2).
(2)The limitation on the maximum term specified in paragraph (1) shall not apply to reduce that portion of a sentence required by an enhancement or additional and consecutive term imposed pursuant to Sections 186.22, 186.33, 236.4, 269, 288.3, 667, 667.5, 667.51, 667.6, 667.61, 667.85, 1170.12,
12022.75, and 12022.9.
(2) The portion of a sentence required by an enhancement, alternative sentence, or additional and consecutive term imposed pursuant to Sections 186.22, 186.33, 236.4, 269, 288.3, 667, 667.5, 667.51, 667.6, 667.61, 667.85, 1170.12, 12022.75, and 12022.9 is not subject to the limitation on the maximum term specified in paragraph (1).
(3) Notwithstanding the imposition of a sentence for an enhancement enhancement, alternative sentence, or additional and consecutive term specified in paragraph (2), the double the base term limitation specified in
paragraph (1) is applicable to all portions of a sentence not imposed pursuant to a code section specified in paragraph (2).
(j) This section shall remain in effect only until January 1, 2022, and as of that date is repealed, unless a later enacted statute, that is enacted before January 1, 2022, deletes or extends that date.