BuildCalcWorksMeasure. Calculate. Build.

Fence Calculator

Estimate fence sections, posts, rails, pickets, gates and the concrete around each post — for privacy, picket and post-and-rail fences — with waste allowances and optional material cost.

  • Free
  • No signup
  • Metric & Imperial

Fence measurements

Fence layout input

Enter the maximum spacing specified for your fence design.

Used in the project summary only — it does not change post depth or rail counts.

An open run adds one closing post per run. A closed perimeter returns to its starting post, so no extra closing post is added.

Enter the number of horizontal rails used in your fence design.

Use the actual face width of your boards, not the nominal size.

Enter 0 for boards installed tight against each other.

Applies to pickets only — it is separate from the concrete allowance.

Gate openings are subtracted from the length that needs rails and pickets.

Enter changes of direction that require a dedicated corner post beyond the basic straight-run calculation.

Post shape

Enter the hole dimensions specified for your project.

Use the actual measured post dimensions, not nominal lumber sizes.

Applies to the concrete volume only — it is separate from the picket waste allowance.

Section · 8 ft3 rails per sectionPicket 5.5 in · gap 0.25 in
A representative section between two posts. The diagram is educational only and is not drawn to scale.

Fence material estimate

Ready when you are

Enter your fence length, the maximum post spacing for your design and your picket dimensions. BuildCalcWorks works out sections, posts, rails, pickets and the concrete around each post.

BuildCalcWorks estimates material quantities from the dimensions and spacing you enter. Appropriate post spacing, hole depth, post size, fence height, structural details and code requirements depend on the fence design, site conditions and applicable local requirements.

How Many Fence Posts, Rails and Pickets Do I Need?

Fence materials depend on the total fence length, the maximum post spacing you are working to, the rails per section, the picket width and gap, and any gates or corners in the layout. The basic relationships are:

  • Sections = Fence Length ÷ Post Spacing, rounded up
  • Posts = Sections + 1 for a simple open straight run
  • Rails = Sections × Rails Per Section
  • Pickets = Fence Length ÷ (Picket Width + Gap), rounded up

How to Use the Fence Calculator

  1. 1Enter the fence length, or switch to multiple runs and enter each side.
  2. 2Enter the maximum post spacing for your fence design.
  3. 3Enter the rails per section.
  4. 4Enter the picket width and the gap between pickets.
  5. 5Add gates and corners if your layout has them.
  6. 6Enter the post-hole dimensions if you want concrete included.
  7. 7Choose the picket waste and concrete allowances.
  8. 8Optionally enter your local material prices.
  9. 9Select Calculate and review the bill of materials.

Need the project budget too?

The Fence Cost Calculator uses this same engine and adds your material prices, labor, removal, delivery, fees, contingency and tax to give a project total and a cost per linear foot.

Estimate project cost →

How Fence Posts Are Calculated

Divide the fence length by the maximum spacing, round up to get the number of sections, then add one closing post for an open run. For a 100 ft fence at a maximum spacing of 8 ft: 100 ÷ 8 = 12.5, which rounds up to 13 sections, giving 13 + 1 = 14 posts. Gate posts and corner posts are then added exactly as you specify them, and each is shown separately in the results.

Why Sections Are Rounded Up

If the division gives 12.5 sections, building only 12 would make each section wider than the maximum spacing you entered. The calculator therefore uses 13 sections and shows the resulting average section length — 100 ÷ 13 ≈ 7.69 ft — so you can see the spacing that actually results from evenly spaced posts.

Calculating Fence Pickets

Pickets are spaced on a repeating pitch: Picket Pitch = Picket Width + Gap. The number of pickets is the length needing boards divided by that pitch, rounded up. Enter the actual face width of your boards rather than the nominal size. For privacy-style fencing installed tight, enter a gap of 0 — no particular gap is universally correct, so the value stays yours to set.

Gates and Corners

Gate openings reduce the length that needs rails and pickets, so the gate width is subtracted before pickets are counted. Gates are treated as separate purchased or built units; gate infill materials are not estimated. Each gate can also add two boundary posts, and corners may share posts between connected runs. BuildCalcWorks exposes these assumptions as editable options rather than guessing your layout.

Concrete for Fence Posts

When concrete is included, the calculator uses the same geometry as the dedicated Post Hole Concrete Calculator: Concrete = Hole Volume − Embedded Post Volume, multiplied by the calculated number of posts. Bag quantities, weight and volume conversions come from the same shared concrete engine, so the results match that calculator exactly for identical inputs.

Material Estimates, Not Design Guidance

BuildCalcWorks estimates material quantities from the dimensions and spacing you enter. Appropriate post spacing, hole depth, post size, fence height, structural details and code requirements depend on the fence design, site conditions and applicable local requirements.

  • Spacing, depth and post size stay user inputs
  • Gate and corner assumptions are visible and editable
  • No structural, frost-depth or code guidance is implied

Disclaimer: This calculator estimates material quantity only and does not determine structural dimensions or code compliance. Read full Disclaimer.

How BuildCalcWorks calculations are created →

Frequently Asked Questions

Tools & Materials for Your Project

Helpful products and materials related to this calculation.

Disclosure: BuildCalcWorks may earn a commission from qualifying purchases made through links on this page, at no additional cost to you.

Example Tool

Fence Posts product recommendation placeholder

Example Tool

Fence Boards / Pickets product recommendation placeholder

Example Tool

Fence Rails product recommendation placeholder

Example Tool

Post Hole Augers product recommendation placeholder

Example Tool

Post Hole Diggers product recommendation placeholder

Example Tool

Concrete Mix product recommendation placeholder

Example Tool

Post Levels product recommendation placeholder

Example Tool

String Lines product recommendation placeholder

Example Tool

Fence Fasteners product recommendation placeholder

Example Tool

Measuring Tools product recommendation placeholder

Example Tool

Gate Hardware product recommendation placeholder

Example Tool

Safety Equipment product recommendation placeholder

Flooring

How to Calculate Square Footage for Flooring

Learn how to calculate square footage for flooring, measure rooms correctly, account for irregular areas and add waste before ordering flooring materials.

Read guide

Flooring

How Much Extra Flooring Should You Buy?

Learn how much extra flooring to buy for cuts and waste, when to use 5%, 10% or 15%, and how to calculate boxes for your flooring project.

Read guide