Planning a new fence in the City of Sacramento? The most common surprise is not the building permit — it is the height rules. Sacramento allows a standard backyard privacy fence in most cases, but it treats front yards, street side yards on corner lots, and the sight triangle next to your driveway very differently.
This guide explains the City of Sacramento’s own residential fence rules as they are written today, so you can plan the right height in the right place before you dig. It is general information only, not legal advice. Every figure below comes from the City’s official sources, cited by name and linked, so you can check them yourself.
With more than 30 years of hands-on fence experience, here is how we walk Sacramento homeowners through it.
First: do you need a building permit?
According to the City of Sacramento’s Required Building Permits page (https://www.cityofsacramento.gov/community-development/building/permit-services/required-permits), fences not over 7 feet high are on the City’s list of work exempt from a building permit.
That exemption is narrower than it sounds, for two reasons the same page states:
- All proposed fencing is still subject to Planning Division approval and to the standards in City Code Chapter 17.620, Wall, Fence and Gate Regulations. The City directs fencing questions to its Planning Division.
- The exemption list carries a note: it does not apply in the same way within a design review or preservation district, or for a historic landmark.
In plain words: “no building permit for a fence 7 feet or under” does not mean “build any height anywhere.” The planning height rules below still control where the fence sits. If you want a fence over 7 feet, plan on a building permit and a planning check before you build.
How Sacramento measures fence height
Under Sacramento City Code §17.620.100, General requirements (https://codelibrary.amlegal.com/codes/sacramentoca/latest/sacramento_ca/0-0-0-39452), height is measured from the highest point of the fence or wall down to the adjacent finish grade.
Where the ground is higher on one side than the other — common when a fence also retains soil on a sloped Sacramento lot — the height is measured from the higher adjacent finish grade. That matters on sloped lots: a fence that looks like 6 feet from your higher patio can measure taller from the lower side, but the code measures from the higher grade.
The same section makes maintenance the responsibility of the owner of the property on which the fence or wall is located, and it allows a nonconforming fence built before February 14, 1980 to be repaired, maintained, or replaced in the same location.
Front yards and street side yards: the 4-foot rule
The core residential rule is in Sacramento City Code §17.620.110, Regulations for residential development (https://codelibrary.amlegal.com/codes/sacramentoca/latest/sacramento_ca/0-0-0-39461). For single-unit, duplex, and multi-unit homes:
Walls or fences not exceeding 4 feet in height may be placed along the front and street side property lines, or within the front-yard and street side-yard setback areas.
That 4-foot limit is why you do not see solid 6-foot fences running across Sacramento front yards. The exceptions matter, and each one is specific:
1. Open wrought-iron or tubular-steel fences — up to 6 feet
A decorative, open wrought-iron or tubular-steel fence not exceeding 6 feet may be placed along the front and street side property lines or within those setbacks.
The code is explicit about what this exception does not allow: it does not authorize solid walls or fences made of chain link, woven wire, wood, or materials other than open wrought iron or tubular steel. In other words, the extra height is for see-through metal, not for a taller solid privacy fence in the front yard.
A supporting post or pilaster of masonry, brick, or other solid material may be used if it does not exceed 18 inches square and 6 feet tall, with at least 6 feet between posts.
2. Chain link and woven wire — prohibited in front and street side setbacks
Chain link and woven-wire fences are prohibited within the front-yard and street side-yard setback areas. If curb appeal and code compliance both matter in the front, plan on a low solid fence within the 4-foot rule or an open metal fence within the exception above — not chain link.
3. Street side-yard exception for corner lots — up to 6 feet, with conditions
On a corner lot, a fence or wall not exceeding 6 feet may be placed within the street side-yard setback area if it meets one of two locations:
- at least 5 feet from the street side property line, or
- on a line parallel to the street that is the extension of the wall of the main building nearest to the street.
This exception carries a landscaping requirement: climbing vines, shrubs, or trees must be planted along the base of the portion that fronts a public street, the remaining setback between the fence and the property line must be landscaped with grass or other low groundcover, and all plants must be properly irrigated and maintained. Only living vegetation counts toward that requirement.
4. Decorative gateway features — up to 10 feet
A decorative gateway feature is permitted if it does not exceed 10 feet in height, 8 feet in length, and 24 inches in width. That is a narrow entry feature, not a way to raise the whole fence line.
The driveway clear zone: 3.5 feet where it counts most
Even a fence that meets the 4-foot or 6-foot rules can fail at the driveway. Under §17.620.100 (https://codelibrary.amlegal.com/codes/sacramentoca/latest/sacramento_ca/0-0-0-39452), on local streets a wall or fence — including tubular steel and wrought iron — may not exceed 3.5 feet in height within the triangular areas next to where the driveway meets the front-yard or street side-yard curb.
The code defines that triangle with 10-foot legs: 10 feet along the edge of the driveway from the back of the sidewalk or right-of-way line, and 10 feet along that sidewalk / right-of-way line from the edge of the driveway. Keep that triangle low and open. It exists so drivers backing out and drivers passing on the street can see each other.
Rear yards and interior side yards: the 6-foot standard
For the backyard and the side line you share with a neighbor, §17.620.110 (https://codelibrary.amlegal.com/codes/sacramentoca/latest/sacramento_ca/0-0-0-39461) allows a wall or fence not exceeding 6 feet along the rear or interior side property lines, or within the rear or interior side-yard setback area. That is the standard Sacramento privacy fence.
Three qualifications in the same section:
- Up to 8 feet is allowed along a rear or interior side property line that abuts a school, park, alley, or other nonresidential use.
- A development abutting a freeway or railroad may build a solid wall up to 12 feet for sound attenuation, subject to the City’s sound-wall development standards.
- Fences exceeding 6 feet are allowed outside the required rear-yard and interior side-yard setback areas — placement inside your lot, away from the setback, is treated differently from placement on the property line. Confirm the exact placement with Planning before relying on this.
A decorative gateway feature with the same limits — 10 feet high, 8 feet long, 24 inches wide — is also permitted in the rear and interior side yard.
What is prohibited outright
Section 17.620.110 also prohibits concertina wire, serpentine wire, barbed wire, razor wire, and similar materials capable of inflicting significant physical injury, unless required by court order or allowed through a site plan and design review deviation where the decision maker finds the material reasonably necessary to protect persons or property and not a safety hazard to the public. Those materials must never protrude into or over the public right-of-way. For a normal Sacramento home, treat barbed and razor wire as not an option.
City rules are only one layer
Before you finalize a design, check the layers the City code does not control:
- Your HOA, if you have one. An HOA can require a specific style, color, or height below the City maximum, and can require design approval. City compliance does not override a private HOA agreement.
- Shared-fence responsibilities with a neighbor. Most backyard fences sit on a shared line. Talk through height, style, and cost sharing before demolition, and keep the agreed height within the City limits above.
- Pools. A fence that also serves as a pool barrier has separate safety requirements. Do not assume a standard 6-foot backyard fence automatically satisfies pool-barrier rules — verify that use separately with the City.
- Design review and preservation districts. As the permit page notes, work in those districts is not treated the same as the standard exemption.
Our Sacramento landscaping and fencing page covers how we plan projects inside the city, neighborhood by neighborhood.
How we build a Sacramento fence that fits the rules — and lasts
Height compliance gets a fence approved. Build quality decides whether it is still straight in ten years. On every fence we build in Sacramento:
- Posts are set 2 to 3 feet deep in concrete — toward the deeper end for taller fences and heavy gates.
- Every post is wrapped in a waterproof membrane below ground, where Sacramento clay holds winter moisture against the wood.
- The frame is pressure-treated posts and rails, with redwood pickets for the face Sacramento homeowners see every day.
- Rails and pickets are fastened with Simpson steel connectors and screws, never nails that work loose as wood moves through hot summers and wet winters.
See our Fencing page at https://americangardenslandscaping.com/fencing/ for the full build standard. Every fence we build carries a 12-month workmanship warranty on the work we performed.
Frequently asked questions
How tall can a backyard fence be in Sacramento?
Along a rear or interior side property line, a fence or wall not exceeding 6 feet is allowed under City Code §17.620.110. Up to 8 feet is allowed where that line abuts a school, park, alley, or other nonresidential use. A standard 6-foot privacy fence is the usual compliant choice between two homes.
How tall can a front-yard fence be in Sacramento?
Not exceeding 4 feet along the front or street side property line or within those setbacks. The main exception is a decorative, open wrought-iron or tubular-steel fence up to 6 feet. Chain link and woven wire are prohibited in the front-yard and street side-yard setbacks, and any fence in the driveway clear triangle on a local street is limited to 3.5 feet.
Do I need a permit for a 6-foot fence in Sacramento?
The City’s Required Building Permits page lists fences not over 7 feet high as exempt from a building permit, but all fencing remains subject to Planning Division approval and Chapter 17.620 standards, and the exemption note excludes design review / preservation districts and historic landmarks in the same way. Confirm your lot’s situation with Planning before you build.
What if my lot is on a slope and the two sides are different heights?
Height is measured from the higher adjacent finish grade when grades differ on each side of the fence, per §17.620.100. Measure and plan from the higher side so the finished fence does not exceed the limit that applies where it sits.
Want a fence planned to Sacramento’s rules from the start?
Tell us where the fence will sit — front, street side, rear, or a corner lot — and we will design the height and style to fit the City rules for that location, then build it deep, wrapped, and screwed tight. Call (916) 579-3063 for a free on-site estimate.
American Gardens Landscaping — serving Sacramento and surrounding areas, including Fair Oaks, Carmichael, Citrus Heights, Rancho Cordova, Folsom, Elk Grove, Roseville, and El Dorado Hills.
Licensed • Bonded • Insured — CSLB Lic. #1105341
Regulations change. For the latest updates, please contact your city to confirm before building.

