You're building a deck and need to know exactly how high your railings must be. Get it wrong and you'll fail inspection, delay your project, or worse—create a safety hazard.

Here's what matters: the National Building Code of Canada (NBC) sets the baseline, but your province likely has amendments. Most residential decks need 42-inch (1,067 mm) guards when the walking surface is 24 inches (600 mm) or more above grade. But that's not the full story.

When You Need Deck Guards in Canada

The NBC triggers guard requirements based on height above grade:

This applies to decks, balconies, landings, and any elevated walking surface. If your deck is 23 inches high, you're legally clear. At 24 inches, you need full perimeter guards.

Exception: Some municipalities impose stricter rules. Cambridge, Kitchener, and Waterloo occasionally require guards at 18 inches for commercial properties or multi-unit dwellings. Always check your local building department before framing.

NBC Standard Guard Height

The National Building Code specifies:

This applies to all provinces that adopt the NBC—which is most of Canada. Provincial codes typically mirror this standard with minor variations.

Province-by-Province Guard Requirements

Ontario (Ontario Building Code)

Ontario follows NBC standards with no deviations on guard height:

Ontario added a clarification in 2012: guards on stairs and ramps need the same 42-inch height measured vertically from the stair nosing, not perpendicular to the slope. This trips up DIY builders who measure parallel to the stringer.

Permit fees in Ontario municipalities range from $150-400 depending on deck size. Expect inspections at footing stage and final completion. If your railings fail inspection, you'll pay for a re-inspection visit ($75-150).

Learn more about getting permits for decks in Ontario.

British Columbia (BC Building Code)

BC adopts NBC standards but enforces them rigorously through municipal inspectors:

Vancouver, Victoria, and coastal municipalities often require hot-dipped galvanized or stainless steel fasteners for guard posts due to salt air exposure. Standard deck screws corrode faster, and failed connections mean guard failure.

Alberta (Alberta Building Code)

Alberta follows NBC without major amendments:

Calgary and Edmonton inspectors frequently fail installations where guard posts aren't anchored to footings or structural framing. Surface-mounted brackets on deck boards don't meet code—posts must connect to rim joists or blocking.

Quebec (Régie du bâtiment du Québec / RBQ)

Quebec has its own building code system but aligns with NBC on guard heights:

Montreal and Quebec City enforce strict compliance. Non-compliant guards discovered during resale home inspections routinely kill deals or force price reductions.

Saskatchewan & Manitoba

Both provinces adopt NBC standards directly:

Winnipeg's extreme temperature swings (-40°C to +35°C) cause significant material expansion/contraction. Inspectors look for proper expansion gaps and flexible connections on composite railings.

Atlantic Provinces (NS, NB, PEI, NL)

Maritime provinces follow NBC with local enforcement variations:

Halifax and St. John's inspectors frequently cite improper post spacing (over 6 feet) and inadequate lateral bracing on tall guards.

Guard Opening Requirements: The 4-Inch Sphere Rule

Every province enforces the 4-inch (100 mm) sphere rule: no opening in the guard assembly—between balusters, under the bottom rail, or through decorative elements—can allow a 4-inch sphere to pass through.

Why 4 inches? That's roughly the size of a small child's head or torso. This prevents:

Common violations:

Inspectors carry a 4-inch sphere gauge. If it fits through anywhere, you fail.

Exception: The 4-inch rule doesn't apply to the triangular space beneath the bottom stair riser and guard. That area can be larger.

Stair Guard Requirements

Guards on stairs have different rules:

Many builders confuse guard height with handrail height. You need both:

1. Guard (42 inches vertical) prevents falls over the side

2. Handrail (34-38 inches along slope) provides grip for balance

The guard can serve as the handrail if it meets handrail shape/graspability requirements (1.5-2 inches diameter, round or oval profile). Most 2x4 or 2x6 top rails don't qualify—they're too wide to grip properly.

See how cable railing systems meet these requirements.

Top Rail Strength Requirements

Guards must withstand:

This requires:

Flimsy railings installed with deck screws into deck boards will fail inspection. Posts need ½-inch through-bolts or structural lag screws into doubled rim joists.

Glass Panel Guards

Glass guards are popular for unobstructed views but must meet:

Glass railings cost $150-300+ per linear foot installed—significantly more than aluminum ($40-80/foot) or wood ($40-120/foot). Expect permit scrutiny and potential engineer approval for glass systems.

Compare different railing system options and costs.

Penalties for Non-Compliant Railings

Building without proper guards or permits carries real consequences:

Municipal fines:

Insurance issues:

Real estate complications:

Forced demolition:

The permit fee ($150-400) and proper railing installation ($40-120/linear foot) cost far less than fixing violations later.

Read about the risks of building without permits in Ontario.

Choosing Compliant Railing Systems

Common code-compliant options:

Wood balusters ($40-70/linear foot installed):

Aluminum balusters ($50-90/linear foot installed):

Composite railings ($60-100/linear foot installed):

Cable railings ($80-150/linear foot installed):

Glass panels ($150-300/linear foot installed):

Most composite decking projects pair best with aluminum or composite railing systems for consistent aesthetics and maintenance-free performance.

Inspections and Approval Process

Typical deck permit inspections in Ontario:

1. Footing inspection: Before pouring concrete, inspector verifies depth (48 inches minimum), rebar placement, and sonotube diameter

2. Framing inspection: After framing is complete, inspector checks joist spacing, ledger attachment, flashing, and guard post connections

3. Final inspection: After railings, decking, and stairs are installed, inspector verifies guard height, baluster spacing (4-inch sphere), and structural integrity

Guard-specific inspection points:

Failed inspections cost $75-150 for re-inspection visits. Get it right the first time by following manufacturer installation instructions and NBC/provincial code requirements.

If you're building your own deck in Ontario, expect closer scrutiny during inspections—inspectors know DIY projects have higher failure rates.

Common Questions

Can I build a deck without railings if it's under 24 inches high?

Yes. If your deck surface is less than 24 inches (600 mm) above grade at all points, the NBC and provincial codes don't require guards. However, check municipal bylaws—some cities impose stricter rules. Also consider safety: even a 20-inch deck can cause injury if someone trips near the edge, especially for children or elderly users.

Do I need a permit to replace existing deck railings?

Usually yes, if you're replacing the entire guard system. Minor repairs (replacing a few damaged balusters) typically don't need permits, but complete railing replacement is considered structural work requiring permit approval. Call your municipal building department before starting—working without a permit can result in fines and forced removal. In Ontario, permit fees run $150-400 depending on the municipality.

Can I use horizontal cable railings in Ontario?

Yes, but with restrictions. Horizontal cables spaced at 3-inch vertical intervals meet the 4-inch sphere rule and are NBC-compliant. However, they're climbable—a concern for families with young children. Some municipalities discourage or restrict horizontal cables for this reason. Always check with your building department. Vertical balusters are safer and universally accepted. Expect cable railing installations to cost $80-150 per linear foot.

What happens if my existing deck railings are too short?

If your railings are below 42 inches and your deck is 24+ inches high, they don't meet current code. You're not legally required to upgrade unless you're doing major renovations or additions that trigger permit requirements. However, non-compliant railings create liability risks—if someone is injured, your insurance may deny coverage. Selling your home? Expect buyer home inspectors to flag short railings, potentially killing deals or forcing price concessions. Budget $40-120/linear foot to upgrade to compliant systems.

How do I measure deck railing height correctly?

Measure vertically from the top of the deck walking surface (top of deck boards, not joists) to the top of the guard rail. Don't measure from grade or from the bottom of the deck structure. For stairs, measure vertically from the stair nosing (front edge of the tread) to the top of the guard—not perpendicular to the stair slope. The measurement must be at least 42 inches (1,067 mm) at all points along the deck perimeter. Deck boards can settle over time, creating low spots—measure at multiple locations to ensure consistent height.

🎨
See what your deck could look like

Upload a backyard photo and preview real decking materials with AI — free, instant, no sign-up.

Try PaperPlan free →

Planning a deck? Get 1–3 quotes from vetted local builders — free, no pressure.

Get free quotes →