Fence Calculator

Plan the materials for a fence. Enter the total length, post spacing, rails, and gates to estimate posts, panels, rails, and concrete.

Calculations run entirely in your browser. Nothing you enter is sent to a server.

Results

Enter your measurements to see an estimate.

Detailed breakdown

How to use the undefined

Enter the total fence length, height, and how far apart posts will sit (6 to 8 feet is typical). Set the number of rails per section, the number of gates, and each gate's width. The tool subtracts gate openings, then estimates posts, panels, rails, and the concrete needed to set the posts.

Formula and methodology

Fence line = total length − (gates × gate width). Sections = fence line ÷ post spacing, rounded up. Posts = sections + 1 + (2 per gate). Panels = sections. Rails = sections × rails per section, plus waste. Concrete assumes about 1 cubic foot per post hole.

Worked example

Fence: 100 ft, one 4 ft gate, 8 ft spacing, 3 rails. Fence line = 96 ft ÷ 8 = 12 sections. Posts = 12 + 1 + 2 = 15 posts, 12 panels, 36 rails. Concrete ≈ 15 cu ft. Enter the values above to confirm.

Helpful measurement tips

  • Set posts at least one-third of their height deep, plus gravel for drainage.
  • Gates need sturdier posts — consider larger holes and more concrete.
  • Confirm property lines and call before you dig for buried utilities.

Frequently Asked Questions

How far apart should fence posts be?
Commonly 6 to 8 feet on center. Closer spacing is stronger and suits heavy panels or windy sites.
How deep should fence posts be set?
A general rule is one-third of the above-ground height plus a few inches of gravel, deeper in frost-prone areas.
How much concrete per post?
Around 1 to 2 cubic feet per hole depending on post size and depth. This tool uses about 1 cubic foot as a planning figure.
How do I account for gates?
Enter the gate count and width. Gate openings are removed from the fence line and extra posts are added for hinges and latches.
How many rails do I need?
Two rails suit shorter fences; three or more are common for 6-foot privacy fences. Set the value that matches your design.
How accurate is this estimate?
It is a planning figure. Terrain, corners, and slopes change material counts, so verify on site.
Disclaimer: Results are general estimates for planning only. Terrain, corners, and local code affect materials. Verify property lines and call before you dig.