Pool fence code is enforced at the state, county, and sometimes municipal level — and the rules differ in ways that matter. A fence that’s compliant in Arizona can be illegal in Florida. A fence that’s grandfathered in your county can fail inspection two miles away. This guide gets you to the right authority for your address, and tells you what almost every code agrees on so you know what to look for.
[VERIFY before relying on this article for permit or insurance purposes: state and local codes change every few years. Always confirm with your local building department before construction or significant repair. The figures below reflect typical requirements as of 2026.]
The four numbers almost every code agrees on
These thresholds appear in some form in nearly every state’s residential pool barrier code, often derived from the International Swimming Pool and Spa Code (ISPSC):
- 48 inches minimum fence height (some jurisdictions require 54 or 60)
- 4 inches maximum opening anywhere a child could attempt to squeeze through (pickets, gaps, bottom clearance)
- 54 inches minimum height for the gate latch handle, when measured from ground level
- Self-closing, self-latching gate that opens away from the pool
If your fence violates any of these, it almost certainly violates code, regardless of state.
How to find your exact requirement
The fastest path to the actual rule that applies to you:
- Search “[your county] residential pool barrier code”. County code is more specific than state code and almost always governs.
- Call your local building department. Most will quote the code section over the phone in five minutes. They’d rather answer the call than fail your inspection later.
- Check your HOA’s CC&Rs. Homeowner associations can require stricter fencing than code. They cannot loosen it.
State law is the floor, not the ceiling. Counties and cities layer their own requirements on top.
State-by-state quick reference
The summary below highlights states with non-default requirements or notable enforcement patterns. States not listed generally follow the 48-inch / 4-inch / 54-inch / self-latching baseline.
Arizona
- Phoenix and Tucson metro counties enforce some of the strictest barrier code in the country.
- 5-foot minimum height in Maricopa County.
- Common: 4-foot gate height plus a second isolation barrier between house and pool.
California
- Statewide Pool Safety Act sets minimum 60 inches for pool enclosure fences in most pools built or remodeled since 2018.
- A second drowning prevention feature is also required (alarm, cover, or removable mesh fence between house and pool).
Florida
- Residential Pool Safety Act requires at least one of: barrier (4-foot minimum), pool cover, exit alarms, or self-latching/self-closing door from house.
- Often interpreted as “you need at least one layer” — but two layers protects you in insurance and inspection disputes.
Texas
- State sets a 48-inch minimum on enclosure fences.
- Counties and cities add their own requirements; check both.
Nevada
- 5-foot minimum on enclosure barriers.
- Specific requirements for distance from house and adjacent climbable structures.
New York
- 4-foot minimum for above-ground pool enclosures.
- 48 inches for in-ground pool enclosures, plus self-closing gate.
Illinois
- Code follows ISPSC closely. Cook County and Chicago both enforce a 4-foot minimum.
Georgia
- 48-inch minimum, self-closing self-latching gate.
- Atlanta metro counties commonly require an additional safety device (alarm, cover, or removable fence).
North Carolina, South Carolina, Virginia
- Adopt the ISPSC 48-inch minimum.
- South Carolina has historically been lax on enforcement at the residential level — verify with your county before assuming.
Ohio, Michigan, Indiana, Pennsylvania
- ISPSC-derived. 48-inch minimum is standard.
- Pennsylvania enforces at municipal level; the rule varies inside the same county.
Washington, Oregon
- 60-inch minimum in many counties (Washington enforces this aggressively).
- Strong inspection regimes for new construction.
What grandfathering does and doesn’t cover
If your fence was compliant when installed but the code has since changed, you are usually not required to bring it up to current code — unless you do significant work on the pool or fence.
Significant work that typically forces an upgrade:
- Pool resurfacing or major retiling
- Pump or filter pad replacement that requires a permit
- Any fence repair that replaces more than a defined percentage (often 25–50%) of the structure
- Selling the home (some jurisdictions require pre-sale compliance)
If you’re unsure whether a project triggers re-compliance, ask before you start. It’s cheaper to know in advance.
Common failure points inspectors flag
Even compliant fences fail inspection on small details:
- Bottom gap too large. Codes specify the maximum gap between the bottom of the fence and the ground. Yard settling creates new gaps over years.
- Gate latch worn. Self-closing springs fatigue. The latch still works, but the gate doesn’t close fully without a push.
- Climbable structures nearby. Patio furniture, AC condensers, planters, even a stack of pool floats. The barrier code includes the rule that there be no climbable object within a defined horizontal distance of the fence.
- Decorative cutouts. Older wrought-iron fences sometimes have ornamental gaps slightly larger than 4 inches.
- Gate opens the wrong direction. Code requires gates to swing away from the pool. A gate that swings toward the water is non-compliant even if everything else is fine.
Insurance implications
Most homeowner’s insurance policies exclude pool-related liability if the pool wasn’t compliant with local code. After a covered loss, insurers do investigate. A $400 fence repair before the accident is the cheapest insurance product you’ll ever buy.
If you’re not sure whether your fence is compliant, hire a licensed pool inspector for $150–$300 to do a written report. Some insurance companies even discount premiums when you submit one.
When to upgrade voluntarily
If your fence meets the bare minimum but you have a child under 5, or grandkids who visit, consider upgrading regardless of code:
- 60 inches instead of 48. Older kids (8–10) can sometimes climb a 48-inch fence.
- Mesh isolation fence between house and pool. Removable mesh fences (Life Saver, Sentry, Protect-A-Child) cost $1,500–$3,000 installed and add an entire defensive layer with low cost.
- Pool cover. A motorized safety cover is the gold standard barrier — code-recognized as a primary barrier in most states.
The cheapest version of compliance is not the safest version of compliance. Compliance is the floor.
Where to confirm
Always verify the current code for your address with:
- Your county building department
- Your state building code authority
- International Code Council ISPSC reference for the underlying model code
- Your homeowners insurance carrier (they often interpret code stricter than the inspector)
A 15-minute phone call to your building department is more reliable than any article on the internet, including this one.
