If you’re building or replacing a deck, one of the first things you’ll need to sort out is whether your railing meets building code. The rules vary between provinces, states, and even individual municipalities — but the core requirements are more consistent than most people expect.
This guide covers the essentials: when a railing is required, how tall it needs to be, what spacing rules apply, and how materials like aluminum and glass fit into the picture. Whether you’re a homeowner planning a new deck or a contractor confirming details for a permit, this is what you need to know before you build.
When Is a Deck Railing Required?
In both Canada and the United States, the rule of thumb is the same: if your deck surface is more than 24 inches (600 mm) above the ground, a guardrail is required on any open side.
This applies to attached decks, detached platforms, balconies, porches, and landings. If your deck sits close to ground level and the surface is less than 24 inches above grade at every point, you may not be required to install a guard — but many homeowners still do for safety or aesthetics.
Stairs are treated separately. In most jurisdictions, any stairway with more than two or three risers requires a handrail on at least one side, regardless of the overall height above grade.
Tip: Even if your deck appears low to the ground at one end, measure at every point. Sloped yards often create a situation where part of the deck is under 24 inches and part is well over it — and the section that exceeds the threshold still needs a guard.
Deck Railing Height Requirements
Railing height is the most common code question, and it depends on two things: how high the deck is above ground, and whether the space is residential or commercial.
British Columbia (BCBC 2024)
The BC Building Code sets clear height thresholds for residential properties:
- Decks up to 1.8 m (5 ft 10 in) above grade: minimum guard height of 900 mm (36 inches)
- Decks above 1.8 m (5 ft 10 in) above grade: minimum guard height of 1,070 mm (42 inches)
- Guards along stair flights: minimum 900 mm (36 inches), measured from the stair nosing to the top of the guard
- Multi-family and commercial properties: generally require 42-inch guards regardless of deck height
Note that some BC municipalities — Vancouver in particular — enforce 42-inch minimums across the board, even for lower residential decks. Always confirm with your local building authority before finalizing your railing height.
National Building Code of Canada (NBC 2020)
The NBC follows the same general framework as BC, and most provinces adopt these standards with minor regional amendments:
- Residential guards on decks up to 1.8 m above grade: 900 mm (36 in)
- Guards where the elevation exceeds 1.8 m: 1,070 mm (42 in)
- Stair guards: 900 mm (36 in)
Ontario, for example, follows the NBC closely but has its own supplementary standard (OBC SB-7) that adds specific structural and testing requirements for guards. Alberta, Quebec, and other provinces each maintain their own adoption schedules and amendments, so the details can differ.
United States (IRC and IBC)
In the US, residential deck railings are governed by the International Residential Code (IRC), while commercial and multi-family properties fall under the International Building Code (IBC):
- IRC (residential): guardrails required when the deck surface is 30 inches or more above grade; minimum height of 36 inches
- IBC (commercial/multi-family): minimum guard height of 42 inches
- Stair handrails: must be between 34 and 38 inches, measured from the stair nosing
Individual states and counties may amend these requirements, so local building departments are always the final authority.
Baluster and Picket Spacing: The 4-Inch Rule
Across virtually every building code in Canada and the US, the same principle applies: no opening in a guardrail should allow a 4-inch (100 mm) sphere to pass through. This is designed to prevent small children from getting their head or body through the railing.
This rule governs the spacing between vertical pickets or balusters, the gap beneath the bottom rail, and any opening in a glass panel system. For aluminum picket railings, this is handled at the manufacturing stage — the pickets are precision-welded at a spacing that meets or exceeds this requirement, so there’s no guesswork during installation.
For glass railing systems like Infinity Topless or Glass Component Railings, the panels themselves create a continuous barrier with no gaps to measure. The key compliance point for glass is the quality of the glass itself — which must be tempered or laminated safety glass conforming to recognized standards (CAN/CGSB-12.1-M in Canada).
Climbability Rules
Many building codes include provisions to prevent guards from being easily climbed by young children. In Canada, the NBC and BCBC specify that no member, attachment, or opening between 140 mm and 900 mm above the deck surface should facilitate climbing.
In practical terms, this means:
- Vertical pickets are always acceptable — they don’t create footholds
- Horizontal rails or cables may be restricted depending on the province and the height above grade. The NBC 2015 introduced changes that allow horizontal elements on guards protecting levels of 4.2 m or less, but not all provinces have adopted this yet
- Glass panels meet climbability requirements inherently, since there are no footholds
If you’re unsure whether a specific railing style is climbable under your local code, ask your dealer or building inspector before ordering. This is one area where rules vary significantly between jurisdictions.
Structural and Load Requirements
Building code doesn’t just specify how a railing looks — it also dictates how strong it needs to be. Guards must be able to resist specific loads to ensure they can prevent a fall even under impact.
The typical load requirements in Canada (per the NBC and BCBC) for residential guards serving no more than two dwelling units include:
- A horizontal load of 0.50 kN/m applied inward or outward along the top of the guard
- A concentrated point load of 1.0 kN at any location on the guard
- Individual component loads on pickets, glass panels, and balusters to ensure they don’t deform under pressure
In the US, the IRC requires guards to resist a 200-pound concentrated load applied at any point.
This is where material choice matters. Aluminum railing systems that are engineered and tested to meet these load requirements provide documented proof of compliance — which is exactly what a building inspector is looking for. Wood and DIY-built railings often struggle to meet these structural tests without professional engineering.
How Material Choice Affects Code Compliance
Aluminum railing systems — When manufactured by an established company and engineered to national building codes, aluminum railings typically come with documentation that simplifies the permit and inspection process. Because the components are precision-fabricated and tested as a system, they arrive ready to meet height, spacing, load, and climbability requirements. Our systems are designed to meet or exceed both the National Building Code of Canada 2020 and the International Residential Code 2021.
Glass railing systems — Glass must be tempered or laminated safety glass. In BC and most of Canada, the glass must conform to CAN/CGSB-12.1-M. Some municipalities require an engineer’s stamp for frameless or semi-frameless glass guard systems, particularly on elevated decks. If you’re considering an Infinity Topless glass system or a Glass Component system, confirm with your local authority whether an engineering letter is required.
Wood railing — Wood is the traditional choice, but it’s harder to guarantee long-term code compliance. Wood can warp, rot, and loosen over time, which means a railing that passed inspection on day one may not meet load requirements five years later. Wood railings also require regular maintenance — staining, painting, and replacement of damaged components.
Vinyl railing — Vinyl meets code when new but can become brittle in extreme cold and may warp in heat. Some jurisdictions require internal reinforcement (often aluminum or steel inserts) for vinyl guards to pass structural load tests.
Not sure which style is right for your deck? See our guide: Which Type of Deck Railing Is Best for My Deck?
What Building Inspectors Are Looking For
When an inspector visits your deck, they’re checking a short list of critical items:
- Guard height — measured from the deck surface (or stair nosing) to the top of the railing
- Openings — no gap larger than 4 inches (100 mm) anywhere in the guard, including under the bottom rail
- Structural attachment — posts must be securely anchored to the deck’s structural framing, not just the surface boards
- Load resistance — the guard should feel solid and rigid under hand pressure (and must meet the specified load in documentation)
- Climbability — no horizontal footholds in the restricted zone (varies by jurisdiction)
- Glass specification — if glass is used, it must be tempered or laminated safety glass with appropriate thickness
- Documentation — for manufactured systems, inspectors often want to see engineering documentation or product data sheets confirming code compliance
Having this documentation on hand — which any reputable railing manufacturer will provide — makes the inspection faster and smoother for everyone involved.
Quick Reference: Key Numbers to Remember
| Requirement | Canada (NBC/BCBC) | US (IRC Residential) |
|---|---|---|
| Guard required when deck is above | 600 mm (24 in) | 762 mm (30 in) |
| Residential guard height (low deck) | 900 mm (36 in) | 914 mm (36 in) |
| Guard height (elevated / commercial) | 1,070 mm (42 in) | 1,067 mm (42 in) |
| Maximum opening / baluster spacing | 100 mm (4 in) | 102 mm (4 in) |
| Stair handrail height | 865–1,070 mm (34–42 in) | 864–965 mm (34–38 in) |
Note: These are general guidelines based on national model codes. Your municipality may enforce different or additional requirements. Always check with your local building authority before starting your project.
The Bottom Line
Building code exists to keep people safe, and a well-engineered railing system makes it straightforward to comply. The key requirements — height, spacing, load resistance, and material standards — are consistent across most of North America. Where things get specific is at the local level, which is why confirming with your building department early in the project saves time and avoids costly rework.
All Innovative Aluminum railing systems — including our Picket, Glass Component, and Infinity Topless lines — are engineered to meet current Canadian and US residential building codes and come backed by a 20-year structural warranty.
Have questions about code compliance for your specific project? Contact our team or check our Frequently Asked Questions for more detail.