Pool Fence Calculator

Enter your pool size and how far from the edge the fence will go. You get the fence length, how many panels and posts to buy, gate hardware, concrete or surface mounts, and the total cost.

Your pool fence
ft
ft
ft
Your deck or walkway width.
gates
ft
$
$
$
Fence length0
Fenced area–
Panels–
Panels to cut down–
Posts–
Wall mounts (at the house)–
Gates (self-closing, self-latching)–
Concrete–
Estimated cost–

Share your results: Facebook Pinterest Email
Embed this calculator on your website

Free for blogs, builders and lumber yards. Paste this code into your page. The calculator resizes itself to fit.

How the calculator works

The fence is a rectangle around the pool, set back by the width of your deck or walkway on every side. Its sides are the pool length and width plus twice that distance. If the house wall forms one side, only three sides are fenced and the two ends attach to the wall with mounting brackets.

Gates are placed on one long side, which splits that side into equal runs. Each run gets as many panels as it takes to cover it, so the last panel in a run may need to be cut down. Posts go between panels, at every corner and on both sides of each gate.

fence sides = pool length + 2 × distance, pool width + 2 × distance panels per run = ⌈ run length ÷ panel width ⌉ posts = (panels − 1 per run) + corners + 2 × gates

Example

A 16 × 32 ft pool with a 4 ft deck all round puts the fence on a 24 × 40 ft rectangle, which is 128 ft of fence. One 4 ft gate on a long side leaves 36 ft, split into two runs of 18 ft, which take 3 panels of 6 ft each. The other long side takes ⌈40 ÷ 6⌉ = 7 panels (one cut down), and each short side 4 panels. That is 3 + 3 + 7 + 4 + 4 = 21 panels.

Posts: the runs have 2 + 2 + 6 + 3 + 3 = 16 posts between panels, plus 4 corners and 2 gate posts, so 22 posts. With 8 in wide, 24 in deep holes, each post takes 0.70 cu ft of concrete, 15.4 cu ft in all, which is 26 bags of 80 lb mix.

Pool barrier rules to check

Most US pool barrier rules come from the International Swimming Pool and Spa Code (ISPSC) and the CPSC Safety Barrier Guidelines for Residential Pools. Your town may add to them, so check local code before you buy. Typical requirements:

  • Height: at least 48 in, measured on the side away from the pool.
  • Gap at the bottom: no more than 2 in under ISPSC-based codes (older CPSC guidance allows 4 in).
  • Openings: a 4 in ball should not pass through anywhere in the fence.
  • Climbing: horizontal rails less than 45 in apart must be on the pool side, and the gaps between pickets then must be 1¾ in or less.
  • Chain link: mesh no larger than 1¼ in unless slats are added.
  • Gates: open outward, away from the pool, and close and latch by themselves. The latch release is usually at least 54 in from the ground, or on the pool side near the top.

Panel fence or mesh?

Aluminum panels are the most common permanent pool fence: they don’t rust, need no painting, and come in 4 to 8 ft widths with matching gates. Removable mesh fence is cheaper and can be taken down, but it sits in sleeves drilled into the deck and suits pools surrounded by concrete. Glass panels look the best and cost the most.

Common questions

How tall does a pool fence have to be?

At least 48 in in most US codes based on the ISPSC and CPSC guidelines. Some towns require 54 in or 60 in, so check local code.

How far should a pool fence be from the pool?

Far enough to leave a walkway, usually 3 to 5 ft from the water.

How many panels do I need for a pool fence?

Divide each straight run by the panel width and round up. A 128 ft fence around a 16 × 32 ft pool with one gate takes about 21 panels of 6 ft.

Can the house wall be part of the pool barrier?

Often yes, but doors and windows that open toward the pool then usually need alarms or self-closing hardware. Check local code before you rely on the house wall.

Related calculators

Last updated December 2026. Results are estimates. Check product labels and your local building code before you buy or build.