Are Electric Fences Legal in California? Rules, Permits, and Signage

Electric fences are legal in California, but whether yours is legal depends entirely on what kind it is and where it sits. Agricultural electric fences for livestock are broadly permitted as long as the current is regulated by a controller meeting recognized safety standards. Electrified security fences are allowed only on commercial, manufacturing, and industrial property, and they are banned outright in residential zones. Getting the category wrong, or missing one of the physical or signage requirements, can get your fence ordered down and leave you exposed if anyone is injured.

The Two Categories California Recognizes

State law treats agricultural and security electric fences as separate things under separate codes. Agricultural fences, used to manage livestock and other animals, fall under the Food and Agricultural Code. They are defined broadly to include any fence or device connected to an electrical source that delivers a shock on contact.1Justia Law. California Food and Agricultural Code 17150-17153 – Electrified Fences

Electrified security fences are governed by Civil Code Section 835. To qualify as a security fence, the impulse repetition rate cannot exceed 1 hertz and each impulse cannot last longer than 10 milliseconds.2California Legislative Information. California Code CIV – Section 835 If your fence doesn’t fit cleanly into either category, local code enforcement will decide how it’s treated.

Where Security Fences Can and Cannot Go

The most important rule for anyone considering a security-grade electrified fence: it cannot be installed on property in a residential zone. Civil Code Section 835 flatly prohibits it, and there is no state-level exception for homeowners.2California Legislative Information. California Code CIV – Section 835

The fence must protect property that falls into one of the following:

  • Commercial property, including sites that store, park, service, sell, or rent vehicles, vessels, equipment, materials, or freight
  • Manufacturing property
  • Industrial property
  • Property zoned under a different designation but legally authorized for commercial, manufacturing, or industrial use

Even when the broader property qualifies, the secured area itself cannot include residential or hospitality uses.2California Legislative Information. California Code CIV – Section 835

Physical and Technical Requirements

A qualifying location still isn’t enough. The fence itself has to meet a set of rigid requirements, and missing any one of them gives local authorities grounds to order removal.

The energizer must comply with International Electrotechnical Commission standard IEC 60335, Part 2-76, which sets voltage limits, pulse characteristics, and energy thresholds designed to deter without causing serious injury.2California Legislative Information. California Code CIV – Section 835 AB 2371, in effect through January 1, 2028, updated the referenced edition of that standard.3California Legislative Information. AB-2371 Electrified Security Fences

The physical rules from Section 835:

  • Height cannot exceed 10 feet, or 2 feet taller than the existing perimeter fence, whichever is greater.
  • The electrified fence must sit behind a non-electrified perimeter fence or wall at least 5 feet tall, to prevent accidental contact with the live wire.
  • The fence may connect to a monitored alarm system that responds to intrusions.

Under the temporary AB 2371 provisions, the outer barrier can be a wall instead of a traditional fence, and local governments may require a device that lets first responders deactivate the fence during an emergency.3California Legislative Information. AB-2371 Electrified Security Fences

Warning Sign Requirements

Signage is where a lot of otherwise-legal fences fail inspection. Every electrified security fence must display warning signs that are legible from both sides. At a minimum:

  • Signs at every gate and access point, and at intervals no greater than 30 feet along the fence line.
  • If the property has chemical, radiological, or biological hazard signs, the electric fence warnings must sit next to them.
  • Each sign must include a warning or recognized symbol for electrical shock, a warning for people with pacemakers, and a warning about touching the fence in wet conditions.

All three content elements are mandatory on every sign.2California Legislative Information. California Code CIV – Section 835 A sign that just reads “Warning: Electric Fence” doesn’t comply. The pacemaker warning in particular is the one property owners miss.

How Local Rules Interact With State Law

Cities and counties have real but limited power over electrified security fences. Where a property meets every state requirement and sits in a qualifying zone, local governments cannot ban the fence outright and cannot require permits beyond a standard alarm system permit. There is one carve-out: a city or county may require an administrative permit if the property abuts residential use or sits within 300 feet of a public park, childcare facility, recreation center, community center, or school.2California Legislative Information. California Code CIV – Section 835

Where a local ordinance specifically prohibits electrified security fences, the local ban controls. Where the local ordinance allows them, you must satisfy both the local requirements and Section 835. A local ordinance aimed only at agricultural-type electrified fences under the Food and Agricultural Code does not automatically apply to security fences.2California Legislative Information. California Code CIV – Section 835

When a local jurisdiction approves a building permit for an electrified security fence, it must notify the local fire department and fire marshal and provide them with a copy of the approved permit, so responders know an electrified barrier exists before they encounter it.4California State Senate. AB 358 Flora Senate Judiciary Committee Analysis

Agricultural Electric Fences

The rules for livestock and animal-control fences are simpler and more permissive. The Food and Agricultural Code requires that any electrified fence sold, installed, or used in California limit and regulate its current through a controller meeting recognized safety standards. Acceptable standards include those set by the National Electrical Code of the National Fire Protection Association, the International Electrotechnical Commission, or Underwriters Laboratories for intermittent-type controllers.5California Legislative Information. California Food and Agricultural Code FAC 17152

Agricultural fences are not subject to Section 835’s height limits, perimeter fence requirement, detailed signage rules, or residential zone prohibition. The definition sweeps in any fence connected to an electrical source that delivers a shock, including single-strand wire fences on posts.1Justia Law. California Food and Agricultural Code 17150-17153 – Electrified Fences Local jurisdictions can still add their own restrictions, particularly in areas where housing has grown into what used to be rural land. Check with your county or city code enforcement office before you assume the agricultural framework applies to you.

What Non-Compliance Costs

State statute does not spell out specific fines or criminal penalties for a non-compliant electrified fence. Enforcement is largely delegated to local governments, which can prohibit fences that fail state requirements and order them removed.3California Legislative Information. AB-2371 Electrified Security Fences Consequences range from a code enforcement citation to an abatement order requiring you to remove the fence at your own expense.

The bigger exposure is civil. If someone is injured by an electric fence that doesn’t meet the statutory requirements, the property owner loses the argument that the fence was legally installed. Missing warning signs, no perimeter barrier, or installation in a residential zone all undercut any defense against a personal injury claim. Compliance is what separates a lawful security measure from a liability the property owner will answer for.