How tall can a front fence be?
Three to four feet, mostly.
In unincorporated Sacramento County a solid fence or wall can be 3 feet and a picket or chain link fence 4 feet in the front setback.
In the City of Sacramento anything beside a driveway stays at 3.5 feet inside the visibility triangle. Beyond that, the city you live in sets the number.

Outdoor guide
County front setback heights
Sacramento County zoning for single-family lots allows a solid fence or wall up to 3 feet, and picket or chain link up to 4 feet, in the front-yard setback. Side-street and interior yards can go to 7 feet, and a fence over 7 feet needs to be set back 3 feet from an interior property line with a building permit.
The front setback is the strip between the house and the street, which is why it gets the lower numbers. A tall solid wall there blocks the sight lines drivers and neighbors rely on, so the county lets the see-through fence go a little higher than the solid one.
These are the unincorporated county numbers. The incorporated City of Sacramento has its own code, and other cities in the region set their own limits, so the address decides which of these applies.
The front setback matters because it is measured from the property line toward the house, not from the door. A fence that sits close to the sidewalk is in the setback and takes the low height; a fence set well back may still be in the setback depending on how deep the lot's front yard runs.
A fence also has to agree with the neighbors on a shared line, and the city or county sets the height but not the style. A picket fence and a solid wall can sit at the same height and read completely differently from the street, which is why the material matters as much as the number.
City of Sacramento: the driveway triangle
In the City of Sacramento, a wall or fence, wrought iron included, may not exceed 3.5 feet in height inside the triangle beside a driveway. The triangle is defined by two points 10 feet out from the driveway edge.
That 3.5 feet is a visibility rule, not a general height limit: a tall fence at the corner of a driveway hides a car backing out from traffic on the sidewalk and the street. The same city also requires Planning Division approval for all fencing under City Code Chapter 17.620, even where no building permit is needed for a fence not over 7 feet.
If your driveway is next to a fence or hedge, this is the number that decides the height at the corner, before the rest of the run steps up.
Tubular steel or wrought iron can be seen through, so it blocks less sight than a solid board fence at the same height, but the city still keeps it at 3.5 feet inside the triangle. The rule is about the driver's sight line, not the material.
Gates across a driveway
In the City of Sacramento, any gate must be set back 20 feet from the property line so a car can pull fully into the driveway before the driver gets out to open it. A gate wanted within the first 20 feet needs a driveway variance, and that variance requires the gate to be automated and remote controlled.
The 20 foot setback is about safety, not style: a manual gate right at the sidewalk leaves a car half in the street while the driver walks back to open it.
A pedestrian gate beside the driveway is simpler, and it is where the low fence heights above come in. The gate hardware and post are part of the fence line, so they are priced with the rest of the run.
A gate changes the fence in two ways: the posts carry the swing, and the latch has to hold in wind. A heavy gate on a light post sags and drags, so the gate post is set deeper and the hinge hardware is sized to the gate, not the pickets.
Other cities: check your city's code
The numbers change the moment you cross a city line. Roseville, for example, allows fences up to 7 feet, but limits them to 3 feet in a required front setback or clear vision triangle, and up to 8 feet only with an Administrative Permit.
Because each city writes its own front setback and visibility rules, the safe move is to check your city's code before the fence is drawn. The office does that on a site visit, but a buyer can look it up in a few minutes.
What a fence costs
Wood fence is $40 per linear foot and vinyl fence is $48 per linear foot, from our price book. Iron fence is priced at a site visit, because the posts, panels and any gate hardware change too much to quote from a table.
The per-foot number is for the fence run itself. Gates, corners, a taller rear section and the concrete for the posts are separate, and so is a fence that has to meet a specific city height at the front.
Height rules and price go together here: a fence that steps from 3 feet at the sidewalk up to 7 feet at the side yard is priced as one run with a height change, not two fences.
Wood is the workhorse because it paints and ages well, and a damaged picket is one board to replace. Vinyl costs more up front and never needs paint, and it is the choice where the fence has to hold its color without upkeep.
Both prices are for the run itself, so a short front fence is a small job and a long property line is a bigger one. Measure the actual run you want, not the whole lot, and the price stops being a mystery.
A front fence is usually a short run, which is why the gate and the corner posts matter as much as the pickets in between on a front job.
Before the posts go in
Fence posts are set in holes, and holes mean digging. Every excavation needs a utility locate, with a minimum of two working days' notice before the dig.
The locate is free and marks the gas, electric and water lines under the fence line. It is the step that happens before the first post hole, so a fence never finds a line the hard way.
Common questions
Can I put a 6 foot fence in my front yard?
Not in most of the region. Sacramento County allows 3 feet solid or 4 feet picket or chain link in the front setback, and the City of Sacramento keeps the driveway triangle at 3.5 feet. A 6 foot fence belongs in the rear and side yards, where 7 feet is usually allowed.
Is iron fence more than wood?
Iron is priced at a site visit because the panels and gate hardware vary, so there is no per-foot table rate. Wood is $40 and vinyl is $48 per linear foot.
Who checks the fence height?
The city or county where the address sits. The office checks the local code before the fence is built, and a buyer can look up the same code page in a few minutes.
Start the yard quiz
Next step
Front yard fence height in Sacramento: 3 feet solid and 4 feet picket or chain link in county front setbacks, 3.5 feet in the city driveway triangle, and what a fence costs.
How do you turn a front lawn into a low-water yard?
What can you do with a narrow side yard?
Starting a new construction backyard from dirt: what comes first?