Most homeowners come at railing code from one of two sides. Either a contractor told them they need a 36-inch rail and they want to know if that’s right. Or they’re staring at an old porch rail that fails the eye test, wondering if it would also fail an inspection. The answer in both cases lives in three or four numbers, plus a couple of Chicago-specific quirks worth knowing before you spend money on a railing that has to come back out.
This is the practitioner version. We’re a Chicago metal fab shop, fourth generation in the family, twenty-plus years building under our own name. We see what passes inspection and what gets flagged. The numbers below are the ones that actually come up. The ones that don’t, we don’t waste time on.
Code is the floor, not the ceiling. Most of what we build exceeds the minimum, because the minimum exists for a reason and the reason isn’t aspirational.
Key takeaways
- A guard is required when the walking surface is more than 30 inches above grade. That’s the trigger. Below 30 inches, you can put up a rail for looks or for safety, but the code doesn’t make you.
- Residential guard height is 36 inches. Commercial and multi-family is 42 inches. The number is measured from the walking surface to the top of the guard. Stair handrails are 34 to 38 inches above the nosing.
- The 4-inch sphere rule limits how far apart your balusters can be. A 4-inch ball can’t pass through any opening in the guard. Inside a residential dwelling unit, 4-3/8 inches is allowed. On stairs, slightly larger.
- The structural load test is 200 pounds, point load. A guard has to take 200 pounds applied at any point along the top rail. Commercial and multi-family also have to take 50 pounds per linear foot distributed.
- Chicago’s code is its own thing. The city repealed the old Title 13 building code in 2020 and replaced it with the modernized Chicago Construction Code (Title 14). It’s based on the 2018 IBC with city amendments. Numbers are mostly the same, but the section references aren’t.
- Permits are usually required for new exterior railing work. Replacing an existing rail “like for like” sometimes isn’t. New install on a porch, balcony, or anywhere over 30 inches almost always is.
The numbers you came here for
The practical specs, organized by what gets asked first. These come from the 2021 IRC for residential, the 2021 IBC for commercial and multi-family, and the Chicago Construction Code Title 14B for anything inside city limits. Local amendments can apply to any specific project, so verify with the building department for your jurisdiction before you finalize a design.
When a guard is required
- 30 inches above grade. The walking surface trigger. If the floor on the open side is more than 30 inches above the ground or the floor below, you need a guard. 2021 IRC R312.1.1 and 2021 IBC 1015.2 [1] [2].
- Includes most of what you’d guess. Decks, porches, balconies, raised landings, mezzanines, the open side of any stair more than 30 inches off the ground.
- Below 30 inches, optional. Code doesn’t require a guard, but plenty of homeowners add one anyway for kids, pets, or because the deck just looks unfinished without it.
Minimum height
- Residential, 36 inches. One- and two-family homes need a 36-inch guard, measured from the walking surface to the top of the rail. 2021 IRC R312.1.2 [1].
- Commercial and multi-family, 42 inches. Apartment buildings, condos, restaurants, retail, and most public spaces. 2021 IBC 1015.3 [2]. There’s an exception that allows 36 inches within individual dwelling units in three-story-or-less R-2 buildings (typical Chicago three-flat dwelling unit) and R-3 buildings.
- Stair handrails, 34 to 38 inches. Measured from the line connecting the leading edges of the stair nosings, not from the back of the tread. 2021 IRC R311.7.8.1 / 2021 IBC 1014.2 [1] [2].
- Chicago, same as the model code. Chicago Construction Code 14B-10-1015 (guards) and 14B-10-1014 (handrails) adopt the 2018 IBC with city modifications [3].
Opening spacing (the 4-inch sphere rule)
- 4-inch sphere maximum, general rule. No opening in the guard can let a 4-inch ball pass through. This is the one rule even contractors sometimes get wrong. 2021 IRC R312.1.3 / 2021 IBC 1015.4 [1] [2].
- 4-3/8 inches inside dwelling units. Within individual dwelling units in R-2, R-3, and R-5 occupancies, the IBC allows a 4-3/8 inch sphere. The Chicago Construction Code adopts the same exception [2] [3].
- 6 inches between 36 and 42 inches in non-residential 42-inch guards (Chicago). Per Chicago Construction Code 14B-10-1015, in commercial settings where the guard is 42 inches tall, the strict 4-inch rule applies up to 36 inches of height. From 36 to 42 inches, openings up to a 6-inch sphere are allowed. This is a Chicago modification of the IBC. It does not apply to residential dwellings [3].
Load requirements
- 200 pounds, concentrated. A guard has to handle a 200-pound point load applied in any direction at any point along the top rail. 2021 IRC R301.5 (Table R301.5) and 2021 IBC 1607.9.1.1 [1] [2].
- 50 pounds per linear foot, distributed. Commercial and multi-family guards also have to take a 50-plf distributed load along the top rail. The IBC exempts one- and two-family dwellings (only the 200-pound concentrated load applies). 2021 IBC 1607.9.1 [2].
- 50 pounds, infill. Each picket or panel has to handle a 50-pound load over a one-square-foot area. Iron pickets exceed this by a wide margin. Cable systems and glass panels need to be engineered to it specifically [2].
Why these numbers exist
The 30-inch rule isn’t arbitrary. Falls from heights below 30 inches are usually survivable and rarely catastrophic. Above 30 inches, the injury data starts to look different. The code drew the line where the data drew it.
The 4-inch sphere rule is a child head-entrapment rule. It traces back to anthropometric studies of small-child head and torso dimensions: a child whose head fits between balusters can get the head stuck or, worse, slip the body through and hang by the head. The 4-inch number was set to be smaller than the smallest head that could pass. It’s been the rule for decades because it works.
The 200-pound concentrated load is the load a fully grown adult generates by leaning hard against a railing or falling against it. The 50-plf distributed load on commercial guards is the load a crowd generates when the rail has people pressed against it, which happens at concert venues, restaurant patios, and public balconies. One person leaning hard, or a dozen people pressed in. Different scenarios, different numbers.
The 36-inch versus 42-inch height difference between residential and commercial reflects a real difference in user. A 36-inch rail is above the center of gravity of an average adult, so it’s enough to keep a single person from going over by accident. A 42-inch rail clears the center of gravity of taller users and gives more margin for a crowd pushing against the rail. In commercial spaces, the design has to account for the worst case, not the average case.
The point of all of this: the numbers reflect a long history of injury data and the failure modes the code is trying to prevent. We build to them for the same reason we wear safety glasses in the shop. Not because someone might check, but because the rule exists for a reason.
Where the code changes
The basics are stable. Where it gets tricky is at the edges, where you move from residential to commercial, or from a single-family home to a three-flat dwelling unit, or from a private deck to a restaurant patio. A few specific edge cases come up enough that they’re worth pulling out.
Residential versus commercial
The clearest dividing line. Residential (one- and two-family homes, townhouses three stories or less) follows the IRC. Commercial, multi-family, and public spaces follow the IBC. The IBC numbers are mostly stricter: 42-inch guard height instead of 36, distributed load on top of the concentrated load, and so on.
The mixed case is multi-family. A three-flat in Chicago is a Group R-2 occupancy under the IBC. Inside an individual dwelling unit (the apartment itself, the deck off the back of one unit) you can use the residential 36-inch height. In common areas (the shared front stair, the back porch system shared by multiple units, the rooftop deck), it’s 42 inches because more than one household uses the space.
Chicago modernized in 2020
The other edge case worth knowing. Chicago repealed most of its old Title 13 Building Code on August 1, 2020 and replaced it with the Chicago Construction Code (Title 14). The new code is built on the 2018 IBC with city-specific amendments. If you have a contractor citing “Chicago Municipal Code 13-something,” the citation is from the old code and is probably out of date. Current Chicago citations are 14B for new construction, 14R for rehab work on existing buildings, and 14X for minimum requirements on existing buildings.
The substance of most rules didn’t change. The 4-inch sphere is still 4 inches. Residential is still 36 inches. Commercial is still 42. The section numbers changed, and a few specific provisions got updated. The biggest change worth knowing: the old Chicago “8-inch sphere above 34 inches” rule from Section 13-124-335 is gone. The current Chicago rule allows a 6-inch sphere from 36 to 42 inches, but only in non-residential 42-inch guards. Within a residential dwelling, the 4-inch (or 4-3/8 inch) rule applies the entire height of the guard.
When ADA kicks in
ADA Standards apply to commercial and public-facing spaces. They overlap with the IBC on most numbers but are stricter in a few places. Handrail height is the same 34 to 38 inch range. Circular handrail diameter is 1-1/4 to 2 inches, same as IBC. Where ADA gets stricter: handrails on both sides of any stair or ramp (no narrow-stair exception), continuous gripping surface, 12-inch minimum extensions at the top and bottom of stairs, and a 1:12 maximum slope on ramps with 30 inches of rise between landings [4].
If you’re building a private home, ADA usually doesn’t apply. If you’re building a restaurant railing, an entry stair for a retail space, or any railing in a building open to the public, it does. We do a lot of ADA-compliant work for commercial clients (Microsoft Elk Grove, Fox River Grove restaurant venues, public park railings) and the ADA layer adds detail more than it changes the structural numbers.
How we build to these codes
The numbers above are the floor. Here’s what we actually build to.
For residential picket spacing, we typically run pickets at 3-3/4 inches center-to-center, with 1/2 inch square pickets. That puts the clear opening at about 3-1/4 inches, comfortably under the 4-inch maximum even with manufacturing tolerance and any deflection from a kid pushing on the rail. We don’t run pickets at the absolute maximum allowed because tolerance is real and inspectors measure with a sphere.
For guard height, we measure the install on site, not from drawings. Stairs in old Chicago buildings are almost never square. R32 was a project in River Forest, an interior stair railing for a family who had remodeled around an original 1950s staircase. The treads were off by close to an inch over the run. We templated the railing to match the actual stairs, not the original drawings. The finished railing measured 36 inches at every nosing, which is what code wants. Working from the drawings would have given us a railing that was 36 inches at one end and 35 at the other.
For load capacity, standard wrought iron pickets with welded connections exceed the 200-pound concentrated load by a wide margin. Where the load number actually matters is on cable rail, glass rail, and any thin-element design. M22 was a Klein Tools project where we ran safety guard rails around an active gas forge. The structural calc was straightforward (steel pickets and a heavy top rail) but the install had to take repeated impact from forge work. We over-spec’d the post anchors to handle that on top of the code load. Code is one input. The actual use is the other.
For finish, we recommend powder coat for outdoor work in Chicago weather. It outlasts paint by a wide margin in our climate. The downside is that if a powder-coated piece gets a deep scratch or chip, it has to come back to the shop for repair (you can’t touch it up the way you can touch up paint). For most homeowners that trade-off is worth it. For commercial work where we expect repeated wear, sometimes we go galvanized first and then powder coat over the zinc, which is the longest-lasting finish system we install.
When we do custom railings, custom stairs, or custom handrails for a Chicago project, code compliance is built into the design from day one. The way we design picket spacing, anchor specs, and rail heights, a piece either passes inspection or we don’t ship it.
What inspectors actually check
The on-paper rules and the in-person inspection don’t always emphasize the same things. After a few hundred installs across Chicago and the suburbs, a few patterns:
- The sphere test. Inspectors carry a 4-inch ball or a 4-inch ring and they actually use it. They press it into the gaps between balusters at multiple points. If your spacing is right at the limit and the rail flexes a little under pressure, the ball can sometimes pass. We design under the limit so the test passes under any reasonable pressure.
- The bottom-rail gap. People focus on picket-to-picket spacing and forget the gap between the bottom rail and the deck or floor. A 4-inch sphere can’t pass there either. On older porches with a slight crown to the deck, we sometimes have to add a sub-rail just to close that gap.
- Anchor specification. For exterior work especially, the inspector wants to see how the railing is anchored to the building or the deck framing. Lag bolts into questionable wood don’t pass. Through-bolts with backing plates pass. Welded steel-to-steel connections pass. The strength is in the connection, and inspectors know it.
- Handrail extensions. On commercial work, the handrail must extend horizontally at least 12 inches beyond the top riser and continue to slope for the depth of one tread beyond the bottom riser. People forget this and lose inspections over it. Residential doesn’t strictly require it, but it’s good practice and we do it anyway.
- The handrail has to be continuous along the full run of the stair, with no breaks at landings on commercial work. Newel posts that break the gripping surface fail. Brackets that don’t impede the grip pass. The test is whether someone can run their hand along the rail without lifting off.
- Type I versus Type II handrail profiles. This catches custom handrails sometimes. A circular rail between 1-1/4 and 2 inches diameter is Type I, always passes. A rectangular profile has to fit the perimeter and cross-section limits in IBC 1014.3.1, or it has to qualify as Type II with a finger-recess profile under 1014.3.2 [2]. We design to Type I unless the customer specifically wants something else.
The pattern across all of these: inspectors test the things that fail in real life, not the things that look good on paper. We design for the field test, not the paper test.
A last word
If you’re sitting at your kitchen table reading building code, you’re already further ahead than most homeowners. The piece nobody mentions: most railing problems we see in the field aren’t code violations. They’re code-compliant railings installed badly. Pickets that look fine until you press on them and they flex an inch. Handrails that meet the height spec but feel rickety because the brackets are too far apart. Anchors that pass the load test the day of the install but loosen over a couple of winters. Code is necessary, not sufficient.
What separates a railing that lasts from one that gets re-done in five years is the things the code doesn’t measure: the welds, the anchor design, the finish, the prep before the finish, and whether the shop measured the actual install location instead of working from drawings. Code is the floor. The work is everything above it.
If you’re trying to figure out whether your existing railing meets current code, or you’re planning a new install and want to know what the inspection will actually check, send a couple of photos and dimensions to the shop. Easier to look at the actual situation than to talk through it on the phone.
Signature Metal Works. 3027 Malmo Dr, Arlington Heights, IL 60005. 312-912-7405. Monday through Friday, 9 AM to 5 PM. Stop into the shop if you’re nearby and want to see materials and finishes in person.
Frequently asked questions
How tall does a railing have to be in Chicago?
For a single-family home or two-family home, 36 inches measured from the walking surface to the top of the guard. For an apartment building, condo, restaurant, or any other commercial or multi-family space, 42 inches, with an exception that allows 36 inches inside individual dwelling units in three-story-or-less R-2 buildings (a typical three-flat). Stair handrails are 34 to 38 inches above the line connecting the stair nosings. Chicago Construction Code 14B-10-1015 and 14B-10-1014 adopt these heights from the 2018 IBC [3].
What’s the maximum spacing between balusters?
The 4-inch sphere rule. No opening in the guard can let a 4-inch ball pass through. Inside a residential dwelling unit (R-2, R-3, or R-5 occupancy), the IBC allows a 4-3/8 inch sphere as an exception [2]. We typically build to 3-3/4 inches center-to-center spacing with 1/2 inch pickets, which leaves a 3-1/4 inch clear opening, comfortably under the limit.
Do I need a permit to replace my existing railing?
Usually yes, with one exception. In Chicago, replacing a non-structural element of an existing railing in-kind (a single picket, a section of cap rail) doesn’t require a permit. Replacing the whole railing, installing a new railing where one didn’t exist before, or any work on a porch, deck, or balcony elevated more than 30 inches off the ground all require a permit. Chicago Construction Code Section 14A-4-402 lists the work that doesn’t require a permit; everything else does. Most suburbs have similar rules but verify with the local building department before starting.
What’s different about Chicago’s code compared to the suburbs?
Chicago has its own modernized Construction Code (Title 14) based on the 2018 IBC with city-specific amendments. Most Illinois suburbs adopt the IRC and IBC directly, often a few years behind the most current edition (2018 or 2021 in most cases). The Chicago code matches the model code on most railing specs (height, sphere rule, loads) but has a few city-specific provisions, the most notable being the 6-inch sphere allowance from 36 to 42 inches on non-residential 42-inch guards [3]. The old “8-inch sphere above 34 inches” rule from the pre-2020 Chicago code is no longer in effect.
Can I install a railing myself, or do I need a licensed contractor?
In Chicago and most of the suburbs we work in, residential railing work on your own home doesn’t strictly require a licensed contractor (the homeowner can pull a permit and do the work). The catch: you still have to pull the permit, the work still has to pass inspection, and the structural anchoring on exterior work has to meet code. Most homeowners hire a fabricator for the railing itself, even if they handle the install. Welded steel railings aren’t really a DIY project unless you have welding equipment and experience.
What height does ADA require for handrails?
Same 34 to 38 inch range as the IBC, measured above the walking surface or the stair nosing line. ADA differs from the IBC in a few places: handrails on both sides of any stair or ramp (no exception for narrow stairs), continuous gripping surface along the full run, 12-inch minimum extensions at the top of stairs, and a 1:12 maximum slope on ramps [4]. ADA Standards 505 covers the full handrail spec.
References
Sources verified at time of writing. Codes change; verify any specific number with the building department for your jurisdiction before relying on it for design.
- ICC Digital Codes, 2021 International Residential Code (IRC), Chapter 3 Building Planning. Source for residential guard requirements (R312.1.1), guard height (R312.1.2), opening limitations (R312.1.3), handrail height (R311.7.8.1), and structural load criteria (R301.5, Table R301.5). https://codes.iccsafe.org/content/IRC2021P2/chapter-3-building-planning
- ICC Digital Codes, 2021 International Building Code (IBC), Chapter 10 Means of Egress and Chapter 16 Structural Design. Source for commercial and multi-family guard requirements (Section 1015), guard height (1015.3), opening limitations (1015.4), handrail dimensions (1014.2 through 1014.3.2), and load criteria (1607.9.1, 1607.9.1.1, 1607.9.1.2). https://codes.iccsafe.org/content/IBC2021P2/chapter-10-means-of-egress
- American Legal Publishing, Chicago Construction Code, Title 14B Building Code, Sections 14B-10-1014 (Handrails) and 14B-10-1015 (Guards). Source for current Chicago handrail and guard requirements, including the city-specific modifications to 2018 IBC Sections 1014 and 1015. Effective August 1, 2020 as part of the modernized Chicago Construction Code. https://codelibrary.amlegal.com/codes/chicago/latest/chicago_il/0-0-0-2664491
- U.S. Access Board, ADA Standards for Accessible Design, Chapter 5 General Site and Building Elements (Section 505 Handrails). Source for ADA handrail requirements: gripping surface, height, clearance, extensions, and continuity rules for commercial and public-facing spaces. https://www.access-board.gov/ada/






