Laws & Safety · Legal Guide
Can you shoot a pellet gun in your backyard?
Researched by James · Updated September 26, 2026 · Editorial policy
On this page
The ordinance examples below are quoted directly from Sacramento's and Fort Worth's published municipal codes, and the California state-law summary comes from Shouse Law Group, all linked in Sources. Municipal codes are amended regularly, so confirm the current text for your own city before relying on it. Full methodology & editorial policy →
Does state law ban backyard pellet gun shooting?
In most states, no — there's typically no statewide law that specifically bans discharging an air gun on your own property. California is a useful example of how this works: state law doesn't set a blanket discharge ban for BB and pellet guns. Instead, California mainly regulates them as "imitation firearms" for sale and public display, and restricts openly carrying or displaying one in public places like streets and parking lots. Actual discharge restrictions are left to individual cities, which is exactly why the answer changes so much block to block rather than state to state.
Real city ordinances: two clear examples
| City | Rule | Exception |
|---|---|---|
| Sacramento, CA | Unlawful to carry or use any air gun for discharging within city limits | Licensed shooting galleries only |
| Fort Worth, TX | No person shall discharge any air gun, air pistol, or BB gun within the city | Amusement arcades and paintball facilities/events only |
Both ordinances are absolute within city limits — there's no private-property or backyard carve-out in either one. That's the pattern worth internalizing: a city discharge ban usually applies on your own land just as much as it applies on a public street, because the ordinance is about where the pellet travels and what it might hit, not about whose property you're standing on.
Even within a single state, cities disagree sharply. California alone has cities that ban air gun discharge outright, cities that restrict it to certain areas like open space, and cities that require police permission for discharge on public property — Irvine and Carlsbad are two documented California examples with narrower, area-specific restrictions rather than a citywide ban. That range is exactly why a state-level answer can't tell you what your own city allows.
Can you own a pellet gun even where discharge is restricted?
Generally yes — a discharge ordinance restricts firing the gun somewhere, not owning one. California, for instance, doesn't restrict BB gun ownership through its imitation-firearm rules; those mainly govern sale, coloring/markings, and public display. Where a state does treat certain air rifles as regulated firearms for possession purposes — New Jersey and Illinois are the clearest examples — that's a separate legal question from backyard discharge, covered in airgun laws in the U.S.
HOA rules: a separate check entirely
A homeowners association's CC&Rs are a private contract you agreed to when you bought or rented, and they operate independently of city, county, and state law. An HOA can ban discharging any weapon, air gun included, on a property where the city ordinance would otherwise allow it, and violating that covenant carries HOA enforcement consequences (fines, liens in some cases) separate from any criminal citation. If you're in a planned community, read your governing documents specifically — a clean municipal code search won't surface an HOA restriction, because it isn't public law.
How to actually find your local rule
- Search your city's municipal code on a site like municode.com or amlegal.com for a chapter on weapons, offenses, or firearms, and look specifically for a "discharge" section, which is usually distinct from a possession or carry section.
- Check your county's code instead if you're in an unincorporated area — county rules can differ significantly from the nearest city's.
- Call your local police department's non-emergency line and ask directly. It's the fastest way to get a current, specific answer, and it puts the question in the hands of the people who'd actually respond to a complaint.
- Read your HOA's CC&Rs if one applies, separately from the above.
If it's legal, do it safely
A legal backyard setup and a safe one are two different checks, and only the second one is up to your own judgment rather than a lookup. A dense, pellet-stopping backstop, a clear sightline so you always know exactly what's beyond your target, hearing and eye protection, and enough distance from property lines that a ricochet can't reach a neighbor's yard are the non-negotiables. How to set up a safe backyard air rifle range covers backstops, pellet traps, and distances in full, and if noise is part of what's driving the question, how to quiet an air rifle legally covers what actually reduces the sound without running into suppressor law.
Verdict
There's no single answer to "can I shoot a pellet gun in my backyard" because the real rule almost always lives at the city or county level, not the state level — and as Sacramento and Fort Worth show, that local rule can be a flat no even on private property. Check your specific municipal code, check your HOA if one applies, and only then plan your setup around safety.
FAQ
Can you legally shoot a pellet gun in your backyard?
It depends almost entirely on your city or county ordinance, not state law. Most states don't have a statewide ban on discharging an air gun on private property, but plenty of cities do — Sacramento, California and Fort Worth, Texas both prohibit discharging any air gun or BB gun within city limits, with narrow exceptions like licensed shooting galleries or amusement facilities. Other cities allow it with conditions, and some places have no specific rule at all. Check your city's municipal code directly.
Does California have a state law against shooting BB guns?
No statewide discharge ban specifically for BB or pellet guns. California regulates BB guns mainly as "imitation firearms" for sale and public display purposes, not through a blanket discharge law. The real restriction in California comes from individual cities: some, like Sacramento, ban air gun discharge citywide, while others, like Irvine and Carlsbad, restrict it in specific areas or require police permission.
What's a typical city ordinance on shooting air guns?
Sacramento's ordinance is a clear example: "It is unlawful for any person to carry or use any air gun for the purpose of discharging... within the city limits, except in licensed shooting galleries." Fort Worth's is similarly absolute: no person may discharge an air gun, air pistol, or BB gun within the city, with an exception only for amusement arcades and paintball facilities. Ordinances like these apply on your own property just as much as anywhere else in the city.
Can an HOA stop you from shooting a pellet gun even if the law allows it?
Yes. A homeowners association's covenants, conditions, and restrictions (CC&Rs) are a private contract, separate from city, county, and state law, and they can prohibit discharging any weapon, air gun included, even where every level of government would otherwise allow it. Check your HOA's governing documents specifically — they aren't published alongside municipal code and won't show up in a city ordinance search.
How do I find out my city's rule on shooting air guns?
Search your city's municipal code, usually hosted on a site like municode.com or amlegal.com, for a chapter titled "weapons," "offenses," or "firearms," and look for a section on discharge or air guns specifically. If you're in an unincorporated area, check your county's code instead. Calling your local police department's non-emergency line and asking directly also works and gets you a current answer.
Is it safer to assume backyard pellet gun shooting is illegal?
It's safer to assume nothing until you check, in either direction. Plenty of rural and suburban areas have no restriction at all beyond basic safety and property-line common sense, while some cities ban it completely even on a large private lot. Guessing wrong in either direction either exposes you to a citation or has you needlessly giving up a legal backyard setup.
What matters even where backyard shooting is legal?
A dense backstop that fully contains every pellet, a clear line of sight so you always know what's beyond your target, hearing and eye protection, and enough distance from property lines and structures that a ricochet or a missed shot can't reach a neighbor. Legal and safe are two different checks, and a legal backyard setup that isn't genuinely safe is still a bad idea.