State Guide · Verified 2026
Fence Installation Permits in Maine
Fences are governed mainly by local zoning, not a statewide building permit. Cities set height limits (commonly 3-4 ft in front yards and 6 ft in back and side yards), setbacks, and corner sight-line rules, and many require a zoning permit for any fence. Most jurisdictions exempt fences up to 7 ft from a building permit (IRC R105.2) and require one above that. Replacing a fence at the same height, material, and location usually needs no permit; a fence used as a pool barrier always does.
The Building Code in Maine
Maine Uniform Building and Energy Code (MUBEC), 2021 IRC-based, effective April 7, 2025
MUBEC, overseen by the Office of the State Fire Marshal's Bureau of Building Codes and Standards, is mandatory enforcement only in municipalities with a population over 4,000. Smaller towns may adopt it voluntarily or enforce nothing at all. Where MUBEC applies, the standard IRC exemption covers fences not over 7 feet, other than pool barriers, but most towns layer their own zoning height limits on top, and towns under the population threshold can set their own rules independently of MUBEC entirely.
Quick Facts
Who Sets the Rules
A code that only applies once a town is big enough
Maine's split personality shows up immediately: MUBEC is genuinely mandatory only for the roughly 70 municipalities with more than 4,000 residents. Smaller towns can choose to enforce it, adopt a modified version, or have no code enforcement at all, which means a fence question in a small Maine town might have no formal answer beyond local zoning, if the town has any.
Where MUBEC applies, the standard exemption holds
In the roughly 70 larger communities, the 7-foot IRC fence exemption applies as the baseline, and most towns add their own zoning height limits on top, commonly 6 feet in side and rear yards with a lower front-yard cap.
Some towns genuinely have no fence rule at all
The Town of Bucksport's own code enforcement FAQ confirms directly that a fence may be installed on any property in town without a permit, a real example of what "no MUBEC enforcement" looks like in practice for a specific Maine town under the population threshold.
A dedicated statutory chapter most states lack
Maine devotes an entire chapter of its statutes, Title 30-A Chapter 133, specifically to "Fences and Fence Viewers," with individual sections covering how fences may vary from the dividing line, assignment of fence parts before construction, fences built on a town line, resolving disputes over division fences, and even the compensation owed to appointed fence viewers. This is a more detailed statutory fence framework than most other states maintain.
The coastal environment adds a practical wrinkle
Salt air along Maine's coast accelerates corrosion of standard metal fasteners and connectors, which is why stainless steel or hot-dipped galvanized hardware is commonly recommended for any fence near the water, a consideration inland Maine properties do not share.
What people get wrong
The most common mistake is assuming Maine has one statewide fence answer. Whether a fence needs a permit at all can depend entirely on whether your specific town crosses the 4,000-resident MUBEC threshold, something most homeowners never think to check.
Counties With Their Own Rules
These Maine counties have verified, county-specific fence installation rules that differ from the state baseline:
Check Your County
Select your county for the local rule, fees, and your building department's contact details:
Building It Yourself? Here's What You'll Need
Popular tools and materials homeowners use for a fence installation project:
As an Amazon Associate, we earn from qualifying purchases.
Official Sources
Rules change and cities within a county may differ. This guide is general information, not legal advice — always confirm with your local building department. Reviewed by the StateDataIndex Editorial Team · Updated September 2026.