Do I need a permit to build a fence in California?
Short answer: usually not, if it is under the height limit. Under California's statewide code, a fence that is not over seven feet tall does not need a building permit. Go over that height, put in a pool fence, or run into a local rule, and the answer changes.
The seven-foot line
The statewide building code exempts fences that are not over seven feet high. If your fence is at or under that, you generally do not need a building permit for it. Note this number went up from six feet in older code versions, so a lot of older articles online still say six. Seven is the current statewide figure, but your city can set its own.
Pool fences are not exempt
If the fence is a barrier around a swimming pool or spa, the exemption does not apply. Pool barriers have their own safety rules for height, gaps, and self-latching gates, because they are there to keep kids out of the water. That is one fence you do not cut corners on, and it does get checked.
Building permit is not the only rule
This trips people up. Even if your fence does not need a building permit, your city's zoning or planning rules still apply, and they are separate. Zoning often limits how tall a fence can be in a front yard, or near a corner where it blocks a driver's view, and may set how far it sits from the property line. So a fence can be permit-exempt for building and still break a zoning rule. Check both.
Talking to your neighbor and the line
A permit question and a property-line question are two different things. The permit is about safety and code. The property line is about where the fence actually sits and who shares the cost. Get the line right before the posts go in, because moving a finished fence is expensive and it sours things with the neighbor.
Always check your city or county
The seven-foot figure is the statewide default. Plenty of cities amend it, especially for masonry or block walls, and the zoning height and setback rules are entirely local. A quick call to your building and planning departments tells you exactly what applies on your street.
Common questions
How tall can a fence be without a permit in California?
Under the statewide code, a fence not over seven feet high is generally exempt from a building permit. Local cities can set a lower limit, and zoning rules on front-yard and corner fences apply separately.
Do I need a permit for a pool fence in California?
Yes. Swimming pool and spa barrier fences are not covered by the general fence exemption and must meet specific safety rules for height, gaps, and gates.
Is a building permit the only approval I need for a fence?
No. Even a permit-exempt fence still has to follow local zoning and planning rules, which can limit height in front yards and near corners and set how far the fence sits from the property line.