Maine Pool Fence Requirements at a Glance

Fence Required?
Required Statewide
Minimum Height
48 inches via MUBEC; the statute sets no minimum
Maximum Opening Size
4 inches
Gate Requirements
Self-closing, self-latching (MUBEC); "securely fastened" (statute)
Permit Required
Yes — always for a pool barrier
Governing Code
22 M.R.S. §1632 + MUBEC (2021 IRC)

Maine’s Two Layers of Pool Law

Maine is unusual in having two separate legal layers govern the same backyard pool — an old statute and a modern building code — and understanding both is the key to getting it right.

The first layer is a statewide statute from 1983. Title 22, §1632 declares, simply, that “a fence shall be erected and maintained around every swimming pool.” It applies to new and existing outdoor pools alike, lets a dwelling or accessory building serve as part of the enclosure, and requires every gate or door to be “capable of being securely fastened” when the pool isn’t in use. Portable above-ground pools with sidewalls of at least 24 inches are exempt. What the 1983 statute conspicuously lacks is a minimum height — and, unusually, it expressly lets a town adopt rules that are either more or less restrictive than the state law.

The second layer supplies the number the statute omits. In 2008 Maine adopted the Maine Uniform Building and Energy Code (MUBEC), now based on the 2021 IRC. Where MUBEC applies, the familiar national standard kicks in:

  • A barrier at least 48 inches (4 feet) high;
  • No gap large enough for a 4-inch sphere to pass, and a bottom clearance no greater than 2 inches;
  • Gates that are self-closing and self-latching, swinging away from the pool;
  • Coverage of in-ground, above-ground, and on-ground pools.
The short version

A fence is required at every Maine pool by statute; the 48-inch specification comes from MUBEC. Together they make a barrier effectively mandatory — and a pool barrier always needs a building permit, regardless of ordinary fence-height exemptions.

Does the Code Reach Your Town?

Here is the wrinkle that trips people up: MUBEC is mandatory only in municipalities with more than 4,000 residents — roughly 70 Maine communities. Smaller towns may adopt it voluntarily or set their own rules through local land-use ordinances, and some rural towns regulate very little.

Two things hold true regardless of town size. First, the 1983 statute’s baseline requirement — a fence around every pool, gates that securely fasten — applies statewide. Second, where MUBEC is enforced, a swimming-pool barrier always requires a building permit, even though ordinary fences under seven feet usually don’t. The only way to know your exact obligations is to call your town’s code enforcement office before you build.

Above-Ground Pools in Maine

The 1983 statute carves out a specific exemption: portable above-ground pools with sidewalls at least 24 inches high are not required to be separately fenced under §1632. But where MUBEC is enforced, the building code’s barrier rules still apply to above-ground pools once the water is deeper than 24 inches — a tall pool wall can serve as the barrier if the ladder or steps are removable, lockable, or secured behind a compliant gate. Because the statute and the code can reach different conclusions, confirm which applies with your code enforcement officer.

Pool Fence Cost in Maine

Maine runs near the New England average, with coastal towns often a touch higher. Estimated installed ranges:

Fence TypeTypical Installed Cost*Best For
Removable mesh$15–$26 / linear ftYoung children, DIY-friendly
Aluminum$28–$56 / linear ftCoastal and freeze-thaw durability
Cedar / wood$26–$50 / linear ftWeathers well in the Maine climate
Vinyl$24–$46 / linear ftPrivacy; low upkeep

*Estimated installed price ranges for a typical residential yard; actual cost depends on linear footage, terrain, gate count, and material grade. Use the cost calculator for a figure tailored to your pool.

Coastal salt air and hard freeze-thaw winters set the priorities here. Powder-coated aluminum resists corrosion and is easy to build to the 48-inch MUBEC standard. Cedar is a traditional Maine choice that weathers gracefully. Removable mesh is the safest option around young children and the only style genuinely suited to DIY. Whatever you choose, set posts below the frost line so the barrier doesn’t heave out of compliance over winter.

Not sure DIY is right for you?

Get free quotes from licensed Maine installers and compare the cost vs. doing it yourself.

 Get Free Quotes

Maine-Specific FAQs

Does Maine require a pool fence by state law?

Yes. Title 22 M.R.S. §1632 requires a fence around every outdoor swimming pool in Maine, new or existing, with gates that can be securely fastened. The statute sets no minimum height; the 48-inch height standard comes from the Maine Uniform Building and Energy Code (MUBEC) where it is enforced.

How tall does a pool fence have to be in Maine?

The 1983 statute specifies no height, but MUBEC — based on the 2021 IRC — requires at least 48 inches (4 feet), with a 4-inch sphere rule and self-closing, self-latching gates. MUBEC is mandatory in towns over 4,000 residents; smaller towns may adopt it or set their own rules.

Do I need a permit for a pool fence in Maine?

Yes. A swimming-pool barrier always requires a building permit in Maine where MUBEC is enforced, even though ordinary fences under seven feet usually don’t. Confirm the process with your town’s code enforcement office.

Does an above-ground pool need a fence in Maine?

Under the 1983 statute, portable above-ground pools with sidewalls at least 24 inches high are exempt from a separate fence. But where MUBEC is enforced, the building code’s barrier rules apply once the water is deeper than 24 inches. Confirm which applies with your code officer.

Can a Maine town have less strict rules than the state?

Unusually, yes. Title 22 M.R.S. §1632 expressly allows municipalities to adopt rules that are either more or less restrictive than the state statute — one of the few pool-fence laws in the country that permits local rules to fall below the state baseline. Always confirm your specific town’s ordinance.

Find Pool Fence Installers in Maine

Get free, no-obligation quotes from licensed ME installers who know your local code requirements.

Get My Free Quotes →