Quick summary
California Penal Code 23515 lists the crimes that count as an “offense that involves the violent use of a firearm.” A conviction for one of them leads to a firearm ban, which in most cases lasts for life.
- Lifetime ban: Assault with a firearm or certain other guns (PC 245(a)(2), (a)(3) or (d)), shooting at an inhabited home or occupied vehicle (PC 246), and brandishing a gun at a peace officer (PC 417(c)), even if the conviction is a misdemeanor.
- 10-year ban: Brandishing a firearm at someone who isn’t a peace officer (PC 417(a)(2)). A second conviction makes the ban permanent.
- Owning a gun anyway: Violating a lifetime ban is a felony, and violating the 10-year ban can be charged as a misdemeanor or a felony.
Penal Code 23515 PC is the California statute that defines an “offense that involves the violent use of a firearm.” A conviction for assault with a firearm (PC 245(a)(2)), shooting at an inhabited dwelling (PC 246) or brandishing a firearm (PC 417) at a peace officer brings a lifetime ban on owning, buying or possessing guns. Ordinary brandishing carries a 10-year ban instead.
The language of the statute reads:
“23515. As used in the provisions listed in Section 16580, an offense that involves the violent use of a firearm includes any of the following: (a) A violation of paragraph (2) or (3) of subdivision (a) of Section 245 or a violation of subdivision (d) of Section 245. (b) A violation of Section 246. (c) A violation of paragraph (2) of subdivision (a) of Section 417. (d) A violation of subdivision (c) of Section 417.”1
In plain terms, PC 23515 doesn’t create a crime of its own. It is a list that other California gun laws use to decide who loses the right to have a firearm, and for how long.
How long is the firearm ban?
The length of the ban depends on which PC 23515 offense you were convicted of, as the following table shows:2
| Offense involving the violent use of a firearm (PC 23515) | Length of firearm ban |
|---|---|
| Assault with a firearm (PC 245(a)(2)) | For life, whether the charge is a felony or a misdemeanor. |
| Assault with a machine gun, an assault weapon or a .50 BMG rifle (PC 245(a)(3)) | For life. |
| Assault on a peace officer or firefighter with a firearm (PC 245(d)(1))* | For life. |
| Assault on a peace officer or firefighter with a semiautomatic firearm (PC 245(d)(2))* | For life. |
| Assault on a peace officer or firefighter with a machine gun, an assault weapon or a .50 BMG rifle (PC 245(d)(3))* | For life. |
| Maliciously and willfully shooting at an inhabited dwelling, occupied building, occupied motor vehicle, occupied aircraft or inhabited housecar (PC 246)** | For life, whether the charge is a felony or a misdemeanor. |
| Drawing or exhibiting a firearm in a rude, angry or threatening way in front of another person, or unlawfully using a firearm in a fight or quarrel (PC 417(a)(2)) | For 10 years. Two or more convictions bring a lifetime ban. |
| Drawing or exhibiting a firearm in a rude, angry or threatening way in front of a peace officer (PC 417(c))* | For life, whether the charge is a felony or a misdemeanor. |
| *The person assaulted or threatened was a peace officer (or, for PC 245(d), a firefighter) performing their duties, and you knew or reasonably should have known it. | |
| **”Inhabited” means currently being used as a home, whether or not anyone is inside. | |
So every offense listed in PC 23515 carries a lifetime ban except one: brandishing a firearm at someone who isn’t a peace officer, or using a gun in a fight, under PC 417(a)(2). That carries a 10-year ban, unless you have two or more such convictions.
Example: Ana pulls a handgun during an argument with a neighbor in Fresno and pleads to misdemeanor brandishing under PC 417(a)(2). She can’t own or buy a gun for 10 years. If she had pointed the gun at a police officer instead (PC 417(c)), the ban would last for life.
What if you have a gun anyway?
Owning, buying, receiving or possessing a firearm in violation of a lifetime ban is a felony under PC 29800. The penalty is:3
- 16 months, 2 years or 3 years in California state prison, and
- a fine of up to $10,000.
Having a gun during a 10-year ban violates PC 29805. It is a “wobbler,” meaning it can be charged as a misdemeanor or a felony. The penalty is up to 1 year in county jail or a state prison term, and a fine of up to $1,000.4
Contact us for help
If you’re charged with a gun crime that could cost you your firearm rights, or you’re accused of having a gun while prohibited, contact us at Shouse Law Group for a free consultation. Our California criminal defense lawyers can review whether the charge can be reduced to an offense that doesn’t carry a firearm ban.
Legal references:
- California Penal Code 23515 (unchanged since it took effect in 2012, as of November 2026).
- California Penal Code 29800 (a)(1): a person “convicted … of an offense enumerated in subdivision (a), (b), or (d) of Section 23515 … who owns, purchases, receives, or has in possession or under custody or control any firearm is guilty of a felony”; (a)(2) (two or more convictions under PC 417(a)(2)); California Penal Code 29805 (a)(1) (10-year prohibition after a misdemeanor conviction under Section 417, among others).
- California Penal Code 29800 (a) (see note 2 above); California Penal Code 18 (a) (felony punishable by “16 months, or two or three years in the state prison” unless another punishment is prescribed); California Penal Code 672 (fine of up to $10,000 for a felony when no other fine is prescribed).
- California Penal Code 29805 (a)(1) (see note 2 above): “… is guilty of a public offense, punishable by imprisonment in a county jail not exceeding one year or in the state prison, by a fine not exceeding one thousand dollars ($1,000), or by both that imprisonment and fine.”