Fence Calculator

Home / Fence style calculators

Fence Calculator with Structure

Work out materials for a fence broken up by buildings: enter each section (A, B, C, D, E) separately.

Length of each section (ft)Sections A, B, C… between buildings.
A
B
C
D
E
Also sets how deep the posts go.
ft
Wood fence posts are usually 8 ft apart.
ft
rails
A 1×4 is 3½ in; a 1×6 is 5½ in.
in
in

Your result

Enter your numbers and press the button. Your result appears here.

Calculation Formula

Posts

\[\text{Number of Posts} = \sum_{i} \left( \left\lceil \frac{L_i}{\text{Post Spacing}} \right\rceil + 1 \right)\]

Rails

\[\text{Total Number of Rails} = \sum_{i} \left\lceil \frac{L_i}{\text{Post Spacing}} \right\rceil \times \text{Number of Rails}\]

Pickets

\[\text{Number of Pickets} = \sum_{i} \left\lceil \frac{L_i \times 12 + \text{Picket Gap}}{\text{Picket Width} + \text{Picket Gap}} \right\rceil\]

Concrete

\[\text{Bags per Post} = \left\lceil \frac{\left(\pi \left(\frac{D}{2}\right)^2 - w^2\right) \times d \div 1728}{0.375} \right\rceil\]

Fasteners

\[\text{Picket Fasteners} = \text{Number of Pickets} \times \text{Number of Rails} \times 2\]

Lᵢ is the length of each section between buildings in feet. Each section starts and ends with its own post. D is the hole diameter (3 × the post width), w is the actual post width (3½ in for a 4×4), d is the depth of concrete in inches and 0.375 ft³ is the yield of a 50 lb bag of fast-setting concrete. Posts go in the ground half as deep as the fence is tall, with 6 in of gravel underneath.

Example: 130 ft of fence needs 22 posts, 51 rails, 286 pickets and 110 bags of fast-setting concrete.

Fence Calculator with Structure diagram

Rules of thumb

ItemTypical
Depth in the ground⅓ of the post length, or below the frost line
Hole widthAbout 3 × the post width
Wood post spacing6 to 8 ft
Chain link line postsNo more than 10 ft
T-posts for barbed wire8 to 12 ft
Field fenceWood posts 8–10 ft, T-posts 6–8 ft

Common questions

How many rails does a fence need?

Two rails for fences up to about 4 ft, three for 5 to 6 ft and four for 8 ft fences.

Should posts be 4×4 or 6×6?

4×4 posts are standard for fences up to 6 ft. Use 6×6 for 8 ft fences, gate posts and windy sites.

How long should fence posts be?

Height above ground plus the depth in the ground. For a 6 ft fence that is usually a 9 ft post, so buy 10 ft stock and cut it, or set 8 ft posts deeper only where frost and soil allow.

How many pickets are in an 8 ft section?

With 5½ in pickets butted together, 96 ÷ 5.5 = 17.5, so 18 pickets. With 3½ in pickets and 2½ in gaps, 17.

Sources

  • Quikrete, Concrete Mix data sheet (bag yields): https://www.quikrete.com/PDFs/DATA_SHEET-Concrete%20Mix%201101.pdf
  • Quikrete, project calculator (post depth example): https://www.quikrete.com/calculator/