Last updated:
How to use the fence calculator
- Measure your project (see the measuring tips below).
- Enter each measurement in the boxes above. Switch to Metric if you measured in meters or centimeters.
- Set the waste or extra allowance if the calculator has one. 5–10% is typical.
- Read the main result in the orange box, then copy, share or print your material list.
How to measure
Measure carefully and write each number down. For roofs, measure the outside of the house and add the overhang. For fences, measure along the actual line the fence will follow. For stairs, measure the vertical rise from the finished lower surface to the finished top surface.
The formula
Sections = length ÷ post spacing (rounded up). Posts = sections + 1. Rails = sections × rails per section. Pickets = length in inches ÷ (picket width + gap). About 2 bags of 50 lb concrete per post is typical.
Worked example
Say your project has the following measurements: fence length: 100 ft; post spacing: 8 ft; rails per section: 3; picket width: 5.5 in; gap between pickets: 0 in.
- Pickets219
- Posts14
- Rails39
- Sections13
- Concrete (50 lb bags)28
These are the default values loaded in the calculator above, so you can change any number and watch the results update instantly.
Planning your project
Before buying materials, find your property line and check for underground utilities by calling 811 in the US (or your provincial service in Canada). Many towns and homeowner associations also have rules on fence height, style and setback, so check them first.
Wood privacy fences are usually built with 4×4 posts, 2×4 rails and 1×6 pickets. Picket fences use the same structure with gaps between the pickets. Pressure-treated posts rated for ground contact last much longer.
Pro tips
- Mark the line with string and stakes before digging.
- Set corner and end posts first, then fill in line posts.
- Slope the concrete at the top of each hole so water drains away.
- Leave 2 inches between pickets and the ground to prevent rot.
- Seal or stain the fence after the wood dries out.
Frequently asked questions
How far apart should fence posts be?
Usually 6–8 feet. 8 feet is common for wood privacy fences; use 6 feet in windy areas.
How many rails does a fence need?
2 rails for fences up to about 4 feet and 3 rails for 6 foot privacy fences.
How deep should fence posts be set?
About one-third of the post length in the ground, and below the frost line in cold climates.
How many pickets are in 8 feet of fence?
With 5.5 inch pickets and no gap, about 18 pickets per 8 foot section.
Do gates change the material list?
Yes. Subtract the gate width from the fence length and add a heavier gate post on each side.