Home › Massachusetts › Gloucester › Fences

Fence height rules in Gloucester, Massachusetts

Gloucester, Essex County · Bylaws checked 2026-10-15 · Reviewed · 7 cited sections

Allowed

Gloucester's zoning doesn't set a fence height limit or a setback for ordinary fences: fences up to 6 feet aren't treated as structures, so they can go in yards and along lot lines. A fence over 6 feet counts as a structure under zoning, corner lots must keep a 25-foot sight triangle clear between 2.5 and 8 feet high, and a fence along a public street needs lines and grades from the City Engineer first.

Fences treated as structuresOnly those over 6 ft [1]
Fences allowed in required yardsYes [2]
Corner-lot sight triangleNo obstruction 2.5-8 ft high within 25 ft of the corner [3]
Fence abutting a public streetApply to City Engineer for lines and grades at least 5 days before work [4]
Pool enclosureAt least 4 ft high, at least 5 ft from the pool, self-latching gates [5]
Floodplain overlayPermit required for fences [6]

Height and setbacks

The zoning ordinance has no stand-alone fence section. Instead, the definition of "structure" includes fences over 6 feet tall but says boundary walls and fences up to 6 feet are not structures [1]. Required yards must stay open and free of structures, but the definition of "yard" expressly allows fences and walls [2]. In practice, a fence of 6 feet or less can sit in front, side or rear yards and on the lot line. The ordinance doesn't say how a fence over 6 feet is handled; as a structure it may have to meet setbacks or be reviewed by the Building Inspector.

Corner lots

On a corner lot, or where a street meets a common driveway serving more than two lots, nothing between 2½ and 8 feet above the curb may block the view within a triangle measured 25 feet back along each street from the corner. That includes fences, walls, shrubs and signs [3]. In practice, keep fences in that triangle under 2½ feet or solid enough to see through.

Fences along a street

Before you put up or move a fence that abuts a public street, lane or alley, apply to the City Engineer for the street lines and grades at least five days before work starts. The engineer provides them free of charge [4].

Pools, flood zones and wetlands

A pool must be fully enclosed by a barrier at least 4 feet high, at least 5 feet from the pool, with self-latching gates [5]. In the floodplain overlay district, fences need a permit like any other development [6]. Installing or repairing a fence in a wetland buffer zone is exempt from the city wetlands ordinance's permit, provided the work meets its performance standards [7]; that exception covers only the local permit, not work in a wetland itself.

Permits

The sources don't require a city fence permit for an ordinary fence. Ask Inspectional Services before building anything over 6 feet.

See how Gloucester compares with 8+ other Massachusetts towns on fences →

Next steps

  1. Find your lot lines (a survey or recorded plan) so the fence stays on your side.
  2. If the fence will abut a public street, apply to the City Engineer for street lines and grades at least 5 days before you start.
  3. On a corner lot, keep the 25-foot sight triangle clear between 2.5 and 8 feet high.
  4. If you're in a flood zone or near wetlands, check with the Conservation Agent / Conservation Commission before installing.
  5. For a fence over 6 feet, check with Inspectional Services (978-325-5210) about setbacks and permits.

Common questions

Do I need a permit for a fence in Gloucester, Massachusetts?
Usually not for an ordinary fence: the sources don't require a city fence permit, and fences up to 6 feet aren't treated as structures under zoning. A fence abutting a public street needs lines and grades from the City Engineer at least five days before work, fences in the floodplain overlay need a permit, and you should ask Inspectional Services before building anything over 6 feet.
What is the maximum fence height in Gloucester, Massachusetts?
Gloucester's zoning doesn't set a fence height limit. Fences up to 6 feet aren't structures and can go in yards and on lot lines. A fence over 6 feet counts as a structure, and the ordinance doesn't say how it's handled; it may have to meet setbacks or be reviewed by the Building Inspector.
How far from the property line does a fence have to be in Gloucester, Massachusetts?
There's no setback for ordinary fences. Required yards must stay free of structures, but the ordinance expressly allows fences and walls in yards, so a fence of 6 feet or less can sit on the lot line. On corner lots, nothing between 2.5 and 8 feet high may block the 25-foot sight triangle at the corner.
What are the pool fence requirements in Gloucester, Massachusetts?
A pool must be fully enclosed by a barrier at least 4 feet high, set at least 5 feet from the pool, with self-latching gates.

Massachusetts state rules on fences

Most fence rules in Massachusetts are local, set in your town's zoning bylaw and sometimes historic-district rules. A few state laws apply everywhere:

  • Building permit: the State Building Code (780 CMR, 10th edition) does not require a building permit for fences 7 feet high or less. Taller fences need one. Zoning height limits and setbacks still apply, and many towns cap fences at 6 feet.
  • Spite fences: under M.G.L. c. 49, §21, a fence that unnecessarily exceeds 6 feet and is maliciously put up or kept to annoy a neighbor is a private nuisance. The neighbor can sue for damages.
  • Fence viewers: every town must appoint fence viewers each year (c. 49, §1). Where adjoining owners both enclose and use their land, they share the upkeep of the partition fence equally unless they agree otherwise. If one side won't repair their share, the other can complain to the fence viewers, who can order the repair (c. 49, §§3–4). By statute, a "legal and sufficient" fence is 4 feet high and in good repair (c. 49, §2).
  • Pool fences must meet the state pool barrier rules (see Pools).
  • Wetlands: fence work in a wetland or within 100 feet of one may need Conservation Commission review.

State sources: M.G.L. c. 49, §21 (spite fences) · M.G.L. c. 49, §1 (fence viewers) · M.G.L. c. 49, §2 (legal and sufficient fences) · M.G.L. c. 49, §3 (partition fence maintenance) · M.G.L. c. 49, §4 (fence viewer proceedings) · 780 CMR 10th ed., Residential Chapter 1, R105.2 (work exempt from permit)

What the bylaw says

Exact text from Gloucester's published bylaws. Section numbers are as printed in the source.

  1. Section VI - Definitions, Structure, Zoning Ordinance Section VI - Definitions
    Structures include buildings, mobile homes, billboards, fences that exceed six (6) feet in height, swimming pools, tanks, or the like, or part thereof; boundary walls and fences not exceeding six feet in height are not considered to be structures.
  2. Sec. 3.1.8, Yard, Zoning Ordinance Section III - Dimensional Regulations
    An open space unoccupied and unobstructed by any structure or portion of a structure from the ground upward, except for fences, walls, low profile cellar bulkheads and other customary yard accessories;
  3. Sec. 3.1.7 Visibility at Intersections, Zoning Ordinance Section III - Dimensional Regulations
    On a corner lot, as defined at Section 3.1.8, or on a lot which is located at the intersection of a street and a common driveway serving more than two lots, no visual obstruction between 2 ½ and eight feet above the lowest elevation at the curb line shall be permitted within the area of a triangle formed on two sides by the intersecting ways and on the third side by a line drawn between points on each of said intersecting ways 25 feet from the corner. For the purpose of this section, the word "visual obstruction" shall mean any shrub, tree, wall, fence, sign, temporary building, pile of material, terrace or retaining wall, but shall not include permanent buildings or structures otherwise in compliance with this ordinance.
  4. Sec. 5-1, Code of Ordinances Chapter 5 - Buildings and Building Regulations (Art. V Short-Term Rentals, Secs. 5-63 ff.; Sec. 5-2 pool fencing)
    No person shall proceed to erect or make any alterations in the location or grade of any fence, wall or building, a part of which is to abut upon a public street, lane, square or alley, without first applying to the city engineer for the lines and grades of the street, lane, square or alley upon which he intends to build. Any such application shall be made at least five days before the work is begun, and the city engineer shall, within the time named, furnish the required lines and grades without charge, if in his power so to do.
  5. Sec. 5-2(a), Code of Ordinances Chapter 5 - Buildings and Building Regulations (Art. V Short-Term Rentals, Secs. 5-63 ff.; Sec. 5-2 pool fencing)
    Any such enclosure, including gates therein, must be not less than four feet above the underlying ground. All gates must be self-latching with latches placed four feet above the underlying ground or otherwise made inaccessible from the outside to small children. Any such enclosure shall be located at least a distance of five feet away from the pool.
  6. Sec. 5.5.6 Permit Requirements, Zoning Ordinance Section V - Special Regulations (5.3 Home Occupations, 5.5 Floodplain Overlay, 5.24 ADUs, etc.)
    The City of Gloucester requires a permit for all proposed construction or other development in the floodplain overlay district, including new construction or changes to existing buildings, placement of manufactured homes, placement of agricultural facilities, fences, sheds, storage facilities or drilling, mining, paving and any other development that might increase flooding or adversely impact flood risks to other properties.
  7. Sec. 12-13 Exceptions, Code of Ordinances Chapter 12 - Marshlands (Art. II Wetlands, Secs. 12-10 to 12-28)
    Installation or repair of fences;
This page summarizes Gloucester's posted bylaws as of 2026-10-15. Bylaws are amended, and individual lots can have overlays, subdivision covenants, or HOA rules that are stricter. Confirm with Inspectional Services (Building Commissioner), 3 Pond Road (978-325-5210) before you build. Spot an error?