How Far Does a Deck Need to Be from a Fence in Ontario?
Learn Ontario deck-to-fence setback rules, OBC requirements, and KWC bylaws. Understand property line clearances and permit implications for your project.
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:
- Decks over 24 inches (60 cm) high need a building permit
- Structural elements must meet load and safety standards
- Guards (railings) required when walking surface is more than 24 inches above grade
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
- Rear and side yard: Typically 0.6 meters (2 feet) from property line
- Corner lots: Additional setbacks may apply on street-facing sides
- Ground-level decks (under 24 inches) often exempt from setbacks
Read the full application process
Waterloo
- Standard setback: Usually 0.6 meters (2 feet) from property lines
- Elevated decks: May require greater setbacks depending on height
- Some properties have unique zoning — always verify
Step-by-step Waterloo permit guide
Cambridge
- Minimum setback: Typically 0.6 meters (2 feet) from rear/side property lines
- Front yard decks: Often require 6+ meters from street
- Ground-level decks may have relaxed rules
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:
- Your deck can legally go closer to the fence than the setback distance
- You still must maintain the required setback from the property line itself
- Measure from the property line, not the fence
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
- Your deck must meet municipal setback rules from the property line
- You can't attach your deck to a shared fence without neighbor consent
- Attaching structural loads to a fence you don't fully own could create liability
Practical Considerations
- Even if your setback allows you to build 2 feet from the property line, consider going farther
- Heat, moisture, and drainage from your deck can damage fences
- Accessing the side of your deck for maintenance becomes difficult
- Your neighbor loses privacy and faces your deck floor/structure
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:
- Water drainage: Decks shed water. If you're against a fence, that water has nowhere to go and will rot the fence base
- Ventilation: Composite and wood decking need airflow underneath to prevent mold
- Access: You'll need to maintain both the deck and fence — leave working room
- Future changes: If you ever raise the deck, you'll need to meet setback rules
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
- Your application gets rejected
- You redesign and resubmit (delays of 2-4 weeks typical)
- Permit fees still apply
How long KWC permits actually take
After Construction
- Neighbor complaints trigger municipal inspection
- You receive a violation notice
- Options: apply for minor variance ($1,500-3,000) or demolish and rebuild
- Variance approval isn't guaranteed — neighbors can object
- Can't sell your home until violation resolved
Minor variance applications require:
- Detailed drawings showing the violation
- Justification for why setback wasn't met
- Notice to all neighbors within 60 meters
- Public hearing (neighbors may attend and object)
- 4-8 week process
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:
- Property lines (all four sides)
- Existing structures (house, garage, shed, fence)
- Proposed deck location with dimensions
- Setback measurements from deck edges to property lines
Most homeowners use their property survey. If you don't have one:
- Check with your real estate lawyer (often provided at closing)
- Request from your municipality (may have on file)
- Hire a surveyor for a new survey ($800-1,500)
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:
- Will the new fence posts fit between deck and property line?
- Can fence installers access the area with equipment?
- Does your deck overhang or shade the fence line?
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:
- Deck-mounted screens are considered part of the deck structure
- They must meet the same setback requirements as the deck
- Wind load increases — may require engineer approval
- Height restrictions apply (often 6 feet max from deck surface)
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:
- Setback rules may increase — covered structures sometimes face stricter rules than open decks
- Shadow impact on neighbor's yard increases
- Snow and water shed off the roof toward the fence
- Fire separation requirements may apply if structure is close to property line
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.
Upload a backyard photo and preview real decking materials with AI — free, instant, no sign-up.
Permits, costs, material comparisons, and questions to ask before requesting quotes — delivered to your inbox.