How the Massachusetts building code for decks is organized
There is no separate deck code in Massachusetts. Decks on one and two family homes fall under the Massachusetts Residential Code, Chapter 51 of 780 CMR, which adopts the 2021 International Residential Code with state amendments. Inside that code, the rules you need are spread across three places:
- Section R507 in Chapter 5, which covers footings, posts, beams, joists, ledgers and lateral connections for wood-framed decks
- Section R311 in Chapter 3, which covers stairs and handrails
- Section R312 in Chapter 3, which covers guards (the code’s word for railings that keep people from falling)
The Massachusetts amendments to Chapter 3 add two things that matter for decks. They set the frost line depth at 48 inches in the state’s climate table, and they list the American Wood Council’s deck guide, DCA 6, as an accepted alternative. Everything below follows the 2021 IRC text unless we flag a state change.
One caution before the details. The 10th edition of 780 CMR became the only building code in effect after June 30, 2025. Deck handouts and blog posts written earlier often quote the 9th edition, and some of those numbers are out of date.
Loads the deck has to carry
The deck section starts with loads. Decks must be designed for the live load required by the residential code or for the ground snow load in the code’s climate table, whichever is greater. Your building department can tell you the ground snow load it uses for your town, and that number feeds every span and footing choice that follows.
R507 includes prescriptive tables for footing sizes, post heights, beam spans, joist spans and ledger fastener spacing. If your deck fits those tables, a designer can build it straight from the code. If it uses materials or conditions the section does not cover, the code sends you back to the general structural design rules, which usually means an engineer.
Footings and the 48 inch frost line
Footings are where Massachusetts differs most from a generic deck guide. The rules work in layers.
First, decks must sit on concrete footings or another approved structural system, sized to carry the loads down to the soil. Footing size comes from a table based on the area each footing supports and the bearing capacity of the soil.
Second, every deck footing must be at least 12 inches below undisturbed ground. That applies even to a deck that does not need frost protection.
Third, frost. Where a deck is attached to a house that is itself protected from frost, the deck footings must be protected from frost too. The code allows three ways to do that:
- Extend the footing below the frost line in the climate table
- Bear on solid rock
- Use another approved frost protection method
Massachusetts set its frost line at 48 inches, so the common answer here is a footing that bottoms out at least four feet down. The reason is practical. An attached deck that heaves in winter while the house stays put will rack the ledger connection, and that is the joint you least want moving.
There are two narrow exceptions where footings are not required, both for free-standing decks. One is a deck whose joists bear directly on grade along their full length. The other is a deck that meets all three of these conditions: joists bearing directly on precast concrete pier blocks at grade with no beams or posts, no more than 200 square feet of deck area, and a walking surface no more than 20 inches above grade at any point within 36 inches of the edge. A small platform in the yard can qualify. A deck off the kitchen door does not.
Posts and the post to footing connection
For single-level decks, the code gives a table of maximum post heights by post size, wood species, load and the area each post supports. The difference between sizes is large. For Southern pine at a 40 pound live load, a 6x6 post reaches the table’s 14 foot maximum at every tributary area listed, while a 4x4 drops to 6 feet 2 inches once it supports 160 square feet.
Posts also need lateral restraint where they bear on concrete footings. The code accepts manufactured connectors, or a post embedded at least 12 inches in the surrounding soil or concrete pier. Other footing systems are allowed when approved. What you should not see is a post simply resting on top of a pier with nothing holding it in place.
Ledgers, fasteners and flashing
The ledger is the board that ties the deck to the house, and it gets more attention from inspectors than any other part. The 2021 IRC sets these requirements:
- The ledger must be at least a nominal 2x8, of pressure-preservative-treated Southern pine, incised treated hem-fir, or an approved naturally durable species, No. 2 grade or better.
- It may not carry concentrated loads from beams or girders.
- It may not be supported on stone or masonry veneer.
- The band joist of the house that supports the ledger must meet its own minimum size and species rules.
- Fasteners in the ledger connection must be hot-dipped galvanized or stainless steel, installed at the spacing in the code’s fastener table.
That table lists half-inch lag screws and half-inch through bolts, with the allowed spacing tightening as joist spans get longer and as the sheathing behind the ledger gets thicker. Nails alone do not appear in it.
Flashing is the other half of the ledger detail. The code requires flashing of corrosion-resistant metal at least 0.019 inch nominal thickness, or an approved non-metallic material compatible with the house and the decking. In practice the flashing has to shed water out and away from the rim joist, lapped correctly with the wall’s weather barrier. A bolted ledger with bad flashing can still rot the house framing behind it.
Where the house has brick or stone veneer, or the band joist cannot take the load, the usual solution is a free-standing beam on its own posts along the wall. That turns the attached deck into a self-supporting one at the house side.
Lateral connection to the house
A deck also has to resist being pulled away from the house sideways. The code requires lateral loads to be transferred to the ground or to a structure that can carry them there. One prescriptive option uses hold-down tension devices in at least two locations per deck, each within 24 inches of an end of the deck and rated for at least 1,500 pounds.
Guards and railings
Railing questions come down to three numbers in Section R312.
When a guard is required: on open-sided walking surfaces, including floors, stairs, ramps and landings, that are more than 30 inches above the floor or grade below at any point within 36 inches horizontally of the edge. Measure that drop at the edge and out three feet, not just at the house.
How tall: at least 36 inches above the walking surface. On the open side of stairs, the guard can be 34 inches, measured from a line connecting the nosings. Where the top of a stair guard also serves as the handrail, it has to fall between 34 and 38 inches.
How open: a 4 inch sphere must not pass through any opening from the deck surface up to the required guard height. On the open side of a stair the limit is a 4-3/8 inch sphere, and the triangle formed by the riser, tread and bottom rail must block a 6 inch sphere.
These rules hold whether the railing is wood, composite, metal or cable.
Deck stairs and handrails
Stairs follow the same Section R311.7 as interior stairs. Under the 2021 IRC:
- Clear width of at least 36 inches above the handrail
- Headroom of at least 6 feet 8 inches
- A handrail on at least one side of any flight with four or more risers
- Handrail height of 34 to 38 inches above the nosings
- Risers within a flight that vary by no more than 3/8 inch, and treads the same
The model IRC caps riser height at 7-3/4 inches and sets a 10 inch minimum tread depth. Massachusetts publishes its own Chapter 3 amendments, so check that state document or call your building official before you lay out stringers.
DCA 6 as an accepted alternative
The Massachusetts residential code lists the American Wood Council’s DCA 6, the Prescriptive Residential Wood Deck Construction Guide, as an accepted alternative method. AWC publishes it as a free download. As the name says, it is prescriptive: a builder follows its tables and details instead of running structural calculations.
For a straightforward wood deck, many designers and plan reviewers find it easier to follow than jumping between code sections. It has limits, like R507 itself, and a deck that falls outside its tables goes back to engineered design. Ask your building department which version they accept before relying on it.
Deck permits in Boston and other towns
The building code says how to build; the town decides how it checks. Massachusetts writes its own administrative chapter for the residential code, so the permit exemptions printed in the model IRC are not a safe guide here. Call your building department before you assume a deck needs no permit.
In Boston, an attached deck is structural work, and the City’s Long Form permit is the one that covers alterations that change a building’s structure. The City’s Long Form requirements include design plans stamped by a Massachusetts registered engineer or architect and a certified plot plan showing property lines and the location of the structure, which means hiring a land surveyor if you do not have one. The fee the City lists is $50 plus $10 per $1,000 of estimated cost, paid up front. New roof decks and expansions of existing ones need a Long Form permit; some repairs to existing roof decks can use a Short Form. Our guide to Boston building permits covers the process.
Outside Boston, your local building department sets its own application forms and plan requirements, and what it asks to see for a deck varies from town to town. Our Massachusetts building permits guide explains the common steps. On structural work, the person supervising should hold a Construction Supervisor License; Massachusetts issues an unrestricted license and one limited to one and two family dwellings, both covering construction, alteration and repair. See our MA contractor license guide for details.
A deck code checklist before you dig
- Confirm the code edition and any local amendments with the building department.
- Decide attached or free-standing, and check whether the house band joist can take a ledger.
- Plan footings at least 48 inches deep for an attached deck, and expect ledge, roots or old foundations.
- Choose post sizes from the post height table, with connectors or embedment for lateral restraint.
- Detail the ledger: size, fasteners, spacing and flashing.
- Lay out the lateral connection to the house framing.
- Measure grade drop within 36 inches of every edge to see where guards are required.
- Lay out stairs against the current Massachusetts stair rules, not a national article.
- Get the permit and schedule the footing inspection before you pour.
The general Massachusetts building code guide explains how 780 CMR is put together if you want the wider picture. When you would rather hand the whole job off, our decks and patios team builds to these rules in Boston, and our deck builders across Massachusetts page covers other towns. For footings and steps in stone or concrete, see masonry and concrete, and contact us with photos of the site to start.
This guide is general information for homeowners, not legal advice. Rules change and vary by city or town. Confirm details with your local building department or the state agency listed in the sources.
Common questions
What does the Massachusetts building code for deck footings require?
If the deck attaches to a house that is protected from frost, the footings must be protected too, and the usual way is to extend them below the frost line. Massachusetts sets that line at 48 inches. Every deck footing must also be at least 12 inches below undisturbed ground.
What is the Massachusetts building code deck railing height?
Under the Massachusetts building code for decks and railings, which follows the IRC here, guards must be at least 36 inches tall on deck surfaces more than 30 inches above grade. Guards along the open side of stairs can be 34 inches, measured from the line of the nosings.
What is the Massachusetts building code for deck stairs and handrails?
A handrail is required when a flight has four or more risers. The handrail goes on at least one side, 34 to 38 inches above the nosings. Massachusetts publishes its own Chapter 3 amendments, so confirm riser and tread limits with the state's Chapter 3 amendments or your building official.
Can a small deck skip footings?
The 2021 IRC allows free-standing decks without footings in two cases, joists bearing directly on grade along their full length, or decks of 200 square feet or less on precast pier blocks with the surface no more than 20 inches above grade. Neither exception covers a deck attached to the house.
Can I attach a deck ledger to brick or stone?
Not to veneer. The code says deck ledgers shall not be supported on stone or masonry veneer. On a house with brick or stone veneer, the deck usually gets its own beam and posts along the wall instead.
Does the building code for decks in Massachusetts require a permit?
Expect to need one. Ask your local building department, because Massachusetts writes its own administrative chapter and town practice varies. In Boston, work that changes a building's structure goes through the Long Form permit, which asks for stamped plans and a certified plot plan.
Sources
Facts on this page were last checked against these sources on November 16, 2026.
- International Code Council, 2021 International Residential Code, Chapter 5 (Section R507 Exterior decks) (accessed 2026-11-16)
- International Code Council, 2021 International Residential Code, Chapter 3 (Sections R311 Means of egress and R312 Guards) (accessed 2026-11-16)
- Mass.gov, 780 CMR 10th edition residential code, Chapter 3 amendments (frost line depth 48 inches; AWC DCA 6 as alternative provision) (accessed 2026-11-16)
- Mass.gov BBRS, Tenth edition of the MA State Building Code 780 (accessed 2026-11-16)
- American Wood Council, DCA 6 Prescriptive Residential Wood Deck Construction Guide (accessed 2026-11-16)
- City of Boston, Long Form permit (accessed 2026-11-16)
- City of Boston, Install or repair roof deck (accessed 2026-11-16)
- Mass.gov, Learn about different Construction Supervisor Licenses (accessed 2026-11-16)