Tinker Calc

Tools › Home & Garden

Fence Calculator: Posts, Rails and Pickets Needed

Enter your fence length, post spacing, gates and picket size to estimate how many posts, rails and pickets to buy. Works in feet and inches or metres and centimetres.

Lengths in ft or m; picket width and gap in inches or cm
ft / m
Total run including gate openings
ft / m
Common: 8 ft or 2.4 m; 6 ft or 1.8 m for heavy panels
ft / m
Width of each gate opening
2 for fences up to about 4 ft (1.2 m), 3 for taller fences
in / cm
Actual width, e.g. 5.5 in for a nominal 1x6 board
in / cm
Use 0 for a solid privacy fence
%
5-10% covers split or warped boards
Posts needed–
Fence sections (bays)–
Rails needed–
Pickets (exact fit)–
Pickets to buy (with waste)–
Fenced length excluding gates–
Summary–

How to use the fence calculator

Choose imperial or metric first. Fence length, post spacing and gate width are then in feet or metres, while picket width and gap are in inches or centimetres.

Enter the total length of the fence line including any gate openings, the centre-to-centre distance between posts, how many gates you plan and how wide each opening is. Then set the rails per section, the actual width of your pickets or boards, the gap you want between them and a waste allowance.

The formula in words

First the gate openings are subtracted from the total length to get the fenced length. That length is divided by the post spacing and rounded up to give the number of sections (bays); a short final bay still counts as a full section.

Posts = sections + gates + 1. Every bay and every gate opening sits between two posts, and a straight run always needs one more post than it has openings. Rails = sections × rails per section.

Pickets = fenced length (converted to inches or cm) ÷ (picket width + gap), rounded up. The waste percentage is then added and rounded up again to give the number to buy.

Worked example

A 100 ft fence with one 4 ft gate, posts every 8 ft, 2 rails per section and 5.5 in pickets with a 0.25 in gap. The fenced length is 100 − 4 = 96 ft, which is 96 ÷ 8 = 12 sections. Posts = 12 + 1 + 1 = 14, and rails = 12 × 2 = 24.

96 ft is 1,152 in. Each picket plus gap covers 5.75 in, so 1,152 ÷ 5.75 = 200.3, rounded up to 201 pickets. Adding 5% gives 211.05, so buy 212 pickets.

Practical tips

Corners and ends need sturdier posts, and a fence with several corners or separate runs needs one extra post per break in the line, so count each straight run separately if your layout is not a single line. Rails usually come in 8 ft or 2.4 m lengths, so match your post spacing to the rail length to avoid offcuts.

Results are estimates for a level, straight fence. Slopes, stepped panels and gate hardware can change the count, so check your plan before ordering.

Frequently asked questions

How far apart should fence posts be?

Most wooden fences use 6 to 8 ft (1.8 to 2.4 m) between post centres. Use the closer spacing for tall privacy fences, windy sites or heavy panels.

How many pickets do I need per 8 ft section?

With 5.5 in pickets and a 0.25 in gap, each picket covers 5.75 in, so an 8 ft (96 in) section needs about 17 pickets. With no gap it needs 18.

Do gates need extra posts?

Yes. Each gate adds one post compared with a solid fence, because the opening needs a post on both sides. Gate posts should be heavier and set deeper than line posts.

How much extra material should I buy?

A 5 to 10% allowance on pickets covers split, warped or miscut boards. Many people also buy one spare post and rail in case of damage.

Related tools

Concrete Calculator: Slabs, Footings and BagsWork out how much concrete you need for a slab or footing in cubic metres or cubic yards, plus the number of premix bags, with a waste allowance.Electricity Cost Calculator: Appliance Energy UseWork out how much any appliance costs to run. Enter watts, hours per day and your price per kWh to get kWh used and cost per day, month and year.Flooring Calculator: Square Footage and Boxes NeededWork out floor area in ft² or m², add a waste allowance and see how many boxes of laminate, vinyl, hardwood or tile to buy, plus the total cost.Mulch Calculator: Cubic Yards, Cubic Metres and BagsWork out how much mulch you need for any garden bed in cubic yards, cubic feet, cubic metres or litres, plus the number of bags to buy.Paint Calculator: How Much Paint Do I Need?Estimate how much paint you need for a room. Enter wall size, doors, windows and coats to get litres or gallons, in metric or imperial units.Pool Volume Calculator: Gallons and LitresWork out how many gallons or litres your pool holds. Rectangle, round and oval pools, constant or sloped depth, in metres or feet.