Pool Fence Calculator — Code-Compliant Barrier
Estimate materials for a code-compliant pool barrier per IRC Appendix G — minimum 4 ft height with self-latching gates and 4-inch max picket spacing.
Enter Dimensions
Standard dog-ear picket: 3.5 in
Privacy fence: 0 in · Standard: 0.5 in
Results
Fence Posts
14posts
Rails
26rails
Pickets
330pickets
Sections
13sections
Each section = 8 ft wide
Editorial Standards
Each calculator is reviewed for formula accuracy, unit consistency, and alignment with current U.S. building practices before publication. We verify outputs against published engineering references and real-world project data. Learn more about our methodology.
A pool fence isn't just a fence — it's a code-mandated safety barrier governed by IRC Appendix G (where adopted) and local pool-barrier ordinances. Height, picket spacing, gate hardware, and even the location of latches are all prescribed. Get any detail wrong and the install fails inspection.
This calculator handles material take-off for a code-compliant 48 inch pool perimeter fence. Always verify exact requirements with the local building department before purchasing material.
How to Build a Code-Compliant Pool Fence
Posts = ⌈Perimeter ÷ 6 ft⌉ + 1 + 2 per gate. Pickets = Perimeter × (12 ÷ (picket width + 1-3/4 inch max gap)).
IRC Appendix G Pool Barrier Requirements
- Height: 48 inch min from grade
- Bottom gap: ≤ 4 inch from grade to bottom rail
- Picket gap: ≤ 1-3/4 inch
- Horizontal features: ≥ 45 inch apart vertically to prevent climbing
- Chain link mesh: 1-1/4 inch maximum opening
- Gate: self-closing, self-latching, opens AWAY from pool, latch ≥ 54 inch above grade
Frequently Asked Questions
What are pool fence code requirements?
IRC Appendix G (where adopted) requires: minimum 48 inch fence height; maximum 4 inch gap below fence; maximum 1-3/4 inch gap between vertical pickets; self-closing self-latching gates with latch ≥ 54 inch above ground; no climbable horizontal features within the bottom 45 inches.
How tall does a pool fence need to be?
48 inch (4 ft) is the universal minimum across U.S. jurisdictions; some require 60 inch (5 ft). Top of fence must be at least 48 inch above adjacent ground regardless of fence type. Check local code — some HOAs require taller.
Can chain link be used as a pool fence?
Yes, but with mesh restriction: the mesh size must be small enough that a 1-3/4 inch sphere cannot pass through any opening. Standard 2-1/4 inch chain link is too coarse — use 1-1/4 inch privacy mesh.
How wide can the gap between pickets be?
Maximum 1-3/4 inch between vertical members per IRC Appendix G. Horizontal slats are problematic — kids can climb them — so most jurisdictions either prohibit horizontal slats below 45 inches or require special spacing.
Does my house wall count as part of the pool barrier?
Yes, in some jurisdictions — the house wall can serve as one side of the barrier IF all doors leading to the pool from the house have alarms (IRC G.103) that sound when opened. Otherwise, a full 4-sided perimeter fence is required.
Looking for the general calculator?
Calculate fence posts, rails, and pickets for any wood, vinyl, or chain-link fence. Enter total run length and spacing for an instant material takeoff.
Open the Fence Calculator: Posts, Rails & Pickets →