Home › Massachusetts › Topics › Swimming Pools
Swimming Pools in Massachusetts: rules in 43 towns compared
What are the rules for putting in a pool? Here's how each town answers it. Click a town for the details and the exact bylaw text.
Last reviewed
Quick answer: it depends on the town. Of the 43 Massachusetts towns we cover, 41 allow it with a permit, 1 allows it with board review and 1 has no specific rule. Statewide rules apply everywhere; see the statewide rules section below.
This page is for Massachusetts homeowners planning an in-ground or above-ground pool, spa or hot tub. Under the State Building Code (780 CMR, 10th edition), residential pools must meet the 2021 International Swimming Pool and Spa Code as adopted in Massachusetts. You need a building permit for any pool except a prefabricated pool under 24 inches deep, and plans for an in-ground pool must be prepared by a registered design professional. The barrier must be at least 48 inches high, with gates that open outward from the pool and are self-closing and self-latching, and an in-ground pool site needs temporary fencing at least 4 feet high during construction. Your town's zoning still controls setbacks, and wetlands rules may apply near water.
All 23 towns we cover for this topic allow residential pools. Several set a taller fence than the state minimum: 6 feet in Wellesley and Hingham, and 5 feet in Wayland, Winchester and Scituate. In Weston, Concord, Sudbury, Lincoln and Chatham a pool must meet the same setbacks as a house, while Needham and Swampscott apply smaller accessory-structure setbacks of 5 feet from side and rear lines. Dover, Hingham and Cohasset also require Board of Health approval, mainly to keep pools clear of septic systems, and Manchester-by-the-Sea requires a Zoning Board of Appeals special permit for a pool in every residence district. Pick your town below for the details and the bylaw text.
Town-by-town comparison
| Town | Verdict | Short answer |
|---|---|---|
| Wellesley | Allowed with a permit | Yes, with a building permit. Wellesley's Zoning Bylaw requires a pool to be at least 30 ft from any street line and at least 10 ft (up to 30 ft, depending on how far the pool sits above grade) from other property lines, and it must be enclosed by a fence at least 6 ft high with self-latching gates. |
| Weston | Allowed with a permit | Yes, with a building permit. Weston's Zoning By-law treats a swimming pool plus a 5-ft apron around the water as a "structure," so the pool and apron must meet the same setbacks as a house: 20 to 45 ft from lot lines, depending on district. Pool lights must be off by 11:00 p.m., and barrier fencing follows the state building code. |
| Lexington | Allowed with a permit | Yes, with a building permit from Lexington's Building Commissioner. A swimming pool must be at least 20 feet from every lot line (or farther, if the district's building setback is greater), measured to the water's edge, and must have screening at least 5 feet high around it. |
| Concord | Allowed with a permit | Yes. Private pools are allowed in all residential districts but must meet the same setbacks as the house: 15 ft from side lines, the lesser of 30 ft or 25% of lot depth from the rear, and a 20–40 ft front yard depending on the district. A building permit and safety barrier are required under the state building code. |
| Brookline | Allowed with a permit | Yes, with a building permit. Under the version of Brookline's Zoning By-Law we reviewed (effective 2018), a swimming pool is allowed in every district except in the required front yard. A pool in a required side or rear yard needs a Board of Appeals special permit unless it is screened by a planted strip at least 4 feet wide that will form a dense year-round screen at least 6 feet high within three years. |
| Needham | Allowed with a permit | Pools are allowed with a permit from the Building Commissioner. Under Needham's Zoning By-Law, a pool 2 ft or deeper or with at least 100 sq ft of water surface counts as a structure, so as an accessory structure it must be at least 5 ft from side and rear lot lines and 10 ft from other buildings. Pools don't count toward lot coverage, and barrier and fence rules come from the state building code. |
| Dover | Allowed with a permit | Yes, with a Board of Health permit. A pool (or in-ground outdoor hot tub) must be at least 20 feet from any foundation and from any part of the septic system, it must meet zoning setbacks as a structure, and a fence or barrier at least 4 feet high with a self-closing, self-latching gate must surround it completely. |
| Sudbury | Allowed with a permit | Yes, with a building permit from the Building Inspector. A private pool in a residential district must meet the same setbacks as a house: in Residence A and C that's 40 feet from the front line, 20 feet from the sides and 30 feet from the rear. The pool enclosure must meet the State Building Code. |
| Wayland | Allowed with a permit | Yes. A swimming pool is an allowed accessory use in the Single Residence District with a building permit, and every pool needs a barrier: Wayland requires a fence at least 5 feet tall, and a safety cover doesn't count. Pool setbacks follow the accessory-structure rules in §198-703.1. |
| Lincoln | Allowed with a permit | Lincoln has no pool-specific bylaw, but its zoning bylaw counts swimming pools as structures. A pool must be at least 50 feet from the street line and at least 20 feet from side and rear lot lines. Pools are barred from any vegetated wetland buffer strip the Conservation Commission requires. Permits and fence or barrier rules come from the state building code (shown separately). |
| Belmont | Allowed with a permit | Yes. Private swimming pools are allowed in Belmont's Single Residence and General Residence districts, and the Zoning By-Law requires them to comply with the State Building Code, which means a building permit and a 48-inch safety barrier. Pools count as structures, and the setback rules for accessory buildings (5 ft from side and rear lines) likely apply. |
| Winchester | Allowed with a permit | Yes. Uncovered swimming pools are allowed in Winchester's residential districts, but no part of the water or pool equipment may be in a required yard, the water must be at least 10 ft from any building, and the pool must be fully enclosed by a fence at least 5 ft high with self-latching gates. You can't fill it until a Certificate of Occupancy is issued. |
| Andover | Allowed with a permit | Private pools are allowed in Andover in rear and side yards, but not front yards. They must be at least 10 feet from the rear property line and meet the district's side-yard setback (20, 25 or 30 feet in SRA, SRB and SRC). Near wetlands, pools and pool decks need at least 35 feet from the resource area. State code requires a building permit and a 48-inch barrier. |
| Hingham | Allowed with a permit | Yes, but Hingham's Board of Health must approve any residential pool in writing before you build it and inspect it before use. Any pool 2 feet deep or more needs a durable fence at least 6 feet high with a self-latching gate. Zoning has no pool-specific setback, but treated as a structure a pool must meet the district yard setbacks (for example 15 ft side/rear in Residence A, 20 ft in Residence B, C and E). |
| Cohasset | Allowed with a permit | Under the Board of Public Health's pool regulations (adopted Sept. 20, 2022), you need the Board's approval of your plans before building any residential pool, and an inspection before using it. The pool must be enclosed by a fence at least 4 feet high with a self-latching gate, and kept at least 10 feet from a septic tank or the house foundation (20 feet from a cesspool or leaching field). We couldn't get Cohasset's zoning bylaw, so property-line setbacks are unknown; ask the Building Department. |
| Duxbury | Allowed with a permit | Yes, with a permit. In Duxbury's main residential district a pool must be at least 10 feet from side and rear lot lines and meet the front setback: 25 feet from the street line, or 45 feet from the centerline of a narrower road. Near wetlands, the Conservation Commission won't allow a pool, including its grading and patio, within 50 feet of a wetland resource area. |
| Manchester-by-the-Sea | Allowed with board review | A swimming pool at a home in Manchester-by-the-Sea needs a special permit from the Zoning Board of Appeals in every residence district. Pools 2 feet or more deep (200+ cubic feet) count as structures and must meet accessory-structure setbacks, and every private pool must be enclosed by a fence at least 4 feet high. |
| Chatham | Allowed with a permit | Yes. Chatham's zoning bylaw allows a swimming pool as an accessory use in all residential districts, but the pool, its enclosure and its pump equipment must meet the full building setbacks for your district. New pools are prohibited within 50 feet of a wetland without a Conservation Commission variance, and you'll need a building permit and a state-code safety barrier. |
| Falmouth | Allowed with a permit | Yes. Falmouth's zoning treats a pool more than 24 inches deep as a structure, so it must be at least 10 feet from side and rear lot lines and 25 feet from the street. It can't go in the front yard without a Zoning Board of Appeals special permit. You'll also need a building permit and a state-code pool barrier. |
| Scituate | Allowed with a permit | Yes, with a building permit for both in-ground and above-ground pools. Scituate's general bylaw requires every private pool covered by the building code to be enclosed by a non-climbable fence at least 5 feet high with self-closing, self-latching gates, and the Building Department says pools must stay 8 feet from the rear line and 8 or 15 feet from side lines depending on your zone. |
| Swampscott | Allowed with a permit | Swampscott's zoning bylaw treats pools and self-contained spas like accessory structures for setbacks: at least 5 feet from side and rear lot lines (or half the district's required setback, if larger) and no closer to the street than the front setback. Unlike sheds, there's no minimum distance from the house. Building permits and the safety barrier rules come from the State Building Code. |
| Hamilton | Allowed with a permit | Yes, with a building permit. Hamilton's bylaw requires any outdoor pool deeper than 18 inches to be enclosed by a fence or wall at least 4 feet high with a self-closing, self-latching gate. The Building Department's pool handout says the pool and any structural deck must be at least 20 feet from side and rear lot lines, 25 feet from the front lot line and 12 feet from the house. |
| Carlisle | Allowed with a permit | Yes. Carlisle's zoning bylaw lists a swimming pool as an allowed accessory use in residential districts, and it has no separate pool bylaw. You'll need a building permit; the bylaw's setbacks are written for buildings (40 feet from the street, and 40 feet from side and rear lines in most of town, 20 feet near the town center), so confirm with the Building Commissioner how they apply to your pool. Fencing follows the state building code. |
| Plymouth | Allowed with a permit | Plymouth has no pool-specific bylaw. The zoning bylaw requires a zoning permit before any structure is built, an above-ground pool 3 feet or taller must stay out of required yards, and on a septic lot an in-ground pool must be at least 10 feet from both the septic tank and the leach field. Pool fencing and barrier rules come from the state building code, not a local bylaw. |
| Worcester | Allowed with a permit | Yes. In Worcester's residential districts a private pool can go in the rear yard if it's at least 6 feet from the property lines and enclosed by its own 4-foot fence. Like other accessory structures, it can't be in the front yard or over 15 feet tall, and it needs a building permit under the state building code. |
| Salem | Allowed with a permit | Yes. Pools are allowed in Salem but must be at least 6 feet from side and rear property lines (closer only by Zoning Board of Appeals special permit) and meet the front-yard setback for houses. Every pool must be surrounded by a permanent fence or wall at least 4 feet high with a self-closing, locking gate, and must meet the State Building Code. |
| Cambridge | Not specifically regulated | Cambridge's Zoning Ordinance articles we reviewed don't have specific rules for residential swimming pools or hot tubs. The state building code still requires a building permit and a barrier at least 48 inches high, and the work must comply with zoning. |
| Dennis | Allowed with a permit | Dennis's zoning bylaw has no separate pool section. A residential pool appears to be treated as an accessory structure, so it would need to meet the district's setbacks (15 ft side and 25 ft rear in most districts, 30 ft side and rear in R-60), count toward lot coverage, and not sit in front of the house. You'll need a building permit and must meet the state pool-barrier rules; confirm the setbacks with the Building Department. |
| Burlington | Allowed with a permit | Yes. A swimming pool is an accessory use allowed by right in Burlington's RO single-family district. In RO it can't go in the required front or side yards, and accessory uses can cover no more than 20% of the rear yard; the building permit and pool barrier rules come from the state building code. |
| Yarmouth | Allowed with a permit | Pools are allowed with a building permit, but Yarmouth's zoning bylaw has no pool-specific section or pool setback. It counts a pool holding 4,000 gallons or more as a "structure" and says required yards must be free of structures, so our reading is that such a pool must meet the district's yard setbacks (30 feet front and 20 feet side and rear in the R-40 and RS-40 districts); confirm with the Building Department. Separately, the Conservation Commission's 2026 regulations bar any new pool within 50 feet of a wetland, pond, beach or other wetland resource area. |
| Medford | Allowed with a permit | Yes, in the rear yard. On a residential lot over 4,500 sq ft, Medford's zoning allows a pool by right; on a smaller lot you need a special permit from the Zoning Board of Appeals. The water's edge must be at least 6 feet from side and rear lot lines and pump equipment at least 12 feet, and a building permit and a 48-inch barrier are required under state code. |
| Gloucester | Allowed with a permit | Yes. A private pool is an allowed accessory recreational use in residential districts, but it can't sit in the required setbacks, and every in-ground or above-ground pool must be enclosed by a fence at least 4 feet high, at least 5 feet from the pool, with self-latching gates. Above-ground pools with walls 5 feet or higher don't need a separate fence, but the access needs a gate. |
| Walpole | Allowed with a permit | Pools are allowed as accessory structures in Walpole. The zoning bylaw lets in-ground and above-ground pools sit inside the side and rear setbacks as long as the pool edge (or, for an above-ground pool, the edge of its elevated deck) is at least 6 feet from the lot line. Pool barrier and building permit rules come from the state code shown on this page. |
| Acton | Allowed with a permit | Yes, with a building permit from the Acton Building Department for any pool holding water over 24 inches deep, including in-ground, above-ground, hot tubs and spas. Pools must meet zoning yard setbacks (for example 30 ft front and 10 ft side/rear in R-2), plus wetland and septic setbacks, and Board of Health rules call for a 4-foot fence with a lockable gate. |
| Natick | Allowed with a permit | Yes, with a Board of Health permit. Natick's pool rules (last amended in 2003) require the pool to be at least 10 feet from side and rear lot lines and from buildings, and 20 feet from any septic component. A permanent fence at least 5 feet high with self-closing, self-latching, locked gates must go up within 30 days of installation. Electrical and building inspections are also required before you fill the pool. |
| Westford | Allowed with a permit | Yes, with a building permit from the Building Department for both in-ground and above-ground pools. Westford treats pools as accessory structures that must meet zoning setbacks (15 ft side and 30 ft rear in Residence A and B), stay 10 ft from other structures, and keep clear of septic components; a safety fence is required. |
| Canton | Allowed with a permit | Yes, with a building permit. In Canton's residential districts a pool must be at least 10 feet from side and rear property lines and no closer to the street than the house setback. Any outdoor pool that can hold more than 24 inches of water must be fully enclosed by a fence or wall at least 4 feet high with self-closing, self-latching gates. In-ground pools also need Conservation Commission sign-off. |
| Sandwich | Allowed with a permit | Yes, with a building permit. In Sandwich, a pool can't go in front of the house and must be at least 10 feet from side and rear property lines and 12 feet from the house, deck, shed or other structures. An in-ground pool must also be 20 feet from the septic leaching area. Pool fencing follows the Massachusetts State Building Code, and the permit fee is $0.45 per square foot. |
| Wakefield | Allowed with a permit | A private pool is an allowed accessory use at a Wakefield single-family home if it's completely enclosed by a fence or barrier with self-latching gates. A pool over 24 inches deep can't be within 30 feet of any street line, in a required side yard, or within 7.5 feet of the rear lot line. Barrier height follows the State Building Code (at least 48 inches), and the building permit application needs a plot plan and drawings. |
| Mashpee | Allowed with a permit | Private pools are allowed in every Mashpee zoning district but need a building permit ($150 in-ground, $100 above-ground, plus a $75 electrical permit). Every private outdoor pool must be fenced to the State Building Code under General Bylaw §153-1. Zoning applies its setbacks to accessory uses (40 ft front, 15 ft side and rear in R-3 and R-5), and the 50-ft setback from water and wetlands for structures likely applies too; confirm with the Building Commissioner. |
| Rockport | Allowed with a permit | Yes, with a building permit from Rockport's Inspectional Services. Under the zoning bylaw a pool counts as an accessory building for side and rear setbacks, so it must be at least 10 feet from side and rear lot lines, and the front-yard setback applies too. Fencing and barrier rules come from the state building code. |
| Bourne | Allowed with a permit | Yes, but in Bourne you need permits from both the Building Department and the Health Department for any pool 24 inches or deeper, 250 sq ft or larger, or with a permanent filter system. Every new or altered pool needs a barrier at least 48 inches high with self-closing, self-latching gates, and the pool can't be filled until the Building Inspector has inspected the fence. |
| Reading | Allowed with a permit | Yes, with a building permit for any pool 24 inches deep or more, an electrical permit, and Conservation Commission approval for any size pool. Zoning lets a pool of any size go outside the required side and rear yards. Inside those yards, it's limited to the greater of 600 sq ft or 25% of the house's floor area. Hot tubs always need a permit and must be 10 feet from the house and 5 feet from property lines. |
Massachusetts building code rules for pools
Under the State Building Code (780 CMR, 10th edition), residential pools, spas and hot tubs must meet the 2021 International Swimming Pool and Spa Code (ISPSC) as adopted in Massachusetts.
Permits:
- A building permit is needed for any pool except prefabricated pools under 24 inches deep.
- Plans for in-ground pools must be prepared by a registered design professional (an engineer or architect).
- Wiring must meet the Massachusetts Electrical Code (527 CMR 12.00), and gas pool heaters must meet the state plumbing and gas code (248 CMR).
Barrier (fence) requirements (ISPSC §305):
- The barrier must be at least 48 inches high, measured on the side away from the pool.
- The gap under the barrier can be no more than 2 inches over grass or gravel, or 4 inches over concrete.
- Pedestrian gates must open outward away from the pool, be self-closing and self-latching, and be able to take a lock.
- If a house wall forms part of the barrier, doors and low windows opening to the pool need an audible alarm (or another listed option).
- In-ground pool construction sites need temporary fencing at least 4 feet high from excavation until the permanent barrier is up.
- Spas and hot tubs with a lockable safety cover meeting ASTM F1346, and pools with a powered safety cover meeting that standard, are exempt from the barrier rules.
Local zoning still controls pool setbacks, and wetlands rules may apply near water.
Common questions about pool rules in Massachusetts
- Do you need a permit for an above ground pool in Massachusetts?
- Usually yes. The State Building Code requires a building permit for any pool except a prefabricated pool under 24 inches deep. Some towns also require Board of Health approval or a zoning special permit, so check with your town.
- Do you need a fence around a pool in Massachusetts?
- Yes. Residential pools need a barrier at least 48 inches high under the state code, unless a qualifying exemption applies, such as a spa or hot tub with a lockable ASTM F1346 safety cover or a pool with a powered safety cover meeting that standard. Some towns require a taller fence.
- What are the pool fence requirements in Massachusetts?
- The barrier must be at least 48 inches high, with a gap underneath of no more than 2 inches over grass or gravel or 4 inches over concrete. Gates must open outward away from the pool, be self-closing and self-latching, and take a lock. Several towns we cover require a 5- or 6-foot fence.
- How far does a pool have to be from the property line in Massachusetts?
- It depends on your town. The state code doesn't set pool setbacks; local zoning does. Some towns treat a pool like the house and apply full building setbacks, while others use smaller accessory-structure setbacks. Wetlands buffers and septic-system distances can also apply.
- Does an in-ground pool need engineered plans in Massachusetts?
- Yes. Plans for an in-ground pool must be prepared by a registered design professional, such as an engineer or architect. Wiring must meet the Massachusetts Electrical Code, and gas pool heaters must meet the state plumbing and gas code.
Other topics
ADU rules · Chicken laws · Short-term rentals · Fence rules · Shed permits · Burn permits & fire pits · Home businesses · Wetlands rules · Docks & piers