Ontario Deck Railing Height & Guard Requirements 2026: The Code Rules That Trip Up Every DIYer (And Half the Contractors)

Deck Guards & Railing Height: The Code Rules That Trip Up Inspections
Ontario deck railing and guard requirements look simple on paper — really just five numbers — yet they fail more final inspections than almost anything else on a deck, and the fixes are expensive because the deck is already built. Here’s every guard and railing-height question answered, exactly the way an inspector checks them.
Every spring, Ontario inspectors fail a remarkable number of decks — not for bad lumber or structure, but for guard details. Wrong height, balusters too far apart, posts attached with wood screws, climbable horizontal rails. Yet the guard rules are among the simplest in the Building Code: really just five numbers. Below we answer the eight guard and railing questions homeowners ask most. This page is part of our complete guide to building a deck in Ontario.
Deck railing height: when a guard is required, and how tall
When do I even need a guard?
You need a guard on any deck or landing where the drop to the surface below is more than 600 mm (about 24 inches). The height is measured from the deck surface to the ground directly below the edge — not the average grade. If one corner is 28 inches up and another is 20, you guard the high side.
The code calls them “guards,” not “railings” — a guard stops you falling off an edge; a handrail is the graspable rail on stairs (more on that below). OBC 9.8.8.1
Does a ground-level deck need a railing?
No — if the deck surface stays under 600 mm (24 inches) above grade, no guard is required at all. That’s exactly why low platform or “floating” decks are so popular: keeping under the threshold removes an entire category of inspection items. But cross the line by even an inch and the full guard rules apply — there is no “close enough.”
Is the guard 36 inches or 42 inches?
It depends on how far the deck is above grade. From 600 mm up to 1,800 mm (24 inches to 6 ft), the guard must be at least 900 mm (36 inches). Over 1,800 mm (6 ft), it jumps to 1,070 mm (42 inches). Height is measured vertically from the finished deck surface to the top of the guard.
| Deck height above grade | Minimum guard height |
|---|---|
| 600 mm to 1,800 mm (24″ to 6 ft) | 900 mm (36″) |
| Over 1,800 mm (over 6 ft) | 1,070 mm (42″) |
Two ways to handle the permit (we’ll do the heavy part)
DIY with an instant PDF, or hand us the drawings. Either way, you skip the guesswork.
The Ontario Deck Bible
Your deck permit, filed by Sunday.
No specialist, no waiting room — just follow the steps.
Everything a designer does — for the price of a coffee run.
- File your own permit in a weekend — no specialist
- The guard, baluster & handrail rules in plain English
- Whether it’s your first deck or your fiftieth — you need this
- One coffee-run price vs a $1,500 designer
Secure checkout · download in 2 minutes · yours forever
Permit-Ready Deck Plans
Still need to sort the permit? We’ll do the paperwork.
Skip the building-department runaround. Grab the DIY report, or let us draw the plans.
+ $0.75/sq ft over 500 sq ft
- The full set your city wants: site plan, framing, elevation, section, details
- Guard heights, spacing & handrails drawn to code
- We handle the heavy part — you just submit and build
- Drawn by a BCIN-registered designer with 15 years’ experience
Most decks: a fixed price back within 1 business day
Baluster spacing, gaps and climbability
How wide can the gaps be? The 4-inch sphere rule
No opening in the guard may let a 100 mm (4-inch) sphere pass through — between balusters, at the bottom, or beside an adjacent structure. Some inspectors literally test every gap with a 4-inch ball. In practice, 2×2 balusters land about 3.5 inches apart, but don’t eyeball it — test with an actual 4-inch object.
The gap between the bottom rail and the deck is too big — now what?
The bottom is the gap people forget. Your deck boards have drainage gaps, and the space between the bottom rail and the deck surface adds to it — the combined opening must still block a 4-inch sphere. Run the bottom rail tight to the deck surface, or add a small trim piece to close the gap so it passes.
The triangle gap at the bottom of my stairs failed — how do I fix it?
The triangle formed by the stair tread, the bottom rail, and the first baluster has its own limit — it can’t pass a 150 mm (6-inch) sphere. It usually fails because the bottom rail runs too high above the nosings. Drop the rail closer to the tread line, or add a short baluster or a closing piece so the triangle tightens up.
Can I use horizontal or cable railings?
Guards must not be easily climbable by children, so the code restricts footholds between 140 mm and 900 mm above the deck. Vertical balusters are the safe default. Horizontal cable or rail designs read as a ladder to a toddler — some inspectors accept them with conditions, many don’t. If you love the look, get your building official’s approval in writing before you build.
OBC 9.8.8.5
Not sure your guard will pass the final?
Height, gaps, climbability, post connections — the inspector checks all of it. Ask the OBC Code Navigator any Ontario deck question and get the exact Article to show on site.
Is your guard up to code? Find out free →How strong must a guard be? Structure and connections
How strong does a guard have to be?
A residential guard has to resist real force — a horizontal load applied to the top rail, the kind of push three people leaning at a party create. Height and spacing mean nothing if the guard wobbles. The most common structural fail is guard posts attached with nails or lag screws to the rim joist — a connection that looks strong and isn’t.
The fix: through-bolt guard posts to the rim joist with carriage bolts and backing washers, or use engineered post-base hardware (Simpson Strong-Tie DTT or similar). Better still, extend the guard posts down past the deck frame as part of the substructure. A guard is only as strong as the framing it’s bolted to, which sits on the footings below — treat that connection as the most critical detail in the build.
Stair guards and handrails (they’re different things)
A handrail is the graspable rail you hold on stairs; a stair guard stops you falling off the open side. If a stair has more than three risers you need a handrail (865 to 1,070 mm from the nosing, graspable), and any open side dropping more than 600 mm needs a guard at least 900 mm high. The 4-inch sphere rule applies to stair guards too.
A flat 2×6 cap is not a graspable handrail — your hand can’t close around it. The full stair geometry, riser/run, landings, and handrail details live in our deck stairs & handrails guide. OBC 9.8.7
Is your guard ready for inspection?
Pre-inspection checklist
Most common failures
Quick reference: guard and handrail requirements
| Requirement | Specification | OBC Reference |
|---|---|---|
| Guard trigger height | 600 mm (24″) above the surface below | 9.8.8.1 |
| Guard height (up to 1,800 mm drop) | 900 mm (36″) minimum | 9.8.8.2 |
| Guard height (over 1,800 mm drop) | 1,070 mm (42″) minimum | 9.8.8.2 |
| Maximum opening in a guard | 100 mm (4″) sphere | 9.8.8.4 |
| Climbability restriction zone | No footholds 140–900 mm above the deck | 9.8.8.5 |
| Handrail height on stairs | 865–1,070 mm from the tread nosing | 9.8.7.4 |
| Handrail graspability | 30–43 mm diameter or equivalent profile | 9.8.7.3 |
| Stairs requiring a handrail | More than 3 risers | 9.8.7.1 |
Do you need a permit, and what gets inspected?
In most Ontario municipalities, any deck more than 600 mm above grade needs a building permit — and some require one for lower decks depending on size, attachment, or how close it sits to a property line. Your guard gets checked twice: at the framing inspection (post connections and structural details) and again at final (heights, spacing, and handrails). See exactly what to submit and when inspectors visit in our deck drawings & inspections guide.
What deck railings and guards cost in Ontario
Guard cost depends on material, height, and length of run. Here’s a rough 2026 Ontario range, installed:
| Material | Cost per linear foot (installed) | Notes |
|---|---|---|
| Pressure-treated wood | $30–$55 | Most common. Needs regular staining/sealing. Budget-friendly. |
| Cedar | $45–$75 | Better looks. Still needs maintenance. Popular in cottage country. |
| Composite | $60–$110 | Low maintenance. Higher upfront cost. Multiple colours. |
| Aluminum | $70–$130 | Zero maintenance. Clean modern look. Powder-coated colours. |
| Glass panels | $150–$300+ | Premium look, unobstructed view. Tempered glass. High-end cottages. |
For a typical 16 ft x 16 ft deck with guards on three sides (about 48 linear feet), that’s roughly $1,500–$2,600 for pressure-treated, $2,900–$5,300 for composite, or $7,200–$14,400+ for glass — posts, hardware, and labour included. Compare board and railing options in our deck railing kits and composite vs wood decking guides, then fit it into the full budget with our cost to build a deck guide.
Ontario-specific realities
Snow loads: deck structures must be designed for local ground snow load, which varies a lot — roughly 1.0–1.2 kPa in the GTA, 1.6–2.0 kPa around Barrie and Simcoe County, and over 2.5 kPa in Muskoka, Parry Sound, and Georgian Bay. That drives joist, beam, and post sizing — and where your guard posts land. Get it right in the framing first.
Frost depth for footings: footings must reach below the frost line — about 1.2 m in southern Ontario, up to 1.8 m or more in Simcoe County and northward. Size and place them with our deck footings guide, because a guard is only as strong as the structure under it.
Ledger connections: on an attached deck, the ledger must be through-bolted to solid framing and flashed, or our freeze-thaw climate pushes water behind it until it rots and the deck pulls away. The full detail is in our attaching a deck to the house guide.
Seasonal timing: central Ontario deck season runs roughly May through October, and permit review in busy municipalities can take weeks at peak. If you want it ready for summer, start the permit process in winter.
A story from the field
A contractor in Wasaga Beach built a beautiful cedar deck last summer — second-storey walkout, about 8 feet above grade. Great workmanship, solid structure. But he installed 36-inch guards. The deck was clearly over the 1,800 mm threshold, which requires 42 inches. The inspector failed it on the spot. The contractor argued 36 inches was “standard”; the inspector pointed to OBC 9.8.8.2 and handed him a copy. Replacing the guards — new posts, re-machined top rails, reinstalled balusters — cost about $3,200 in materials and two full days. The fix: know the two height thresholds before you cut a post. Over 6 feet, you build to 42 inches.
Frequently asked questions
When do I need a guard on my deck in Ontario?
Does a ground-level deck need a railing?
Is a deck railing 36 inches or 42 inches in Ontario?
How wide can the gaps in a deck railing be?
How do I fix the triangle gap at the bottom of my deck stairs?
Can I use horizontal or cable railings on a deck?
How strong does a deck guard have to be?
Is the gap between the bottom rail and the deck too big?
More from BuildersOntario — scroll to explore.


You note in your section “When is a Guard Required “, “The measurement is taken from the deck surface to the ground directly below the edge. Not the average grade. Not the high point. The point directly below the unprotected edge.” The 2026 Ontario Building code has actually changed this and OBC 9.8.8.1 (1) has added that the guard is required “..where the difference in elevation is more than 600mm between the walking surface and the adjacent surface within 1.2m.” so it is not as you state directly below the unprotected edge (of the deck) but rather and adjacent surface the adjacent surface to be considered extends up to 1.2m from the edge of the unprotected edge. so if the grade slopes away form the deck you must look at the elevation of th egrade up to 1.2m from the edge of the deck. not simply the grade immediately below the unprotected edge.
Good description of the rules. I assume the photo at the top was a failed attempt because of the horizontal climbing bars if nothing else. But I may be wrong???