To measure a fence, you need three core figures: the total boundary length, the height, and the number of panels and posts that length works out to. Getting these right before you buy materials is what stops you short of a panel halfway through a job, or left with awkward gaps at the end.

Whether you’re planning a simple garden boundary or a full outdoor makeover with pieces from Outsunny, getting these measurements right from the start makes the whole project far smoother.
How to Measure a Fence in 4 Simple Steps
- Measure the total boundary length: Walk the fence line with a tape measure or measuring wheel and record the distance in metres.
- Measure the height: Check from ground level to the intended top edge, at several points if the ground isn’t flat.
- Work out your panel count: Divide the total length by your chosen panel width, rounding up for any leftover distance.
- Confirm your post count and spacing: Add one extra post to your panel total, matching post centres to panel width.
Each of these steps is covered in more detail below, including how to handle slopes, corners, and gates.
What Do You Need Before You Start Measuring a Fence?
A handful of simple tools makes the whole process far more accurate:
- A tape measure (for short runs) or a measuring wheel (for longer boundaries).
- A spirit level, particularly useful on sloped ground.
- Wooden stakes or string line to mark the boundary as you go.
- A notepad or your phone to record measurements as you take them, rather than trying to remember them later.
- A helper, if possible, since holding a tape measure taut over a long distance alone is tricky.
Once you’ve got these to hand, you’re ready to start at one end of the boundary and work your way along.
How Do You Measure the Length of a Fence?
Start at one corner or fixed point and run your tape measure or wheel along the exact line the fence will follow, rather than a straight line across open ground if the boundary bends.

Record the total distance in metres, then repeat the measurement a second time to confirm it, since a small error at this stage carries through every later calculation. If the fence line isn’t perfectly straight, break it into sections, for example, measure each side of an L-shaped garden separately, then add the totals together for your overall length.
How Do You Measure a Fence on a Slope or Uneven Ground?
Sloped ground is where most measuring mistakes happen, because a tape measure laid directly on an incline gives you a longer reading than the true horizontal distance.
To measure accurately on a slope:
- Hold the tape measure level, using a spirit level to check it, rather than following the contour of the ground.
- For steeper slopes, measure in shorter, level stages and add the results together instead of trying to span the whole slope in one go.
- Note where the slope changes direction or gradient, since this affects how panels will need to be stepped or racked once installed.
Taking the time to measure level sections separately here means your final panel count will be accurate, even if the garden isn’t flat.
How Do You Measure Fence Height?
Fence height is measured vertically from ground level to the top edge of where the fence will sit, not from the base of the post if it extends below ground. Measure at a few different points along the run, particularly if the ground is uneven, since you may need to adjust panel height or use a stepped installation to keep the top line level.

Standard UK fence heights typically run from around 0.9m to 1.8m, so it’s worth deciding on your target height before finalising panel measurements, as this affects your overall materials list.
How Many Fence Panels Do You Need?
Once you know your total boundary length, divide it by the width of the panels you’re planning to use, most standard panels are 1.8m wide, though sizes vary. For example, a 21.6m boundary divided by 1.8m panels comes to exactly 12 panels.

However, real gardens rarely divide evenly, so round up to the next whole panel and plan to trim the final section, or adjust panel spacing slightly across the run so the gap is spread out rather than left as one obvious narrow section at the end.
How Do You Measure for Fence Posts?
Posts sit between each panel, so the number of posts is always one more than the number of panels for a straight run, 12 panels means 13 posts, for instance. Post spacing should match your panel width exactly, measured from the centre of one post to the centre of the next, since even a small error here compounds across a long fence line.

Additionally, measure the depth needed for each post hole, which is typically around a third of the post’s total above-ground height, so a 1.8m fence usually needs posts set roughly 600mm into the ground.
How Do You Measure a Fence Around Corners?
Corners need a little extra care, since the post at a corner is shared by two fence runs rather than one. Measure each boundary line separately up to the corner point, then treat the corner post as the shared start and end point for both sections rather than measuring it twice. If the corner isn’t a perfect right angle, take the angle into account when ordering panels, as some designs handle non-square corners more easily than others.
How Do You Measure for a Fence Gate?
If a gate is part of the run, measure the opening width first, allowing extra space for the hinge and latch hardware rather than measuring the gate frame alone. As a result, the panel run either side of the gate should be measured up to the edge of the gate posts, not across the gate opening itself. It’s also worth double-checking the gate height matches the surrounding fence line, particularly if you want a level top edge across the whole boundary.

If you’d rather skip digging altogether, we also have fences designed for that, no posts, no concrete, just set up and go.
Common Mistakes to Avoid When Measuring a Fence
- Measuring only once, always double-check totals before ordering materials.
- Measuring along a slope without accounting for the incline, which inflates the true distance.
- Forgetting to add the extra post required at the end of every straight run.
- Ignoring existing structures, such as a shed or wall, that the fence line needs to meet or work around.
- Ordering panels before confirming height requirements, especially near boundaries where taller fencing may need permission.
Knowing how to measure a fence correctly comes down to a few consistent habits: working the boundary in level, manageable sections, recording every figure as you go, and double-checking totals before you commit to an order. Once you’ve got the total length, height, and post spacing confirmed, working out your panel and post count becomes a straightforward calculation rather than guesswork. Take your time at this stage, and the rest of the fencing project, from ordering materials to final installation, goes far more smoothly.
FAQs
1. Do you measure a fence in metres or feet in the UK?
Metres are the standard measurement for fencing projects in the UK. However, many fence panels and posts are still sold in imperial sizes, such as 6ft panels, so it’s helpful to check both metric and imperial measurements before ordering materials.
2. How much extra should you add when measuring a fence?
Add around 2–3% to your total fence measurement to allow for trimming, corner adjustments, and minor measuring errors. This small allowance helps ensure you have enough materials and avoids delays if slight changes are needed during installation.
3. Do you measure a fence from the inside or outside of the boundary line?
Measure directly along the boundary line where the fence will be installed, rather than from inside or outside your garden. Measuring the actual fence line gives the most accurate length for calculating the number of fence panels, posts, and other materials required.