On this page
California has some of the strictest gun laws in the country, and San Francisco adds local rules of its own. A gun charge can be filed in state court, and some cases are referred to federal prosecutors, where sentences are often longer. Even a misdemeanor conviction can cost you the right to own a firearm. Neil Hallinan, a former public defender in Sacramento and Alameda counties, defends people facing gun and weapons charges in San Francisco, Oakland and across the Bay Area.
Common California Gun Charges
Most gun cases in state court involve one of these Penal Code sections:
- PC 25400: carrying a concealed firearm on your person or in a vehicle without a license.
- PC 25850: carrying a loaded firearm on your person or in a vehicle in a public place in an incorporated city or a prohibited area.
- PC 29800: possession of a firearm by a person with a felony conviction or another legal prohibition.
- PC 417: brandishing, meaning drawing or exhibiting a firearm in a rude, angry or threatening way.
- PC 246.3: discharging a firearm in a grossly negligent way that could cause injury or death.
Carrying charges under PC 25400 and PC 25850 are often misdemeanors, but they can be filed as felonies depending on factors such as whether the gun was stolen, whether you were its registered owner and whether you have prior convictions. Possession by a prohibited person is a felony. When a gun is used during another felony, such as a robbery, sentence enhancements can add years to the sentence.
For more on the rules that apply locally, see Gun Laws in San Francisco.
When Gun Cases Go Federal
Local police and prosecutors sometimes refer gun cases to the U.S. Attorney's Office instead of keeping them in state court. Referral is most common in four kinds of cases:
- Armed robberies
- Carjackings
- Felons in possession of a firearm
- Gun possession connected to drug trafficking
Federal law makes it a crime for a person with a felony conviction to possess a firearm (18 U.S.C. 922(g)), and using or carrying a gun during a drug trafficking crime or crime of violence (18 U.S.C. 924(c)) carries a mandatory minimum prison term that is added to the sentence for the underlying crime. A gun does not have to be fired for these laws to apply. Federal cases in this area are heard in the U.S. District Court for the Northern District of California, which sits in San Francisco and Oakland. Our guide to federal weapons charges explains how they differ from state cases.
Defenses to Gun Charges
The Search Was Illegal
Many gun cases start with a traffic stop, a pat-down or a search of a car or home. If police did not have a legal basis for the stop or the search, your lawyer can file a motion to suppress the gun. If the gun is excluded, the prosecution often has no case left.
The Gun Was Not Yours
The prosecution must prove you knowingly possessed the firearm. A gun found in a shared car, a borrowed bag or an apartment several people use does not prove that you knew it was there or had control over it.
You Were Carrying It Lawfully
California law allows firearms to be transported in certain ways, such as unloaded and in a locked container in a vehicle. Some people also hold permits or fall within exemptions. Whether the gun was actually loaded, and how and where it was stored, matter.
Self-Defense
Drawing a gun in self-defense is not brandishing. If you reasonably believed you or someone else was in danger, that can be a complete defense to a brandishing charge and can matter in other gun cases too.
Consequences Beyond the Sentence
- Losing your gun rights: a felony conviction bars you from owning firearms under both California and federal law, and certain misdemeanors, including brandishing, bring a ten-year ban under California law.
- Immigration: firearm offenses can make a non-citizen deportable.
- Future sentencing: a gun conviction can raise the stakes in any later case.
How Gun Cases Move Through Court
San Francisco state cases are heard at the Hall of Justice, 850 Bryant Street, and Alameda County cases at the René C. Davidson Courthouse, 1225 Fallon Street, or the Wiley W. Manuel Courthouse, 661 Washington Street, in Oakland. In a felony case, the preliminary hearing is often the first chance to challenge the stop and the search through the officer's own testimony. Neil Hallinan has handled hundreds of preliminary hearings. Acting early can also matter when federal referral is a possibility.
If you have been arrested on a gun charge, talk with Neil Hallinan directly. The first consultation is free and confidential.
Areas We Serve
We take these cases from two Bay Area offices, and also appear in Marin, San Mateo, Santa Clara, Contra Costa and Solano county courts.
San Francisco Criminal Defense Lawyer
Law Chambers Building, 345 Franklin Street, San Francisco, CA 94102. Most San Francisco criminal cases are heard at the Hall of Justice, 850 Bryant Street.
Oakland Criminal Defense Lawyer
1432 Martin Luther King Jr Way, Oakland, CA 94612. Alameda County cases are heard at the René C. Davidson Courthouse, 1225 Fallon Street, and the Wiley W. Manuel Courthouse, 661 Washington Street.


