Do I Need a Permit to Build a Fence in Maine?
Quick answer
Most Maine communities don't require a building permit for standard residential fences under 6 feet. South Portland and many other towns follow this rule — fences under 6 feet are permit-free, but taller fences need permitting and must meet setback requirements. Front-yard fences are typically limited to 4 feet. Maine has strict spite fence and boundary fence laws that affect where and how you build. Check with your town's code enforcement office before starting.
Maine at a glance
Building code adopted
Maine Uniform Building and Energy Code (MUBEC), based on 2021 IRC/IBC — mandatory in communities with populations over 4,000
State authority
Maine Department of Public Safety, Office of the State Fire Marshal — Technical Services Division
Common permit threshold
Most municipalities do not require permits for fences under 6–7 feet; fences over 6 feet trigger setback requirements and may require a building permit
Did you know?
Maine's spite fence law is unusually specific — any fence exceeding 6 feet 'maliciously kept' to annoy a neighbor is a private nuisance, and the Maine Supreme Court has ruled that even dense hedges and tree lines count as fences under this statute.
On this page
Maine's Building Code Applies in Larger Communities
Maine has a statewide building code — the Maine Uniform Building and Energy Code (MUBEC) — based on the 2021 International Residential Code and International Building Code. But here's the catch: MUBEC is mandatory only in municipalities with populations over 4,000. Smaller towns can choose to adopt it or not.
For the roughly 70 Maine communities where MUBEC applies, the code follows the standard IRC exemption: fences not over 7 feet (other than swimming pool barriers) are exempt from building permits. In practice, most of these towns set their own fence height limits through zoning ordinances — typically 6 feet in side and rear yards — and use the building code exemption as a backstop rather than the primary rule.
In smaller communities without MUBEC, fence regulations come entirely from local land use ordinances. Some rural Maine towns have very limited fence regulations; others have detailed standards. The only way to know for certain is to contact your town's code enforcement office.
For a broader look at how fence permit rules work across the country, see our national guide to fence permits.
Height Limits: The Maine Pattern
Across Maine's more populated communities, height limits follow a familiar New England framework.
Front yards are typically limited to 4 feet. Most towns require front-yard fences to be open in design — picket, wrought iron, or split rail. Solid privacy fencing in front yards is generally not permitted. The reasoning is consistent with the rest of New England: driver visibility and neighborhood character.
Side and rear yards allow up to 6 feet in most communities. South Portland states this clearly: no permit is needed for residential fences under 6 feet, but fences taller than 6 feet require permitting and must meet the zone's setback requirements.
Portland — Maine's largest city — follows the same standard. Standard 6-foot fences in side and rear yards don't require a permit. The city does enforce additional rules in shoreland zones and areas near water bodies, where fencing may require review under shoreland zoning provisions.
A standard 6-foot cedar privacy fence in the backyard — the most common residential fence project in Maine — can typically be built without a permit in any community that follows MUBEC or the standard 6-foot local threshold.
Find your Maine city
Get the exact fence permit requirements for your area.
How Maine Towns Handle Permits
Portland: Shoreland Zones and Overlay Districts
Portland doesn't require permits for standard residential fences under 6 feet, but the city has several overlay zones and special districts where additional review may apply. Properties in the shoreland zone — within 250 feet of water bodies, wetlands, or rivers — face extra scrutiny for any construction, including fencing.
Portland's historic neighborhoods also deserve attention. While the city doesn't have a single blanket historic district for fences, specific neighborhoods may have design review requirements that apply to visible structures including fences. Check with the city's Planning and Urban Development department if your property is in one of Portland's designated historic areas.
South Portland: Clean and Simple
South Portland has one of the clearest fence policies in the state. Fences under 6 feet on residential properties don't need a permit. Period. Fences over 6 feet require a building permit and must meet the setback requirements for that parcel. The city's code enforcement office handles applications and can be reached at (207) 767-7603.
The city also emphasizes that fences must be placed entirely on the owner's property. If you're unsure where your property line is, South Portland recommends a survey before construction.
Bangor: Zoning-Driven Rules
Bangor relies on its zoning ordinance to regulate fences. The standard 4-foot front / 6-foot side-rear framework applies. Fences over 7 feet are subject to permitting under the building code. The city's code enforcement office reviews fence plans for compliance with zoning and can issue stop-work orders for non-compliant construction.
Lewiston and Auburn: The Twin Cities
Lewiston and Auburn — separated by the Androscoggin River — both follow the standard height framework. Fences over 6 feet typically require permits. Both cities have been proactive about code enforcement in recent years, and fence violations are actively monitored.
Augusta: The Capital City
Augusta follows a zoning-based approach to fence regulation. The city doesn't require building permits for standard fences under 6–7 feet but enforces height, setback, and material standards through its zoning code. Properties near the Kennebec River face additional shoreland zoning requirements.
Maine's Distinctive Fence Laws
Maine has some of the most detailed fence statutes in New England, rooted in centuries-old agricultural law but still very much applicable to modern residential properties.
The Spite Fence Statute
Maine's spite fence law — Title 17, Section 2801 — declares that any fence exceeding 6 feet, "maliciously kept and maintained for the purpose of annoying the owners or occupants of adjoining property," is a private nuisance. A court can order the fence removed and award damages.
What makes Maine's law distinctive is the breadth of its application. The Maine Supreme Court has held that dense trees and hedges planted along a property line with malicious intent qualify as fences under this statute. If your neighbor plants a wall of arborvitae specifically to block your view or reduce your enjoyment of your property, that may be a spite fence — even though it's made of living plants rather than lumber.
The standard for proving a spite fence is the intent behind it. Even a fence that technically complies with local building codes can be ruled a spite fence if the court determines it was built primarily to annoy rather than for a legitimate purpose.
Shared Cost for Boundary Fences
Maine is one of the few states that still enforces a shared-cost obligation for boundary fences. Under Title 30-A, Section 2952, adjoining landowners whose properties are enclosed by a boundary fence must share the cost of maintaining it equally. While this law was crafted for agricultural use, Maine courts have applied it to residential properties as well.
The practical implication: if a boundary fence exists and encloses both properties, both owners are responsible for upkeep — even if one of them didn't ask for the fence. This is why many Maine homeowners choose to build fences a few feet inside their property line rather than directly on the boundary.
The Fence Viewer System
Maine retains an active fence viewer system for resolving boundary fence disputes. When a neighbor neglects or refuses to maintain their portion of a shared fence, the other party can file a complaint with the town's fence viewers.
The process is straightforward. The fence viewers inspect the fence, determine whether it's "insufficient" (in disrepair or below the legal standard), and notify the delinquent owner. The owner has up to 30 days to make repairs. If they don't comply, the complaining neighbor can do the work and seek reimbursement for costs.
Fence viewers can also authorize a property owner to build a boundary fence on land that isn't the true boundary line — but only when building on the actual boundary is impractical. This is a useful provision for properties with difficult terrain or disputed survey lines.
Maine defines a "legal fence" under Title 30-A, Section 2951 as any fence 4 feet tall and in good repair, made of rails, timber, stone walls, iron, or wire. Natural barriers including rivers, ponds, ditches, and hedges can also qualify if the fence viewers judge them sufficient.
Pool Fence Requirements
Swimming pool barriers always require a building permit in Maine, regardless of fence height. The state building code sets the requirements:
- The barrier must be at least 48 inches (4 feet) tall
- No gap large enough for a 4-inch sphere to pass through
- Gates must be self-closing and self-latching, swinging away from the pool
- The maximum clearance between the ground and the bottom of the barrier is 2 inches
- The pool must be inaccessible to small children when the gate is closed
These rules apply to all pools — in-ground, above-ground, and on-ground — in any municipality that enforces MUBEC. In smaller communities without MUBEC, check with your local code enforcement office, as many have adopted pool barrier requirements independently.
Material Restrictions
Maine doesn't have a statewide list of banned fence materials for residential properties, but local zoning ordinances commonly restrict the following:
Barbed wire and razor wire are prohibited in residential zones in virtually all Maine communities. Agricultural properties may be exempt.
Electric fences are generally not permitted in residential areas, though some rural communities allow them on larger agricultural parcels.
Improvised materials — corrugated metal, pallets, plywood, tarps — are prohibited in most municipalities that regulate fence materials. Fences must be constructed of materials intended for fencing.
Many towns require the finished or decorative side of a fence to face outward toward the neighbor or street. This is a common zoning requirement across southern Maine communities.
Weather, Frost, and Practical Considerations
Maine's climate imposes practical requirements that go beyond what any code specifies. The frost line ranges from 48 inches in southern Maine to 60 inches or more in the northern interior. Fence posts must extend below the frost line to prevent heaving — a post set at 24 inches will almost certainly shift within a year or two.
Coastal properties face salt spray, high winds, and accelerated weathering. Vinyl and pressure-treated wood hold up better than untreated lumber in coastal environments. Cedar — a popular fence material statewide — is naturally resistant to rot but may weather quickly in direct ocean exposure.
Snow loads are a real factor, especially in central and northern Maine. Heavy snow accumulation against a fence can cause leaning, broken posts, and panel failure. Build stronger than the minimum if your property is in a high-snowfall area.
For an overview of all building permit requirements in Maine — including decks, sheds, pools, and more — see our complete Maine building permit guide.
HOA Rules in Maine
Maine is one of the most rural states in the country, and HOA-governed communities are less common here than in fast-growing Sun Belt states. However, newer subdivisions in southern Maine — particularly in Scarborough, Gorham, Falmouth, and the Portland suburbs — increasingly include homeowners associations with fencing restrictions.
Common HOA rules include limits on fence materials (vinyl or wood only, no chain link), uniform height requirements, and required architectural review before construction. Maine doesn't have a state statute that prevents HOAs from restricting fences, so CC&R restrictions are generally enforceable.
Consequences of Building Without Proper Approval
Maine towns enforce fence regulations through code enforcement officers. If a fence violates height limits, encroaches on a neighbor's property, or is built in a restricted zone without approval, the town can issue a notice of violation.
Consequences typically escalate from a warning to fines to a removal order. Some towns assess daily fines for continuing violations. Unpermitted work can also complicate a property sale — title companies and buyers' inspectors may flag non-compliant fences.
Since most Maine communities don't charge for fence permits on standard residential projects, there's little cost to doing it properly from the start.
If you're also planning a deck or retaining wall alongside your fence, each project has its own permit requirements. Planning them together helps avoid multiple rounds of applications.
| City | Permit threshold | Typical fee | Review time |
|---|---|---|---|
| Portland | Varies | Varies | Varies |
| Lewiston | Varies | Varies | Varies |
| Bangor | Varies | Varies | Varies |
| South Portland | Varies | Varies | Varies |
| Augusta | Varies | Varies | Varies |
City names link to full city-specific guides.
Fence permits in neighboring states:
Ready to build your fence?
Professional fence plans that meet Maine building code requirements. Permit-ready drawings you can submit with your application.
Frequently asked questions
Does my neighbor have to help pay for a boundary fence in Maine?
Yes. Under Maine Revised Statutes Title 30-A, Chapter 133, Section 2952, adjoining landowners whose properties are enclosed by a boundary fence must share the cost of maintaining it equally. While this law was originally designed for agricultural properties, it applies to residential fences under common law. If your neighbor refuses to pay their share, you can file a complaint with the town's fence viewers.
What is Maine's spite fence law?
Under Title 17, Section 2801, any fence exceeding 6 feet that is 'maliciously kept and maintained for the purpose of annoying' neighboring property owners is a private nuisance. A court can order the fence removed and award damages. The Maine Supreme Court has held that dense trees and hedges planted along a property line with malicious intent also qualify as spite fences under this statute.
What is a fence viewer in Maine?
Fence viewers are town officials who settle disputes about boundary fences. When a neighbor neglects or refuses to maintain their portion of a shared fence, the other party can complain to the fence viewers. They inspect the fence, determine if repairs are needed, and give the delinquent owner up to 30 days to fix it. If the owner still doesn't comply, the complaining neighbor can make the repairs and seek reimbursement. Maine's fence viewer statute is in Title 30-A, Chapter 133.
Do I need a permit for a pool fence in Maine?
Yes. Pool barriers require a building permit regardless of fence height. Maine's building code requires any pool not totally enclosed by a structure to be surrounded by a barrier at least 4 feet tall with self-closing, self-latching gates. Openings cannot allow a 4-inch sphere to pass through. Gates must open away from the pool. Contact your town's code enforcement office for the specific application process.
What does Maine law define as a 'legal fence'?
Maine Revised Statutes Title 30-A, Section 2951 defines a legal fence as any fence that is 4 feet tall and in good repair, constructed of rails, timber, stone walls, iron, or wire. Natural barriers such as rivers, ponds, creeks, ditches, and hedges also qualify if the fence viewers consider them sufficient. This definition is primarily used for boundary fence disputes and cost-sharing determinations.
Fence permits in Maine cities
Select your city for specific fence permit rules, fees, and application details.
Permit requirements vary by city and town. The information in this guide provides general guidance for Maine based on common local building codes and zoning regulations. Always verify requirements with your local code enforcement office before starting your project.