Can You Carry a Gun in a Government Building?

Carrying a gun in a government building is generally illegal, and a state concealed carry permit will not save you inside a federal facility. Under 18 U.S.C. § 930, knowingly bringing a firearm or other dangerous weapon into a building owned or leased by the federal government is a crime punishable by up to a year in prison.1Office of the Law Revision Counsel. 18 USC 930 – Possession of Firearms and Dangerous Weapons in Federal Facilities State and local government buildings follow their own rules, and those rules vary widely from one state to the next. What you can and cannot do depends on which government owns the building and, for state and local property, where you are standing.

Federal Buildings Under 18 U.S.C. § 930

The federal statute defines a “Federal facility” as any building, or part of a building, owned or leased by the federal government where federal employees regularly perform their official duties.1Office of the Law Revision Counsel. 18 USC 930 – Possession of Firearms and Dangerous Weapons in Federal Facilities That covers a huge range of ordinary buildings: Social Security offices, IRS service centers, federal agency headquarters, and hundreds of others. Your state carry permit does not create an exception. Federal law applies uniformly.

The prohibition reaches beyond firearms. A “dangerous weapon” is any device or substance capable of causing death or serious bodily injury, though pocket knives with blades under 2½ inches are excluded by statute.2GovInfo. 18 USC 930 – Possession of Firearms and Dangerous Weapons in Federal Facilities

One practical detail matters if you find yourself charged. The law requires signs posted at every public entrance warning about the prohibition. If no sign was posted and you had no other reason to know about the ban, that is a statutory defense to prosecution.1Office of the Law Revision Counsel. 18 USC 930 – Possession of Firearms and Dangerous Weapons in Federal Facilities

Parking Lots

Because § 930 is limited to “a building or part thereof,” a parking lot is not a federal facility for purposes of the general statute.1Office of the Law Revision Counsel. 18 USC 930 – Possession of Firearms and Dangerous Weapons in Federal Facilities Driving to a federal office with a lawfully possessed firearm locked in your vehicle is not a § 930 violation. Do not treat this as a blanket rule, though. Individual agencies, including the Postal Service, have their own regulations covering entire grounds.

Federal Courthouses

Courthouses sit under a stricter tier. A “federal court facility” includes courtrooms, judges’ chambers, witness rooms, jury deliberation rooms, attorney conference rooms, holding cells, and the offices of court clerks, U.S. attorneys, and U.S. marshals, plus the corridors connecting them. A firearm in any of these areas can bring up to two years in prison, double the standard maximum.1Office of the Law Revision Counsel. 18 USC 930 – Possession of Firearms and Dangerous Weapons in Federal Facilities

Post Offices and VA Medical Centers

Some federal properties layer additional regulations on top of § 930. Post offices are the clearest example. Postal Service regulation prohibits carrying firearms, openly or concealed, on any postal property, and this rule reaches entire grounds including parking lots.3eCFR. 39 CFR 232.1 – Conduct on Postal Property Leaving a firearm in your car in a post office lot violates the regulation, even though the same act would fall outside the general federal building ban.

A federal judge in Texas ruled the postal ban unconstitutional in September 2025, and a March 2026 ruling extended that injunction to current and future members of the organizations that brought the case. For everyone else, the ban remains enforceable unless a higher court intervenes.

Department of Veterans Affairs facilities have a separate prohibition. Under VA regulation, no person on VA property may carry a firearm, loaded or unloaded, openly or concealed, except federal or state law enforcement officers on official business. A violation can bring a fine of up to $500 and up to six months of imprisonment.4eCFR. 38 CFR 1.218 – Security and Law Enforcement at VA Facilities

State and Local Government Buildings

Outside federal property, the rules are set by each state, and variation is enormous. Some states broadly prohibit firearms in any government-owned or government-operated building. Others allow licensed carry in most government buildings and restrict firearms only in specific locations like courthouses or legislative chambers.

Preemption adds another layer. In some states, cities and counties cannot set their own firearms restrictions unless the state legislature has authorized it. In other states, localities have broad authority to adopt their own rules, so the law can change from one municipality to the next.

Polling places surprise many carriers. There is no federal ban on firearms at polling locations. Roughly half the states ban firearms at or near polling places during elections; the rest do not. If you plan to carry when you vote, check your state’s rule first.

The safe assumption for state and local government property is to check the law of the specific state and locality before you walk in with a firearm.

The 1,000-Foot School Zone Trap

A rule that catches many carriers has nothing to do with the government building itself but with what sits nearby. The Gun-Free School Zones Act makes it a federal crime to knowingly possess a firearm within 1,000 feet of any public, private, or parochial school that provides elementary or secondary education.5Office of the Law Revision Counsel. 18 USC 922 – Unlawful Acts A 1,000-foot buffer sweeps in surrounding streets, businesses, sidewalks, and often nearby government offices.

The statute provides several exceptions:

  • The ban does not apply on private property that is not part of school grounds.
  • You are exempt if you hold a carry license from the state where the school zone is located, and that state required law enforcement to verify your qualifications before issuing it.
  • An unloaded firearm in a locked container or locked firearms rack on a vehicle is permitted.
  • Individuals participating in a program approved by the school may possess firearms as part of that program.
  • Law enforcement officers acting in their official capacity are exempt.

The license exception creates a trap for residents of permitless-carry states. If your state does not require a license to carry, or issues one without law enforcement verification of qualifications, the federal exception does not apply.5Office of the Law Revision Counsel. 18 USC 922 – Unlawful Acts You can be legally carrying under state law and still violating federal law inside that 1,000-foot zone.

Who Is Exempt

The broadest exemption belongs to qualified law enforcement officers under the Law Enforcement Officers Safety Act, codified at 18 U.S.C. §§ 926B and 926C. LEOSA lets eligible active and retired officers carry a concealed firearm nationwide, overriding most state and local concealed carry prohibitions.6Office of the Law Revision Counsel. 18 USC 926B – Carrying of Concealed Firearms by Qualified Law Enforcement Officers

LEOSA has limits officers sometimes misunderstand. It does not override federal facility restrictions under § 930, so an officer with LEOSA credentials cannot carry into a federal courthouse. It does not override state laws prohibiting firearms on state or local government buildings, parks, or installations.6Office of the Law Revision Counsel. 18 USC 926B – Carrying of Concealed Firearms by Qualified Law Enforcement Officers And it does not override the rules of private property owners who prohibit firearms.7U.S. Customs and Border Protection. Law Enforcement Officers Safety Act (LEOSA) A retired officer can carry in a shopping mall in a state that generally restricts concealed carry, but cannot walk into a state capitol building if state law prohibits it.

Section 930 itself creates separate exemptions for officers and agents authorized by law to detect or investigate crimes, members of the armed forces when authorized, and individuals lawfully carrying firearms for hunting or other lawful purposes connected to the facility.1Office of the Law Revision Counsel. 18 USC 930 – Possession of Firearms and Dangerous Weapons in Federal Facilities Contract security guards at federal buildings are authorized to carry at their assigned facility, but that authority does not extend beyond it.

Penalties for Violations

Federal penalties break into three tiers:

State penalties vary widely. Depending on the state and the circumstances, the charge may be a misdemeanor or a felony, with potential penalties from fines to several years of incarceration.

The immediate sentence is not the end of it. A misdemeanor conviction may cost you your concealed carry permit. A felony conviction strips your right to possess any firearm under federal law, permanently unless rights are later restored. Some states also treat government-building firearms violations as disqualifying offenses for permit renewal even when the underlying charge is a misdemeanor.