A pool fence is priced by the foot, but nobody knows their footage until the tape comes out. Most people guess the pool’s own perimeter and forget the deck around it, which can add a third to the run.
Enter the pool’s length and width, the walkway you want inside the fence and the fence type. The tool works out the feet first, then prices removable mesh, aluminum, vinyl and frameless glass on the same layout, with self-closing gates and the permit added.
What the calculator does
The fence line is drawn as a rectangle around the pool, pushed out on every side by the deck or walkway width you enter. If a house wall forms one long side, that side drops off the total. The result is multiplied by a per-foot price for the fence type you pick, either installed or materials only, and each self-closing, self-latching gate is added at its own price, along with any permit fee your building department quotes you.
The chart repeats the math for all four fence types so the cost of the style choice is plain. Two lines are not about money: the footage itself, which is what every contractor will quote against, and a short list of the barrier dimensions in the Consumer Product Safety Commission’s guidelines, which is what an inspector or a careful buyer will look for.
Who needs a pool barrier, and who sets the rules
The CPSC’s Safety Barrier Guidelines for Residential Pools are the main federal reference for home pool barriers. The booklet says they are neither a CPSC standard nor a mandatory requirement, though some states and localities have written them into building codes. Your town’s code is what an inspector enforces, so call the building department before choosing a fence.
The guidelines cover more than in-ground pools. CPSC defines a pool to include spas and hot tubs and says the barrier guidance applies to above-ground pools and possibly larger portable pools as well. The reason is in the booklet’s opening pages: citing the CDC, it reports that nearly 300 children under age 5 drown in swimming pools each year.
Four fence types, and what each costs per foot
Fixr’s pool fence guide (updated January 2025) prices each type two ways, with and without installation. The calculator uses the midpoint of each range.
| Fence type | Materials only, per foot | Installed, per foot |
|---|---|---|
| Removable mesh | $3 to $8 | $7 to $10 |
| Aluminum | $5 to $20 | $15 to $35 |
| Vinyl | $10 to $25 | $15 to $40 |
| Frameless glass | $90 to $195 | $95 to $210 |
Angi’s 2026 table agrees on mesh ($7 to $10) and vinyl ($15 to $40) but shows tempered glass far wider, at $100 to $600 per foot. If you are leaning toward glass, get a quote early, because the low and high ends of that range describe very different products.
What a whole pool fence runs
Angi puts the 2026 average pool fence installation at $4,000, with most homeowners spending $1,500 to $10,000, and gives an overall rate of $15 to $25 per linear foot. Its length table runs from $1,500 to $2,500 for 100 feet up to $4,500 to $7,500 for 300 feet. Fixr’s overall range is higher, $3,000 to $10,000, and its top example, 100 feet of frameless tempered glass with a self-closing gate, reaches $21,550.
The footage matters more than either average. A fence that sits 6 feet back from a 40 by 20 foot pool is 168 feet long; the same pool with a 3 foot walkway needs 144 feet. At aluminum prices that gap is about $600 before any gate is counted.
Gates: the one part that has to work every time
Under the CPSC checklist, a walk-through gate should swing away from the water and shut and lock itself without help. A latch whose release is lower than 54 inches off the gate bottom should be mounted on the inside, 3 or more inches down from the top, and no gap within 18 inches of it should exceed half an inch. On price, Fixr shows a self-closing gate for a non-glass fence costing $200 to $500, and as much as $1,000 on glass.
Every gate is a point of failure, so fewer is usually better. One gate from the house and, if needed, one wider service gate covers most yards. A second gate also adds a second set of hinges to adjust as the fence settles.
Measuring your fence line before anyone quotes
- Measure the pool’s longest length and widest width, including any coping.
- Decide how much deck or lawn belongs inside the fence. Lounge chairs, a pump pad and a path from the door all need room.
- Add that width twice to each pool dimension and double the sum. That is the full rectangle.
- If a house wall forms one side, subtract it, and plan on door alarms (see below).
- Mark the gate positions and check that nothing outside the line, such as a wall, an AC unit or a tree, gives a child a step up. CPSC guidance asks for barriers placed so permanent structures and equipment cannot be used to climb them.
Contractor or your own weekend
Fixr counts $2 to $15 per linear foot of the installed price as labor, and Angi lists fence contractor labor at $30 to $80 per hour. Removable mesh is the type best suited to a DIY install, since its posts sit in sleeves drilled into the deck. Angi’s view is that pool fence work is best left to professionals for safety reasons, and the calculator’s DIY option prices materials only, so it shows the labor you would be taking on, not a promise that the result will pass.
Glass is not a realistic DIY project: the panels are heavy and the clamps or channels have to be set precisely. If your town requires an inspection, a DIY fence still has to meet every dimension in the code.
Reading a pool fence quote
- Is the height stated, and does it match your local minimum (CPSC’s floor is 48 inches; some places require 60)?
- Are self-closing hinges and self-latching hardware named on each gate, and does each gate swing away from the pool?
- What is the gap at the bottom on each surface: deck, grass, gravel?
- Which of you applies for the permit, and does the price cover the final inspection?
- For mesh, are the deck sleeves and drilling included, and what happens to the holes if the fence is removed?
Worked example: three backyards, three fence lines
An illustrative example. The numbers are exactly what the calculator shows with the inputs listed.
A family with a 32 by 16 foot pool wants a 4 foot deck inside an aluminum fence on all four sides, with one gate. The fence line comes to 128 feet, and the tool prices it at $3,550 installed: $3,200 for fence at $25 per foot and $350 for the self-closing gate. The chart shows removable mesh at $1,438 and frameless glass at $20,520 for the same layout.
A larger yard, a 36 by 18 foot pool with 5 feet of deck and two gates, needs 148 feet of fence. In vinyl that is $4,770, or $32.23 per foot once the gates are spread across the run. Each extra foot of walkway would add about 8 feet of fence and roughly $220 at that price.
The first family also asked about using the back wall of the house as one side with removable mesh. That cuts the run to 88 feet and the price to $1,098. Closing the fourth side instead would add 40 feet and about $340, a small sum against the door alarms or power safety cover CPSC guidance calls for when the house forms part of the barrier.
Frequently asked questions
How much does a pool fence cost per foot?
Does an above-ground pool need a fence?
Can the house wall count as one side of the pool barrier?
Is removable mesh as safe as a permanent fence?
Do you need a permit for a pool fence?
Sources
- CPSC: Safety Barrier Guidelines for Residential Pools (Pub. 362)
- Fixr: How much does it cost to install a pool fence? (updated January 2025)
- Angi: How much does a pool fence cost?
Related calculators and guides
- Fence cost calculator: price a boundary fence around the rest of the yard
- Vinyl fence installation cost calculator: compare vinyl styles and heights in detail
- Pool pump running cost calculator: what the pool costs to run once it is fenced
