Fence required? State: 48-inch barrier under the Uniform Construction Code (34 Pa. Code 403.26(a)). City of Pittsburgh: the same 48-inch rule for existing pools, hot tubs and spas holding more than 24 inches of water (IPMC 303.2, Pittsburgh Code Ch. 1004). Boroughs and townships: ask your code office

The barrier rule is statewide: Pennsylvania's Uniform Construction Code (UCC) sends pools at one- and two-family homes to the International Swimming Pool and Spa Code (ISPSC), a 48-inch barrier with self-closing, self-latching gates (34 Pa. Code 403.26(a)). Who applies it depends on your address, and "Pittsburgh" is often a mailing address rather than a jurisdiction. Allegheny County contains 130 municipalities and no unincorporated land: every square foot belongs to a city, borough or township, and the county itself does not issue building permits. Places like Mt. Lebanon, Bethel Park, Ross, Penn Hills, Moon and Upper St. Clair each have their own code office.

So the first question is not what the barrier rules are. It is who your code official is. Get that wrong and everything downstream (the application, the fee schedule, the inspection sequence, sometimes the requirements themselves) is wrong with it. This guide covers the City of Pittsburgh's requirements in detail, because they are documented and specific, then explains how to run the same process in a borough.

Three Agencies, One Pool

A single residential pool in Allegheny County is typically reviewed by three different bodies operating on separate tracks.

WhatWhoNotes
Building & zoning Your municipality In the city, that is the Department of Permits, Licenses and Inspections (PLI), filed through its OneStopPGH portal. In a borough or township, it is the local code office: many of which contract the work out to certified third-party agencies. Barrier compliance is reviewed here, as part of the pool application.
Plumbing Allegheny County Health Department The Health Department's Plumbing Program permits and inspects residential plumbing across the whole county under Article XV, independent of which municipality you are in. Plan approval comes before work starts.
Electrical Municipality or third-party agency PLI's residential pool form is unambiguous that every pool and spa requires an electrical permit for grounding and bonding. This is not optional and not folded into the building permit.
The county is not a shortcut

Except for plumbing, the county has no role in a residential pool permit. There is also no unincorporated territory in Allegheny County, so "I'm not in any municipality" is never the answer.

The City of Pittsburgh Barrier Spec Sheet

PLI publishes a residential pool form that spells out the barrier requirements line by line. Every figure below comes from that form (revised August 2, 2019).

Height

48 inches above grade for the entire perimeter, and for all areas within 3 feet outside the barrier. That second clause is the one people miss: a raised bed, wall or slope three feet out can defeat an otherwise-compliant fence.

Openings

No opening may pass a 4-inch sphere. For chain link and barriers with diagonal members, the maximum opening drops to 1¾ inches.

Base clearance

Maximum 2 inches above grass, gravel or similar material.

Clear space outside

36 inches clear between the exterior of the barrier and any permanent structure.

Clear space inside

20 inches between the barrier and the water's edge.

Horizontal members

If the spacing between horizontals is under 45 inches, they must sit on the pool side, and vertical openings drop to a 1¾-inch maximum. At 45 inches or more, the general opening rules apply.

Gates

Self-closing, self-latching, and equipped to accept a locking device.

Ladders & steps

Ladders: minimum 2-inch tread, 17–24 inches between handrails or handholds. Steps: minimum 5-inch tread, 12-inch minimum width. Tread spacing 7–12 inches on both.

Drawings

A Pennsylvania-licensed architect or engineer must prepare drawings for any custom-built pool or spa, and for any in-ground pool deeper than 4 feet.

Site plan

Required, showing barrier location and type relative to the pool and the property lines.

City of Pittsburgh PLI Residential Pool Form (PDF)

A Second Rule for Existing Pools

The city also adopts the 2021 International Property Maintenance Code (Pittsburgh Code Chapter 1004, effective December 18, 2024), and its local changes leave the pool section, Section 303.2, as written. That section applies to pools, hot tubs and spas holding more than 24 inches of water, whenever they were built:

  • A fence or barrier at least 48 inches high, measured on the side away from the pool, completely surrounding it
  • Self-closing, self-latching gates and doors in the barrier, with the release on the pool side if it sits less than 54 inches above the bottom of the gate
  • Gates kept in a condition that closes and latches them when released 6 inches from the post
  • No removing or changing an existing enclosure in a way that makes it less effective

A spa or hot tub with an ASTM F1346 safety cover is exempt. Philadelphia adopts the same model section as PM-303.2. Boroughs and townships that adopt a property maintenance code may carry it too, so ask your code office.

Which Code Edition Applies

Pennsylvania moved to the 2021 codes on January 1, 2026, and the transition window has now closed.

Scheduled for July 13, 2025: then postponed

Pennsylvania had expected to move to the 2021 ICC code series on that date, but the Department of Labor and Industry had not completed the required regulatory review, and the date was withdrawn.

January 1, 2026: statewide effective date

The Independent Regulatory Review Commission approved the update in October 2025 and it was published in the Pennsylvania Bulletin the following month, adopting nearly all of the 2021 International Codes, including the 2021 International Swimming Pool and Spa Code, with Pennsylvania amendments. This applies across the commonwealth, not just in Pittsburgh.

June 30, 2026: the transition window closed

Where a design or construction contract was signed before January 1, 2026, a permit may still be issued under the 2018 code if the application was made within six months of the effective date, or a shorter period set by municipal ordinance (Construction Code Act, section 304(c)(4)). Applications filed from July 1, 2026 fall under the 2021 code.

An honest caveat about the spec sheet above

PLI's residential pool form carries a 2019 revision date, which places it before the 2021 code adoption. Its figures match the ISPSC barrier section, but a form is not the code. Confirm current requirements with PLI before ordering materials or finalizing a design.

How Slope Affects the Measurements

On a sloped yard, three of the form's measurements need checking at more than one point.

What slope does to a compliant fence

  • Height is measured at every point, not on average. A fence that reads 48 inches at the high end can fall short at the low end of the same run. Stepped panels or taller stock in the low sections are the usual remedy.
  • The 2-inch base clearance is measured at the worst spot. Follow the grade too loosely and the gap under a panel opens past 2 inches in the dips. Retaining boards or a graded trench close it.
  • The 3-foot exterior zone follows the terrain. The barrier must hold 48 inches for all areas within 3 feet outside it. On an uphill exterior, the ground rises toward the fence and the effective height drops: the fence may need to be taller than 48 inches to comply.

Get Quotes From Pittsburgh-Area Installers

Contractors who know which code office covers your borough.

 Find Installers

Choosing a Barrier Type

PLI's form asks applicants to declare a barrier type, and each carries its own conditions.

TypeConditions attached
FenceThe general spec sheet applies in full: height, openings, base clearance, horizontal member placement, gate hardware.
Chain linkMaximum opening tightens to 1¾ inches. The same limit applies to any barrier with diagonal members.
Solid barrierA wall or solid fence, subject to the height and clearance rules. Watch the 36-inch clear zone against existing structures.
Structure wallUsing the house as a barrier side triggers alarm requirements: doors and operable windows with sills below 48 inches need an alarm listed to UL 2017 that sounds on opening. Alternatively, a safety cover listed to ASTM F1346.
Mesh (removable)Bottom no more than 1 inch above grade: tighter than the 2 inches allowed for rigid fencing. Attachments between sections must sit at least 45 inches above grade and function like a gate lock. Not permitted for above-ground pools.
Above-ground poolThe pool, or the pool plus a barrier mounted on it, must reach 48 inches above grade. Ladders and steps must be securable, lockable or removable unless separately enclosed, and openings must comply when secured.
Spa or hot tubA lockable safety cover listed to ASTM F1346 satisfies the requirement in place of a barrier.
The mesh restriction catches people out

Removable mesh is allowed around an in-ground pool here. It cannot serve as the barrier for an above-ground pool: for those, the answer is the pool wall itself plus secured access, or a separate rigid fence.

Pool Fence Cost in Pittsburgh: National Ranges

We found no published source that prices pool fences by state or city, so these are national installed ranges from our pool fence cost guide. Quotes where you live can land above or below them.

MaterialInstalled, per linear footFull breakdown
Removable mesh$15 to $35Mesh fence cost
Aluminum$30 to $60Aluminum fence cost
Vinyl / PVC$20 to $45Vinyl fence cost
Tempered glass$90 to $500Glass fence cost

National typical installed ranges, not quotes. Multiply by your fence perimeter. Some sources include one gate in the figure; extra gates, permits and hard deck surfaces add to the total. Sources: HomeGuide (Feb 3, 2026), Life Saver Pool Fence (Aug 5 and Sep 23, 2026) and Pool Guard USA (May 20, 2025). Full source list and method: pool fence cost guide. Reviewed September 2026.

If You're Outside the City Limits

The state code floor is the same everywhere in the commonwealth, so the barrier specifications above are a sound working baseline, but the process around them is local. Four questions to ask:

Who reviews my application?

Ask whether the municipality runs its own code office or contracts a third-party agency. It changes who you call and where you file.

Which code edition are you on?

New applications fall under the 2021 codes since July 1, 2026. Ask whether any local ordinance or amendment applies on top.

Zoning first, or together?

Some municipalities require zoning approval before the building application; others review both at once.

Any local amendments?

Setbacks from lot lines, equipment placement and fence height limits are zoning matters set locally, and they vary across the county. The construction barrier and alarm rules come from the statewide code; a local property maintenance code can add a rule for existing pools.

One thing that does not vary: the plumbing permit goes through the Allegheny County Health Department wherever you are in the county, and the pool needs an electrical permit for bonding and grounding no matter which municipality issues the building permit.

Sources

Every rule on this page traces to one of these. We link the primary source so you can check it yourself.

Frequently Asked Questions

What are the pool fence requirements in Pittsburgh?

Statewide, the UCC applies the ISPSC's 48-inch barrier. Inside the city, PLI's pool form requires 48 inches above grade around the entire perimeter and for all areas within 3 feet outside the barrier. Openings must not pass a 4-inch sphere, the base sits no more than 2 inches above grass or gravel, and the barrier keeps 36 inches clear of permanent structures and 20 inches from the water's edge. Gates self-close, self-latch and accept a locking device.

Does Allegheny County issue pool permits?

No. The county has 130 municipalities and no unincorporated land, and it does not issue building permits. Building and zoning permits come from your city, borough or township. Plumbing is the one exception: the Allegheny County Health Department permits and inspects it countywide.

Which code edition applies now?

The 2021 ICC series, statewide since January 1, 2026. The transition window for projects contracted before that date closed June 30, 2026, so applications filed since July 1, 2026 are reviewed under the 2021 code.

Do I need a permit for the fence itself?

Ask PLI whether your fence needs its own zoning review. Either way, the barrier is reviewed as part of the pool application, and the site plan has to show barrier location and type relative to the pool and property lines.

Can I use a mesh pool fence?

Around an in-ground pool, yes, with conditions: the bottom may sit no more than 1 inch above grade, and attachments between sections must be at least 45 inches above grade and function like a gate lock. Mesh is not permitted as the barrier for an above-ground pool.

Does an above-ground pool need a separate fence?

Not necessarily. The pool, or the pool with a barrier mounted on it, has to reach at least 48 inches above grade. Ladders and steps then need to be securable, lockable or removable unless they are separately surrounded by a compliant barrier, and openings must comply when secured.

Is an electrical permit really required?

Yes. PLI's residential pool form states that all pools and spas require an electrical permit so the pool can be properly grounded and bonded. It applies to every pool type and is separate from the building permit.

The Order of Operations

A sequence that keeps the permits in order:

  1. Confirm your municipality by address, not by mailing address or ZIP code. The two often differ in Allegheny County.
  2. Call that code office and ask whether zoning comes first and whether any local amendments apply.
  3. On a sloped yard, measure grade along the barrier line before choosing a barrier type.
  4. File the building or zoning application with a site plan showing barrier location and type against the pool and property lines.
  5. File the electrical permit, and the county plumbing permit through the Health Department, in parallel, not after.
  6. Walk the finished barrier at the low points before calling for inspection. Height and base clearance are measured at the worst spot, not the best.

Figures in this guide come from the City of Pittsburgh's published residential pool form, the city's property maintenance code and the statewide UCC. Outside the city, the same statewide barrier rule applies (34 Pa. Code 403.26(a)); the code office, permit process and zoning rules vary across Allegheny County's other 129 municipalities, so confirm with your local code official before ordering materials.

Statewide context: Pennsylvania Pool Fence Requirements, the statewide Uniform Construction Code rule and how municipalities enforce it. See also Philadelphia, which carries the same property-maintenance pool rule.