Decks & Fencing

Fence Calculator

Place gate openings on measured runs before buying materials. Choose site-built infill, panel kits or chain link, and keep unique post geometry and optional concrete quantities separate from the priced-material subtotal.

Make it yours

Your numbers

Start with the example below, then adjust it to your home.

selection
ft

Product height specification only; prices and post-hole design do not automatically scale. Update them whenever this height changes.

selection
selection
ft
selection
selection
ft

Default 48 ft start plus 4 ft opening centers the gate on the 100-ft example only. Gate positions remain explicitly entered.

ft

Idealized centerline geometry ignores post thickness. Convert a real clear opening to the required post-center distance before purchasing.

ft
selection
selection
in
in
selection
%
rails
Assumptions and overrides
ft

Each rail must span a modeled bay. No unsupported splicing or offcut optimization is inferred.

selection
$ / post
$ / post
$ / picket
$ / piece
selection
selection
in
in

Gravel is excluded from concrete. Enter the depth in the chosen design, not a universal rule.

in
in

Part of the concrete envelope, not extra excavation. Post embedment/overlap is derived after excluding this pad and any gravel.

selection
cu ft

0.60 cu ft is the approximate 80-lb yield stated for QUIKRETE No. 1101; its 50-lb yield is 0.375 cu ft. Verify the actual product. Bag mass alone is not yield.

selection
%
Your numbers stay in your browser.
A clearer picture

Unique modeled fence and gate posts

14posts
Overall path including gate openings
100 ft
Gate openings deducted once
4 ft
Net fence infill length
96 ft
Infill bays — no gates
12 bays
Longest equalized bay within a segment
8 ft
Terminal endpoint posts
2 posts
Shared corner posts
0 posts
Gate boundary posts
2 posts
Intermediate line posts
10 posts
Aggregate whole-picket purchase estimate
231 pickets
Wood rail stock pieces, one per bay level
24 pieces
Net concrete across unique post holes
22.28 cu ft
Separate allowance-adjusted concrete demand
22.28 cu ft
Whole concrete bags — combined rounding
38 bags
Intermediate post overlap with concrete
2.5 ft
Terminal/gate/corner post concrete overlap
2.5 ft
Priced posts subtotal
$140.00
Active infill purchase subtotal
$808.50
Active separate rail subtotal
$144.00
Selected-material subtotal — exclusions below
$1,092.50
Updates as you adjust your numbers

An estimate, not a quote. Example rates are adjustable. See the assumptions below.

Estimate basis

Lengths are idealized post-center paths and gate boundary positions; post thickness is ignored in this model. Convert actual clear gate openings and product panel coverage to consistent reference points. Gate openings are deducted once; no infill or rails cross them. Bays are rounded per uninterrupted segment, then equalized within that segment. Shared endpoints and their holes count once; a gate-edge post takes precedence over corner/terminal classification.

The initial 48-ft start and 4-ft opening center a gate on the 100-ft example only. Moving the gate can change post and bay counts even when net infill stays the same.

Required above-ground height is 6 ft. All prices are editable examples, not verified quotes for every product. Height never silently scales price or excavation depth.

Pickets use the aggregate source coverage allowance before a single upward purchase rounding. This is not a per-bay cutting plan: post faces, end gaps, edge cuts and offcut reuse are unmodeled. Rail pieces count per bay and must span that bay.

Intermediate geometry: 3.5-in square post outer envelope; 10.5-in round hole; excavation 36 in, non-concrete base 0 in, top setback 0 in, concrete pad 6 in. Post overlap excludes the pad. Hollow interiors are excluded from concrete, not assumed filled or displaced only by thin walls.

Terminal/gate/corner geometry: 3.5-in square post outer envelope; 10.5-in round hole; excavation 36 in, non-concrete base 0 in, top setback 0 in, concrete pad 6 in. Post overlap excludes the pad. Hollow interiors are excluded from concrete, not assumed filled or displaced only by thin walls.

Concrete bags round the combined volume of unique post holes after the separate concrete allowance. Gravel is never concrete. This geometric estimate does not establish frost depth, wind resistance, soil capacity, excavation safety or a universal post-setting method. All special posts share one entered specification; separately assess posts needing other dimensions.

The selected-material subtotal includes only priced posts and the active infill/rail/wire system. Concrete, gate fabrication/hardware, fittings, delivery, tax and installation are excluded even when concrete quantities are shown. Transfer net infill length and the actual gate scope to Fence Installation Cost; do not deduct gates or add already included post/concrete costs twice.

Behind the numbers

How this calculator works

For each positive uninterrupted infill segment r, bays = ceil(r / maximum compatible bay spacing) and intermediate posts = bays−1. Count unique endpoint/corner/gate nodes once, plus intermediate posts. Gate boundaries get their posts but no infill. Wood rails = bays × rails/bay; pickets = ceil(net infill feet × 12/(actual width + gap) × (1 + picket allowance/100)). Panels use actual compatible span and explicit trimming permission; included rails/pickets are not added loose. Chain fabric and wire round selected roll lengths under the stated pooling convention; top rail rounds stock per segment. Concrete = hole cross-sectional area × concrete height − post outer cross-sectional area × its actual overlap. Exclude gravel and top setback; a pad below the post occupies concrete without post displacement. Sum unique holes, apply separate allowance once, then ceil(volume / effective bag yield).

A worked example

The 100-ft straight example has a 4-ft gate starting 48 ft from the beginning. Two 48-ft infill segments at maximum 8-ft bays need 12 bays, 14 unique posts and 24 rails. At actual 5.5-inch pickets, zero gap and 10% aggregate allowance, buy 231 pickets. Illustrative $10/posts, $3.50/picket and $6/rail give $1,092.50, excluding concrete and the gate itself. The source-style 10.5-inch round holes, 36-inch excavation, no gravel/setback, six-inch concrete pad and actual 3.5-inch square posts require 38 example 0.60-cu-ft bags for these 14 posts. As a separate synthetic geometry: 14 twelve-inch holes, 36-inch excavation, six-inch gravel, no pad/setback and 3.5-inch square posts give 24.51150516 cu ft, or 41 bags at 0.60 and 66 at 0.375 cu ft/bag. Neither geometry is a recommended footing design.

Assumptions & what’s included

  • Up to four open runs or a four-sided closed rectangle and up to two explicitly positioned gates are supported. Independent runs do not share endpoints; connected runs share stated corners. Only a declared closed rectangle closes the final endpoint. Gate overlaps or out-of-bounds placements are rejected. Gates touching a run boundary use that boundary post once; adjacent gate openings share their explicit boundary node.
  • Measurement convention is idealized post-center paths, with post thickness ignored. A real clear gate opening must be reconciled to its actual post centers. Bay spacing is a maximum, equalized within each uninterrupted segment. Panel coverage must use consistent reference points; nominal panel width alone is insufficient. Without verified trimming, every bay must match whole panel coverage exactly. Wood rail stock must span its bay.
  • The corrected default differs from the reference shortcut: 14 posts/12 bays/24 rails instead of 15/13/26. Moving the gate to 49 ft gives 49-ft and 47-ft infill: 15 posts/13 bays/26 rails. The same total/net length does not determine the same post count. Pickets retain the aggregate fractional source model, not a finite post-face layout or exact cutting plan.
  • Above-ground height is a product specification, not a general price or excavation-depth model. Changing it triggers a requirement to update products, stock lengths, prices and hole design. Example post prices do not certify uniform suitability for gate, corner and line posts. Panel kits include infill/rails only in this budget; confirm actual package inclusions. Chain-link fittings and gate components are excluded.
  • Reference hole examples: wood 3.5-inch square post in 10.5-inch round hole; vinyl 5-inch square outer envelope in 12-inch round hole; chain-link special/line round envelopes 2.375/1.625 inches in 7.125/4.875-inch round holes. Layer inputs are explicit, independently editable, and do not automatically change with fence height. Custom specifications allow different intermediate and combined terminal/gate/corner groups. A square post's diagonal must fit a round hole.
  • Concrete height = excavation − gravel − top setback. Post overlap with concrete = concrete height − concrete pad; embedment below grade = excavation − gravel − pad. All layers must fit. Hollow post interiors are excluded from fill using the exterior envelope; no filled hollow-post model or thin-wall displacement is implied. Concrete rounds combined demand, not bags per hole. No concrete volume arises from invented intermediate posts on zero-length infill.
  • QUIKRETE No. 1101 lists approximate yields of 0.60 cu ft/80-lb and 0.375 cu ft/50-lb bags. Its concrete-pad post example is distinct from the separate fast-setting gravel-base guide. This estimator does not combine them into a universal method or establish frost depth, wind resistance, soil bearing, boundaries or excavation safety.
  • Quantity calculations retain precision until display. Whole purchases round upward without subtracting an epsilon. Money uses the site's existing cents rounding (a positive half-cent such as 4274.055 displays 4274.06); intermediate quantities, labor and markup are not rounded to force totals. Displayed line items can differ by a cent from the rounded total. Original input measurements, not rounded result displays, should be used for manual transfers.

A few common questions

Why does gate position change the post count?

Each positive infill segment rounds bays separately. At 8-ft maximum spacing, 48+48 ft gives twelve bays, while 49+47 gives thirteen. Gate edges count as unique posts; they are not added again after their endpoints are already represented.

Does the subtotal pay for every listed quantity?

No. It includes only the entered active post/infill/rail/wire prices. Concrete bags, gate fabrication and hardware, fittings, delivery, tax and installation remain excluded. Use the installation budget with net infill length and an explicit gate scope, without duplicating posts or concrete.