Maryland Pool Fence Requirements at a Glance
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.
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 / County | Key Notes |
|---|---|
| Montgomery County | 5-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 County | Barrier at least 6 feet high around outdoor pools at one-family detached homes; the pool and fence permits can be filed together (DPIE). |
| Frederick County | Publishes a barrier handout applying 2021 IRC Section R326 and ISPSC Section 305. |
| Anne Arundel, Howard, Baltimore County and others | Not 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
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.
| Material | Installed, per linear foot | Full breakdown |
|---|---|---|
| Removable mesh | $15 to $35 | Mesh fence cost |
| Aluminum | $30 to $60 | Aluminum fence cost |
| Vinyl / PVC | $20 to $45 | Vinyl fence cost |
| Tempered glass | $90 to $500 | Glass 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
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.
- COMAR 09.12.51.04, Maryland Building Performance Standards, incorporation by reference (LII) (2021 IBC, IRC and IECC)
- COMAR 09.12.51.05, local amendments (LII) (counties and cities may amend the Standards)
- Maryland Department of Labor, Building Codes FAQ (codes effective May 29, 2023)
- Frederick County, Pool Barrier Requirements (effective July 20, 2024) (2021 IRC R326 points to ISPSC Section 305)
- Montgomery County Department of Permitting Services, Residential Swimming Pool (60-inch barrier after 1990; permits)
- Montgomery County 311, Fence or Barrier Requirements Around a Residential Pool (5-foot fence over 18 inches; pool-side latch at 4 feet)
- Prince George's County DPIE, Swimming Pools (6-foot barrier; County Building Code 4-247 and R-327)
- International Code Council (ICC), ISPSC Section 305, Barrier Requirements (model text) (height, openings, gates, latch, clear zone, house wall, pool wall as barrier)
Find Pool Fence Installers in Maryland
Request free, no-obligation quotes from Maryland installers through Angi.
Get Free Quotes Now