The Maine Agenda › Live in Maine
Fence Rules by Town in Greater Portland, Maine
You want to put up a six foot cedar fence along the side of your yard. You do the sensible thing and search for the rule. Within about ninety seconds you have been told that your front yard limit is three and a half feet, that your side yard limit is eight feet, and that your neighbor is legally obligated to pay half.
All three of those are wrong for most of Greater Portland, and the third one is wrong in a way that can cost you real money.
The three and a half foot figure is Portland, Oregon. The eight foot figure is also Portland, Oregon. The cost sharing claim comes from Maine's actual partition fence statute, which contains a sentence almost nobody quotes, and that sentence excludes most suburban house lots in this region.
Here is what the ordinances and the statutes actually say, read from the primary documents in August 2026.
The thing that explains almost everything: a fence is usually not a structure
Zoning ordinances work by regulating structures. Structures have height limits, setbacks, lot coverage math and permit requirements attached to them. So the natural assumption is that a fence, being a thing you build, picks up all of that machinery.
In most of Greater Portland it does not, because the ordinance goes out of its way to say a fence is not a structure.
Scarborough's Chapter 405 defines a structure as "Anything constructed or erected, except a boundary wall or fence." Gorham's Land Use and Development Code says the term structure "shall not include: 1. boundary walls, fences." Windham's Chapter 120 excludes fences by name. Yarmouth's Chapter 701 says flatly that "Structure does not include fences." Freeport's Chapter 21 defines a structure as a combination of materials "excluding walls, fences." Falmouth's Chapter II-19 says "The term structure shall not include: a boundary wall or fence."
That is six of the eleven towns, using nearly identical language, and the consequence is the same in each: the setback table never reaches your fence, and neither does the height table, because there is no height table for a thing the ordinance has defined itself out of regulating.
This is why the question "how tall can my fence be in Falmouth" has no clean answer. It is not that the town is being cagey. It is that the ordinance does not ask.
What does vary, sharply, is the permit threshold. That is the number worth knowing, and it ranges across this region from seven feet down to zero.
Settle into Maine. Free.
Neighborhoods, real costs, and the community worth knowing about for anyone making a life here.
No edition has gone out yet. Sign up and you are on the first one. No spam, unsubscribe anytime.
The permit threshold, town by town
Portland is the only town in the group with a real front yard height rule, and it is four feet, not three and a half. Land Use Code Section 7.5.4(A): "In residential zones, no wall or fence within 15 feet of the street shall be more than four feet in height, unless said fence is located in the side or rear yard." Note the trigger is distance from the street, not the front property line. Side and rear yards get no codified height cap at all. What Portland does have is a permit threshold of seven feet, plus a permit for a fence of any height on a historic listed property or in a historic district. Setbacks do not apply: Section 7.6.5(A)(1) exempts fences, retaining walls and similar structures outright.
South Portland does something nobody else here does. It regulates by how solid the fence is and how close to the line it sits. Chapter 27, Section 27-1516(l): the height of solid fences "shall not exceed six (6) feet unless located more than five (5) feet from any property line. The maximum height of any fence shall be seven (7) feet." So a solid stockade fence on the line tops out at six. Pull it five feet in and you can go to seven. The city's code enforcement FAQ sets the permit line at six feet.
Cape Elizabeth is the most generous and the most precisely drafted. Section 19-7-12(A) allows eight feet: "The height of a fence located within 5' of the property line in or adjacent to the Residence A, B or C zoning districts shall not exceed eight feet (8') in height." The ordinance only reaches a fence at all if it is more than twelve inches high and within five feet of a lot line, which means an interior dog run or pool enclosure is simply outside its scope. Posts, columns, gates and arbors may exceed the limit by up to twelve inches. A nonconforming fence may stay, but a replacement must comply.
Scarborough exempts anything seven feet or under. From the town's codes FAQ: "Fences seven feet high or less do not require a permit. They do not need to meet structure setbacks, but should be located so that they can be maintained without trespassing on abutting properties." Above seven feet you are into permitting, possible setbacks, and possibly a design professional depending on materials.
Cumberland draws the same seven foot line, and its code office answers the property line question directly: "If the fence is not greater than 7 feet high, a permit is not required. A fence may be erected on the property line. However, we recommend you allow enough room between the fence and your property line to tend to any maintenance needed on the outer side of the fence." That seven foot figure comes from the town's own published FAQ rather than from the Chapter 315 text, which is worth a confirming phone call before you build to it.
Windham exempts "Fences not over six feet (1,829 mm) high" from the building permit under Chapter 28, Section 28-2(B)(2). Read the caveat attached to that whole subsection, because it matters: exemption from a permit "shall not be deemed to grant authorization for any work to be done in any manner in violation of" other ordinances. A permit exemption is not a zoning blessing.
Westbrook is the outlier, and it is the one most likely to catch somebody out. Chapter 335, Section 335-14.2 lists the activities requiring a building permit and item (8) is "Installation of a fence." No height qualifier. In Westbrook, a three foot picket fence needs a permit.
Falmouth, Yarmouth and Freeport have no general residential fence height limit in their zoning ordinances, for the structural reason above. Each has an overlay that bites in a specific place. Falmouth's Village Center design standards, Section 19-11.5.7, say "Fences shall not exceed a height of six feet unless approved by the permitting authority," and that applies in the Village Center, not townwide. Yarmouth requires historic preservation review for fencing visible from the street or public open space inside a Historic District. Freeport requires a Design Review Certificate in its Design Review Districts for new or materially changed fences visible from a public right of way, and exempts "Fences less than five feet (5') in height and constructed of wood." So in downtown Freeport, a four foot wood fence is fine and a four foot vinyl one needs a certificate.
Gorham we could not fully read, and we are going to say so rather than round it off. Fences are excluded from the definition of structure, and no fence permit appears among the twenty permit types on the town's permit applications page, but the code enforcement FAQ document would not render for us and we could not find an affirmative statement either way in the code text we could read. Call Gorham Code Enforcement at 207 222 1605 before you build. That is a limit on what we could read, not a finding about what Gorham publishes.
The sight triangle is the rule that actually catches people
If you live on a corner, this is the provision that will get you a letter, and it applies regardless of the height rules above.
Portland: nothing over three and a half feet above curbline elevation inside a triangle formed twenty five feet from the corner, unless Public Works reviews it and finds it is not a hazard. Cape Elizabeth: three and a half feet within a triangle drawn twenty feet from the intersection, on a corner lot in any district. South Portland: three feet above the curb grade plane within twenty feet of the intersection point, and the rule catches vegetation too, not just fences. Scarborough defines a Vision Triangle to be kept clear of anything over thirty inches.
Four towns, four different numbers, and every one of them is lower than the fence you were planning.
What Maine state law adds, including the sentence that changes the cost question
Two statutes sit on top of whatever your town says.
The spite fence law. Title 17, Section 2801: "Any fence or other structure in the nature of a fence, unnecessarily exceeding 6 feet in height, maliciously kept and maintained for the purpose of annoying the owners or occupants of adjoining property, shall be deemed a private nuisance." Two elements have to be present. Over six feet, and malice. A tall fence built for privacy is not a spite fence. A tall fence built to punish is, and Maine's courts have applied the same reasoning to dense plantings along a boundary.
The partition fence law, and its exclusion. Title 30-A, Chapter 133 is the reason every national legal directory tells Maine readers that adjoining owners split fence costs equally. The chapter is real. It sets a "legal and sufficient" fence at four feet high and in good repair. It gives every town fence viewers, who are municipal officers with genuine authority: under Section 2953, an aggrieved neighbor can complain to two or more fence viewers, who survey the fence, and if they find it insufficient they order the delinquent owner to repair it within a period they judge reasonable, not exceeding thirty days. If the owner still does not, the complainant may build it and recover.
Then Section 2964 says this: "Nothing in this chapter extends to house lots, the contents of which do not exceed half an acre."
Half an acre is 21,780 square feet. Portland's RN-3 zone has a minimum lot size of 5,000 square feet. RN-2 is 6,000. RN-1 is 6,500. The overwhelming majority of house lots in Portland, South Portland, Westbrook and the older village centers of every town on this list are well under half an acre, and for those lots the cost sharing chapter does not apply at all. Your neighbor owes you nothing toward a boundary fence, and no fence viewer is coming.
If your lot is over half an acre and your neighbor's land is improved, the chapter does reach you, and the shared maintenance obligation is real. Written agreements between neighbors also survive: the same section says nothing in the chapter voids a written agreement about a partition fence. If you are splitting a fence with a neighbor, put it in writing, because the statute you were counting on probably does not cover your lot.
What we could not confirm
Nobody in this region appears to require the finished side of a fence to face your neighbor. We searched the full text of all eleven ordinances for "finished side," "good side" and equivalent language and found nothing. That is a search that came back empty rather than a rule that says you may point the posts outward, and a deed restriction or homeowners association covenant can impose it even where the town does not.
Front, side and rear height figures for Gorham, Westbrook and Windham are unread. Windham's corner lot section, 120-534, we could not retrieve; a web summary circulating for Windham blends text from other municipalities' codes and should not be trusted. Shoreland zoning overlays and historic district design standards can add requirements in every town here and were outside this review.
Before you build, call your town's code office. That is a five minute call, and in Westbrook it is the difference between a permitted fence and a violation.
The practical order of operations
Find your property line first, from a survey rather than from the lawn. Every town here lets a fence sit on or near the line, and every town also expects you to keep it on your own land, which means the line has to be a fact and not a guess. Cumberland's advice is the most useful of the group: leave yourself enough room to maintain the far side without walking on your neighbor's grass.
Then check the corner rule if you are on a corner, then the permit threshold, then the overlay districts. Height, the thing everyone starts with, is usually the last constraint that binds.
This is a plain language summary of published ordinances and statutes, not legal advice. It is also, like noise ordinances and short-term rental rules, a case where the town line matters more than the state line. If you are weighing where to buy, these rules belong in the comparison next to property taxes by town, and if you are planning a bigger project than a fence, the state rewrote the accessory apartment rules for 2026 in ADU rules by town.
FAQ
How tall can a fence be in Portland, Maine?
Four feet within fifteen feet of the street in residential zones, under Land Use Code Section 7.5.4(A). Side and rear yards have no codified height cap, but a building permit is required for any fence over seven feet, and for a fence of any height on a historic listed property or in a historic district.
Do I need a permit to build a fence in Greater Portland, Maine?
It depends entirely on the town. Westbrook requires a permit for any fence at any height. Windham and South Portland set the threshold at six feet. Portland, Scarborough and Cumberland set it at seven feet. Cape Elizabeth has no fence specific permit because its ordinance excludes fences from the definition of a structure.
Does my neighbor have to pay half the cost of a boundary fence in Maine?
Usually not, in a suburban neighborhood. Maine's partition fence law, Title 30-A Chapter 133, does impose shared maintenance on adjoining owners, but Section 2964 states that nothing in the chapter extends to house lots of half an acre or less. Most house lots in Greater Portland are under half an acre, which puts them outside the chapter entirely.
What is a spite fence in Maine?
Under Title 17, Section 2801, a fence or fence like structure unnecessarily exceeding six feet in height, maliciously kept and maintained to annoy the owners or occupants of adjoining property, is a private nuisance. Both elements are required. Height alone is not a spite fence without the malice, and Maine courts have applied the same test to dense boundary plantings.
Can I put a fence directly on the property line?
Yes in every town reviewed here. Fences are exempt from setbacks in Portland under Section 7.6.5(A)(1), do not need to meet structure setbacks in Scarborough at seven feet or under, and may be erected on the line in Cumberland. Every town expects the fence to be entirely on your own land, so the line needs to come from a survey.
Why do fence rules for Portland, Maine keep showing three and a half feet?
Because those results are Portland, Oregon, whose code limits fences in front setbacks to three and a half feet and allows eight feet in side and rear setbacks. Portland, Maine uses portlandmaine.gov; portland.gov is Oregon. The correct Maine figure is four feet within fifteen feet of the street.
What is a fence viewer?
A municipal officer created by Title 30-A, Chapter 133. Two or more fence viewers can be asked to survey a boundary fence, determine whether it is legal and sufficient, and order a delinquent owner to repair it within a reasonable period not exceeding thirty days. The office only has jurisdiction where the chapter applies, which excludes house lots of half an acre or less.