Maryland Pool Fence Requirements at a Glance

Fence Required?
RequiredCounties may amend the state code, and some require taller fences.Sources verified September 2026
Minimum Height
48 inches (Montgomery County 60", Prince George's County 72")
Maximum Opening Size
4 inches
Gate Requirements
Self-closing, self-latching, opens outward, able to take a lock. Outside-reachable latch at 54"+; a pool-side-only latch 3" below the top.
Permit Required
From your county or city building department.
Penalty for Non-Compliance
Set by your county or city.
Always Verify With Your Local Authority

State and local laws change. This information reflects our best research as of September 2026, but you must confirm current requirements with your local building department before installing or modifying any pool barrier. Maryland counties and cities may amend the state code for local conditions (COMAR 09.12.51.05).

Last reviewed: September 2026. Report an error →

Maryland Pool Barrier Law

Maryland's building code is the Maryland Building Performance Standards, in COMAR 09.12.51. It incorporates the 2021 International Residential Code (IRC) for one- and two-family homes, effective May 29, 2023. The IRC's pool section points to the International Swimming Pool and Spa Code (ISPSC), as Frederick County explains in its barrier handout. Counties and cities enforce the code, and under COMAR 09.12.51.05 they may amend it for local conditions; the amended version is the rule there.

The ISPSC's barrier section, Section 305, applies to pools that can hold more than 24 inches of water:

  • 48 inches of height on the outside of the barrier, and no more than a 2-inch gap under it on soil or grass
  • Openings under 4 inches, tightening to 1.75 inches where the horizontal rails sit less than 45 inches apart
  • Outward-swinging gates that close and latch by themselves and are built to take a lock; any latch a child could reach from outside sits 54 inches up or higher, and a pool-side-only latch sits 3 inches or more under the top
  • Pumps and heaters outside the barrier placed 36 inches or more away from it

Two large counties go well beyond the baseline:

  • Montgomery County. A pool deeper than 18 inches, or the lot it sits on, must be enclosed by a fence or wall at least 5 feet high, with a self-closing, self-latching lock or latch on the pool side at least 4 feet up (county 311). Pools installed before January 1, 1990 may instead have a 42-inch fence or an automatic cover (DPS).
  • Prince George's County. Outdoor pools at one-family detached homes must be enclosed by a barrier at least 6 feet high, under Section 4-247 and R-327 of the County Building Code (DPIE).

Above-Ground Pools in Maryland

Above-ground pools deeper than 24 inches are covered as well. Under the model rule the pool's side can double as the barrier when it is set on grade, is 48 inches tall on every side, has no openings over the limits and the manufacturer approves that use; the ladder then has to lock, come out or be fenced.

Where a house wall forms part of the barrier, ISPSC Section 305.4 requires protection at doors and low windows that open to the pool: listed alarms, a safety cover meeting ASTM International (ASTM) standard F1346, or another approved means such as self-closing, self-latching doors.

County Heights Change the Math

A standard 48- to 54-inch above-ground wall does not reach Montgomery County's 5-foot or Prince George's County's 6-foot rule on its own. Confirm your county's rule before relying on the pool wall.

City & County Variations in Maryland

Counties may amend the state code, so the county you build in can change the rule. These rows come from county sources; for anywhere else, ask your county or city building department.

City / CountyKey Notes
Montgomery County5-foot fence or wall around pools deeper than 18 inches; pool-side latch at least 4 feet up; gates closed and latched when the pool is unattended. Pre-1990 pools: 42 inches or an automatic cover. Homeowners may apply for the permit; contractors need a Maryland Home Improvement Commission (MHIC) license (DPS).
Prince George's CountyBarrier at least 6 feet high around outdoor pools at one-family detached homes; the pool and fence permits can be filed together (DPIE).
Frederick CountyPublishes a barrier handout applying 2021 IRC Section R326 and ISPSC Section 305.
Anne Arundel, Howard, Baltimore County and othersNot verified. Ask the county building department whether it has amended the state code for pools.

Official source: COMAR 09.12.51, Maryland Building Performance Standards

Get Free Quotes from Maryland Installers

Request quotes from local installers through our partner Angi. Ask each one about Maryland permit rules before you sign.

 Find MD Installers

Pool Fence Cost in Maryland

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.

These ranges assume a 48-inch fence. Where a county rule calls for 5 or 6 feet, as in Montgomery and Prince George's Counties, expect to pay more.

Maryland-Specific FAQs

Is a pool fence required in Maryland?

Yes. The Maryland Building Performance Standards adopt the 2021 International Residential Code, whose pool section points to the International Swimming Pool and Spa Code and its 48-inch barrier. Counties and cities enforce it and may amend it.

What is the minimum pool fence height in Maryland?

48 inches under the state code, but counties can require more. Montgomery County requires 5 feet for pools deeper than 18 inches, and Prince George's County requires 6 feet around outdoor pools at one-family detached homes.

Can a Maryland county change the pool fence rules?

Yes. COMAR 09.12.51.05 lets a local jurisdiction amend the state building code for local conditions, and the amended version applies there. Montgomery and Prince George's counties both set taller barriers.

Does a Maryland pool gate need a lock?

Gates must be able to take a lock. The model code says access gates shall be equipped to accommodate a locking device, and pedestrian gates must open outward and close and latch by themselves. Montgomery County also requires gates to be closed and latched whenever the pool is unattended.

Does the rule apply to above-ground pools in Maryland?

Yes, for pools that can hold more than 24 inches of water. The wall can be the barrier if it meets the height and opening rules and the ladder is secured or removed, but a typical wall will not meet the 5- or 6-foot rules in Montgomery or Prince George's County.

What does a pool fence cost in Maryland?

We found no published source that prices pool fences by state, so we use national installed ranges per linear foot: removable mesh $15 to $35, aluminum $30 to $60, vinyl $20 to $45 and tempered glass $90 to $500. Multiply by your fence perimeter. Those figures reflect typical fences; the 5- and 6-foot county rules push the cost up.

Maryland Pool Fencing: A State Code With County Heights

Maryland sets one building code for the state, the 2021 International Residential Code in COMAR 09.12.51, and then lets counties and cities amend it. For pool fences that makes the county the deciding factor.

Montgomery and Prince George's counties show how far that goes: 5 feet in Montgomery for pools deeper than 18 inches, and 6 feet in Prince George's. Everywhere else, start from the 48-inch state baseline and ask the county whether it has changed anything.

One practical note: taller county rules change material choices and cost, so price the right height from the start.

Sources

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

Find Pool Fence Installers in Maryland

Request free, no-obligation quotes from Maryland installers through Angi.

 Get Free Quotes Now