Fence calculator
Estimate outputs: Fence sections, Fence posts, Horizontal rails. Adjust Fence length, Maximum post spacing, Rails per section to match your project.
Estimate outputs: Fence sections, Fence posts, Horizontal rails. Adjust Fence length, Maximum post spacing, Rails per section to match your project.
Inputs and units
Use the units shown beside each field. Replace the sample values with your measurements and the figures on the selected product packaging.
| Parameter | Example input |
|---|---|
| Fence length | 30 m |
| Maximum post spacing | 2.5 m |
| Rails per section | 2 |
| Waste allowance | 5 % |
Formula and assumptions
Fence sectionsceil(Fence length / Maximum post spacing)
Fence postsFence sections + 1
Horizontal railsceil(Fence sections × Rails per section × (1 + Waste allowance / 100))
ceil = round up; floor = round down; max = the greater value. Trigonometric angles are converted from degrees to radians.
Allowance is applied before rounding to whole packages. Whole units are rounded up; displayed decimals are rounded only for readability.
Bulk density and compaction vary with moisture and the delivered material. The allowance does not model compaction; obtain the ordering conversion from your supplier.
Worked example
Sample values are examples, not product specifications. Run the calculation again with your own measurements.
| Result | Calculation |
|---|---|
| Fence sections | 12 |
| Fence posts | 13 |
| Horizontal rails | 26 |
Related calculators
Related tools use separate measurements. Check their inputs before transferring quantities.
These are quantity estimates. Confirm product coverage, site conditions and required dimensions before ordering.