TL;DR

  • In the City of San Diego you can build a fence up to 6 feet in side and rear yards with no construction permit, and up to 3 feet in the front yard. Unincorporated county allows 42 inches in front.
  • Anything over 6 feet, on top of a retaining wall, or inside a corner sight triangle usually needs a permit.
  • Boundary fences are shared under California’s Good Neighbor Fence Act (Civil Code 841). Adjoining owners split reasonable cost equally unless one side proves that’s unfair.
  • Pool barriers follow California Title 24 (60-inch minimum, self-closing and self-latching gates, no climbable rails on the pool side) regardless of city.
  • HOA approval is a separate, often stricter process than a city permit.

San Diego fence laws set a maximum height of 6 feet in residential side and rear yards and 3 feet in the front yard within the City of San Diego, with no construction permit required below those limits. Unincorporated San Diego County allows 42 inches in the front setback and 6 feet in side and rear yards. Fences taller than that, fences on top of retaining walls, pool barriers, and front-yard fences over the setback limit typically need a permit. Boundary fences are shared between neighbors under state law. Here’s the full picture for 2026, by topic, with the actual code sources so you can verify any of it.

Fence height limits in San Diego

Height is the rule that catches most homeowners. The limits depend on your jurisdiction and where the fence sits on the lot.

Location on the lotCity of San DiegoUnincorporated SD CountyPermit needed above this?
Front yard / street setback3 ft (36 in)3.5 ft (42 in)Yes
Side and rear yards6 ft solid6 ft solidYes, over 6 ft
Side/rear with open fence on topUp to 9 ft totalDiscretionaryPermit or approval over 6 ft
Corner sight triangle3 ft3 ftTaller not allowed
Pool safety barrier5 ft (60 in) min5 ft (60 in) minRequired in all jurisdictions
Fence on top of a retaining wallMeasured from higher gradeMeasured from higher gradeCombined height counts

Two details trip people up. Height is measured from the lowest grade next to the fence, and when a fence sits on a retaining wall, the City measures from the higher side, so the wall counts against your height. Side and rear fences can reach 9 feet total in the City as long as everything above 6 feet is open (lattice or similar), not solid.

Sources: City of San Diego Information Bulletin 223 and Municipal Code section 142.0310; County of San Diego PDS form 070. Our full San Diego fence height guide breaks each rule down by yard and use.

Do you need a permit for a fence in San Diego?

Most standard residential fences don’t need a building permit, but several common situations do. The quick version for San Diego County:

  • Backyard fence 6 feet or shorter: no permit in most jurisdictions.
  • Backyard fence over 6 feet: permit typically required.
  • Front-yard fence 42 inches or shorter: usually no permit.
  • Front-yard fence over 42 inches: permit or setback review.
  • Fence in a corner sight triangle: height-restricted to about 3 feet regardless of yard.
  • Pool barrier: must meet California Title 24, which is a code-compliance matter even when no building permit is pulled.
  • HOA property: HOA approval is a separate step, covered below.

Permit rules differ in each city. Full detail is in our San Diego fence permit guide and the city-by-city breakdown in fence permits by city. A licensed contractor should pull the rules for your address and fold any permit into the quote rather than tacking it on later.

Property lines and the Good Neighbor Fence Act

A fence built on the boundary between two homes is a shared responsibility under California law. The Good Neighbor Fence Act (Civil Code section 841) presumes that adjoining owners benefit equally from a boundary fence and share the reasonable cost of building and maintaining it equally. A neighbor who wants to be reimbursed must give 30 days’ written notice describing the problem, the proposed work, the estimated cost, and how the cost would be split.

The equal-split presumption can be rebutted. If one owner can show that an equal share would be unjust, for example the fence is far nicer than needed or only one side benefits, a court can adjust the split. The law covers the boundary fence itself. It does not force a neighbor to pay for a fence built entirely inside your own property for your own reasons.

Before any boundary fence goes in, confirm where the line actually runs. Our San Diego property line fence rules guide explains how to locate your line without a survey, and what a good neighbor fence is covers the etiquette and the finished-side conventions.

Pool fence code in San Diego

If you have a pool, the barrier follows California Title 24 Part 2 Section 3109, and it’s enforced through home sales and insurance, not just at install. The core requirements:

  • Height: at least 60 inches measured from the pool side.
  • Openings: no gap wider than 4 inches anywhere along the barrier.
  • Bottom clearance: no more than 2 inches between the fence and the ground.
  • Gates: self-closing and self-latching, opening away from the pool, with the latch release at least 60 inches above grade.
  • Climbability: no horizontal rails within 45 inches of the pool-side ground, since kids climb them.
  • Chain link: mesh openings can’t exceed 1.75 inches for a pool barrier.

The full rule, including the spots where most existing fences fail, is in our California pool fence code guide. A removable mesh barrier is a common code-compliant option for families with young kids, covered in removable mesh pool safety fence; for a permanent code-height barrier, see our pool fence installation.

HOA fence rules

If your home is in an HOA community, HOA approval is separate from any city permit and is often stricter. HOAs commonly dictate material, color, height, picket profile, and a finished-both-sides requirement, and they almost always require written approval before work starts, with a 14 to 30 day review window. The city can allow an 8-foot fence while your HOA caps you at 6. Our HOA fence approval guide walks through the submission process. The practical rule: clear the HOA before you order materials, because an HOA can make you tear out a non-compliant fence even if it met city code.

How the rules fit together on a real project

For a typical San Diego backyard privacy fence at 6 feet, on the boundary, no pool, no HOA, you generally need no permit, but you do owe your neighbor 30 days’ notice if you want to split the cost. Add a pool and the barrier side jumps to Title 24. Add an HOA and you need written approval on material and color first. Move to the front yard and you drop to a 3-foot limit or a permit. The four levers are always the same: height, location on the lot, whether a pool or boundary is involved, and which jurisdiction you’re in.

If you want the rules checked for your specific address before you build, that’s usually a five-minute phone call. Call us at (858) 925-5546 and we can tell you whether your project is under the no-permit threshold or whether a permit or HOA approval needs to be pulled first.

Frequently asked questions

How tall can a fence be in San Diego?

In the City of San Diego a fence can be up to 6 feet in side and rear yards and 3 feet in the front yard without a construction permit. Unincorporated San Diego County allows 6 feet in side and rear yards and 42 inches in the front setback. Side and rear fences can reach 9 feet total in the City if everything above 6 feet is open fence rather than solid. Height is measured from the lowest adjacent grade.

Do you need a permit to build a fence in San Diego?

You don’t need a building permit for a standard residential fence 6 feet or shorter in the side or rear yard, or 42 inches or shorter in the front, across most of San Diego County. You do need a permit for fences over 6 feet, front-yard fences over the setback limit, fences on top of a retaining wall, and any fence inside a corner sight triangle. Pool barriers must meet California Title 24 regardless of whether a permit is pulled.

Who is responsible for a fence between neighbors in California?

Under California’s Good Neighbor Fence Act (Civil Code section 841), adjoining property owners are presumed to share the cost of building and maintaining a boundary fence equally, because both are presumed to benefit from it. A neighbor seeking reimbursement must give 30 days’ written notice with the proposed work and cost. The equal split can be adjusted by a court if one owner shows that splitting it equally would be unfair.

Who pays for a fence between two neighbors in San Diego?

For a fence on the shared property line, both neighbors split the reasonable cost equally by default under California Civil Code 841. A fence you build entirely on your own land for your own purposes is your cost alone. If you want your neighbor to contribute to a boundary fence, send written notice 30 days ahead describing the work, the cost, and the proposed split before starting.

How close to the property line can I build a fence in San Diego?

A fence can be built right on the property line when it’s a shared boundary fence, which is the most common case. If you want the fence entirely on your own land, set it a few inches inside your line so there’s no question about ownership. Confirm the line first using your plat map or survey markers, since a fence over the line can have to be moved.

What are the pool fence requirements in San Diego?

A pool barrier in San Diego must be at least 60 inches tall, have no openings wider than 4 inches, sit no more than 2 inches off the ground, and use a self-closing, self-latching gate that opens away from the pool with the latch at least 60 inches high. Horizontal rails can’t sit within 45 inches of the pool-side ground. These come from California Title 24 Section 3109 and apply in every San Diego jurisdiction.

Does my fence need HOA approval in San Diego?

If your home is in an HOA, yes. HOA approval is separate from a city permit and is usually stricter, often dictating material, color, height, and picket style, and requiring written approval before work begins. An HOA can require you to remove a fence that breaks its rules even if the fence met city code, so clear the HOA before ordering materials.

How much does a fence permit cost in San Diego?

When a permit is required, residential fence permit fees in San Diego County generally run from roughly $100 to $400 depending on the jurisdiction and whether plan review is needed. Most standard 6-foot backyard fences don’t require a permit at all. A licensed contractor should include any required permit in the project quote rather than adding it as a surprise. For the full cost picture, see our San Diego fence cost guide.