How Tall Can I Build My Fence?

Dominic Vella, Founder · CA C-13 License #979657 · Last updated October 2026
In most of the Sacramento region you can build a backyard fence 6 to 7 feet tall and a front-yard fence 3 to 4 feet tall, depending on your city. The City of Sacramento and Rocklin cap backyard fences at 6 feet; Roseville, Elk Grove, Citrus Heights, and unincorporated Sacramento County allow 7 feet. Seven feet is also the tallest fence Fantastic Fence builds: under California’s building code, a fence 7 feet or under does not need a building permit, and that is where we draw the line.
Three things decide how tall your fence can be: what you want, what your city or county allows, and what your HOA allows. This page covers all three, with the verified height limits for the cities we fence most.
Seven feet is the tallest fence we build. Under California’s building code, a fence 7 feet and under doesn’t need a building permit, so that’s our limit. Most of our customers land at 6 feet anyway once they see it measured out in the yard.
— Dominic Vella, Founder, Fantastic Fence
How Tall Can I Build My Fence Under My City’s Rules?
It depends on which side of the house the fence is on. Every city in our area allows a tall fence along the side and rear property lines and a short one inside the front setback, and most treat the street side of a corner lot like a front yard. Here are the limits for the cities we fence most, verified against each code in October 2026.
|
City or county |
Front setback |
Side and rear |
Verified against |
|---|---|---|---|
|
City of Sacramento |
4 ft (open iron up to 6 ft; no chain link in front) |
6 ft |
City Code §17.620.110 |
|
Roseville |
3 ft |
7 ft, including lattice |
City Fence Handout |
|
Rocklin |
30 in |
6 ft |
Municipal Code §17.76.010 |
|
Elk Grove |
3 ft |
7 ft |
Municipal Code §23.52.050 |
|
Citrus Heights |
3 ft |
7 ft (our build limit) |
Municipal Code §106.30.050 |
|
Sacramento County (Fair Oaks, Carmichael, Orangevale, Arden-Arcade) |
3 ft solid, 4 ft picket, open iron to 7 ft |
7 ft |
County Zoning Code §5.2.5 |
Corner lots, driveway sight triangles, and retaining-wall combinations have their own rules in every one of these codes, and heights are measured from finished grade. Confirming the rules for your address and getting any approval is the property owner’s responsibility; we build to what your city requires. The planning departments are listed on our Fence Ordinance Quick Links page, more cities are covered on our privacy fence height regulations by city page, and the City of Sacramento rules are in Sacramento City Code §17.620. This is general information, not legal advice.
How Tall a Fence Do Most Homeowners Actually Build?
Six feet. A 6-foot fence is the standard backyard privacy fence in every city we work in, and it is what we build on the vast majority of shared neighbor fences. Where the city allows 7 feet, some homeowners go there for extra privacy, usually a board-on-board design, and we build it. Front yards are 3 to 4 feet: picket or ornamental iron at the height the city allows.
Fantastic Fence did a great job with our front fence and gate. We did a 7 foot board on board design. We are very pleased.
— Natalie MacNeill, Google review
Why Does Fantastic Fence Stop at 7 Feet?
Because California’s building code exempts fences 7 feet and under from a building permit, and every city we work in sets its own limit at or below that. A fence over 7 feet is a permitted structure with engineering and inspections behind it, so we do not build them. If a city allows 7 feet and you want 7 feet, we build 7 feet; nothing taller.
Will a Taller Fence Feel Too Tall in My Yard?
Sometimes, yes. Many customers start out wanting the tallest fence allowed and change their mind once they see it. Before you decide, have a helper hold a tape measure up at 6 feet and again at 7 feet along the fence line, then step back to the patio and look. On a smaller yard a 7-foot fence can feel like a wall; on a larger one it disappears. Our estimators do this on site, and it settles the question in about a minute.
Do HOA Rules Limit How Tall I Can Build My Fence?
Often, yes, and HOA limits can be lower than the city’s. HOAs in our area regularly cap height, restrict materials such as vinyl, and require the finished side to face the street. Pull your current CC&Rs and architectural guidelines before you choose a height; approval is the homeowner’s responsibility, and we provide the drawings and specs for the application.
Jared and Quai from Fantastic Fence installed our fence about 3 weeks ago and did an excellent job… especially considering the tough physical (river rock and existing landscape/hardscape constraints) and mental (our insane HOA requirements).
— A., Google review
How Tall Should My Fence Be for Privacy, a Pool, a Garden, or a Dog?
|
What the fence is for |
How tall we usually build it |
|---|---|
|
Privacy between neighbors |
6 ft solid redwood, vinyl, or chain link with privacy slats; 7 ft where the city allows and you want it |
|
Pool safety |
Set by state and local pool code, not by preference; see our pool fencing page |
|
Garden (deer or pets) |
Depends on what you are keeping out: a beagle needs far less than a deer |
|
Dogs |
6 ft for most dogs; 4 or 5 ft for small dogs that do not jump; picket spacing matters more than height for tiny breeds |
|
Front yard |
3 to 4 ft picket or ornamental iron, at the limit your city sets |
Pool fences are their own regulated category; our pool fencing page covers what the code requires. For dogs, the right fence is more about the bottom and the gate than the top; our dog friendly fencing page goes through it.
What Do Customers Say About Fence Height?
The crew not only replaced the broken section, they replaced the whole fence. The new fence is taller and more sturdy. It was replaced within two days which is super fast.
— Dmitriy Makarov, Google review
Right away they came out for a quote and explained what we wanted and needed to meet any city codes.
— Jon Craig, Google review
Frequently Asked Question
Do I need a permit for a 6-foot fence?
Not a building permit: California exempts fences 7 feet and under. Your city’s planning rules on height, setbacks, and corner lots still apply, and some HOAs require approval, so check both before you order.
Can my neighbor and I agree to build a taller shared fence?
Only up to what your city allows. An agreement between neighbors does not override the code, and we do not build over 7 feet anywhere.
How is fence height measured on a slope or next to a retaining wall?
From finished grade, and most codes count a retaining wall plus the fence on top of it together, with limits on the combination. Tell your estimator about any slope or wall along the line so the fence is measured the way your city measures it.
Get a Free Estimate at the Right Height
Tell us what the fence is for and which city you are in, and an estimator will measure the height out in your yard and confirm it fits your city’s limits before anything is ordered. Fantastic Fence is licensed, bonded, and insured under CSLB License #979657, with 35+ background-checked W-2 employees, flat pricing with zero hidden fees, and a written guarantee that the job is not finished until you give the thumbs up. Book your free estimate online or call the office nearest you.
- Rocklin: (916) 790-7100
- Sacramento: 916-248-5518
- Elk Grove: 916-345-0142
Height limits above were verified against each jurisdiction’s published code in October 2026 and can change; confirm with your planning department. This is general information, not legal advice.





