2023 California Code › Penal Code - PEN › PART 4 - PREVENTION OF CRIMES AND APPREHENSION OF CRIMINALS › TITLE 2 - SENTENCE ENHANCEMENTS › Section 12022.1.

12022.1. (a) For the purposes of this section only:
(1) “Primary offense” means a felony offense for which a person has been released from custody on bail or on his or her own recognizance prior to the judgment becoming final, including the disposition of any appeal, or for which release on bail or his or her own recognizance has been revoked. In cases where the court has granted a stay of execution of a county jail commitment or state prison commitment, “primary offense” also means a felony offense for which a person is out of custody during the period of time between the pronouncement of judgment and the time the person actually surrenders into custody or is otherwise returned to custody.
(2) “Secondary offense” means a felony offense alleged to have been committed while the person is released from custody for a primary offense.
(b) Any person arrested for a secondary offense that was alleged to have been committed while that person was released from custody on a primary offense shall be subject to a penalty enhancement of an additional two years, which shall be served consecutive to any other term imposed by the court.
(c) The enhancement allegation provided in subdivision (b) shall be pleaded in the information or indictment which alleges the secondary offense, or in the information or indictment of the primary offense if a conviction has already occurred in the secondary offense, and shall be proved as provided by law. The enhancement allegation may be pleaded in a complaint but need not be proved at the preliminary hearing or grand jury hearing.
(d) Whenever there is a conviction for the secondary offense and the enhancement is proved, and the person is sentenced on the secondary offense prior to the conviction of the primary offense, the imposition of the enhancement shall be stayed pending imposition of the sentence for the primary offense. The stay shall be lifted by the court hearing the primary offense at the time of sentencing for that offense and shall be recorded in the abstract of judgment. If the person is acquitted of the primary offense the stay shall be permanent.
(e) If the person is convicted of a felony for the primary offense, is sentenced to state prison for the primary offense, and is convicted of a felony for the secondary offense, any sentence for the secondary offense shall be consecutive to the primary sentence and the aggregate term shall be served in the state prison, even if the term for the secondary offense specifies imprisonment in county jail pursuant to subdivision (h) of Section 1170.
(f) If the person is convicted of a felony for the primary offense, is granted probation for the primary offense, and is convicted of a felony for the secondary offense, any sentence for the secondary offense shall be enhanced as provided in subdivision (b).
(g) If the primary offense conviction is reversed on appeal, the enhancement shall be suspended pending retrial of that felony. Upon retrial and reconviction, the enhancement shall be reimposed. If the person is no longer in custody for the secondary offense upon reconviction of the primary offense, the court may, at its discretion, reimpose the enhancement and order him or her recommitted to custody.
(Amended by Stats. 2013, Ch. 76, Sec. 167. (AB 383) Effective January 1, 2014.)