Your deck doesn't legally need to be any specific distance from your fence in Ontario — but it does need to meet setback requirements from your property line, which is usually where your fence sits or should sit.

The confusion happens because most homeowners think about fences as the boundary. In reality, building codes and municipal bylaws care about property lines, not fences. If your fence sits exactly on the property line (common for shared fences), then your deck setback from the fence equals your setback from the property line.

Ontario Building Code Requirements

The Ontario Building Code (OBC) doesn't specify deck-to-fence distances. Instead, it delegates setback rules to municipalities, which define how close structures can be to property lines.

🏗️ Planning a deck project?

Get a free manual project review, or visualize your dream deck with AI before requesting quotes.

The OBC does require:

Your municipality enforces these rules and adds its own setback requirements.

KWC Municipal Setback Rules

Here's what matters for Kitchener, Waterloo, and Cambridge homeowners:

Kitchener

Read the full application process

Waterloo

Step-by-step Waterloo permit guide

Cambridge

Cambridge permit application walkthrough

Important: These are general guidelines. Your property may have different requirements based on zoning, lot size, easements, or historical designations. Always check your specific property's zoning before designing your deck.

Learn how to verify your property's setback rules

When Your Fence Isn't on the Property Line

Many fences sit inside the property line, often by 6-12 inches. This creates a gap between the fence and the actual boundary.

If your fence is inset:

Example: If your fence sits 8 inches inside your property line and your setback requirement is 2 feet (24 inches), your deck needs to be 24 inches from the property line — meaning it can be just 16 inches from your fence.

Survey stakes or a property survey show the true boundary. Your real estate lawyer may have provided a survey when you purchased your home. If not, you can order a new survey for $800-1,500 in the KWC area.

Shared Fences and Neighbor Considerations

Shared fences (where the fence sits exactly on the property line) are common in Ontario subdivisions. When building a deck near a shared fence:

Legal Requirements

Practical Considerations

A 3-4 foot clearance between deck and fence makes maintenance easier and preserves neighbor relationships. If you're replacing an old deck, measure your current clearance — it often exists for good reasons.

Ground-Level Decks and Fence Proximity

Decks under 24 inches high in most KWC municipalities don't require permits and often have no setback requirements. This means you could theoretically build right up to your fence.

But consider:

Even for low decks, leaving 12-18 inches between deck and fence prevents problems.

Compare ground-level vs elevated deck requirements

Deck Height and Setback Impact

Taller decks sometimes face stricter setback rules:

| Deck Height | Typical Setback | Permit Required |

|-------------|-----------------|-----------------|

| Under 24" | Often none | Usually no |

| 24"-48" | 0.6m (2 ft) | Yes |

| 48"-96" | 0.6-1.5m (2-5 ft) | Yes |

| Over 96" | 1.5m+ (5+ ft) | Yes, may need engineer |

The logic: taller decks impact neighbors more through shadow, privacy loss, and structural risk.

If you're planning a second-story or elevated deck, expect closer scrutiny during permit review. Inspectors will verify setbacks carefully.

Elevated deck structural requirements

What Happens If You Build Too Close

Building inside the setback zone creates problems:

During Permit Review

How long KWC permits actually take

After Construction

Minor variance applications require:

It's cheaper and faster to get the setback right the first time — and understanding deck costs in Ontario explained helps you budget for proper planning from the start.

Measuring for Your Deck Permit Application

When you submit permit drawings, you'll need to show:

Most homeowners use their property survey. If you don't have one:

Don't guess. Eyeballing your fence location and assuming it's on the property line causes permit rejections.

Complete permit drawing checklist

Fence Replacement After Deck Construction

If you build your deck first and later replace your fence, plan ahead:

Standard fence posts are 4x4 inches and sit in 8-10 inch diameter concrete footings. If your deck is 2 feet from the property line and your fence will sit on the line, you'll have 24 inches of clearance — barely enough for digging post holes.

Consider building the fence first, or leave extra room when siting your deck.

Privacy Screens and Deck-Mounted Fences

Some homeowners want to mount privacy screens or fencing directly on their deck. This changes the rules:

Attaching a privacy screen to your deck guardrails is simpler than free-standing screens, but you still need to show it on permit drawings.

Privacy screen permit requirements

Pergolas, Roofs, and Covered Decks

Adding a roof or pergola to your deck near a fence creates additional considerations:

In KWC, pergolas and covered decks typically need separate permits beyond the deck permit itself.

Pergola and covered deck permit rules

Before You Finalize Your Deck Design

Here's your checklist:

1. Locate your property survey or order a new one

2. Verify your municipality's setback rules for your specific zoning

3. Measure from property lines, not fences

4. Add 6-12 inches buffer beyond the minimum setback for easier approval

5. Consider maintenance access — leave room to work on both deck and fence

6. Think about drainage — water needs somewhere to go

7. Talk to your neighbors if you're building close to a shared fence

Most deck permit rejections happen because homeowners guessed at setbacks. The 30 minutes you spend checking exact rules saves weeks of redesign time.

What KWC building inspectors actually look for

🎨 Not sure which material to pick?

Upload a photo of your backyard and see exactly how Trex, TimberTech, or cedar would look — free and instant.

Common Questions

Can I attach my deck to my fence for support?

No, not if it's a shared fence. Attaching structural loads to a fence you co-own with your neighbor requires their written consent and likely won't meet OBC structural standards. Fences aren't designed to carry deck loads. Use proper posts and footings for your deck structure instead.

My neighbor's fence is falling toward my property — can I build my deck closer to the property line?

Your neighbor's fence condition doesn't change your setback requirements. You still need to meet municipal rules measured from the property line. If their fence is over the line and encroaching on your property, that's a separate property dispute to resolve before building.

Do I need my neighbor's permission to build a deck near our shared fence?

You don't need their permission to build on your own property within legal setbacks. But if you're within 2-3 feet of a shared fence, talking to them first prevents problems. They might have concerns about drainage, privacy, or maintenance access. Addressing these early avoids complaints to the city later.

Can I build a deck right against my fence if it's a ground-level deck under 24 inches?

Legally, you often can — ground-level decks under 24 inches frequently have no setback requirements in KWC. Practically, don't. You need access for maintenance, the fence needs ventilation to prevent rot, and water needs drainage space. Leave at least 12-18 inches even for low decks.

What if my deck was built before I bought the house and violates setbacks?

Pre-existing non-conforming structures are often grandfathered — you won't face immediate enforcement. But if you apply for permits to renovate, expand, or rebuild the deck, you'll need to bring it into compliance with current setbacks. This can mean shrinking the deck or applying for a minor variance. Check with your municipality before planning any deck work.

Related: How Long Does It Take to Build a Fence in Ontario?.

You may also find Horizontal Fence Designs in Ontario: Modern Look, Local Code helpful.

Did this answer your question? Quick feedback helps us judge whether this guide is actually useful.
🎨
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? Send one request for a free manual review and quote follow-up.

Get free quotes →