Fence Material Calculator

Count the posts, panels or pickets, rails and concrete bags for a fence from its length, height, style, gates and post spacing.

Loading calculator...

Quick answer
On this page

How to use the fence calculator

1

Enter the total fence length

Measure the full line, including the space where gates will go.

2

Pick the height and style

Choose ready-made panels or pickets and rails, and select the fence height.

3

Set post spacing and gates

Match post spacing to your panel width. Each gate removes its width from the fence line and adds one post.

4

Check concrete and waste

Set bags of concrete per post, and for pickets add a waste allowance.

How the fence materials are calculated

Fence formulas

Fence run = total length − gates × gate width

Sections = fence run ÷ post spacing, rounded up

Posts = sections + 1 + gates

Pickets = run in inches ÷ (picket width + gap) × (1 + waste %)

Concrete bags = posts × bags per post

Rails are 2 per section for fences under 6 ft and 3 per section for 6 ft and taller in this calculator.

Worked example: a 100 ft, 6 ft tall fence

The fence has one 4 ft gate, posts every 8 ft and 2 bags of concrete per post.

  • Fence run (100 − 4) 96 ft
  • Sections (96 ÷ 8) 12
  • Posts (12 + 1 + 1) 14
  • Post length (6 + 2) 8 ft
  • Concrete bags (14 × 2) 28
  • Pickets (96 × 12 ÷ 6.0 × 1.05) 202
  • Rails (12 × 3) 36

With ready-made panels, you need 12 panels. With pickets and rails, you need 202 pickets and 36 rails instead.

Check before you dig
Call your local utility locating service before digging post holes, and check local fence height rules and property lines. A fence on the boundary may need a neighbor’s agreement or a permit.

Fence calculator FAQ

Divide the fence run by the post spacing to get the sections, then add one post for the end and one for each gate.

Divide the fence run in inches by the picket width plus the gap, then add a waste allowance.

Many installers use one to two 50 lb bags per post. Soil, post size and local climate change the amount.

About 2 feet of the post is buried in many cases, so add 2 ft to the fence height. Frost depth in cold regions may require more.

Two rails are typical for shorter fences and three for 6 ft or taller. Check your design.

Yes. A gate takes up part of the fence line and needs its own extra post, which the calculator accounts for.

Embed this calculator on your website

Free to use on any site. Copy the code below and paste it into an HTML block on your page. Please keep the credit link under the calculator.

Show the embed code

Works with WordPress, Wix, Squarespace, Webflow and most site builders that allow HTML. How embedding works.

Estimates, not advice

PureCalculate’s calculators give estimates for planning and education. They aren’t financial, tax or legal advice. Fees and tax rules change, so check the official source before making a decision. Spotted a mistake? Please tell us through the contact page.

Scroll to Top