Fence calculator
Enter the length of the fence, what goes between the posts, the corners and the gates. The calculator counts the posts, the rails and pickets, panels, boards, mesh or barbed wire, and the bags of concrete that set the posts.
How the calculator works
- Fenced length. The fence length less the width of the gates.
- Sections. The fenced length divided by the post spacing, rounded up, plus one for each corner. With pickets, mesh or barbed wire, the calculator makes all sections equal, so they can be a little narrower than the spacing you typed. Panels and boards have a fixed width, so all sections are full and the last one is cut.
- Posts. One for each section, one more to end the run, and one for each gate. When a gate set comes with its own two posts, those take the places of the fence posts beside the opening: you buy two fence posts fewer for each gate, but you still dig and fill a hole for every post.
- Rails and pickets. The sections times the rails in each section. The fenced length divided by the picket width plus the gap, with the spare pickets added, rounded up.
- Panels or boards. One panel for each section. For boards, the fence height divided by the board height, rounded up, gives the rows; each section takes one board for each row.
- Mesh or barbed wire. Rolls of mesh: the fenced length divided by the roll length. Wire: the rows times the fenced length; for barbed wire, divided by the roll length for the rolls. Braces: one at each end of a run, two at each corner and at each braced center post.
- Concrete. For each hole in concrete, its area less the post, times the depth: π ÷ 4 × (hole diameter² − post size²) × hole depth for a round hole, length × width less the post for a square one. You choose which posts stand in concrete: all of them, only the end, corner and gate posts (with the braced center posts of a wire fence), or none. Those posts can have a deeper hole of their own. All holes in concrete together, divided by the yield of one bag, rounded up.
Worked example
A fence 100 ft (30.5 m) long and 6 ft (1.83 m) tall has one 4 ft (1.22 m) gate, 4 × 4 posts 8 ft (2.44 m) apart, three rails, and 1 × 6 pickets, 5 1/2 in (140 mm) wide, without a gap.
| Step | Calculation | Result |
|---|---|---|
| Fenced length | 100 ft − 4 ft | 96 ft (29.3 m) |
| Sections | 96 ft ÷ 8 ft | 12 sections |
| Posts | 12 + 1 + 1 gate | 14 posts |
| Rails | 12 × 3 | 36 rails of 8 ft |
| Pickets | 1,152 in ÷ 5.5 in × 1.10 = 230.4 | 231 pickets |
| Post hole | 3 × 4 in wide, 72 in ÷ 3 deep | 12 × 24 in (30 × 61 cm) |
| Concrete for one post | π ÷ 4 × (12² − 4²) × 24 = 2,413 cu in | 1.40 cu ft (39.5 l) |
| Bags | 14 × 1.40 cu ft ÷ 0.375 cu ft = 52.1 | 53 bags of 50 lb |
The posts are 6 ft + 2 ft = 8 ft (2.44 m) long. With 80 lb bags, which make 0.60 cu ft each, the same fence takes 33 bags. If the line turns two corners, it takes up to 14 sections, 16 posts and 42 rails. If the gate set comes with its own posts, you buy 12 fence posts and still set 14 posts in concrete.
The same 100 ft as 8 ft panels, without a gate: 100 ÷ 8 = 12.5, so 12 full panels and a 13th cut to 4 ft, on 14 posts.
A barbed wire fence 1,320 ft (402 m) long and 4 ft (1.22 m) high, with four rows, two corners and one 12 ft (3.66 m) gate, takes the barbed wire defaults: line posts 20 ft (6.1 m) apart and 20 in (51 cm) deep, a braced center post every 1,320 ft (402 m), so none on this line, and only the end, corner and gate posts in concrete, 36 in (91 cm) deep. 1,308 ft ÷ 20 ft = 65.4, so 66 sections, plus 2 for the corners: 68 sections and 70 posts. Six of them are end, corner and gate posts, each with 2.09 cu ft (59.3 l) of concrete around it in a 12 in hole: 12.6 cu ft, or 21 bags of 80 lb. The line posts are 5 ft 8 in (1.73 m) long, the end, corner and gate posts 7 ft (2.13 m). Four rows of 1,308 ft are 5,232 ft of wire, four rolls of 1,320 ft, and the fence takes 8 braces.
A wire mesh fence 50 m (164 ft) long with one corner, mesh 1.5 m (4 ft 11 in) high, posts 2.5 m (8 ft 2 in) apart, 25 m rolls and a braced post every 25 m: 20 sections plus 1 for the corner, 22 posts, 3 tension wires of 50 m (150 m, 492 ft), 2 rolls of mesh, and 6 braces: one at each end, two at the corner and two at the center post.
Post spacing, rails and pickets
The counts follow the planning sheet that Outdoor Essentials, a brand of fence products, publishes for picket fences.
| Part | Rule |
|---|---|
| Post spacing | 8 ft (2.44 m) on center; 6 or 8 ft is typical |
| Posts | One for each section, plus one to end the run, plus one for each gate |
| Rails | Two in each section for a fence 4 ft (1.22 m) tall, three for a fence 6 ft (1.83 m) tall |
| Pickets | Fence length ÷ (picket width + gap); 10 % more is recommended |
A corner needs a post. When the corner falls on the post spacing, it takes no extra section; when it does not, it adds one. The calculator counts one extra section and post for each corner, which is the most a corner can add, so the count is safe to buy from. The calculator takes the gates out of the fenced length; a gate that you build from pickets needs its own.
Panels and boards: full sections and a cut last one
A panel or a board has a fixed length, so the posts stand one panel or one board apart. The calculator counts full sections and shows the width of the last one, which you cut to fit. It shows the cut for a straight line without corners; each straight run between corners or gates ends with its own cut section. Boards that slide into grooved posts stack up to the fence height: a fence 6 ft (1.83 m) tall with boards that show 5 1/2 in (14 cm) takes 14 rows in each section.
Wire mesh and barbed wire
Mesh fences in Europe and Brazil come in rolls, held by tension wires between braced posts. The values are from the catalogue of Retissima, an Italian maker of mesh fences, the data sheet of the Spanish maker Moreda and the fencing manual of Belgo, a Brazilian maker of wire.
| Rule | Value | Source |
|---|---|---|
| Mesh rolls | 25 m (82 ft) | Retissima; Belgo |
| Post spacing, mesh | 2.0 or 2.5 m (6 ft 7 in or 8 ft 2 in); 3 m (9 ft 10 in) | Retissima; Moreda |
| Tension wires by mesh height | 1.0 and 1.25 m: 2; 1.5 m: 3; 1.75 and 2.0 m: 4; 2.25 and 2.5 m: 5; 2.75 and 3.0 m: 6 | Retissima |
| Braced posts | At the start and the end, at each corner, and every 25 m (Retissima) or 30 m (Moreda); a brace toward each direction the wires pull | Retissima; Moreda |
| Footing of a mesh post | 25 cm (10 in) wide and 50 cm (20 in) deep in the ground | Retissima |
| Barbed wire rolls | 500, 250 or 100 m (1,640, 820 or 328 ft) | Belgo |
| Barbed wire fence | Five rows; line posts at most 6 m (20 ft) apart; braced strainer posts at both ends of each straight run, set at least 1 m (3 ft 3 in) deep in a hole three times the post's width | Belgo |
A gate ends two runs of wire, so its two posts each take a brace. Mesh higher than 3 m (9 ft 10 in) is not in Retissima's table; enter its tension wires yourself. US chain-link fences usually hang the mesh from a top rail instead of tension wires.
Posts in concrete or in tamped soil
The posts of a picket, panel or board fence usually stand in concrete, as QUIKRETE shows. A wire fence for livestock works differently: the end, corner and gate posts carry the pull of the wire on braces, and the line posts between them only hold the wire up. These posts are often set in tamped soil, or driven.
| Rule | Value | Source |
|---|---|---|
| Line posts, barbed wire | At most 20 ft (6.1 m) apart, or 30 ft (9.1 m) with wire stays every 15 ft (4.6 m) | NRCS Missouri |
| Wood line posts | At least 20 in (51 cm) deep, the soil tamped; steel T-posts are driven | NRCS Missouri |
| End, corner and gate posts | At least 30 to 36 in (76 to 91 cm) deep, in tamped soil or in concrete at least 6 in (15 cm) thick around the post | NRCS Missouri |
| Braces | At the ends, on both sides of each gate, at turns of 25° or more, and a braced pair of posts at least every 1,320 ft (402 m) of straight barbed wire fence | NRCS Missouri |
| Brazil, barbed wire | End and corner posts at least 1 m (3 ft 3 in) deep in a hole three times their width, the soil tamped in layers; line posts at most 6 m (20 ft) apart | Belgo |
For barbed wire, the calculator starts with these values: line posts 20 ft apart and 20 in deep, a braced center post every 1,320 ft, and concrete only for the end, corner and gate posts, 36 in deep. The braced center posts that you add under "Braced center post every" count with them. Choose "None, tamped soil" to set every post in soil, as Belgo does; the calculator then counts no concrete. When you switch to another kind of fence, the post spacing, the braced center posts, the hole depths and the choice of posts in concrete change to that fence's values.
Post holes and concrete
The hole sizes and the bag yields are from QUIKRETE, a maker of bagged concrete. Its calculator for setting posts counts the hole less the post, as this one does: it takes the post as round, as wide as its nominal size, which comes close to a square lumber post's real size. Enter a post depth for a rectangular post, such as a 60 × 40 mm metal post, and the calculator takes its real section.
| Rule | Value |
|---|---|
| Hole diameter | Three times the post width: about 12 in (30 cm) for a 4 in post |
| Hole depth | One third to one half of the post height above ground: at least 2 ft (61 cm) for a 6 ft fence |
| Gravel | About 6 in (15 cm) in the bottom of the hole |
| Fill | Concrete up to 3 to 4 in (8 to 10 cm) below ground level |
| Bag | Concrete from one bag |
|---|---|
| 50 lb (22.6 kg) | 0.375 cu ft (10.6 l) |
| 60 lb (27.2 kg) | 0.45 cu ft (12.7 l) |
| 80 lb (36.2 kg) | 0.60 cu ft (17 l) |
| 25 kg (55 lb) | 11.6 l (0.41 cu ft) |
| 30 kg (66 lb) | 14 l (0.5 cu ft) |
For a bag of another size or brand, open "Another bag of concrete mix" and enter its weight and the yield printed on it; the calculator then also gives the weight of all the bags. Square holes and footings, such as 30 × 30 cm (12 × 12 in), take more concrete than a round hole as wide: 4 ÷ π, about 1.27 times.
The calculator fills the hole to its full depth with concrete, as QUIKRETE's calculator does. With gravel in the bottom and soil over the top, a hole takes a little less. QUIKRETE's data sheet sets the hole depth at one third of the whole post length, which is one half of the height above ground: 3 ft (91 cm) for a 6 ft fence. Type that depth to plan for it. For other volumes of concrete, use the concrete calculator.
Questions
How many fence posts do I need for 100 ft?
With posts 8 ft apart, 100 ÷ 8 = 12.5, so 13 sections and 14 posts. Add one post for each gate and up to one for each corner.
How far apart should fence posts be?
Outdoor Essentials spaces the posts of a wood picket fence 8 ft (2.44 m) on center and names 6 or 8 ft as typical. With panels, the panel width sets the spacing. Mesh fences use 2 to 3 m (6 ft 7 in to 9 ft 10 in).
How many pickets do I need?
Divide the fence length by the picket width plus the gap. 100 ft of fence with 5 1/2 in pickets and no gap takes 1,200 ÷ 5.5 = 219 pickets, or 240 with 10 % spare.
How deep should a fence post hole be?
QUIKRETE gives one third to one half of the post height above ground: 2 to 3 ft (61 to 91 cm) for a 6 ft fence. The hole is three times as wide as the post.
How many bags of concrete do I need for a fence post?
A 4 × 4 post in a hole 12 in wide and 24 in deep takes 1.40 cu ft: four 50 lb bags or three 80 lb bags. A hole 36 in deep takes 2.09 cu ft, six 50 lb bags.
How many rails does a fence need?
Outdoor Essentials uses two rails in each section for a fence 4 ft tall and three for a fence 6 ft tall.
Do all fence posts need concrete?
No. On a picket, panel or board fence, most builders set every post in concrete. On a barbed wire fence, the line posts are often driven or set in tamped soil, and only the end, corner and gate posts, which carry the braces, go in concrete or in deeper tamped holes: at least 30 to 36 in (76 to 91 cm) deep, says the NRCS in Missouri.
How many rolls of barbed wire do I need?
Multiply the fence length by the rows of wire and divide by the roll length. 400 m (1,312 ft) of fence with five rows takes 2,000 m of wire: four rolls of 500 m.
Sources
- Outdoor Essentials: Fence calculator, building with pickets (PDF)
- QUIKRETE: Setting posts in concrete
- QUIKRETE: Concrete calculator, Fast-Setting Concrete Mix to set a post
- QUIKRETE: Fast-Setting Concrete Mix, data sheet (PDF)
- QUIKRETE: Concrete Mix, data sheet (PDF)
- Retissima: Catalogue, Capo Horn chain-link mesh with posts, tension wires, braces and footings (PDF, in Italian)
- Moreda: Malla simple torsión MRT, data sheet with posts and braces (PDF, in Spanish)
- Belgo: Manual de cercas, barbed wire rolls and fence building (PDF, in Portuguese)
- Belgo: Fencing catalogue, Fortinet welded mesh in 25 m rolls (PDF, in Portuguese)
- USDA NRCS Missouri: Practice specification Fence (Code 382), barbed, woven and suspension fences, 2008 (PDF)
- 811: the national before-you-dig service
- How to design a garden layout
Checked on 16 November 2026. Bag yields differ by product; read the bag you buy.