Skip to content
Inground pool surrounded by a black picket pool fence with a closed gate
Pool safety and barriers

Pool Fence Cost: Prices per Linear Foot, Code Rules and a Worked Example

Pool fence cost is usually $1,500 to $10,000 installed, with a $4,000 national average (Angi, October 2026), or $10 to $45 per linear foot by material (HomeGuide, 2026). Code sets a 48 inch minimum height.

Free Pool Quote Match

Tell us about your pool project. We match you with licensed local pros who cover your area.

Step 1 of 3: Your project

Free for homeownersNo obligationAbout 60 seconds

  • ✓Priced per linear footInstalled rates for seven materials from three dated cost guides, side by side.
  • ✓A 120 ft worked examplePerimeter arithmetic for a 16 x 32 ft pool, with retail listings captured October 19, 2026.
  • ✓Checked against the codeEvery height, gap and gate rule traced to 2024 ISPSC Section 305 and CPSC Publication 362.
Quick answer
A pool fence costs $1,500 to $10,000 installed, and Angi puts the 2026 average at $4,000. HomeGuide lists installed mesh at $10 to $30 per linear foot, aluminum at $30 to $45 and tempered glass at $120 to $500. Fencing a 16 x 32 ft pool with a 3 ft walkway takes 120 linear feet.
$4,000
National average
$10 to $45
Installed per linear foot
48 in
Minimum height

Key takeaways

  • A pool fence costs $1,500 to $10,000 installed, with a national average of $4,000 in 2026 (Angi).
  • Installed prices run $10 to $30 per linear foot for mesh, $30 to $45 for aluminum or vinyl and $120 to $500 for tempered glass (HomeGuide, February 2026).
  • A 16 x 32 ft pool with a 3 ft walkway needs 120 linear feet of fence: $1,400 to $4,400 in mesh or $3,800 to $6,200 in aluminum with one gate, at HomeGuide installed rates (PC&S calculation).
  • The model code requires a barrier at least 48 inches high, no opening that passes a 4 inch sphere, and gates that open outward, self-close and self-latch (2024 ISPSC Section 305).
  • 20 of 51 US jurisdictions require a pool barrier statewide as of October 2026; Arizona and California require 60 inches (PC&S pool fence law research).

How much does a pool fence cost?

A pool fence costs $1,500 to $10,000 installed for most US homes, and Angi’s October 2026 update puts the national average at $4,000. Per linear foot, HomeGuide’s February 2026 guide lists $10 to $45 installed across common materials, with tempered glass far above that band at $120 to $500. Length and material set most of the bill.

Pool fence cost: key numbers, October 2026
NumberValueSourceDate
National average pool fence job$4,000AngiUpdated Oct 12, 2026
Typical pool fence job$1,500 to $10,000AngiUpdated Oct 12, 2026
Installed cost per linear foot, all materials$10 to $45HomeGuideUpdated Feb 3, 2026
Self-closing, self-latching gate$200 to $800HomeGuideUpdated Feb 3, 2026
Minimum barrier height, model code48 in2024 ISPSC 305.2.12024 edition
Outside latch release height, residential54 in or higher2024 ISPSC 305.3.32024 edition
States with a statewide barrier mandate20 of 51 (50 states plus DC)PC&S pool fence law researchOct 4, 2026

Sources: Angi; HomeGuide; 2024 ISPSC Section 305 (UpCodes); PC&S pool fence law research. Download CSV

Three national cost guides do not agree to the dollar. HomeGuide reports a $7,800 national average for 200 to 300 linear feet, Fixr reports $6,500 for a 100 ft aluminum fence with a self-closing gate and a pool net (January 2025), and Angi reports $4,000. The difference is mostly the length and material each guide assumes, so compare per-foot rates, not headline averages.

Pool fence cost per linear foot by material, three cost guides
MaterialHomeGuide, installed ($/LF)Angi ($/LF)Fixr, installed ($/LF)Source
Mesh (removable)$10 to $30$7 to $10$7 to $10HomeGuide Feb 2026; Angi Oct 2026; Fixr Jan 2025
Black chain link$10 to $29$5 to $12$5 to $12HomeGuide Feb 2026; Angi Oct 2026; Fixr Jan 2025
Wood$20 to $40$3 to $30$20 to $30HomeGuide Feb 2026; Angi Oct 2026; Fixr Jan 2025
Vinyl$30 to $45$15 to $40$15 to $40HomeGuide Feb 2026; Angi Oct 2026; Fixr Jan 2025
Aluminum$30 to $45Not listed$15 to $35HomeGuide Feb 2026; Fixr Jan 2025
Wrought iron$50 to $85$20 to $35$15 to $40HomeGuide Feb 2026; Angi Oct 2026; Fixr Jan 2025
Plexiglass$25 to $40$20 to $30$25 to $40HomeGuide Feb 2026; Angi Oct 2026; Fixr Jan 2025
Tempered glass$120 to $500$100 to $600$95 to $210HomeGuide Feb 2026; Angi Oct 2026; Fixr Jan 2025

Sources: HomeGuide (updated Feb 3, 2026); Angi (updated Oct 12, 2026); Fixr (updated Jan 31, 2025). Cost guides, not quotes. Download CSV

Installed pool fence cost per linear foot by material, US, February 2026US dollars per linear foot; tempered glass ($120 to $500) left off the scale
Installed pool fence cost per linear foot by material, US, February 2026Range chart of installed pool fence cost per linear foot. Mesh $10 to $30, black chain link $10 to $29, wood $20 to $40, plexiglass $25 to $40, vinyl $30 to $45, aluminum $30 to $45 and wrought iron $50 to $85.$0$25$50$75$100Mesh: $10 to $30MeshBlack chain link: $10 to $29Black chain linkWood: $20 to $40WoodPlexiglass: $25 to $40PlexiglassVinyl: $30 to $45VinylAluminum: $30 to $45AluminumWrought iron: $50 to $85Wrought iron

Source: HomeGuide, Pool Fence Cost (updated Feb 3, 2026). Download chart data (CSV)

Angi lists mesh at $7 to $10 per foot without saying whether that includes labor, while HomeGuide prices installed mesh at $10 to $30. Life Saver Pool Fence, a mesh maker, publishes $17 to $35 per linear foot installed through its dealers and adds $1 to $15 per foot for custom layouts or certain deck types (Life Saver, May 2026). Katchakid, another maker, says most of its installations run $2,000 to $5,000 before tax including the required gate (Katchakid, October 2026).

What does a pool fence cost for a 16 x 32 ft pool?

A 16 x 32 ft pool with a 3 ft walkway on every side needs a 22 x 38 ft fence, which is 120 linear feet. At HomeGuide’s February 2026 installed rates, that comes to $1,400 to $4,400 for removable mesh and $3,800 to $6,200 for aluminum or vinyl, each with one self-closing gate.

  1. Measure the poolUse length and width at the water’s edge. HomeGuide puts the average family pool at 14 x 28 ft to 16 x 32 ft (HomeGuide size chart); this example uses 16 x 32 ft.
  2. Add the walkwayAdd the setback twice to each side. A mesh fence must sit at least 20 in from the water (2024 ISPSC 305.2.5.1); Pool Fence DIY suggests 24 to 36 in for walking and cleaning. With 3 ft: 32 + 6 = 38 ft and 16 + 6 = 22 ft.
  3. Compute the perimeter2 x (38 + 22) = 120 linear feet. Subtract any side where the house wall is the barrier, and only if doors on that wall get UL 2017 alarms or another 305.4 option.
  4. Convert to sections and gatesMesh comes in 12 ft sections: 120 / 12 = 10 sections. Count every gate as its own line; HomeGuide prices a self-closing, self-latching gate at $200 to $800.
  5. Multiply by the rate120 LF x $10 = $1,200 and 120 LF x $30 = $3,600 for installed mesh, then add the gate.
Worked perimeter for a 16 x 32 ft pool with a 3 ft walkway: 2 x (38 + 22) = 120 linear feet, or 10 mesh sections of 12 ft. PC&S diagram; setback rule from 2024 ISPSC 305.2.5.1.
Worked perimeter for a 16 x 32 ft pool with a 3 ft walkway: 2 x (38 + 22) = 120 linear feet, or 10 mesh sections of 12 ft. PC&S diagram; setback rule from 2024 ISPSC 305.2.5.1.
Worked example: 120 linear feet of pool fence by material, plus one gate
MaterialInstalled $/LF (HomeGuide, Feb 2026)120 LF x low rate120 LF x high ratePlus one gate ($200 to $800, HomeGuide)Worked total
Mesh (removable)$10 to $30$1,200$3,600$200 to $800$1,400 to $4,400
Black chain link$10 to $29$1,200$3,480$200 to $800$1,400 to $4,280
Wood$20 to $40$2,400$4,800$200 to $800$2,600 to $5,600
Vinyl$30 to $45$3,600$5,400$200 to $800$3,800 to $6,200
Aluminum$30 to $45$3,600$5,400$200 to $800$3,800 to $6,200
Wrought iron$50 to $85$6,000$10,200$200 to $800$6,200 to $11,000
Tempered glass$120 to $500$14,400$60,000$200 to $800$14,600 to $60,800

Source: PC&S calculation from HomeGuide installed rates (updated Feb 3, 2026). Excludes permit, removal of an old fence and grading. Download CSV

What do pool fence materials cost before installation?

Retail listings captured October 19, 2026 put fence panels at $9.66 per linear foot for 4 ft DIY mesh, $15.75 for white vinyl and $21.00 for black aluminum, before posts, gates and labor. For 120 linear feet, that is $1,158.60 in mesh sections and $1,889.85 to $2,519.80 in vinyl or aluminum panels.

Pool fence material listings captured October 19, 2026
Product (listing)SellerListed priceUnitPanel cost per LF120 LF of panelsNot in the priceCaptured
Pool Fence DIY Sections, black, 4 ft x 12 ft (mesh)Pool Fence DIY$115.8612 ft section with poles$9.66$1,158.60 (10 sections)Gate, ground sleeves, drill bits, shipping2026-10-19
Pool Fence DIY Sections, black, 5 ft x 12 ft (mesh)Pool Fence DIY$179.8212 ft section with poles$14.99$1,798.20 (10 sections)Gate, ground sleeves, drill bits, shipping2026-10-19
Pool Fence DIY gate, black, flat top, 4 ft x 2.5 ftPool Fence DIY$372.061 gateNot applicableNot applicableInstallation2026-10-19
Neptune Pool Fence, white, 4 ft x 8 ft (vinyl)Weatherables$125.998 ft section$15.75$1,889.85 (15 sections)Posts, gates, concrete, labor2026-10-19
Pacific Aluminum Fence, black, 4.5 ft x 6 ftWeatherables$125.996 ft panel$21.00$2,519.80 (20 panels)Posts, gates, concrete, labor2026-10-19

Sources: Pool Fence DIY sections and gates (US storefront); Weatherables Neptune vinyl; Weatherables Pacific aluminum. Listed prices change; panel cost per LF is the listed price divided by section width. Download CSV

The DIY mesh math is short: 10 sections at $115.86 plus a $372.06 flat-top gate is $1,530.66 for the 120 ft example, against $2,040 to $4,200 installed at Life Saver’s $17 to $35 per foot before gate options. Each Pool Fence DIY section has integrated posts every 36 inches that drop into sleeves drilled into the deck (Pool Fence DIY), so the saving pays for your drilling time and a hammer drill.

Vinyl and aluminum panel prices leave out posts, concrete and labor, which is why HomeGuide’s installed rate of $30 to $45 per foot is roughly double the $15.75 and $21.00 panel rates above. Weatherables lists a 3.8 inch gap between pickets on its 4.5 ft Pacific aluminum panel and 3.7 inches on its Neptune vinyl panel (Weatherables), both under the 4 inch limit that applies when rails are 45 inches or more apart.

What code rules does a pool fence have to meet?

Where it is adopted, the 2024 International Swimming Pool and Spa Code (ISPSC) Section 305 requires a barrier at least 48 inches high, no opening that passes a 4 inch sphere, a bottom gap of 2 inches over grass or 4 inches over concrete, and gates that open outward, self-close and self-latch with an outside release at least 54 inches up.

Pool fence rules in 2024 ISPSC Section 305 and CPSC Publication 362
Rule2024 ISPSC sectionCode requirementCPSC Publication 362 guidance (2012)
Height305.2.1Top at least 48 in above grade, measured on the side away from the pool, for 3 ft out from the barrierAt least 48 in; 5 ft or higher preferable
Gap at bottom, grass or gravel305.2.12 in maximumIndustry recommends 2 in maximum on non-solid surfaces
Gap at bottom, concrete305.2.14 in maximum4 in maximum
Openings305.2.2No opening passes a 4 in sphereSame 4 in sphere test
Rails less than 45 in apart305.2.6Rails on the pool side; gaps between pickets 1.75 in maximumSame
Rails 45 in or more apart305.2.7Gaps between pickets 4 in maximum; cutouts 1.75 in maximumSame
Chain link305.2.7 (2021 edition)Openings 1.75 in maximum, or slats that reduce them to 1.75 inMesh 1.25 in square maximum unless slats reduce openings to 1.75 in
Removable mesh305.2.5 and 305.2.5.1Meets ASTM F2286; inside of fence at least 20 in from the water; never on top of an onground poolPosts at least 3 in below grade, 40 in apart at most; mesh bottom 1 in above the deck at most
Gates305.3Open outward, self-closing, self-latching, able to take a lock; may not swing over stairsOpen out from the pool; self-closing and self-latching
Latch height305.3.3Outside release (not self-locking) at least 54 in up; a pool-side-only release at least 3 in below the top of the gateRelease under 54 in goes on the pool side, at least 3 in below the top
Near the latch305.3.4No opening over 0.5 in within 18 in of an inside latchNo opening over 0.5 in within 18 in of the release
House wall as one side305.4UL 2017 door and window alarms, an ASTM F1346 safety cover, or another approved meansAlarm sounds within 7 seconds, for 30 seconds or more, at 85 dBA at 10 ft
Pool equipment outside the fence305.2.10Kept at least 36 in from the outside of the barrierBarriers placed so structures and equipment cannot be used to climb them
Powered safety cover instead305.1A powered ASTM F1346 cover exempts the pool area from 305.2 to 305.7Power safety covers can serve as barriers, especially where the house is the fourth side

Sources: 2024 ISPSC Chapter 3 and 2021 ISPSC Chapter 3 (UpCodes jurisdiction copies; sections cited carry no local amendment marker); CPSC Publication 362, Safety Barrier Guidelines for Residential Pools (2012, guidelines, not a mandatory standard). Download CSV

CPSC Publication 362, page 12, Figure 13: a latch release under 54 inches goes on the pool side at least 3 inches below the top of the gate, with no opening over 1/2 inch within 18 inches. Accessed October 19, 2026.
CPSC Publication 362, page 12, Figure 13: a latch release under 54 inches goes on the pool side at least 3 inches below the top of the gate, with no opening over 1/2 inch within 18 inches. Accessed October 19, 2026.

Gates get their own code section and their own line on a quote. CPSC Publication 362 calls a gate that fails to close and latch “the weak link in the strongest and highest fence” (CPSC), and 2024 ISPSC 305.3 requires every pedestrian gate to open away from the pool and close and latch on its own. Budget $200 to $800 per gate at HomeGuide’s rates.

Which pool fence materials pass code?

Every common material can pass code, but each fails on a different detail: mesh on setback and the ASTM F2286 listing, pickets on rail spacing, chain link on opening size, solid boards on handholds and glass on panel gaps. The table pairs each material with the section that decides it and HomeGuide’s installed price. Styles such as horizontal slats, lattice and living walls are checked rule by rule in our pool fence ideas guide.

Code-compliance decision table by pool fence material
If your fence isThe code check that decides pass or failSectionWhat to ask the installerInstalled $/LF (HomeGuide, Feb 2026)
Removable meshCertified to ASTM F2286, set at least 20 in from the water, hinged gate meets 305.32024 ISPSC 305.2.5, 305.2.5.1Which ASTM F2286 edition, and how far the inside of the fence sits from the water$10 to $30
Aluminum or vinyl picketPickets 4 in apart at most when rails are 45 in or more apart; 1.75 in at most, rails on the pool side, when rails are closer305.2.6, 305.2.7Rail spacing and picket gap in inches (Weatherables lists 3.8 in for its Pacific aluminum panel)$30 to $45
Wood privacy boardSolid face with no handholds or footholds305.2.3Which side the rails face and whether boards leave gaps$20 to $40
Chain linkOpenings 1.75 in at most, or slats; CPSC suggests 1.25 in mesh305.2.7 (2021 edition)Mesh opening size in writing$10 to $29
Tempered glassNo gap between panels or under them passes a 4 in sphere; 4 in maximum over concrete305.2.1, 305.2.2Panel gap and spigot clearance in inches$120 to $500
Any fence with the house as one sideDoor and window alarms to UL 2017, an ASTM F1346 cover, or approved self-closing doors305.4Which option the permit drawings showNot a fence cost

Sources: 2024 ISPSC Section 305; 2021 ISPSC 305.2.7; CPSC Publication 362; Weatherables Pacific listing; HomeGuide (installed prices, Feb 2026). Download CSV

Which code check decides a pool fence, by material. PC&S flowchart from 2024 ISPSC 305.2.1 to 305.3 and 2021 ISPSC 305.2.7; the decision table above holds the same logic as text.
Which code check decides a pool fence, by material. PC&S flowchart from 2024 ISPSC 305.2.1 to 305.3 and 2021 ISPSC 305.2.7; the decision table above holds the same logic as text.

Is chain link allowed around a pool? Yes, where the openings are 1.75 inches or smaller or slats reduce them to that size (2021 ISPSC 305.2.7). CPSC Publication 362 goes further and suggests mesh no larger than 1.25 inches square. Ask for the mesh opening in writing, because HomeGuide’s $10 to $29 per foot for black chain link does not state a mesh size.

Do I legally need a fence around my pool?

It depends on your state and city: 20 of 51 US jurisdictions require a barrier around new residential pools statewide, 16 have partial statewide rules and 15 leave it to local codes, according to PC&S research of statutes and adopted codes as of October 4, 2026. Where a city adopts the ISPSC, Section 305.2 requires one.

Residential pool barrier rules in six states, October 2026
StateLegal routeStatewide mandateMinimum heightDoor or window alarmSafety cover option
ArizonaStatute (A.R.S. 36-1681)Partial60 inNoYes
CaliforniaStatute (HSC 115923)Partial60 inYesYes
FloridaStatute (Fla. Stat. 515.29)Yes48 inYesYes
New JerseyStatewide codeYes48 inNoNo
New YorkStatute and state codeYes48 inRequiredYes
TexasStatewide codePartial48 inYesYes

Source: PC&S pool fence laws by state (state statutes and codes, checked Oct 4, 2026); Fla. Stat. 515.29. Download CSV

Florida shows how a state law and a fence quote interact. Fla. Stat. 515.27 lets a new residential pool pass final inspection with any one of five safety features, including a barrier that is at least 4 feet high on the outside under 515.29, and the law covers pools holding water over 24 inches deep (Florida Legislature). Our pool fence laws by state matrix lists the rule, height and cover option for all 50 states and DC.

A powered safety cover is the main alternative. 2024 ISPSC 305.1 exempts a pool with a powered ASTM F1346 cover from the barrier sections, and the pool safety cover guide prices those covers. New Jersey’s statewide rule accepts no cover in place of a barrier, per the same PC&S research.

What changes the price of a pool fence?

Length, height, gates and location move a pool fence quote the most. Each extra 10 linear feet adds $100 to $450 at HomeGuide’s installed rates, a 5 ft mesh section lists 55.2% higher than a 4 ft one, and Angi’s 2026 city estimates run from $14 to $28 per foot in Phoenix to $25 to $50 in New York.

What moves pool fence cost, with the dollar or percent effect
What moves the priceEffect in dollars or percentSource
LengthEach extra 10 LF adds $100 to $450 at HomeGuide's $10 to $45 per LFHomeGuide, Feb 2026
Height, 4 ft to 5 ft+55.2% for a Pool Fence DIY mesh section ($115.86 to $179.82); +16.7% for a Weatherables Neptune 8 ft vinyl section ($125.99 to $146.99)Seller listings, Oct 19, 2026
Gate$200 to $800 per self-closing, self-latching gate; $372.06 for a DIY 4 ft flat-top mesh gateHomeGuide, Feb 2026; Pool Fence DIY, Oct 19, 2026
City$14 to $28 per LF in Phoenix vs $25 to $50 in New YorkAngi, Oct 2026
Labor$30 to $80 per hourAngi, Oct 2026
Mesh color+10.4% for brown over black DIY sections ($115.86 to $127.86)Pool Fence DIY, Oct 19, 2026
Custom layout or deck type+$1 to $15 per LFLife Saver Pool Fence, May 2026
Permit$40 to $150 (HomeGuide); $146.15 plan review in Austin, TX; $360.68 for an in-ground pool including fence in Montgomery County, MDHomeGuide, Feb 2026; PC&S permit fee research, Oct 2026
Aluminum metal pricesProducer price index for extruded aluminum shapes up 58.9%, Jan 2024 to Sep 2026BLS via FRED, series WPU10250162

Sources: HomeGuide; Angi; Pool Fence DIY; Weatherables; Life Saver Pool Fence; PC&S pool permit cost research; BLS PPI WPU10250162 via FRED. Download CSV

Pool fence cost per linear foot in 10 US cities, 2026US dollars per linear foot, Angi city estimates
Pool fence cost per linear foot in 10 US cities, 2026Range chart of pool fence cost per linear foot by city. New York is highest at $25 to $50, San Jose $22 to $45, and Phoenix lowest at $14 to $28.$0$12.5$25$37.5$50New York, NY: $25 to $50New York, NYSan Jose, CA: $22 to $45San Jose, CALos Angeles, CA: $20 to $40Los Angeles, CAChicago, IL: $20 to $40Chicago, ILSan Diego, CA: $20 to $38San Diego, CAPhiladelphia, PA: $17 to $32Philadelphia, PAHouston, TX: $15 to $30Houston, TXDallas, TX: $15 to $30Dallas, TXSan Antonio, TX: $15 to $28San Antonio, TXPhoenix, AZ: $14 to $28Phoenix, AZ

Source: Angi, How Much Does a Pool Fence Cost to Install? (updated Oct 12, 2026). Download chart data (CSV)

At Angi’s rates, the same 120 ft fence costs $1,680 to $3,360 in Phoenix and $3,000 to $6,000 in New York. Permits add a smaller amount: our pool permit cost research found a $146.15 small-project plan review fee covering fences and pools in Austin and a $360.68 Montgomery County, Maryland fee for a private in-ground pool that includes the fence. Aluminum fences also carry metal price risk: the producer price index for extruded aluminum shapes rose 58.9% from January 2024 to September 2026 (BLS via FRED).

Where do cost guides and the code disagree?

Four claims in the top-ranking cost guides do not match the primary text. The biggest is the bottom gap: HomeGuide allows 4 inches between fence and ground, but 2024 ISPSC 305.2.1 allows only 2 inches over grass or gravel. A fence built to the guide’s number can fail inspection on a lawn. The same section holds the 48 inch height for 3 ft outside the fence, which rules out planters and boulders there; plants and setbacks that fit the rule are in our pool landscaping ideas guide.

What several pool fence cost guides say vs what the primary source says
What a cost guide saysWho says itWhat the primary source saysPrimary source
Fences should not have more than 4 in of space between the bottom and the groundHomeGuide, Feb 20262 in maximum over grass or gravel; 4 in only over a solid surface such as concrete2024 ISPSC 305.2.1
Aboveground pools generally need only a 2 to 3 ft guardrail on the pool edgeAngi, Oct 2026The pool wall, or wall plus a barrier on top, must reach 48 in above grade around the whole pool2024 ISPSC 305.5
Most states require safety fencing for any permanent body of water over 18 in deepHomeGuide, Feb 202620 of 51 jurisdictions mandate barriers statewide; Florida's law defines a pool as water over 24 in deepPC&S research; Fla. Stat. 515.25(11)
In most states, you must have a fence around an in-ground poolFixr, Jan 202516 states have partial rules and 15 leave barriers to local codesPC&S research, Oct 2026

Sources: HomeGuide (Feb 2026); Angi (Oct 2026); Fixr (Jan 2025); 2024 ISPSC 305.2.1 and 305.5; Fla. Stat. 515.25; PC&S research. Download CSV

The aboveground pool row matters for budgets. Angi prices an aboveground pool fence at $100 to $450 on the basis of a 2 to 3 ft guardrail, but 2024 ISPSC 305.5 lets the pool wall serve as the barrier only when it, or the wall plus a barrier mounted on top, reaches 48 inches above grade around the whole pool, with a ladder that locks or lifts out. Mesh fences may not go on top of an onground pool at all (305.2.5). The same section requires the bottom of the wall to sit on grade, which is one reason to level a sloped site by digging rather than burying the wall, as our guide on how to level ground for an above ground pool explains.

Which pool fence should you buy?

Match the fence to the rule you have to meet first, then to the budget. Removable mesh at $10 to $30 per foot installed is the lowest-cost route that passes code when set 20 inches from the water; glass costs $120 to $500 per foot; Arizona and California buyers should price 60 inch panels from the start.

Pool fence decision table
If your situation isDo this
Children under 5 live in or visit the home and the house wall is one side of the pool areaFence all four sides, which CPSC Publication 362 calls better than using the house; otherwise add UL 2017 door alarms per 2024 ISPSC 305.4
You want the lowest installed price and can drill the deckPrice ASTM F2286 removable mesh at $10 to $30 per LF (HomeGuide) and keep it at least 20 in from the water (305.2.5.1)
You live in Arizona or CaliforniaPrice 60 in panels; a 5 ft DIY mesh section costs 55.2% more than a 4 ft one
You want an unblocked view and have $14,600 or more for 120 LFGet tempered glass quotes that state the panel gap and the clearance under each panel in inches
Your yard fence will also be the pool barrierCheck every side, including neighbor-shared sections and every gate, against 48 in height and 4 in openings; Fla. Stat. 515.29(1)(c) allows it only where the fence meets the barrier rules
You have an aboveground pool with walls 48 in highLet the pool wall serve as the barrier if the maker allows it, and buy a ladder that locks or lifts out (2024 ISPSC 305.5)
Pool equipment will sit outside the fenceSet it at least 36 in from the barrier so it cannot be climbed (2024 ISPSC 305.2.10)
You would rather not fence at allAsk the building department whether a powered ASTM F1346 cover is accepted (2024 ISPSC 305.1); New Jersey's statewide rule accepts no cover in place of a barrier

Sources: CPSC Publication 362; 2024 ISPSC Section 305; HomeGuide; Pool Fence DIY; Fla. Stat. 515.29; PC&S research. Download CSV

If you are pricing a screen cage instead of a fence, the pool enclosure cost guide covers when a screen enclosure can serve as the barrier. For the full project budget, the inground pool cost guide shows where the fence sits among other line items.

How we compiled this

We read 2024 ISPSC Section 305, 2021 ISPSC Section 305, CPSC Publication 362 and Florida Statutes chapter 515 at the source, reused statute research from our pool fence laws by state report, and captured five retail listings on October 19, 2026. Cost ranges come from five dated cost guides and maker pages, labeled as estimates; we did not install, test or survey anything. We excluded forum posts and figures we could not open at the source.

Frequently Asked Questions

How much does it cost to put a fence around a pool?

Most pool fences cost $1,500 to $10,000 installed, and Angi puts the 2026 national average at $4,000. For a 16 x 32 ft pool with a 3 ft walkway, the fence is 120 linear feet: $1,400 to $4,400 in mesh or $3,800 to $6,200 in aluminum with one gate at HomeGuide rates.

What is the cheapest way to put a fence around a pool?

Removable mesh is the lowest-cost fence that passes code in most places: $10 to $30 per linear foot installed (HomeGuide, 2026), or about $9.66 per foot in DIY sections listed by Pool Fence DIY on October 19, 2026. It must meet ASTM F2286 and sit at least 20 inches from the water under 2024 ISPSC 305.2.5.1.

Do I legally need a fence around my pool?

Often, yes. 20 of 51 US jurisdictions require a barrier around new residential pools statewide, 16 have partial rules and 15 leave it to local codes (PC&S research, October 2026). Where the ISPSC is adopted, a powered ASTM F1346 safety cover can replace the fence under Section 305.1, but not in New Jersey.

What is the cheapest pool fence?

By installed price per foot, mesh and black chain link are cheapest at $10 to $30 and $10 to $29 in HomeGuide’s February 2026 guide. Chain link must have openings of 1.75 inches or less to pass 2021 ISPSC 305.2.7, and CPSC Publication 362 suggests 1.25 inches, so confirm the mesh size before comparing prices.

How much does a mesh pool fence cost?

Installed mesh pool fence runs $10 to $30 per linear foot according to HomeGuide and $17 to $35 according to maker Life Saver (2026). Katchakid says most installations run $2,000 to $5,000 before tax including the gate. A DIY 4 ft x 12 ft section listed at $115.86 on October 19, 2026.

How much does it cost to fence 200 linear feet?

At HomeGuide’s installed rates of $10 to $45 per linear foot, 200 feet costs $2,000 to $9,000 before gates, and Angi’s $15 to $25 per foot gives $3,000 to $5,000. Tempered glass at $120 to $500 per foot would be $24,000 to $100,000. Add $200 to $800 for each self-closing gate.

Sources

  1. International Code Council via UpCodes. 2024 International Swimming Pool and Spa Code, Chapter 3, Section 305 (Austin adoption copy). Accessed 2026-10-19.
  2. International Code Council via UpCodes. 2021 International Swimming Pool and Spa Code, Chapter 3, Section 305 (Connecticut adoption copy). Accessed 2026-10-19.
  3. U.S. Consumer Product Safety Commission. Safety Barrier Guidelines for Residential Pools, CPSC Publication 362. Accessed 2026-10-19.
  4. Florida Legislature. Florida Statutes chapter 515, Residential Swimming Pool Safety Act. Accessed 2026-10-19.
  5. U.S. Bureau of Labor Statistics via FRED. Producer Price Index by Commodity: Extruded Aluminum Shapes (WPU10250162). Accessed 2026-10-19.
  6. Pool Fence DIY. Pool Fence DIY Sections (listing). Accessed 2026-10-19.
  7. Pool Fence DIY. Pool Fence DIY Gates (listing). Accessed 2026-10-19.
  8. Weatherables. Neptune Pool Fence (listing). Accessed 2026-10-19.
  9. Weatherables. Pacific Aluminum Fence (listing). Accessed 2026-10-19.
  10. HomeGuide. Pool Fence Cost (cost guide, updated Feb 3, 2026). Accessed 2026-10-19.
  11. Angi. How Much Does a Pool Fence Cost to Install? (cost guide, updated Oct 12, 2026). Accessed 2026-10-19.
  12. Fixr. Cost of Fence Around Pool (cost guide, updated Jan 31, 2025). Accessed 2026-10-19.
  13. Life Saver Pool Fence. Pool Fence Cost | Pool Fences Prices (maker page, updated May 4, 2026). Accessed 2026-10-19.
  14. Katchakid. How Much Does a Pool Fence Cost to Install? (maker page, updated Oct 11, 2026). Accessed 2026-10-19.
  15. HomeGuide. Swimming Pool Size Chart. Accessed 2026-10-19.
  16. PC&S Research. Pool fence laws by state. Accessed 2026-10-19.
  17. PC&S Research. Pool permit cost. Accessed 2026-10-19.
Free for homeowners

Get Quotes From Licensed Local Pool Pros

Tell us what you need and your ZIP code. We match you with pool companies that cover your area.