Fence required? State: 48-inch barrier under the Uniform Construction Code (34 Pa. Code 403.26(a)). Philadelphia: a 48-inch fence or barrier around any pool, hot tub or spa holding more than 24 inches of water, whenever it was built (Property Maintenance Code PM-303.2)

Philadelphia pools answer to two rules. The first 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) barrier rule, a 48-inch barrier with self-closing, self-latching gates (34 Pa. Code 403.26(a)), and the city's Department of Licenses and Inspections (L&I) enforces it. Under Code Bulletin B-2501, applications filed from July 1, 2026 are reviewed under the 2021 codes. The second rule sits in Title 4.2, the Philadelphia Property Maintenance Code, at Section PM-303.2: the same body of law that governs peeling paint and broken handrails. It is the pool section of the International Property Maintenance Code, which Philadelphia adopts (Pittsburgh adopts the same section). Because it is a maintenance rule, it applies to the pool for as long as the pool exists, including a pool that never had a permit.

It also means the rule reaches further down than most people expect. The trigger is not "in-ground pool" or "permitted pool." It is more than 24 inches of water: a threshold that can include inflatable and soft-sided pools once they are filled past it.

What PM-303.2 Actually Requires

Here is the operative language, condensed. The section follows the model code word for word, apart from dropping the word "private".

Philadelphia Code, Title 4.2, Section PM-303.2 (Enclosures)

Pools, hot tubs and spas containing more than 24 inches of water must be completely surrounded by a fence or barrier of at least 48 inches, measured from finished ground level on the side of the barrier facing away from the pool.

  • 1The 24-inch trigger. Depth of water, not type of pool. A soft-sided pool filled to 26 inches is regulated; the same pool filled to 20 inches is not. Nothing in the section carves out temporary, seasonal, or inexpensive pools.
  • 2Forty-eight inches, measured outward. Height is taken on the exterior face: the side a child would approach from. A retaining wall, planter, or raised patio on the outside of the fence reduces the effective height and can put an otherwise-compliant barrier out of compliance.
  • 3Gates and doors must self-close and self-latch. The section names both. If a door from the house opens into the enclosed pool area, that door falls under the same requirement as a garden gate.
  • 4The 54-inch latch pivot. Where the release mechanism sits less than 54 inches above the bottom of the gate, it must be relocated to the pool side.
  • 5The six-inch close test. A gate has to positively close and latch when released from six inches open. The code states the test itself, so a gate that only latches from a hard swing does not comply.
  • 6No downgrading an existing barrier. An existing enclosure cannot be removed, replaced, or altered in a way that reduces its effectiveness. Swapping a compliant fence for a lower decorative one is itself a violation, independent of any permit.
One exception, narrowly written

A spa or hot tub with a safety cover meeting ASTM F1346 is exempt from PM-303.2. Note what the exception does not say: it applies to spas and hot tubs, not to swimming pools, and it requires a cover certified to that specific standard, not a vinyl tarp or a winter cover.

Philadelphia Code § PM-303 (American Legal Publishing)

The Permit Question Has Three Separate Answers

"Do I need a permit?" is not one question in this city: it is three, they are governed by different subsections of Section A-301, and they do not resolve the same way.

Permit typeFor the barrier itselfWhy
Building permit Usually not Non-masonry fences up to six feet are listed among the activities exempt from a building permit. A standard four-foot pool barrier clears that comfortably. Masonry fence walls, however, are only exempt up to two feet, so a brick or block enclosure is a different conversation entirely.
Zoning permit Usually not Fences at or below the height the Zoning Code allows are exempt, and so, separately, are swimming pools accessory to one- and two-family dwellings. The city's fence permit page adds one exception: a fence more than 50 percent opaque needs a zoning permit. This exemption is about zoning only.
Building permit, for the pool Yes, over 24" The exemption for prefabricated pools is written narrowly: under 24 inches deep, no more than 5,000 gallons, and installed entirely above ground. Miss any one of those three and a building permit is required. In-ground pools are never exempt.
Historical Commission review If designated If the property is on the Philadelphia Register of Historic Places or sits in a designated historic district, a building permit is required for fence work regardless of height, and L&I will refuse the application without Historical Commission approval first. Same rule applies within the 100-year floodplain.
Electrical permit Yes Separate permits are required for the electrical and plumbing work that accompanies a pool. L&I's pool and spa standards say so directly.
The zoning exemption is not a building exemption

"Swimming pools accessory to one- and two-family dwellings" appears on the list of things that do not need a zoning permit. It reads like a green light. It is not one: the building permit requirement for pools deeper than 24 inches lives in an entirely different subsection and is unaffected by it. Two exemptions in the same code section, pointing opposite directions.

Rear-Yard Setbacks on a Narrow Lot

On a narrow lot, space for the pool is often the first limit.

L&I's EZ permit standards for pools and spas (dated February 2007) let you permit a pool accessory to an existing one-family dwelling without submitting plans if it meets these conditions:

Conditions in L&I's pool and spa standards

Pool, structure and equipment must be out of the front and side yardRear yard only
Minimum clearance from any property line or structure on the lot2 feet
In-ground pools: setback from each property line= depth of pool
Above-ground access platform included in the permitup to 50 sq ft
Guardrail around that platform36" min, 4" max opening
Pools on decks or roofsNot permitted

Run the arithmetic on a hypothetical 16-foot-wide lot. A six-foot-deep in-ground pool needs six feet of clearance from each side property line, which leaves four feet of pool, before accounting for the two-foot minimum from any structure, or for the 48-inch barrier that then has to go somewhere between the water and the fence line. On a lot that narrow, an in-ground pool does not fit under the simplified path, and anything that deviates from the standards requires full plan submission to L&I.

Three Barrier Configurations L&I Recognizes

The department's pool and spa standards illustrate three acceptable arrangements. Any pool, spa or hot tub needs to match one of them.

Option 1

Fence encloses the pool alone

A 48-inch barrier rings the pool within the rear yard, with a self-closing, self-latching gate swinging away from the water. The house sits outside the enclosure entirely.

Option 2

The pool wall is the barrier

Above-ground only. The pool structure itself stands 48 inches, and the barrier obligation shifts to the stair or ladder, which must be secured against unsupervised access.

Option 3

Yard enclosed, house as one side

A 48-inch barrier closes the rear yard with the dwelling forming part of the enclosure. Any door from the house into that area needs approved hardware or an alarm.

Option 3 on a yard that is already enclosed

Where a rear yard is already walled or fenced on its other sides to 48 inches, with compliant openings, the remaining work may be the back door hardware and the yard gate.

Fence permit requirements, City of Philadelphia (phila.gov)

Get Quotes From Philadelphia-Area Installers

Contractors who have pulled permits through eCLIPSE and worked Philadelphia rear yards.

 Find Installers

Historic Properties Need Commission Approval

Properties on the Philadelphia Register of Historic Places, individually or inside a historic district, follow a different permit path for fences.

The consequence for fence work is procedural, and it is strict. Where a property is designated, the ordinary "non-masonry fence under six feet" exemption stops applying: a building permit becomes mandatory, and L&I will refuse the permit application outright without stamped Historical Commission approval attached. Approval is sought through eCLIPSE, with the Commission reviewing electronically and reporting its determination to L&I directly.

Practically, that adds a design review to a project that would otherwise need no fence permit. Build the Commission's review into the schedule.

Check before you buy materials

Designation status is searchable on the city's Atlas property tool by address. It takes under a minute and it is worth doing before a contractor orders panels, not after.

Pool Fence Cost in Philadelphia: 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.

Who Enforces It

The Department of Licenses and Inspections. Because the requirement is a maintenance-code obligation rather than a one-time construction gate, it applies to an existing pool, not only at installation, and a new or old pool without a compliant barrier is a violation.

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

Does Philadelphia require a fence around a pool?

Yes, under two rules. The statewide UCC applies the ISPSC's 48-inch barrier to pools at one- and two-family homes, and Section PM-303.2 of the Property Maintenance Code requires any pool, hot tub or spa holding more than 24 inches of water to be completely surrounded by a barrier of at least 48 inches, measured on the side facing away from the pool. The rule reaches inflatable and portable pools once they are filled past that depth.

Do I need a permit for an inflatable pool?

A prefabricated above-ground pool escapes the building permit requirement only if it is under 24 inches deep, holds no more than 5,000 gallons, and sits entirely above ground. A pool 24 inches deep or more needs the permit, and PM-303.2 requires the 48-inch barrier once it holds more than 24 inches of water.

Do I need a separate fence permit for the barrier?

Usually not. Non-masonry fences up to six feet are exempt from the building permit requirement, and fences within the zoning height allowance are exempt from the zoning permit requirement: a four-foot pool barrier falls under both. The exceptions are masonry walls over two feet, anything over six feet, a fence more than 50 percent opaque (zoning permit), and any fence on a historic property or in the 100-year floodplain (building permit).

How high does the gate latch have to be?

There is no single mandated height: placement is what the code governs. If the release mechanism sits less than 54 inches above the bottom of the gate, it has to be on the pool side. The gate must also positively close and latch when released from six inches open, a test the code states itself.

Can I put an in-ground pool in a rowhouse yard?

Often not on a narrow lot, at least not under the simplified permit path. L&I's standards require an in-ground pool to sit back from each property line by a distance equal to its depth, plus a two-foot minimum from any property line or structure. On a sixteen-foot-wide lot, a six-foot-deep pool cannot satisfy that geometry. Deviations require full plan submission rather than the streamlined route.

Who enforces the barrier rule?

The Department of Licenses and Inspections. Because the requirement sits in the Property Maintenance Code rather than only the construction code, it is a continuing obligation on an existing pool rather than only at installation.

Before You Fill the Pool

A short sequence before you fill the pool:

  1. Look up the address on the city's Atlas tool and confirm whether the property is historically designated or in the floodplain. This determines whether the fence needs a permit at all.
  2. Measure the rear yard against the setback conditions before choosing a pool type.
  3. Measure existing enclosure height on the outside face, at the lowest point of grade.
  4. Test every gate and every door into the yard from six inches open. If it does not latch, fix it before anything else.
  5. Confirm who is pulling the pool permit and the separate electrical permit, and get the permit numbers.

Requirements described here reflect the Philadelphia Code as published and L&I's posted pool and spa standards. The EZ pool and spa standards currently posted are dated February 2007, so confirm current requirements with L&I before ordering materials.

Statewide context: Pennsylvania Pool Fence Requirements, the statewide Uniform Construction Code rule that applies in all 2,562 municipalities, Philadelphia included.