The short version: fence height depends on where the fence stands. Front yards usually allow 3 feet solid or 4 feet open, rear and side yards about 6 feet, and corner sight triangles only 2-1/2 to 3 feet. Pool barriers are a separate system: the ISPSC requires at least 48 inches measured on the pool side, with a 4-inch-sphere rule and a self-latching gate. The model-code 7-foot figure is a permit trigger, not a height limit.
Table of contents — 10 ideas
- 1. The height limit depends on where the fence sits on your lot
- 2. Front yards usually allow 3 feet solid or 4 feet open
- 3. The model code 7-foot figure is a permit exemption, not a height limit
- 4. Rear and side fences typically stop at 6 feet
- 5. Pool barriers start at 48 inches measured from the pool side
- 6. A pool fence must block a 4-inch sphere and self-latch above 54 inches
- 7. Corner lots add a sight-distance triangle limit of 2-1/2 to 3 feet
- 8. California and a few states require taller pool enclosures
- 9. Setbacks and property lines decide where the fence can stand
- 10. Measure from finished grade or the code height changes by inches
I helped a neighbor replace a back fence and we assumed six feet was the universal residential limit. The city said six at the rear, but only four at the front, and the corner lot had a sight triangle capped at thirty inches. Then the pool side needed its own 48-inch barrier measured from the water. Four rules for one yard. This page is the set of heights and measuring points that finally got the permit approved.
Try it: a front yard with a solid privacy fence returns 36 inches and a warning that open fencing could reach 48. Switch the pool location and the result becomes 48 inches measured from the pool side. Choose the stricter jurisdiction and a pool enclosure jumps to 60 inches, the California rule.

An open picket panel usually clears the tighter front-yard cap that limits solid privacy fencing to three feet. Check the finished height at the property line before you set the posts.
Fence height: the numbers that actually matter
1. The height limit depends on where the fence sits on your lot
A fence has no single legal height. The number that governs a build is set by its position: front yard, rear or side yard, around a pool, or inside a corner-lot sight triangle. Each position carries a different cap and, in many cases, a different measuring point. A six-foot rear fence that passes inspection can be a violation if the same panel is moved to the front. The state-by-state fence permit guide shows how widely the zoning numbers vary between cities.
| Fence location | Typical max height | Measured from | Key rule |
|---|---|---|---|
| Front yard, solid | 3 ft (36 in.) | Finished grade at property line | Often capped lower than open styles |
| Front yard, open | 4 ft (48 in.) | Finished grade at property line | Picket, chain link, wrought iron |
| Rear / side yard | 6 ft (72 in.) | Finished grade behind front line | Some cities allow 8 ft |
| Around a pool (ISPSC) | 4 ft (48 in.) minimum | Ground on the pool side | 4 in. sphere, self-latching gate |
| Pool, stricter state | 5 ft (60 in.) | Ground on the pool side | California enclosure rule |
| Corner sight triangle | 2-1/2 to 3 ft | Within the triangle | 20 to 30 ft along each street |
2. Front yards usually allow 3 feet solid or 4 feet open
Front-yard limits are the tightest because they affect the streetscape. A common zoning pattern caps a solid or opaque fence at three feet, while an open fence such as chain link, picket, or wrought iron may reach four feet. Detroit and Muskegon use exactly that split, and Albany adds an opacity limit on top. The material you choose decides the height you are allowed, so swapping privacy boards for pickets can buy a foot without a variance.
3. The model code 7-foot figure is a permit exemption, not a height limit
One of the most repeated fence myths is that seven feet is the legal maximum. The model building code uses seven feet as the point above which a permit is required, not as a height allowance. Actual height comes from local zoning, which is often four feet in front and six feet at the rear. Reading the permit threshold as a height limit is how people end up with a fence the city makes them cut down.
4. Rear and side fences typically stop at 6 feet
Behind the front building line, residential zoning commonly allows six feet, and many cities accept that height without a permit. Some jurisdictions go higher: Raleigh and Durham permit eight feet at the sides and rear, and Los Angeles allows eight feet on lots at least 40 feet wide outside hillside areas. Always confirm the figure for your address, since a fence legal in one town can be over the line in the next one.
5. Pool barriers start at 48 inches measured from the pool side
A pool fence follows a completely different rulebook: the International Swimming Pool and Spa Code, adopted into the IRC as section R327. ISPSC section 305.2.1 sets a minimum 48-inch barrier measured on the side away from the pool, not from your yard side. That measuring direction is the trap. A fence that reads 48 inches from the patio may be shorter on the pool side if the ground slopes. The ISPSC pool fence breakdown lists the height, gap, and gate rules in one place.
6. A pool fence must block a 4-inch sphere and self-latch above 54 inches
Height alone does not make a pool barrier compliant. No opening may pass a four-inch sphere, and the gap under the fence is limited to two inches over grass or gravel and four inches over a solid surface. Where horizontal rails sit less than 45 inches apart, pickets must be no more than 1-3/4 inches apart with rails on the pool side. Pedestrian gates open outward, self-close, and self-latch; an outside latch release must sit at least 54 inches high.
7. Corner lots add a sight-distance triangle limit of 2-1/2 to 3 feet
A corner lot has two frontages and a clear vision triangle at the intersection. Fences inside that triangle are often capped at 30 to 36 inches regardless of the normal front-yard allowance. Columbus measures the triangle 30 feet along each street, San Antonio 25 feet from the curb, and Atlanta 20 feet near dwelling districts. The deck railing height calculator covers the guard rules that apply once you move off the street corner.
8. California and a few states require taller pool enclosures
The ISPSC is a model code, so local adoption can raise the bar. California requires an enclosure of at least 60 inches where a pool is permitted, a full foot above the 48-inch federal-style baseline. Florida accepts a four-foot barrier as one of several drowning-prevention features. This is why a pool fence sized to the generic 48-inch number can fail in a stricter state, even though it passes the model code on paper.
9. Setbacks and property lines decide where the fence can stand
Height is only half the rule; placement is the other half. Some cities require the fence on or inside the property line, others keep it a foot back from a public right-of-way, and Fort Collins asks for two feet from a sidewalk. Corner vision triangles, drainage easements, and waterfront setbacks can prohibit a fence entirely in a strip of yard. Measure from the surveyed line, not from a neighbor’s existing fence, which may already be wrong.
10. Measure from finished grade or the code height changes by inches
Every height in these rules is measured from a defined surface: finished grade, the front property line, or the ground on the far side of a pool. Added soil, a new patio, or a slope can shift the measured height without the fence changing at all. Set posts to the finished surface you will have after landscaping, then re-check the pool side independently. Getting the measurement point wrong is the most common reason a correctly built fence still fails inspection.
Frequently asked questions
How high can a residential fence be?
It depends on location. Front yards are usually capped at 3 feet for solid fencing and 4 feet for open fencing, while rear and side yards commonly allow 6 feet. Corner-lot sight triangles may drop the limit to 30 or 36 inches. Your city zoning code is the controlling document.
Does the 7-foot model code mean I can build a 7-foot fence?
No. Seven feet is the threshold above which a building permit is typically required in the model code, not a permitted height. Actual height limits come from local zoning, which is often 4 feet in front and 6 feet at the rear.
How tall must a pool fence be?
The ISPSC requires a barrier at least 48 inches tall, measured on the side away from the pool. Some states are stricter: California requires a 60-inch enclosure. The fence must also block a 4-inch sphere and have a gate that opens outward and self-latches.
Why is my pool fence measured from the pool side?
The code measures the 48-inch height on the side away from the pool, which is the side a child approaches from the water. If the ground slopes, a fence that reads 48 inches from the yard can be shorter on the pool side and fail inspection.
Can a front-yard fence be taller if it is open?
Often yes. Many zoning codes cap solid or opaque front fences at 3 feet but allow open styles such as chain link, picket, or wrought iron up to 4 feet, provided visibility at intersections and driveways is not reduced.
What is a corner sight-distance triangle?
It is the area near a street intersection where traffic visibility must stay clear. Fences inside it are commonly limited to 30 or 36 inches, and the triangle usually extends 20 to 30 feet along each street from the corner.
Last updated: November 30, 2026
[…] Fence Height Calculator: Zoning, Pool & Sight Lines […]