Pool fence cost and code planner

Pool Fence Calculator (2026)

Enter your pool dimensions and material preference to get an instant cost estimate. Average pool fence project: $2,000-$13,500 installed. Most states require 4-5 ft minimum height with self-closing, self-latching gates. Always verify local code before installation.

Safety notice

Drowning is the #1 cause of unintentional death for children ages 1-4. Most states legally require a code-compliant pool fence for any permanent pool over 18 inches deep. Always verify local requirements.

Pool Fence Cost At A Glance — 2026

Sources: HomeGuide · Pool Guard USA · HomeAdvisor

Calculate My Pool Fence Cost →
MaterialCost/ft200 ft Total
Mesh (removable)$10-$30/ft$2,000-$6,000
Chain link (black)$10-$29/ft$2,000-$5,800
Galvanized steel$10-$15/ft$2,000-$3,000
Wood$20-$40/ft$4,000-$8,000
Vinyl$30-$45/ft$6,000-$9,000
Aluminum$30-$45/ft$6,000-$9,000
Wrought iron$50-$85/ft$10,000-$17,000
Tempered glass$120-$500/ft$24,000-$100,000
National avg (all)$7,800 total
Interactive calculator

Pool fence calculator by size, material, state code, and installation

Step-by-step mode helps homeowners choose safe defaults. Expert mode keeps every perimeter, gate, terrain, permit, and installation setting editable in one panel.

Pool Fence Calculator

Step 1 of 5 — Your Pool

Pool type & size

Pool shape

How would you like to enter the perimeter?

Your state — code compliance check

Code requirements for Florida
  • Minimum height: 4 ft (48")
  • Max gap at base: 4 inches
  • Max gap between pickets: 4 inches
  • Self-closing and self-latching gate: required
  • Permit and inspection: required in most jurisdictions

County rules may require 5 ft; verify locally.

View full code requirements for your state →

Choose fence material

Based on your selected state, minimum height is 4 ft (48").

Wood fencing may not meet 4 inch gap requirements without custom spacing. Verify picket spacing before ordering.

Height, gates & add-ons

Self-closing and self-latching hardware is included in all gate quotes because it is code-required.

Terrain

Installation preference

Timeline

Code guide

Pool fence code requirements by state (2026)

Pool fencing is not optional in most U.S. states. Drowning is the leading cause of unintentional death for children ages 1-4, and most states legally require a code-compliant barrier for any permanent pool over 18 inches deep.

Non-compliance consequences

  • Failed inspection can prevent filling the pool.
  • Fines may range from $100 to $5,000+ depending on jurisdiction.
  • Homeowner's insurance may be affected.
  • Liability risk increases in the event of an accident.
RequirementSpecificationNotes
Minimum height4 ft (48")CA, AZ, CO, WA, OR require 5 ft (60") baseline
Max gap at base4 inchesPrevents small children from squeezing under
Max gap between pickets4 inchesPrevents child from passing through
Self-closing gateRequiredMust return to closed position automatically
Self-latching gateRequiredLatch on pool side; at least 54 inches from ground
No footholdsRequiredNo horizontal rails on pool side that aid climbing
PermitRequired in most states$40-$150 planning range
InspectionRequired in most statesUsually before filling pool
Applies toPermanent pools over 18 inches deepInflatable pools typically exempt but local code varies
StateMin HeightISPSC AdoptedNotes
California5 ft (60")YesStrictest standard; ISPSC 2021
Arizona5 ft (60")YesISPSC adopted
Colorado5 ft (60")YesISPSC adopted
Florida4 ft (48")PartialSome counties require 5 ft
Texas4 ft (48")NoLocal codes vary significantly
New York4 ft (48")NoNYC requires 5 ft
Georgia4 ft (48")NoVerify county code
Illinois4 ft (48")NoVerify municipal code
Washington5 ft (60")YesISPSC adopted
Oregon5 ft (60")YesISPSC adopted
Most other states4 ft (48")VariesAlways verify locally

Always verify with your local building department. City and county codes frequently exceed state minimums, and the ISPSC trend is toward 5 ft barriers for new pool projects.

Material costs

Pool fence cost by material — detailed breakdown

Mesh Pool Fence

Installed: $10-$30/ft. Total for 200 ft: $2,000-$6,000. Mesh fences use stainless steel or fiberglass poles inserted into ground anchors, and many systems are removable.

Budget mesh$10-$18/ft
Premium mesh$18-$30/ft

Chain Link (Black Vinyl-Coated)

Installed: $10-$29/ft. Total for 200 ft: $2,000-$5,800. Black vinyl-coated chain link resists rust better near pool chemicals and blends into landscaping.

Galvanized steel$10-$15/ft
Black vinyl-coated$15-$29/ft

Aluminum Pool Fence

Installed: $30-$45/ft. Total for 200 ft: $6,000-$9,000. Aluminum is the #1 contractor-preferred pool fence material because it never rusts and pre-assembled panels install quickly.

Standard 4 ft pool panel$30-$38/ft
5 ft pool panel$35-$45/ft
Ornamental with finials$40-$60/ft

aluminum fence calculator

Vinyl Pool Fence

Installed: $30-$45/ft. Total for 200 ft: $6,000-$9,000. Vinyl gives a clean, low-maintenance look and can provide privacy around pool areas visible from the street.

Vinyl is not rackable on steep slopes, so aluminum or chain link can be more practical around uneven pool decks.

Wood Pool Fence

Installed: $20-$40/ft. Total for 200 ft: $4,000-$8,000. Wood provides privacy and a classic look, but pool-code picket spacing must be 4 inches or less.

Wood requires more sealing and staining in wet pool environments than aluminum or vinyl.

Wrought Iron Pool Fence

Installed: $50-$85/ft. Total for 200 ft: $10,000-$17,000. Wrought iron is durable and premium-looking but needs rust maintenance near pool chemicals.

Professional installation is recommended because panels are heavy and gate alignment affects inspection.

Tempered Glass Pool Fence

Installed: $120-$500/ft. Total for 200 ft: $24,000-$100,000. Frameless or semi-frameless glass keeps pool views open and is the premium choice for luxury projects.

Plexiglass / Lexan$25-$40/ft
Semi-frameless glass$120-$250/ft
Frameless glass$250-$500/ft
MaterialCost/ft Installed150 ft Total200 ft TotalLifespanMaintenanceCode-Compliant
Mesh$10-$30$1,500-$4,500$2,000-$6,0005-10 yrLowYes
Chain link (black)$10-$29$1,500-$4,350$2,000-$5,80020-30 yrLowYes
Galvanized steel$10-$15$1,500-$2,250$2,000-$3,00015-25 yrLowYes
Wood$20-$40$3,000-$6,000$4,000-$8,00015-20 yrMediumYes, with correct spacing
Vinyl$30-$45$4,500-$6,750$6,000-$9,00020-30 yrNoneYes
Aluminum$30-$45$4,500-$6,750$6,000-$9,00030-50 yrNoneYes
Wrought iron$50-$85$7,500-$12,750$10,000-$17,00050+ yrHighYes
Plexiglass$25-$40$3,750-$6,000$5,000-$8,00010-15 yrMediumYes
Tempered glass$120-$500$18,000-$75,000$24,000-$100,00030+ yrMediumYes
Pool size

Pool fence cost by pool size

Fence installers charge by the linear foot of fence perimeter, not pool square footage. The enclosure grows quickly when you include the deck or patio offset.

Pool SizePool PerimeterFence Perimeter (4 ft deck)Aluminum CostChain Link Cost
Small (12x24 ft)72 ft104 ft$3,120-$4,680$1,040-$3,016
Standard (16x32 ft)96 ft144 ft$4,320-$6,480$1,440-$4,176
Large (20x40 ft)120 ft176 ft$5,280-$7,920$1,760-$5,104
XL (20x50 ft)140 ft200 ft$6,000-$9,000$2,000-$5,800
Irregular / freeformVaries+15% estimateVariesVaries

Formula check: rectangle fence perimeter equals (pool length + deck x 2 + pool width + deck x 2) x 2. Irregular shapes use a 15% planning factor until measured on site.

Hidden costs

Hidden costs and what's included

Cost ItemTypical RangeNotes
Building permit$40-$150Required in most states
Pool fence inspection$50-$200Separate from building permit
Concrete deck drilling$3-$8/ftFor existing concrete deck
Old fence removal$10-$20/ftIncluding disposal
Yard grading / leveling$500-$3,000For sloped pool areas
Rocky soil surcharge+$15-$20/ftDifficult ground conditions
Sloped terrain surcharge+10-20% laborRacking or stepping required
Self-closing gate upgrade+$50-$150/gateCode-required hardware
Walk gate$200-$900Installed, self-closing
Drive / wide gate$800-$2,500Installed, self-closing
Rush / peak season premium+10-20%Summer installations
Contingency buffer+10-15%Always budget for surprises

Concrete deck drilling is the most commonly overlooked pool fence cost. Schedule your fence before the pool deck is poured when possible so posts can be set without core drilling.

DIY vs pro

DIY vs. professional pool fence installation

DIY pool fence is legally permitted in many states, but the permit and inspection requirement still applies. DIY does not bypass code compliance.

Scenario200 ft Aluminum CostSavings vs. ProSkill Level
Full DIY (flat terrain, no deck)$3,000-$5,600$2,000-$3,400Intermediate
DIY + rented auger$3,200-$5,800$1,800-$3,200Intermediate
Professional install$6,000-$9,000BaselineN/A
Glass fence (pro only)$24,000-$100,000N/AProfessional only

Glass and wrought iron pool fences require professional installation. Specialized anchoring, panel alignment, gate geometry, and structural requirements are beyond normal DIY scope.

FAQ

Pool fence calculator — frequently asked questions

How much does a pool fence cost in 2026?

$10-$45 per linear foot installed for most materials, or $2,000-$13,500 total for a 200-300 ft perimeter. National average: $7,800 total. Glass can run $120-$500/ft.

What are the pool fence code requirements?

Most states follow CPSC / ISPSC baseline rules: 4 ft minimum height in most states, 4 inch maximum gaps, self-closing and self-latching gates, no footholds, permit, and inspection.

What is the cheapest pool fence option?

Mesh and black chain link are the cheapest. A 200 ft mesh fence often costs $2,000-$6,000 installed; black chain link often costs $2,000-$5,800.

What is the best material for a pool fence?

Aluminum is the most common contractor-recommended material for residential pools because it does not rust, installs quickly, and meets code at 4 ft or 5 ft.

Do I need a permit for a pool fence?

Yes in most states. Permit cost is commonly $40-$150, and inspection is typically required before the pool can be filled.

How tall does a pool fence need to be?

4 ft minimum in most states; 5 ft in several ISPSC states including California, Arizona, Colorado, Washington, and Oregon. Local codes may exceed state minimums.

How much does a pool fence gate cost?

A walk gate costs $200-$900 installed. A drive or wide gate costs $800-$2,500. Self-closing and self-latching hardware is code-required.

Can I install a pool fence myself?

Yes for some mesh, chain link, aluminum, and wood systems, but permits and inspections still apply. Do not DIY tempered glass or wrought iron pool fences.

How much does a pool fence cost for a 16x32 pool?

A 16x32 ft pool with a deck offset commonly needs about 128-144 ft of fencing. At 144 ft, chain link costs $1,440-$4,176 and aluminum costs $4,320-$6,480.

Does a pool fence increase home value?

Yes. A code-compliant pool fence is a required safety feature buyers expect. Aluminum and vinyl often return 50-70% ROI; glass can perform better in luxury markets.