Skip to content
Deck Railing Toronto logo

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, 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

LocationMinimum height
Guard, surface ≤ 1,800 mm above grade900 mm (36")
Guard, surface > 1,800 mm above grade1,070 mm (42")
Stair handrail (above nosings)865–965 mm (34"–38")

Deck-specific detail — including the bench trap and walkout decks — is in the deck railing code guide.

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

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

Text a photo of your stairs, porch, or deck and we'll send you a real number — usually the same day.

No deposit necessary · Fully insured & WSIB covered · 5-year workmanship warranty

CallText a Photo