basic

Fence Post and Rail Materials Calculator

Posts, rails, and boards needed for a fence run.

Calculates number of fence posts = ceil(total length / spacing) + 1, rails = posts × rails_per_span, and boards if a panel fence.

Published Last reviewed 1 min read

Inputs

m
m
m

Results

Enter values and click Calculate to see results.
Was this helpful?

How to use this calculator

  1. Fill in the inputs above using the units you already have.
  2. Values update automatically as you type — no submit button needed.
  3. Hover any result row for the underlying formula and intermediate values.

Formula

Posts = ceil(L/spacing)+1; Rails = (posts−1)×rails per bay

In depth

Calculates number of fence posts = ceil(total length / spacing) + 1, rails = posts × rails_per_span, and boards if a panel fence.