Fence Calculator
Estimates the materials for a fence: how many posts, sections, rails and pickets you need, how long the posts must be, and how much concrete sets them in the ground. Enter the fence length, the spacing between posts and the fence height, then the rail count, picket size and post size. Works in metres and centimetres or in feet and inches, with concrete in cubic metres or cubic yards.
- The fence is one straight run; gates and corners are not counted separately.
- Footing holes are 3 times the post size across and one third of the post length deep.
Formula
posts = ⌈length ÷ spacing⌉ + 1; rails = rails per section × sections; pickets = ⌈length ÷ (picket width + gap)⌉
- Sections = ⌈fence length ÷ post spacing⌉ (rounded up), and there is one more post than sections. If the length is not a whole number of spacings, the last section is shorter.
- Post length = 1.5 × fence height, so that one third of each post is buried.
- Concrete per post: the hole is 3 times the post's width (or diameter) across and one third of the post length deep, minus the post itself: square posts (9wt − wt) × post length/3, round posts π/4 × ((3d)² − d²) × post length/3.
- Counts are whole numbers; lengths and volumes of 1 or more are rounded to 4 decimal places, smaller ones to 6 significant figures. Imperial concrete is converted from cubic feet to cubic yards (÷ 27).
30 m fence, posts every 2.5 m, 1.8 m high
Inputs
- Units: metric
- Fence length: 30
- Post spacing: 2.5
- Fence height: 1.8
- Rails per section: 2
- Picket width: 9
- Gap between pickets: 3
- Post shape: square
- Post width: 10
- Post thickness: 10
30 ÷ 2.5 = 12 sections, so 13 posts, each 1.5 × 1.8 = 2.7 m long, and 2 × 12 = 24 rails. Pickets: 3,000 cm ÷ (9 + 3) cm = 250. Concrete: (9 × 0.1 × 0.1 − 0.1 × 0.1) × 0.9 × 13 = 0.936 m³.
Sources & references
Frequently asked questions
How many fence posts do I need?
Divide the fence length by the post spacing, round up, and add 1 for the end post. A 100 ft fence with posts every 8 ft needs ⌈12.5⌉ + 1 = 14 posts. Add one for each gate post and corner as needed.
How far apart should fence posts be?
Usually 6 to 8 ft (about 2 to 2.5 m). Closer spacing makes a stronger fence and is needed for heavy panels or windy sites.
How deep should fence posts be set?
A common rule is one third of the post's length underground, which is why the post is 1.5 times the fence height: for a 6 ft fence, a 9 ft post with 3 ft buried. Go below the frost line where the ground freezes.
How many pickets do I need?
Divide the fence length by the picket width plus the gap, and round up. 100 ft (1,200 in) of 3.5 in pickets with 1 in gaps needs ⌈1,200 ÷ 4.5⌉ = 267 pickets.
Related calculators
Concrete Slab Calculator Calculates the volume of concrete for rectangular slabs, footings and walls or for round columns and post holes. Choose imperial (feet and inches, result in cubic yards) or metric (metres and centimetres, result in cubic metres), enter the dimensions and how many identical pours you need, and add a waste allowance. If you use pre-mixed bags, enter the concrete density and bag weight to get the total weight, the number of bags and their cost. Cubic Yard Calculator Works out how many cubic yards of material you need for a job: mulch, topsoil, gravel, sand or concrete. Choose the shape of the area (a rectangular bed or slab, a round patio, a border around a bed, a ring, or a cone-shaped pile), enter its measurements in feet, inches, yards or metres, and you get the volume in cubic yards, cubic feet and cubic metres. Add the price per cubic yard to get the total cost of the delivery. Square Footage Calculator Calculates the square footage of a room, floor, lot or any surface from its measurements. Choose a rectangle, an L-shaped room split into two rectangles, a circle or a triangle, and enter the dimensions in feet, inches, yards, metres or centimetres. The area is given in square feet, square metres, square yards and acres, multiplied by the number of identical areas if you have several. Add a price per square foot, square metre or square yard to estimate the cost of flooring, carpet, paint or other materials. Gravel Calculator Estimates how much gravel you need for a driveway, path, patio base or garden bed, by volume and by weight. Describe the area as a rectangle, a circle or a known area, enter the depth of the layer and, if you know it, the density of your gravel (the default is a typical 105 lb/ft³ or 1,680 kg/m³). You get the volume in cubic yards or cubic metres, the weight in tons or tonnes, and, with a price per ton or per cubic yard, the cost of the order.