Iron Railings MA

Massachusetts railing code, in plain English

Reviewed 2026-11-24. General information, not legal or engineering advice; your building department has the final word.

Black iron railings on both sides of granite front steps of a white colonial

Short answer: on most Massachusetts homes, a guard is required where a deck, porch or stair is more than 30 inches above the ground below, and it must be at least 36 inches tall with no opening that lets a 4-inch sphere through. Stairs with 4 or more risers need a handrail 34–38 inches above the stair nosing that you can grip. Commercial and multi-family buildings generally require 42-inch guards. Your local building department has the final say.

RuleOne- and two-family homesCommercial / most multi-family
Guard requiredOpen side more than 30 in above the floor or grade belowOpen side more than 30 in above the floor or grade below
Minimum guard height36 in42 in
Openings in a guardMust stop a 4 in sphereMust stop a 4 in sphere
Handrail requiredStairs with 4 or more risersGenerally on both sides of stairs
Handrail height34–38 in above the nosing34–38 in above the nosing
Handrail grip (round)1¼–2 in diameter1¼–2 in diameter

Which code applies in Massachusetts

Massachusetts writes its own building code, 780 CMR. The 10th edition, in effect since October 2024 and the only edition in force since mid-2025, is based on the 2021 International Residential Code (for one- and two-family homes) and the 2021 International Building Code (for everything else), with Massachusetts amendments. Railing rules come from the guard and handrail sections of those codes.

Two other sets of rules show up on railing jobs. Rental housing is also covered by the State Sanitary Code (105 CMR 410), which has its own guard and baluster requirements for existing buildings. Public and commercial buildings must meet the Massachusetts Architectural Access Board rules (521 CMR) and the federal ADA standards for accessible routes.

Guards vs. handrails

People use “railing” for both, but the code treats them differently. A guard keeps you from falling off an open side: a porch edge, a deck, a stair open on one side, a landing. A handrail is what you hold while you walk up or down. On many stairs one railing does both jobs, so it has to meet both sets of numbers: tall enough to be a guard where the drop needs one, and with a graspable rail at handrail height.

The 4-inch sphere

Openings in a guard are checked with a 4-inch ball. If the ball passes through anywhere, the guard fails. There are two common exceptions in the residential code: the triangle under the bottom rail of a stair, which may be larger (a 6-inch sphere), and openings on stair guards, which may allow a 4⅜-inch sphere. Cable railings are tested with the cable pushed, not at rest.

When a handrail is required

In homes, a handrail is required on stairs with four or more risers. It must be continuous for the full flight, 34 to 38 inches above the line of the stair nosings, and graspable: a round rail between 1¼ and 2 inches in diameter, or an equivalent shape. Ends should return to a wall or post so clothing cannot catch.

Commercial and accessible railings

In commercial buildings and most multi-family buildings, guards are 42 inches tall. Accessible ramps and stairs need handrails on both sides, with extensions past the top and bottom of the run. Exact extension lengths and clearances depend on whether ADA, 521 CMR or both apply; your architect or the access board should confirm them for the project.

Before you build

Call your local building department and ask two questions: does this job need a permit, and is there anything local the inspector checks on railings? Historic districts in towns like Lexington, Cambridge and Boston may also review how a new railing looks from the street.

Questions people ask

How tall does a deck railing have to be in Massachusetts?

On a one- or two-family home, at least 36 inches where the deck is more than 30 inches above grade. On commercial and most multi-family buildings, 42 inches.

How far apart can balusters be in Massachusetts?

Close enough that a 4-inch sphere cannot pass through any opening. In practice that means a clear gap a little under 4 inches.

Do I need a railing on 3 steps in Massachusetts?

For a one- or two-family home, a handrail is required at 4 or more risers, so 3 risers usually do not require one. A guard may still be needed if the stair or landing is more than 30 inches above the ground.

Are horizontal railings legal in Massachusetts?

Horizontal infill is used on many homes, as long as openings stop a 4-inch sphere. Some multi-family and commercial projects restrict climbable infill, so check before ordering.

Tell us about your railing

Send a few details and, if you can, photos of the stairs from the bottom and from the side. You will get a reply with next steps and a time for a site measurement.

  • Measured on site, drawn and fabricated in Lowell, MA
  • Written quote that lists each run, the mounting method and the finish