STATEWIDE FENCE LAWS IN MAINE

OVERVIEW

Maine law gives different answers to three questions that sound much alike: How high may a yard fence be? What counts as an adequate fence between adjoining enclosures? And how high must a pool barrier be to keep children out? The first is chiefly a local land-use question; the others have specific state statutes. Neither a neighbor’s consent nor a building-permit exemption answers all three.

Start with the Maine fence guides by location for ordinary yard height, setbacks, materials and street visibility. Use this guide when the fence also marks a disputed boundary, encloses animals or a pool, requires postholes, or crosses land near a public road or water.

LOCAL PERMITS AND THE SEVEN-FOOT BUILDING-CODE THRESHOLD

Maine’s Uniform Building and Energy Code rules use the 2021 International Residential Code with Maine amendments for detached one- and two-family homes, qualifying townhouses and their accessory structures. Under Title 10, §9724, municipalities with more than 4,000 residents must enforce the uniform code. Municipalities with 4,000 or fewer are not required to enforce it and are limited in which building or energy codes they may adopt. That distinction concerns enforcement, not whether the town can regulate fence placement.

For work within the residential code, an ordinary fence not over seven feet is on the list exempt from a building permit under R105.2. The Maine residential amendments (Chapter 6) tie the basic permit requirement to municipal ordinance and allow further local exemptions. A retaining wall is a different item: the state amendment exempts a wall no more than four feet from finished grade to the top unless it supports a surcharge, or additional load. Have the building official classify a fence mounted on a retaining wall rather than assuming the two exemptions can be added together.

Under Maine’s zoning law, a municipality may regulate land use independently of building-code review. Ask whether the yard, corner, shoreland district or historic district has a lower height limit, setback or separate approval. In the Land Use Planning Commission’s jurisdiction, use its land-use districts and standards, not the ordinance of the nearest town.

BEFORE YOU DIG: MAINE DIG SAFE

A power auger used for fence posts is excavation under Title 23, §3360-A. For ordinary covered work, the excavator must notify Dig Safe at least three business days and no more than 30 calendar days before starting. The requirement applies to homeowners as well as contractors using power equipment. Identify utilities even if you intend to dig by hand.

  • Before the call: premark the proposed excavation in white, then call 811. Give direct notice to affected nonmember facility owners, too; an 811 ticket alerts member operators, not every owner of a buried line. Identify private service lines, including those to an outbuilding.
  • Before the auger: confirm the responses and marks. The Maine Public Utilities Commission’s safe-digging manual describes a tolerance zone extending from the outside of the facility: ordinarily 18 inches on each side for a member operator and 36 inches for a nonmember. A painted centerline is not the pipe edge, and paint does not establish depth. Follow the manual’s exposure and protection procedures before using machinery near a line.
  • If something does not match: stop in the affected area and contact the operator. Report damage immediately; do not conceal a nick or backfill before the operator clears it. For a gas release, move to safety and call 911.

NEIGHBORS, PARTITION FENCES AND FENCE VIEWERS

Under Title 30-A, §§2951–2952, a four-foot fence in good repair made from specified materials can count as a legally sufficient fence. Stone walls are included; a brook, ditch or hedge may serve where the fence viewers judge it equivalent. This is not a four-foot cap or a four-foot minimum for every house. The basic shared-duty rule concerns occupants of adjoining enclosed lands: while both continue to improve their enclosures, they maintain the partition fence in equal shares.

There is a distinct half-acre house-lot rule. Although the chapter generally excludes house lots no larger than half an acre, if the owner improves such a lot the adjacent owner must build and maintain half of the fence between them, even if that adjacent owner does not improve their own land. The statute also preserves written partition-fence agreements. Check the existing enclosure, agreement and use of both properties before assuming anyone owes half the price of a new fence chosen by one owner.

A maintenance dispute has a local procedure. When someone neglects a fence they are legally required to repair, the other party may apply to at least two town fence viewers. They give notice, inspect and, if they find the fence inadequate, issue a written repair direction with a deadline of no more than 30 days. The chapter sets additional steps for allocation, valuation and recovery; it is not an invitation to hire a crew first and then send the neighbor a bill. If a natural obstacle prevents construction on the line, §2958 provides a way for the viewers to determine where the fence runs. Do not move a boundary marker to fit it.

SPITE FENCES, EXISTING WALLS AND PRIVATE RIGHTS

Under Title 17, §2801, a fence or fence-like structure is a private nuisance if it unnecessarily exceeds six feet and is maliciously kept and maintained to annoy an adjoining owner or occupant. Height alone does not make a fence a spite fence. A local ordinance can still prohibit the same height without any showing about motive.

Locate both faces of a substantial wall before moving it. An old line may be evidence of past use without proving present ownership. Maine’s civil trespass law addresses damage caused by intentionally entering another person’s land without permission, including damaging a fence or gate. A recorded access easement, preservation restriction or subdivision covenant can also limit the work. Settle the survey or ownership question before dismantling the fence.

SWIMMING POOLS: THE STATE ENCLOSURE RULE

Title 22, §§1631–1634 covers outdoor artificial swimming or bathing pools designed for a water depth of 24 inches or more, whether in or above the ground. The statute requires a maintained enclosure. The fence or wall must be at least four feet above ground and constructed to keep children out.

  • Openings: the ordinary maximum opening is four square inches of area, not a four-inch gap in every direction. For vertical posts or louvers the alternative is a gap no wider than four inches, with no intermediate horizontal members between top and bottom plates. Doors and gates have their own treatment under the statute.
  • Access: part of a house or accessory building may form part of the enclosure. Doors and gates through it must be capable of secure fastening whenever not actually in use.
  • Portable pools: §1632 excepts portable aboveground pools with sidewalls at least 24 inches high. This is not an exemption for all aboveground pools or a substitute for checking the local ordinance and adopted pool code.

Section 1634 expressly permits municipal enclosure ordinances that are more restrictive, less restrictive or address different matters. Section 9724 also recognizes local adoption of specific model-code pool-fencing standards. Ask the local official to review the pool depth, sidewalls, house doors, gates and latches as one design. Do not buy a standard yard gate on the strength of the fence-height rule alone.

LIVESTOCK, ELECTRIC FENCES AND DOG ENCLOSURES

A working pasture fence has to contain the animals, not merely qualify as a partition fence. Maine’s animal-trespass law addresses unauthorized entry by animals, including failures to remove an animal after official notice and repeated incidents. If livestock keep crossing your property, document the incidents and contact animal control rather than opening a gate or taking an animal.

For energized wire, Title 17, §3956 requires a controller with the stated Underwriters Laboratories approval and label or the approved listing from the designated University of Maine System department. That equipment rule is not a right to install electric wire in a residential front yard.

A court can order an enclosure for a dog found dangerous. Under Title 7, §3952-A, that enclosure must be locked, at least six feet high, constructed to exclude young children and prevent escape, and have secure sides. A court may require a secure top and bottom as well. It is the court-ordered dangerous-dog enclosure, not every ordinary dog run, that has this state specification.

LAKES, THE COAST, WETLANDS AND FLOODPLAINS

Maine’s shoreland zoning law generally covers land within 250 horizontal feet of the normal high-water line of a great pond, river or saltwater body, or the upland edge of a covered wetland. It also reaches 75 feet from the high-water line of qualifying streams. Those distances identify regulated areas, not mandatory fence setbacks. Find the parcel on the municipal shoreland map or, within LUPC jurisdiction, the relevant zoning map. Show the proposed clearing as well as the posts: cutting vegetation to make room for a fence can matter even if very little soil will move.

A second review can arise under the Natural Resources Protection Act for permanent structures, excavation, fill or vegetation disturbance in, over or alongside specified protected resources. A local shoreland permit does not grant state approval, nor does a state permit grant local approval. In a mapped flood hazard area, check the community floodplain requirements before placing a solid panel, fill or a retaining wall where it might obstruct flow.

ROADS, RAILROADS AND HISTORIC PROPERTIES

Show the full right-of-way on the drawing, including the ditch, shoulder and any public drainage or maintenance access. A fence can be on the lawn side of the pavement and still be in the public way. Maine’s longstanding-fence statute can make a fence more than 20 years old evidence of the boundary of a public way when records or monuments cannot establish it; the statute treats ascertainable boundaries differently. It does not give permission for a new encroachment. Next to a rail line, state law separately prohibits taking down or intentionally damaging protective railroad fencing.

If an old fence is part of a designated property, identify the protection before replacing it. A recorded preservation interest may limit alteration or removal of fixtures such as fences. The local historic district and the individual deed matter; the age of a fence alone does not establish whether approval is necessary.

HIRING A CONTRACTOR

Maine does not issue a general statewide home-contractor license. Check references and insurance, and confirm the credentials of anyone doing regulated work, such as wiring a powered gate. Put the drawing, materials, gate operation, utility notice and permit responsibilities in writing. For a qualifying home-construction contract over $3,000 in labor or materials, the written-contract law generally requires both parties to sign and receive copies before work. The law defines the work by its connection to a residence; do not assume every standalone fence contract falls within it.

USING THIS INFORMATION

First establish the boundary and the authority for the parcel. Then take a sketch of the fence, grades and gates to the code office, with the location of any water, road, pool or underground line. If the fence is shared or ownership is disputed, check the agreement and survey before asking for bids. The Maine location guide is the starting point for local rules; this overview is not legal advice or parcel-specific approval. Reviewed November 2026.