Quick summary
California Penal Code 29905 lists the “violent offenses” that bring a lifetime ban on owning or possessing a gun. If you have a conviction for one of these offenses and are later caught with a firearm, you can be charged with a felony under Penal Code 29900.
- Which crimes count: 28 categories, including murder, rape, robbery, carjacking, kidnapping, arson, assault with a deadly weapon and gang felonies, plus attempts to commit most of them.
- Penalties: 16 months, 2 or 3 years in state prison. If the judge grants probation, at least 6 months in county jail is usually required.
- Example: Dan pleaded to misdemeanor assault with a deadly weapon years ago. He keeps a rifle at home. That’s still a felony under PC 29900, because the list covers misdemeanor convictions too.
- Getting gun rights back: An expungement does not restore them. A governor’s pardon can, unless the conviction involved using a dangerous weapon.
In this article, our California criminal defense lawyers explain:
- 1. What does Penal Code 29905 say?
- 2. What happens if you have a gun after a violent offense?
- 3. Can you get your gun rights back?
1. What does Penal Code 29905 say?
In California, Penal Code 29905 is a definitions section. It lists the “violent offenses” that trigger the lifetime firearm ban in Penal Code 29900. The full text reads:1
(a) As used in this chapter, a violent offense includes any of the following:
(1) Murder or voluntary manslaughter.
(2) Mayhem.
(3) Rape.
(4) Sodomy by force, violence, duress, menace, or threat of great bodily harm.
(5) Oral copulation by force, violence, duress, menace, or threat of great bodily harm.
(6) Lewd acts on a child under the age of 14 years.
(7) Any felony punishable by death or imprisonment in the state prison for life.
(8) Any other felony in which the defendant inflicts great bodily injury on any person, other than an accomplice, that has been charged and proven, or any felony in which the defendant uses a firearm which use has been charged and proven.
(9) Attempted murder.
(10) Assault with intent to commit rape or robbery.
(11) Assault with a deadly weapon or instrument on a peace officer.
(12) Assault by a life prisoner on a noninmate.
(13) Assault with a deadly weapon by an inmate.
(14) Arson.
(15) Exploding a destructive device or any explosive with intent to injure.
(16) Exploding a destructive device or any explosive causing great bodily injury.
(17) Exploding a destructive device or any explosive with intent to murder.
(18) Robbery.
(19) Kidnapping.
(20) Taking of a hostage by an inmate of a state prison.
(21) Attempt to commit a felony punishable by death or imprisonment in the state prison for life.
(22) Any felony in which the defendant personally used a dangerous or deadly weapon.
(23) Escape from a state prison by use of force or violence.
(24) Assault with a deadly weapon or force likely to produce great bodily injury.
(25) Any felony violation of Section 186.22.
(26) Any offense enumerated in subdivision (a), (b), or (d) of Section 23515.
(27) Carjacking.
(28) Any offense enumerated in subdivision (c) of Section 23515 if the person has two or more convictions for violating paragraph (2) of subdivision (a) of Section 417.
(b) As used in this chapter, a violent offense also includes any attempt to commit a crime listed in subdivision (a) other than an assault.
In plain terms, the list covers most serious crimes of violence, including rape, robbery and assault with a deadly weapon. Under subdivision (b), attempting one of these crimes also counts, except for attempted assault.
Misdemeanor convictions can count
Several offenses on the list, such as assault with a deadly weapon, can be charged as either a misdemeanor or a felony. A California appeals court held that a misdemeanor conviction for assault with a deadly weapon still triggers the ban, because the list names the offense without requiring a felony.2
2. What happens if you have a gun after a violent offense?
In California, owning, possessing or controlling any firearm after a conviction for an offense on the PC 29905 list is a felony under Penal Code 29900.3 The ban applies for life. It also applies to people whose qualifying conviction came after a juvenile case was transferred to adult court.4
Prison, jail and fines
PC 29900 does not set its own prison term, so California’s default felony sentence applies:5
- 16 months, 2 years or 3 years in state prison, and
- a fine of up to $10,000.
The judge can grant probation or a suspended sentence. But if so, the law requires at least 6 months in county jail as a condition. The judge can skip that minimum only in an unusual case, and must explain on the record why the interests of justice call for it.6
Clearing the old conviction later doesn’t help
The question is whether you had the conviction when you had the gun. In one case, a defendant’s prior conviction was later set aside, but the court held that he could still be prosecuted for possessing a gun while that conviction stood.7
Example: Maria was convicted of robbery in 2015. In 2026, police find a handgun in her nightstand during a probation search. She can be charged under PC 29900, even though the robbery was more than 10 years ago.
How these charges are fought
Common defenses include showing that you didn’t know the gun was there, that it belonged to someone else and you had no control over it, or that police found it through an illegal search. The prosecution must also prove that your earlier conviction is actually one of the listed offenses. At trial, prosecutors can’t keep describing your earlier conviction to the jury as a “violent offense.” A California appeals court reversed a conviction because of those repeated references.8
3. Can you get your gun rights back?
Usually not. In California, the ban on people convicted of a PC 29905 offense lasts for life.
- Expungement doesn’t restore gun rights. A dismissal under Penal Code 1203.4 does not allow you to own or possess a firearm.9 A misdemeanor dismissal under PC 1203.4a also doesn’t change the prior conviction for PC 29900.10
- A governor’s pardon can restore them, with one big exception. The pardon can state that you may own firearms again, but not if you were ever convicted of a felony involving the use of a dangerous weapon.11
The best way to avoid a lifetime ban is to avoid a conviction for a listed offense in the first place. A defense lawyer may be able to get the charge dismissed or negotiate a plea to an offense that is not on the PC 29905 list.
If you or a loved one is charged with illegally having a gun, call our California criminal defense attorneys for a free consultation. We can review whether your prior conviction really triggers the ban and how the gun was found.
Legal references:
- California Penal Code 29905 PC (text as of November 2026; unchanged since it took effect January 1, 2012).
- People v. Sanchez (1989) 211 Cal.App.3d 477, 482-483 (interpreting former PC 12021.1, now PC 29900 and 29905).
- California Penal Code 29900(a)(1) PC: “any person who has been previously convicted of any of the offenses listed in Section 29905 and who owns or has in possession or under custody or control any firearm is guilty of a felony.”
- California Penal Code 29900(b)(1) PC (see note 3 above).
- California Penal Code 18(a) PC: a felony with no other stated punishment “is punishable by imprisonment for 16 months, or two or three years in the state prison.” California Penal Code 672 PC (fine of up to $10,000 for a felony with no stated fine).
- California Penal Code 29900(a)(3), (b)(2) and (c) PC (see note 3 above).
- People v. Sanchez (1989) 211 Cal.App.3d 477 (see note 2 above).
- People v. Hopkins (1992) 10 Cal.App.4th 1699, 1701 (repeated references to the prior as a “violent offense” were prejudicial error).
- California Penal Code 1203.4(a) PC: dismissal “does not permit a person to own, possess, or have custody or control of a firearm.”
- California Penal Code 29900(a)(2) PC (see note 3 above).
- California Penal Code 4854 PC: the right “shall not be restored … if the person was ever convicted of a felony involving the use of a dangerous weapon.”