
Pool safety fence installation rules and costs
By My Yard Editorial Team · 7/28/2026
The Quick Answer
Most codes require a minimum 48-inch barrier with a self-closing, self-latching gate that swings outward. Mesh safety fencing runs $15–$25/ft; code-compliant aluminum runs $40–$70/ft.
The Witty Breakdown
The gap rules matter more than the height: typically no more than 4 inches between vertical bars and under 2 inches at the ground.
Failing inspection here isn't just a fine — many insurance policies won't cover an unfenced pool at all.
Step-by-Step Fix
- 1
Pull your municipality's exact barrier spec before buying anything.
- 2
Use a gate latch mounted at least 54 inches high on the pool side.
- 3
Include alarms on any house door that opens directly to the pool area.
- 4
Schedule inspection before you fill the pool.

Pro-Tip / Do Not Do This
Do not treat a house wall as one side of the barrier unless your code explicitly allows it with door alarms. Many don't.
Was this helpful?
Related Guides
Community Comments
No comments yet — be the first neighbor to weigh in.


