Decks & Fences

Fence Calculator

Enter your fence length in feet or metres to get the posts and panels to buy, with gates and multiple runs handled and an optional GST/HST-aware cost estimate.

Formula tested · Local units · No sign-up

Project inputs

Enter measurements

Use your preferred units. Results update automatically.

Measurements and project settings

Match your panel width; 1.8–2.4 m (6–8 ft) is common.

Each gate is assumed to occupy one panel bay and use two of the posts already counted. Gates and gate hardware are priced separately.

Each separate run needs an extra end post.

Optional cost estimate

Add local supplier pricing for a more complete estimate.

Optional. Leave blank to skip the cost estimate.

Optional. Leave blank to skip the cost estimate.

Canada applies 5% federal GST plus provincial sales tax or HST depending on the province. Enter the combined rate for your province.

Results update automatically
Show the calculation methodFormula, conversions, rounding, and assumptions

Panel bays = fence length ÷ post spacing, rounded up. Canadian wood fences are commonly built in 8 ft bays to suit 8 ft rails and 4 × 4 posts — the calculator accepts feet or metres and converts internally.

Posts = bays + the number of separate runs; an L-shaped fence entered as 2 runs gets 2 end posts beyond its bays.

Each gate occupies one bay on posts already counted, so panels to buy = bays − gates.

Real-world example

Worked example: L-shaped yard, 48 ft + 32 ft = 80 ft, 8 ft spacing, 2 runs

  1. Panel bays: 80 ÷ 8 = 10 exactly — no rounding needed.
  2. Posts: 10 bays + 2 runs = 12 posts.
  3. Panels to buy: 10 bays − 0 gates = 10 panels.

Buy 12 posts and 10 panels. Enter your supplier's post and panel prices and your province's combined GST/HST or GST+PST rate for a cost estimate.

Before you start

How to measure

  • Measure each straight run along the boundary and enter the total; set the number of runs so each run's extra end post is counted.
  • Measure in feet or metres — the calculator converts either way; just make sure the length and spacing units match what you actually measured.
  • Count each gate as one bay; wide driveway gates may need their own engineered posts outside this estimate.

Local guidance

Notes for Canada

  • Frost depth drives Canadian post holes: posts set shallower than the local frost depth heave and tilt with freeze–thaw cycles. Frost depth varies widely across the country — ask your municipal building department for the local figure and dig below it.
  • Confirm the property line before digging — a real property report or survey beats the existing fence line, which may itself be misplaced.
  • Contact your local utility-location service before digging (Click Before You Dig — each province runs a one-call service that marks buried lines for free).
  • Check municipal bylaws for height limits and pool-fence rules; some municipalities require permits for fences over a set height.
  • Sales tax is 5% federal GST plus provincial tax, or a combined HST, depending on the province — enter your combined rate.

Quick reference

Common Canadian fence planning values

ItemCommon value
Post spacing (wood privacy fence)8 ft (matches 8 ft rails)
Post size4 × 4 in pressure-treated
Post embedmentBelow local frost depth (ask your municipality)
Panel height5–6 ft where bylaws allow

Planning values only — local frost depth, bylaws and your materials govern.

Good to know

Common mistakes to avoid

  • Setting posts above the frost line — they heave within a few winters.
  • Digging without a Click Before You Dig locate — buried gas and telecom lines run through many suburban yards.
  • Entering an L-shaped fence as one run — each separate run needs its own extra end post, so set the runs field.
  • Relying on the old fence as the boundary line instead of a survey.
  • Leaving concrete, screws and gate hardware out of the budget — this estimate covers posts and panels only.

Need help?

Frequently asked questions

How deep should my fence posts go?

Below the local frost depth, which varies widely across Canada — your municipal building department publishes the figure used locally. This calculator counts posts; it does not size holes or estimate concrete (see the post-hole concrete calculator).

How many posts for 60 ft of fence at 6 ft spacing?

60 ÷ 6 = 10 bays exactly, so a single run needs 10 + 1 = 11 posts and 10 panels if there are no gates.

Who do I call before digging?

Use your province's one-call service — collectively promoted as Click Before You Dig — which arranges free marking of buried utilities. Request locates several business days before you plan to dig.

Keep planning

Related calculators

Transparency

About this calculator

Written by:
BuildMeasure Editorial Team
Technically reviewed by:
Pending independent technical reviewer (formula unit-tested; see methodology)
Last reviewed:
2026-07-16
Formula version:
1.0.0
Region reviewed for:
Canada
Spotted an error?
Report a correction

Methodology

  • Panel bays = total fence length ÷ post spacing, rounded UP to a whole bay. Lengths are converted to metres internally before dividing, so mixing feet and metres between fields is safe.
  • Posts = bays + number of separate runs, because each straight run needs one more post than it has bays. Exact multiples are not bumped up an extra bay.
  • Each gate is assumed to occupy one bay and hang on posts already counted, so panels to buy = bays − gates. Gates and gate hardware are never costed by this tool.
  • The cost estimate multiplies the post and panel counts by the prices you enter, then applies the tax rate you enter. No prices are built in.
  • The formula is covered by automated unit tests, including hand-calculated worked examples, and is versioned (see formula version on this page).

Sources & standards

  • Utility location: Provincial one-call services (Click Before You Dig) provide free utility locates across Canada.
  • Unit definitions: 1 ft = 0.3048 m (exact); calculations run in metres internally.

This tool provides a material estimate for planning purposes only. It is not a quotation, and it does not check boundary positions, wind loading, post embedment or local rules. Confirm the boundary line, any permit or approval requirements, and underground services before digging, and confirm quantities with your supplier before ordering.