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

Builder Guide · Guards & Railings

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 gradeMinimum 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″)
The grey-zone trap: if your deck is near 6 ft, build to 42 inches. Grading, settling, and erosion can push the drop past 1,800 mm over time and make 36-inch guards non-compliant. The extra 6 inches of material costs almost nothing next to tearing guards off later. OBC 9.8.8.2

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.

Best value $1,500 designer value

The Ontario Deck Bible

Your deck permit, filed by Sunday.

No specialist, no waiting room — just follow the steps.

$1,500$29.99 one-timeSave $1,470

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
30-day money-back guarantee
Get instant access — $29.99 →

Secure checkout · download in 2 minutes · yours forever

Done-for-you

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.

$399 flat, up to 500 sq ftFraction of a designer

+ $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
Free quote · no obligation
Get my free plans quote →

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.

Builder tip: keep a 4-inch PVC coupling in the tool bag. Before calling for inspection, walk the whole perimeter and test every section. Ten minutes saves a callback, a reinspection fee, and the humiliation of failing a measurement you could have checked with a piece of pipe. OBC 9.8.8.4

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

First 2 questions free

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

Guard height from deck surface: 900 mm (or 1,070 mm if the deck is over 1,800 mm high)
4-inch sphere test passed at every opening — balusters, bottom gap, corners
No climbable horizontal elements between 140 mm and 900 mm from the deck
Posts through-bolted or attached with engineered hardware
Stair handrail is graspable (not a flat 2×6 cap)
Handrail height 865–1,070 mm from the stair nosing

Most common failures

Guard at 34″ instead of 36″ (measured from the wrong point)
Balusters at 4.5″ — looks close, fails the sphere test
Posts lag-screwed to the rim joist instead of through-bolted
Horizontal cable or rail design without building-official approval
Gap at the bottom of the guard that passes a 4″ sphere
No graspable handrail on the stairs (just a flat cap rail)

Quick reference: guard and handrail requirements

RequirementSpecificationOBC Reference
Guard trigger height600 mm (24″) above the surface below9.8.8.1
Guard height (up to 1,800 mm drop)900 mm (36″) minimum9.8.8.2
Guard height (over 1,800 mm drop)1,070 mm (42″) minimum9.8.8.2
Maximum opening in a guard100 mm (4″) sphere9.8.8.4
Climbability restriction zoneNo footholds 140–900 mm above the deck9.8.8.5
Handrail height on stairs865–1,070 mm from the tread nosing9.8.7.4
Handrail graspability30–43 mm diameter or equivalent profile9.8.7.3
Stairs requiring a handrailMore than 3 risers9.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:

MaterialCost per linear foot (installed)Notes
Pressure-treated wood$30–$55Most common. Needs regular staining/sealing. Budget-friendly.
Cedar$45–$75Better looks. Still needs maintenance. Popular in cottage country.
Composite$60–$110Low maintenance. Higher upfront cost. Multiple colours.
Aluminum$70–$130Zero 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.

It all connects: match your guard to the right boards with our deck railing kits guide, get the stairs & handrails right, and make sure the whole thing shows on the drawings you submit with your deck permit. According to the Ontario government’s building code page, all permitted work must meet the current edition of the OBC.

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?
You need a guard wherever the drop to the surface below is more than 600 mm (about 24 inches), measured from the deck surface to the ground directly below the edge – not the average grade. If one side is higher than that and another lower, you guard the high side.
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. That’s why low platform decks are popular – staying under the threshold removes the guard requirement entirely. Cross it by even an inch and the full guard rules apply.
Is a deck railing 36 inches or 42 inches in Ontario?
It depends on height above grade. From 600 mm 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 must be 1,070 mm (42 inches), measured vertically from the finished deck surface to the top of the guard.
How wide can the gaps in a deck railing be?
No opening may let a 100 mm (4-inch) sphere pass through – between balusters, at the bottom, or beside a structure. In practice 2×2 balusters land about 3.5 inches apart, but test with an actual 4-inch object rather than eyeballing it, since lumber dimensions vary.
How do I fix the triangle gap at the bottom of my deck stairs?
The triangle formed by the tread, bottom rail, and first baluster can’t pass a 150 mm (6-inch) sphere. It usually fails because the bottom rail runs too high. Drop the rail closer to the tread line, or add a short baluster or closing piece so the triangle tightens up.
Can I use horizontal or cable railings on a deck?
Guards must not be easily climbable, 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 act like a ladder to a child – some inspectors accept them with conditions, many don’t. Get written approval first.
How strong does a deck guard have to be?
A residential guard must resist a real horizontal load on the top rail – the push of several people leaning. The common fail is posts nailed or lag-screwed to the rim joist. Through-bolt the posts with carriage bolts and backing washers, or use engineered post-base hardware, so it doesn’t rely on fasteners alone.
Is the gap between the bottom rail and the deck too big?
It can be. Your deck boards have drainage gaps, and the space under the bottom rail adds to that – 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.
Disclaimer: General guidance based on the 2024 Ontario Building Code for residential decks; requirements vary by municipality and local amendments. Cited Articles and metric/imperial values are rounded for convenience. Always confirm with your local building department or a qualified professional before you build. This is not engineering or legal advice.
Related reading
More deck guides, calculators & advice

More from BuildersOntario — scroll to explore.

Loading latest posts… Tip: shift + mousewheel works great
Free planning help

Planning a build in Simcoe / Georgian Bay?

Get straight answers on budget, timeline, ICF vs. conventional, and radiant floor heating — before you spend a dime on the wrong stuff. We’re based in Simcoe County and work all over the Georgian Bay area: Collingwood, Wasaga Beach, Blue Mountains, Stayner, Barrie, Springwater, Oro-Medonte, Midland, Penetanguishene, Tiny, Tay, and nearby communities. And yes — once in a while we’ll go a little farther if the project is a great fit, especially when it’s a challenging build or you’re stuck without the right contractor.

Budget sanity check
Timeline reality check
ICF vs. conventional
Radiant floor guidance

Pick the path that matches where you are right now.

No spam. No pressure. Just a solid starting point.

2 Comments

  1. 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.

  2. 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???

Leave a Reply

Your email address will not be published. Required fields are marked *