Are Fence Spikes Legal in California? Ordinances, Lawsuits, and Fines

Fence spikes are not banned by any single California statute, so whether they are legal on your property depends almost entirely on your city or county code — and even where they are technically allowed, installing them opens you to negligence lawsuits, possible criminal charges if they look like a trap, insurance denials, and code-enforcement fines. For most residential owners in California, the honest answer to “are fence spikes legal in California” is: sometimes, in some places, with real legal risk attached.

Local Ordinances Do the Real Regulating

The concrete restrictions on sharp fence toppings live in municipal codes, and they vary a lot across the state. Some cities prohibit them outright in residential zones. Others allow them in commercial or industrial areas, or only with a special permit. Before you buy anything sharp, call your local Department of Building and Safety or Planning Department. This is the single most important step.

Sacramento

Sacramento’s municipal code prohibits concertina wire, barbed wire, razor wire, and “other similar fencing materials capable of inflicting significant physical injury” in residential areas unless required by court order. An owner can apply for a site-plan deviation, but the decision-maker must find that the materials are reasonably necessary for security and will not create a safety hazard for people conducting themselves lawfully.1American Legal Publishing. Sacramento Code 17.620.110 – Regulations for Residential Development

Los Angeles

Los Angeles restricts barbed wire and similar obstructions near fire-access points on buildings, and the city’s wildlife-friendly fencing rules go further by explicitly prohibiting spikes, glass, and razor wire on fences in areas subject to those rules. Metal fence posts with open tops must be capped so wildlife are not impaled. Chain-link and concertina wire fences are also banned under these provisions.

San Francisco

San Francisco’s fire code prohibits barbed or razor wire anywhere it could hinder firefighters, including on fences, parapets, and rooftops. An exception exists for fences where the wire does not obstruct egress or rescue operations, but the fire-code official makes that determination, not the homeowner.2American Legal Publishing. San Francisco Fire Code 316.7 – Barbed or Razor Wire

These three cities are examples, not a complete map. Many other California municipalities have similar or stricter rules, and some publish them through their official websites or through services like American Legal Publishing.

When Spikes Cross Into Criminal Territory

Most homeowners have no idea a fence modification could put them at risk of a felony. California Penal Code Section 20110 makes it a crime to assemble, maintain, or place a booby-trap device. The offense carries two, three, or five years in state prison. Simply possessing a device with the intent to use it as a booby trap is punishable by up to a year in county jail, a fine up to $5,000, or both.3California Legislative Information. California Penal Code 20110

A standard, openly visible decorative spike strip is unlikely to qualify. The statute is aimed at concealed devices designed to cause harm, not obvious deterrents. The line blurs when spikes are hidden by landscaping, painted to match the fence so they cannot be seen, or positioned in a way that suggests the goal was to injure rather than to deter. If a prosecutor can argue the spikes were concealed and designed to cause serious harm, the booby-trap statute becomes very relevant. Visibility and intent are what separate a legal fence topping from a criminal device.

You Can Be Sued Even If the Spikes Are Legal

Compliance with every local rule does not protect you from a civil lawsuit. California Civil Code Section 1714 makes every person responsible for injuries caused by a lack of ordinary care in managing their property, and that duty applies regardless of whether the injured person was invited onto the property.4California Legislative Information. California Civil Code 1714 In a premises-liability case, the jury asks whether you acted as a reasonable person, weighing how dangerous the spikes are, how visible they are, and whether the security benefit justifies the risk.5Justia. CACI No. 1001 – Basic Duty of Care Aggressively sharp or concealed spikes are especially vulnerable to a negligence finding. Passing a code inspection does not immunize you.

Trespassers Are Not a Free Pass

California does not give owners blanket protection when the injured person was trespassing. The reasonableness analysis still applies. There is a shield in Civil Code Section 847 for owners when the trespasser was committing certain serious felonies — burglary, robbery, arson, and similar crimes — and the trespasser’s own criminal conduct caused the injury.6California Legislative Information. California Civil Code 847 That protection requires a criminal charge and conviction, and it does not cover the more common scenarios: a curious teenager climbing a fence, a delivery driver taking a shortcut, a neighbor’s kid retrieving a ball.

Injuries to Children Are the Worst Case

Child-injury cases carry the highest exposure. California eliminated the formal “attractive nuisance” doctrine in 1970, but that change actually broadened owner liability by folding child hazards into the general reasonable-care standard. Courts consider whether an owner should have anticipated that children might encounter the danger, and weigh the child’s age and ability to appreciate the risk. Sharp spikes on a climbable fence in a neighborhood with children are about as foreseeable as it gets. Damages — medical bills, pain and suffering, scarring — add up fast.

Spikes Can Push You Over the Height Limit

California caps residential fences at six feet under the state building regulations.7Legal Information Institute. California Code of Regulations Title 25 1514 – Fence Height and Location Fences at or under six feet generally do not need a building permit. Add a 12-inch spike topping to a six-foot fence and you now have a seven-foot structure — over the threshold, likely in violation of local rules, and possibly requiring a permit you never pulled.

Local jurisdictions can set stricter height limits, and many do. Front-yard fences are often capped at three or four feet in residential zones. A spike topping that pushes a front-yard fence past the local limit creates a code problem all by itself, separate from any question about whether the spikes themselves are allowed.

Your Homeowners Insurance May Not Cover You

This one catches people by surprise. California Insurance Code Section 533 provides that an insurer is not liable for a loss caused by the willful act of the insured.8California Legislative Information. California Insurance Code 533 Standard homeowners policies cover “accidents.” If a court decides you deliberately installed a device you knew was likely to injure someone, the insurer can deny the claim under the willful-act exclusion.

The consequence is severe. If a child is hurt on your spiked fence and a jury awards $200,000, your insurer may refuse to pay and leave you personally on the hook for the judgment. Even short of outright denial, an obviously dangerous fence topping can trigger a coverage dispute, higher premiums, or non-renewal. Call your carrier before you install anything sharp and get their position in writing.

Code-Enforcement Fines Come Fast

Fence spikes that violate local codes trigger direct penalties from the city. Under California Government Code Section 36900, code violations classified as infractions carry a fine of up to $130 for a first offense, up to $700 for a second violation of the same ordinance within a year, and up to $1,300 for each additional violation after that.9California Legislative Information. California Government Code 36900 Some cities treat ongoing violations as daily infractions, so the fines pile up if you do not remove or modify the fence promptly. The city can also seek a court order forcing removal.

Lower-Risk Ways to Secure a Fence

Most homeowners looking at the legal picture end up choosing security measures that deter climbing without creating a puncture hazard. A few options work well:

  • Roller-bar or coyote-roller toppings. Spinning bars along the fence top prevent anyone from getting a grip, and they work on animals too.
  • Angled fence extensions. An inward-angled top section makes climbing very difficult without adding anything sharp. Check local height limits before adding one.
  • Dense thorny landscaping. Bougainvillea, roses, or hawthorn along a fence line creates a painful natural barrier, and courts are far less likely to treat a plant as an unreasonable hazard than metal spikes.
  • Motion-activated lighting and cameras. Visible cameras and bright lights triggered by movement deter intruders effectively and carry no injury risk.
  • A taller fence within code. If your current fence sits below the local maximum, adding compliant height is the simplest security upgrade you can make.

Each of these keeps people off the property without inviting the lawsuit, criminal charge, coverage fight, or code citation that spiked fences can trigger.