Permit and fire rules for a driveway gate are set by your city or county, so check before you build. The California Building Code exempts fences up to 7 feet high from a building permit, but local rules can differ, a powered operator may need an electrical permit, and a security gate across a fire access road needs fire code official approval and an approved emergency operation.
Driveway Gate Permit and Fire Access Rules in California
Do I need a permit for a driveway gate?
Start with the state model. California Building Code section 105.2 lists fences, other than swimming pool barriers, not over 7 feet high as exempt from a building permit. The same section says an exemption does not authorize work that breaks the code, and cities can amend the list.
Oakland shows how one city writes it. Its page on fences, gates and freestanding walls says wood and metal structures over 7 feet need a building permit, and that they need an electrical permit if they have a powered gate operator. It also sets zoning limits, with residential gates up to 10 feet high and 10 feet wide. Your city will have its own version.
Call your building department with three facts: the height, the material and whether the gate has an operator.
Quick facts
| Question | Short answer | Who decides |
|---|---|---|
| Building permit for the gate or fence? | State code exempts fences not over 7 feet, and cities can amend it | City or county building department |
| Electrical permit for an operator? | Oakland requires one for a powered gate operator, so ask your city | City or county building department |
| Height and width limits? | Zoning sets them and they vary | City planning department |
| Fire department approval? | Required for a security gate across a fire apparatus access road | Fire code official |
| Key switch or Knox lock? | Depends on the agency's policy | Local fire department |
Rules differ by city and fire agency. Confirm yours before you order a gate.

Myth: only tall gates need a permit
The 7 foot line only covers the building permit. An electric gate adds a motor and wiring, and a city can ask for an electrical permit, a planning review or both. Height is also only one of the limits, since zoning can cap how tall and wide a gate may be. If an HOA or a fire agency is involved, they may ask for plans as well.
What is a Knox box, key switch or padlock?
Knox is a rapid entry system many fire departments use so crews can get in without breaking anything. Riverside County Fire's technical policy lists four types: a Knox Box that holds building keys, a Knox Padlock for non-powered gates, a Knox Switch for powered access gates and a cabinet for plans and hazard data. All four work with a single key that the fire department controls.
That policy requires a key switch on all electronic gates. When the fire department turns it, the gate opens and stays open until they return the switch to its normal position. Other agencies write their own rules, so a switch that satisfies one department may not match another.
Myth: a fire gate only has to work when the power is on
California Fire Code section 503.6 says the installation of security gates across a fire apparatus access road is approved by the fire code official. It also says such gates need an approved means of emergency operation, and that the gate and its emergency operation be maintained operational at all times.
Whether your driveway counts as a fire apparatus access road is a question for your fire department, not something we can decide from the street. If the answer is yes, a gate that fails in an outage is a code problem as well as an inconvenience.
Myth: any gate opener will pass
DASMA says model codes require listed gate operators that carry a label from a listing agency, and that automated gates should be built to ASTM F2200. In practice that means an operator listed to UL 325 and the right safety sensors. See gate safety sensors and UL 325 for what they are.

Get the gate built or repaired to match the plan
Emil Garage Doors repairs gates and operators and talks homeowners through access control hardware across Southern California, including in Aliso Viejo, Lemon Grove and Port Hueneme. We do not issue permits or approvals. Ask your building department and fire department first, then call (213) 340-4232 or send the estimate form with what they require. See gate repair and access control.
Questions people ask
Do I need a permit for an electric gate?
It depends on your city. The state code exempts fences up to 7 feet high from a building permit, but a city can amend that, and a powered gate operator may need an electrical permit. Call your building department with the height, material and operator.
What is a Knox box on a gate?
A Knox switch or padlock lets the fire department open the gate with a key it controls. Riverside County Fire, for example, requires a key switch on electronic gates and a padlock on non-powered gates.
Does the fire department need access to my gate?
If the gate crosses a fire apparatus access road, the fire code official approves it and it needs an approved means of emergency operation. Ask your fire department whether your driveway counts.
Must a gate open when the power fails?
For a security gate on a fire access road, California Fire Code section 503.6 requires an approved emergency operation that is maintained operational at all times. Check what your local fire agency accepts.
Related services
Need help near you?
We repair and install in these cities. Each page has local notes, prices and reviews.
Keep reading
Sources
- California Building Code section 105.2, work exempt from permit (GoCodeBook)
- City of Oakland: Fence, Gate, and Freestanding Wall Permits
- California Fire Code section 503.6, security gates (GoCodeBook)
- Riverside County Fire Department Technical Policy TP 06-003: Knox Emergency Access Standard
- DASMA Technical Data Sheet 352: Automatic Vehicular Gate Operating Systems, Guidelines for Specifiers, Designers, Dealers, Installers and End Users
Need it looked at?
Call (213) 340-4232 or send your details for the soonest visit.