Deck Stair Railing Code in Canada: Height, Spacing, and Requirements
Learn the National Building Code requirements for deck stair railings in Canada: height rules, baluster spacing, handrail specs, and provincial code differences.
You're building a deck, and now you need to figure out stair railings. The stairs can't just be open on the sides—you need railings that meet code. But what height? How far apart can the balusters be? Do you need handrails on both sides?
Here's what the National Building Code of Canada (NBC) and provincial building codes require for deck stair railings.
National Building Code Requirements for Deck Stair Railings
The NBC sets baseline requirements that most provinces adopt with local amendments. For deck stairs, here's what matters:
Stair railing (guard) height: 865 mm minimum (34 inches) measured vertically from the stair nosing.
Handrail height: 865 mm to 965 mm (34-38 inches) measured vertically above the stair nosing to the top of the handrail.
Baluster spacing: 100 mm maximum (4 inches) for any opening—a 4-inch diameter sphere can't pass through.
When you need stair guards: Required when stairs have more than 2 risers (3 or more steps) and serve an exterior deck elevated more than 600 mm (24 inches) above grade.
Handrail requirement: At least one handrail is required for stairs serving a deck. If the stairs are wider than 1,100 mm (43 inches), some jurisdictions require handrails on both sides.
Most deck stairs need guards and handrails. If your deck is 24 inches off the ground and has 3+ steps, you're building railings.
Ontario Building Code (OBC) Stair Railing Requirements
Ontario follows the NBC closely but adds specific clarifications:
- Guard height on stairs: 865 mm (34 inches) minimum from the stair nosing
- Handrail height: 865-965 mm (34-38 inches) from nosing to top of rail
- Baluster spacing: 100 mm (4 inches) maximum opening
- Handrail graspability: Must be graspable—typically 30-50 mm diameter (1.25-2 inches) for circular rails, or shaped to allow a secure grip
- Stair width: Minimum 860 mm (34 inches) clear width between handrails
Ontario municipalities enforce the OBC through local building departments. Cities like Kitchener, Waterloo, and Cambridge review deck plans closely. Deck permit fees run $150-400, and inspectors check stair railing compliance before final approval.
If you're building your own deck in Ontario, the stair railings will be inspected. Get the measurements right upfront.
BC Building Code (BCBC) Stair Railing Specifications
British Columbia adopts the NBC with amendments:
- Guard height: 865 mm (34 inches) minimum on stairs
- Handrail height: 865-965 mm (34-38 inches)
- Baluster spacing: 100 mm (4 inches) maximum
- Coastal wind loads: In coastal BC, higher wind loads may require stronger railing attachments—check local structural requirements
BC municipalities strictly enforce deck codes. Vancouver, Victoria, and other coastal cities require engineered plans for elevated decks. Stair railings must resist lateral loads specified in the code.
Alberta Building Code (ABC) and Other Provinces
Alberta: Follows NBC with local amendments. Guard height 865 mm, baluster spacing 100 mm, handrail 865-965 mm.
Quebec (RBQ): Uses the Construction Code of Quebec (CCQ), which closely mirrors NBC requirements but is enforced through the Régie du bâtiment du Québec. Stair guards must be 865 mm minimum.
Saskatchewan, Manitoba, Atlantic provinces: Generally adopt the NBC directly. Local municipalities may add amendments—always check with your city building department.
The core numbers stay consistent across Canada: 34-inch minimum guard height, 4-inch maximum baluster spacing, 34-38 inch handrail height.
Stair Guard vs. Handrail: What's the Difference?
Many people confuse guards and handrails. They're different components:
Guard (stair railing): The protective barrier that prevents falls. It runs vertically from the stair nosing and includes balusters. Minimum height 865 mm (34 inches).
Handrail: The graspable rail you hold while walking up or down. It can be part of the guard, or it can be a separate rail mounted to a wall. Height 865-965 mm (34-38 inches) from the stair nosing.
Often, the top rail of your stair guard serves as the handrail—if it's graspable. A flat 2×6 top cap isn't graspable. You'd need a rounded or shaped rail that fits in your hand.
For code compliance, your handrail must be graspable and continuous along the stair run. No gaps at landings unless the landing is wider than 1,100 mm.
Baluster Spacing and the 4-Inch Rule
The 100 mm (4-inch) sphere rule governs baluster spacing. No gap in your railing—vertical, horizontal, or diagonal—can allow a 4-inch diameter sphere to pass through.
This includes:
- Space between vertical balusters
- Space between horizontal rails
- Triangular gaps where railings meet stairs or landings
- Space between bottom rail and stair treads
Most builders use vertical balusters spaced 3.5 to 4 inches apart on center. This ensures compliance even after wood shrinks.
Horizontal cable railings are popular, but spacing between cables must not exceed 4 inches. Cable railing systems for Ontario decks require precise tensioning to prevent sagging beyond the 4-inch threshold.
Horizontal board railings (like modern slat designs) must also meet the 4-inch rule. Measure the gap, not the board width.
Handrail Graspability and Diameter
A handrail must be graspable—shaped so you can wrap your hand around it.
Acceptable handrail profiles:
- Circular: 30-50 mm diameter (1.25-2 inches)
- Oval or shaped: Perimeter of 100-160 mm (4-6.5 inches)
- Custom profiles: Must allow a secure grip—no sharp edges
Not graspable:
- Flat 2×4 or 2×6 top cap
- Square lumber without shaping
- Wide flat rails
If your stair guard top rail is a flat 2×6, you'll need to add a separate graspable handrail below or replace the top rail with a shaped profile.
Some railing systems include a graspable top rail—composite or aluminum railings with rounded or contoured tops. This simplifies installation and ensures code compliance.
Stair Railing Attachment and Load Requirements
Stair railings must resist lateral loads without failing. The NBC specifies:
- Residential guard load: 0.5 kN/m (34 lbf/linear foot) applied horizontally at the top rail
- Concentrated load: 1.0 kN (225 lbf) applied at any point
Your railing posts must be anchored securely to the stair stringers or blocking. Common methods:
Through-bolted posts: Carriage bolts or lag screws through the stringer into the post. Minimum two 3/8-inch bolts per post.
Blocking between stringers: Install 2× blocking between stringers, then bolt posts to the blocking.
Metal post anchors: Brackets or anchors rated for lateral loads, bolted to stringers and screwed to posts.
Weak attachments cause railing failures. Don't rely on deck screws alone—use bolts. Best deck railing systems in Canada include engineered mounting hardware that meets load requirements.
Stair Width and Handrail Placement
Minimum stair width: 860 mm (34 inches) clear width between handrails in Ontario and most provinces.
If your stair is 1,100 mm (43 inches) or wider, some jurisdictions require handrails on both sides.
Handrail placement:
- Must run continuously along the stair flight
- Can end at the bottom riser—doesn't need to extend beyond
- Must not project more than 100 mm (4 inches) into the required stair width
Most residential deck stairs are 36-48 inches wide. A single handrail is often sufficient, but installing rails on both sides improves safety and resale appeal.
Stair Railing Materials and Durability
Your stair railing must withstand freeze-thaw cycles, UV exposure, and moisture—especially in Ontario's climate.
Pressure-treated wood: Most economical. Use ACQ or CA-C treated lumber rated for ground contact. Posts rot at the base if not properly sealed or mounted above tread contact. Expect 8-12 years before visible degradation. Installed railing costs $40-60/linear foot.
Cedar: Naturally rot-resistant. More expensive than PT but ages better. Expect 12-18 years with minimal maintenance. Installed cost $60-80/linear foot.
Composite railing systems: Aluminum posts with composite or PVC balusters and rails. Low maintenance, won't rot or splinter. Lifespan 25+ years. Installed cost $80-120/linear foot. Brands like TimberTech, Trex, and Deckorators offer code-compliant systems with graspable handrails included.
Aluminum railing: Powder-coated aluminum posts, rails, and balusters. Lightweight, strong, weather-resistant. Lifespan 30+ years. Installed cost $70-110/linear foot. Popular in coastal BC due to salt resistance.
Cable railing: Stainless steel cables tensioned between posts. Modern look, unobstructed views. Requires precise installation to meet 4-inch spacing code. Installed cost $90-130/linear foot.
Composite decking and matching railing systems are popular for low-maintenance builds. If you're installing composite decking, consider composite or aluminum railings to match durability.
Stair Landings and Transition Railings
If your deck stairs include a landing (a flat platform mid-flight), the railing transitions from stair guard to deck guard.
Deck guard height at landings: 1,070 mm (42 inches) minimum if the landing is more than 600 mm (24 inches) above grade.
Stair guard height: 865 mm (34 inches) measured from the stair nosing.
The railing transitions from 34 inches on the stairs to 42 inches at the landing. This creates an angled or stepped transition. Your handrail must remain continuous and graspable through the transition.
Most builders use a raked top rail that follows the stair angle, then transitions to a level top rail at the landing. Ensure no gaps exceed 4 inches where the rails meet.
Common Stair Railing Code Violations
Building inspectors flag these issues:
Baluster spacing over 4 inches: Measure diagonally and at the widest points—shrinkage can push gaps over the limit.
Non-graspable handrails: Flat 2× lumber doesn't meet code. Add a shaped rail or replace the top cap.
Inadequate post attachment: Deck screws alone won't resist lateral loads. Use bolts.
Guard height under 34 inches: Measure from the stair nosing, not the tread surface. Thick treads can reduce effective height.
Gaps at bottom of balusters: Space between the bottom rail and treads can't exceed 4 inches. Use a bottom rail close to the treads or extend balusters down.
Missing handrail on wide stairs: Stairs over 43 inches wide may require rails on both sides—check local amendments.
If you're building without a permit in Ontario, code violations become a problem when you sell or if a neighbor complains. Stair railings that don't meet code are a safety liability and a resale obstacle.
Stair Railing Cost in Ontario (2026)
Installed stair railing costs depend on material and stair length.
| Material | Cost per Linear Foot (Installed) | Lifespan | Maintenance |
|----------|----------------------------------|----------|-------------|
| Pressure-treated wood | $40-60 | 8-12 years | Annual staining/sealing |
| Cedar | $60-80 | 12-18 years | Biennial sealing |
| Composite railing system | $80-120 | 25+ years | Occasional cleaning |
| Aluminum railing | $70-110 | 30+ years | None |
| Cable railing (stainless) | $90-130 | 25+ years | Annual tensioning check |
For a typical deck with 12 feet of stair railing (both sides of a straight run), expect:
- PT wood: $480-720 installed
- Cedar: $720-960 installed
- Composite: $960-1,440 installed
- Aluminum: $840-1,320 installed
Labour accounts for 40-60% of installed cost. DIY stair railings save money, but installation errors cause code failures. Best deck builders in Kitchener include compliant stair railings in their quotes.
DIY Stair Railing: What to Know
You can build code-compliant stair railings yourself if you measure carefully and use proper fasteners.
Tools you'll need:
- Drill with bits for pilot holes
- Circular saw or miter saw
- Level and speed square
- Tape measure
- Post level or plumb bob
- Socket wrench for bolts
Materials for PT wood railing:
- 4×4 posts (PT, ground contact rated)
- 2×4 top and bottom rails
- 2×2 balusters
- 3/8-inch carriage bolts, washers, nuts
- Deck screws (exterior grade)
- Post caps (optional, for water shedding)
Installation steps:
1. Mark post locations: Spacing depends on railing system, typically 48-60 inches on center for wood railings.
2. Attach posts: Bolt posts to stair stringers using two 3/8-inch carriage bolts per post. Ensure posts are plumb and extend 865 mm (34 inches) above the stair nosing.
3. Install top and bottom rails: Cut rails to angle (match stair slope), attach between posts with screws or bolts.
4. Space and attach balusters: Cut balusters to length, space 3.5 inches on center, screw to top and bottom rails.
5. Add graspable handrail if needed: If your top rail isn't graspable, add a separate rounded rail below.
6. Check spacing with a 4-inch sphere: Test all gaps—no sphere should pass through.
If you're building a composite deck, consider matching composite railing kits—they include pre-cut components and mounting hardware, simplifying installation.
Common Questions
Do I need a handrail on both sides of my deck stairs?
Not always. The NBC requires at least one handrail for stairs serving a deck. If your stairs are wider than 1,100 mm (43 inches), some jurisdictions require handrails on both sides. Check your local building code amendments. Most residential deck stairs are 36-48 inches wide and only need one handrail, but installing rails on both sides improves safety and meets code in all jurisdictions.
Can I use horizontal railings on deck stairs in Canada?
Yes, but horizontal rails must meet the 4-inch sphere rule. Spacing between horizontal boards or cables can't exceed 100 mm (4 inches). This is harder to achieve with horizontal designs—most require closely spaced slats or cables. Cable railing systems are popular for modern decks but require precise tensioning. Horizontal board railings work if boards are spaced 3.5 inches or less apart. Inspectors measure gaps carefully, so don't assume horizontal designs automatically comply.
What happens if my stair railing doesn't meet code?
Code violations discovered during a building inspection must be corrected before approval. If you built without a permit and sell your home, a home inspector may flag non-compliant railings, complicating the sale. Insurance claims after a fall may be denied if railings don't meet code. Municipalities can issue compliance orders requiring corrections. Building deck stairs without a permit in Ontario exposes you to fines and liability. If your railings are close but slightly off (e.g., 35-inch height instead of 34), some inspectors may pass them, but don't count on leniency.
How do I measure stair railing height correctly?
Measure vertically from the stair nosing (the front edge of the tread) to the top of the railing. The minimum is 865 mm (34 inches). Don't measure from the tread surface—if you have thick treads, this can reduce the effective height. Use a level and tape measure: place the level horizontally against the nosing, then measure vertically up to the top rail. For handrails, measure to the top of the graspable rail surface, which should be 865-965 mm (34-38 inches) from the nosing.
Can I use glass panels for stair railings in Canada?
Yes, tempered glass panels are code-compliant if they meet structural and safety requirements. The glass must be tempered or laminated safety glass, typically 1/2-inch thick minimum. Panels must resist the same lateral loads as other railings (0.5 kN/m). The 4-inch sphere rule still applies—if there are gaps between the glass and posts or rails, they can't exceed 100 mm. Glass railing systems are more expensive ($150-250/linear foot installed) but offer unobstructed views. Popular in modern builds and coastal BC where views matter. Ensure the system is rated for outdoor use and freeze-thaw cycles in Ontario and prairie climates.
Upload a backyard photo and preview real decking materials with AI — free, instant, no sign-up.
Permits, costs, material comparisons, and questions to ask your contractor — delivered to your inbox.