How the fence estimate works
For a rectangle, add length and width, double the result, then subtract the gate opening. A 40 × 30 m plot has a 140 m perimeter. With a 4 m gate, the fenced length is 136 m.
Posts are counted between corners and gate ends
Each side is divided into intervals no longer than your chosen spacing. The two runs beside the centred gate are counted separately, so corners and gate ends receive a post. The example needs 69 posts, including the two gate posts. Without a gate, the fence is a closed loop and shared corner posts are counted once.
Use the result as a planning estimate
This calculator assumes a level, rectangular boundary, straight fence runs and one centred gate. It does not calculate extra bracing, foundations, terrain adjustments, roll joins, waste or the strength of gate supports. Check your supplier’s installation requirements before ordering.
Compare the gate and post-spacing choices
| Plot dimensions | Gate opening | Maximum spacing | Fenced length | Post positions |
|---|---|---|---|---|
| 40 × 30 m | 0 m | 2 m | 140 m | 70 |
| 40 × 30 m | 4 m | 2 m | 136 m | 69 |
| 50 × 30 m | 4 m | 3 m | 156 m | 54 |
Why dividing total length by spacing can miss a post
For the 50 × 30 m example, the centred 4 m gate leaves runs of 23, 30, 50, 30 and 23 m. At a maximum spacing of 3 m, these need 8, 10, 17, 10 and 8 intervals. Those 53 intervals need 54 post positions along the open fence line. Dividing the total 156 m by 3 and adding one would give 53 posts and underestimate this layout by one post.
Check the gate position, not just its width
This form places one gate in the middle of the side entered as Length. An off-centre gate or several openings changes the individual runs and can change the rounded post count. Combining several gate widths into one input does not represent those layouts. List the actual runs, corners and gate ends when planning another arrangement.
Read the estimate before ordering materials
- Keep every input in the selected unit. Selecting ft reads the entered numbers as feet; it does not convert an existing metre sketch for you. One international foot is exactly 0.3048 m. NIST: exact international foot conversion.
- Treat the post count as positions in this layout. The default 69 positions include four corners and two gate ends. Check which post types and any extra brace assemblies your chosen fence system requires.
- Measure an irregular boundary as separate straight runs and record each gate position. The map links below open measuring tools; copy the measurements yourself. There is no automatic boundary transfer into this rectangle form.
UGA Extension distinguishes line posts from corner, end and gate assemblies. Its construction guide helps explain why a position count is not a complete list of supports and fittings. UGA: Fences for the Farm.
Fence calculation questions
Can I calculate a fence without a gate?
Yes. Enter 0 for the gate opening. The post calculation then uses a closed rectangle, including four corner posts.
Is post spacing always exactly the value I enter?
No. The value is a maximum. The last interval before a corner or gate may be shorter. This calculator counts these intervals separately.
Can I use this for an irregular plot?
Use measured total length mode for a boundary traced on the map. It subtracts the gate opening without inventing rectangle dimensions. Only rectangle mode counts posts; perimeter alone cannot determine corner and gate posts.