Ontario railing code requirements
The Ontario Building Code sets the rules for every exterior guard and handrail on a house: when one is required, how high it must be, how tight the openings, how strong the anchors, and what glass is allowed. Here's the whole picture in plain language — porches, decks, balconies, stairs, and glass — from an installer who builds to it weekly. Not legal advice; your building department rules.
When the code requires a railing
- Edges with a drop: walking surfaces — decks, porches, balconies, landings — more than 600 mm (24") above the adjacent level generally need a guard.
- Stairs: exterior stairs with more than three risers generally need a handrail; open sides of stairs with a drop need guarding too.
- Balconies: always — they're high by definition, and almost always in the 42-inch height class.
Required heights at a glance
| Location | Minimum height |
|---|---|
| Guard, surface ≤ 1,800 mm above grade | 900 mm (36") |
| Guard, surface > 1,800 mm above grade | 1,070 mm (42") |
| Stair handrail (above nosings) | 865–965 mm (34"–38") |
Deck railings: the details
The 600 mm (24") trigger does the sorting: a deck surface at or below it generally needs no guard; above it, one is required. Right at the line, measure carefully. Walkout-basement decks are almost always over 1,800 mm and land in the 1,070 mm (42") class. And watch the bench trap: height is measured from anything standable beside the guard, so a built-in bench at the deck edge raises the required guard height — a classic inspection catch. What this means for your project: deck railings · deck railing cost.
Openings, climbability, strength
Residential guard openings generally can't pass a 100 mm (4") sphere — the picket-spacing rule that keeps small kids on the right side. Between about 140 and 900 mm above the walking surface, guards can't offer footholds; vertical pickets and glass panels pass automatically, horizontal-rail designs don't. And guards must resist real loads at the top rail and infill, which comes down to anchoring into structure — rim joists, concrete — not surface material.
Glass guards: the special rules
Glass in a guard must be safety glass — tempered or laminated — and glass guard designs in Ontario generally require professional engineering, because the panels (and in frameless systems, the mounting hardware) carry structural load. The practical takeaway: buy a glass railing as an engineered system, not as panels from a supplier and a weekend plan. The systems we install — framed and frameless — come with that engineering handled.
Pools are extra
Pool enclosures are governed by municipal bylaws on top of the building code — typically 1.2 m minimum height, self-closing/self-latching gates, and no climbable features. Covered on our pool railing page and in the permit guide.
What inspectors actually check
Height from the walking surface, the 100 mm sphere at the widest opening, post solidity (they push), climbability, and — for glass — that it's safety glass in an engineered system. Build to those five and inspections are boring, which is the goal. Every railing we install — aluminum picket included — is specced to pass before the truck leaves the shop.
Plain-language summary of common residential OBC requirements — not a code document or legal advice. Confirm specifics with your municipal building department.
Railing code questions
My deck is exactly 24 inches off the ground. Do I need a railing?
At 600 mm (about 24 inches) or less above grade, the OBC generally doesn't require a guard on a residential deck. Right at the line, measure carefully — and consider that a deck used by kids or older family members may deserve one regardless.
Does a bench against the deck edge change the guard rules?
Yes — anything that can be stood on next to the guard effectively raises the walking surface, so the guard height is measured from it. Built-in benches at deck edges are a classic inspection catch.
What's the difference between a guard and a handrail?
A guard stops you from falling off an edge; a handrail gives you something to grip on stairs or a ramp. One railing often does both jobs — a stair rail at the open side of porch steps is a guard with a graspable top.
Is 36 inches always enough for a porch railing?
For surfaces up to 5'11" (1,800 mm) above grade, yes — 900 mm (36") is the residential minimum. Higher than that and the guard needs to be 1,070 mm (42"). Most porches are in the 36-inch class; walkout decks and balconies usually aren't.
Does regular window glass work in a railing?
No. Guard glass must be safety glass — tempered or laminated — and glass guard systems generally require engineering in Ontario. Ordinary annealed glass breaks into shards and has no place in a guard.
Are these rules different for commercial properties?
Yes — loads, heights, and handrail requirements differ for buildings other than houses. This guide covers residential. Commercial work needs its own code review.
Skip the code homework — send photos instead
Call and we'll set up your free quote — or text a photo of your stairs, porch, or deck for a fast number.
No deposit necessary · Fully insured & WSIB covered · 5-year workmanship warranty
