Fence calculator

Run length, post spacing, gates, and pickets: calculate posts, rails, and pickets needed.

Open the interactive calculator

Quick answers for common sizes

SizeYou need
25 ft5 posts
55 pickets, 8 rails
50 ft8 posts
110 pickets, 14 rails
100 ft14 posts
220 pickets, 26 rails
150 ft20 posts
330 pickets, 38 rails

Computed with the calculator's default settings. Change the numbers for your own job.

Fence needed by size

LengthMain resultShopping list
10 ft3 posts3 posts Posts; 22 pickets Pickets; 4 rails Rails
25 ft5 posts5 posts Posts; 55 pickets Pickets; 8 rails Rails
50 ft8 posts8 posts Posts; 110 pickets Pickets; 14 rails Rails
100 ft14 posts14 posts Posts; 220 pickets Pickets; 26 rails Rails
150 ft20 posts20 posts Posts; 330 pickets Pickets; 38 rails Rails
200 ft26 posts26 posts Posts; 440 pickets Pickets; 50 rails Rails

Every other setting is at the calculator's default. Change them in the calculator for your own job.

Worked example

Using the default sizes, the result is 8 posts (110 pickets, 14 rails).

ItemQuantityNote
Posts8 postIncludes start and end posts
Pickets110 picket10% waste included
Rails14 rail2 per section
Concrete mix for post holes, 80 lb bags16 bag2 bags per post, rule of thumb

How it is calculated

  1. Sections: ceil(fenced length ÷ spacing)
    ceil(50 ÷ 8) = 7 sections
  2. Posts: sections + 1
    7 + 1 (start and end) = 8 posts
  3. Pickets per foot: 12 ÷ (picket width + gap)
    12 ÷ (5.5 + 0.5) = 2 pickets/ft
  4. Base pickets: length × pickets per foot
    50 × 2.000 = 100 pickets
  5. With waste: base pickets × (1 + waste)
    100.00 × 1.10 = 110 pickets
  6. Pickets to buy: pickets with waste, rounded up
    110.00 rounded up = 110 pickets
  7. Rails: sections × rails per section
    7 × 2 = 14 rails

What to enter

FieldUnitHelp
Run lengthftTotal length of the fence line.
Post spacingftDistance between posts. 8 ft is common.
Rails per sectionchooseTaller fences need a middle rail so pickets do not bow. Check your design.
Number of gatesgatesGate openings inside the run. Each one is taken out of the fence length and gets its own two posts.
Width of each gateftOpening between the gate posts. Only used when you have gates.
Picket widthinWidth of one picket.
Gap between picketsinSpace between pickets.
Extra for waste%Covers mistakes and damaged boards. You can change it.

Frequently asked questions

How do I calculate fence?

Run length, post spacing, gates, and pickets: calculate posts, rails, and pickets needed. Enter your sizes in the calculator. It works out sections (ceil(fenced length ÷ spacing)) and the later steps, then rounds up to what stores sell.

How much do I need for 25 ft?

With the calculator's default settings, 25 ft needs about 5 posts. Posts: 5 posts; Pickets: 55 pickets; Rails: 8 rails.

How much do I need for 50 ft?

With the calculator's default settings, 50 ft needs about 8 posts. Posts: 8 posts; Pickets: 110 pickets; Rails: 14 rails.

How much do I need for 100 ft?

With the calculator's default settings, 100 ft needs about 14 posts. Posts: 14 posts; Pickets: 220 pickets; Rails: 26 rails.

How much waste should I add?

The calculator starts at 10%. You can change it. More cuts, patterns or uneven ground need more.

Where does the fence post spacing number come from?

8 ft. contractor rule of thumb, editable This is an editable starting value, not an official figure. Change it if your product label or supplier says otherwise.

Where does the fence rails per section number come from?

2 rails/section. contractor rule of thumb, editable This is an editable starting value, not an official figure. Change it if your product label or supplier says otherwise.

Where does the fence post concrete bags number come from?

2 bag/post. Rule of thumb for 80 lb concrete bags set per fence post hole; depends on hole size. Not verified. This is an editable starting value, not an official figure. Change it if your product label or supplier says otherwise.

Does this calculator show prices?

No. It gives quantities and a shopping list you can share, print or export. Ask your supplier for prices.

Guides for this calculator

Common sizes

Related calculators