Skip to content
DIY and installation

How to Fence a Sloping Garden

Fences are easiest on flat ground, but plenty of British gardens slope. Here are the two main ways to deal with it.

Updated October 2026 · 3 min read

Illustration of a sloping garden with stepped fence panels on one side and a raked closeboard fence following the slope on the other

The short answer

There are two ways to fence a slope. Stepping uses standard panels set level, with each panel higher or lower than the last and the triangular gaps filled with gravel boards. Raking builds the fence to follow the slope, usually as closeboard, so the top runs parallel to the ground. Stepping suits gentle slopes and panel fencing; raking suits steeper or uneven ground.

Fence panels are rectangular and need to sit level, so a slope creates a problem: either the fence steps down the hill in a series of level sections, or it is built to follow the ground. Both are perfectly good solutions, and the right one depends on the gradient, the style of fence and the look you prefer.

Slopes also affect post lengths, the cost of the job and sometimes the need to hold back soil.

Stepped fencing

Each panel is set level, with the posts at different heights so the fence steps down the slope. The drop between panels leaves a triangular gap underneath, which is filled with gravel boards, cut timber or concrete boards.

  • Works with standard panels and slotted concrete posts
  • Looks neat on gentle, even slopes
  • Needs longer posts on the downhill side of each step
  • Gaps under each panel must be filled to keep pets in
Terraced houses on a hillside in a Welsh town

Raked fencing

A raked fence follows the slope, so the top line runs parallel to the ground. It is usually built as closeboard: the rails are fixed at an angle and the vertical feather edge boards are cut to follow the ground. There are no stepped gaps, and the fence looks continuous.

  • Best for steeper or uneven slopes
  • No triangular gaps at the bottom
  • Usually closeboard, built on site
  • Takes longer to build than stepped panels

Retaining soil and other considerations

Where the ground on one side is higher than the other, the fence may end up holding back soil. Ordinary panels and gravel boards are not designed to retain earth and will rot or push over. A proper retaining wall or sleeper wall may be needed first, with the fence on top or behind it.

On slopes, the height limit for planning purposes can be harder to judge. If the fence will be close to 2m on the lower side, check with your council.

Related serviceCloseboard & Feather Edge FencingPrices and quotes →

Typical extra costs on sloping ground

Typical extra costs on sloping ground
JobTypical UK price
Stepped panel fence on a gentle slopeAdd 10–20% to the level price
Raked closeboard fence£130–£220 per metre
Timber sleeper retaining wall, up to 600mm£150–£300 per metre

Indicative UK prices. Steep slopes, difficult access and retaining walls vary widely and need a site visit to price.

Rather leave it to a professional?

Describe your fence once – the length, height and style, or just the problem – and compare quotes from fencing contractors near you.

Get free fencing quotes

Describe your job once and compare quotes from local tradespeople who cover your area.

  • Free to use
  • No obligation
  • Compare local tradespeople
  • Quick online form
Get Free Quotes

You'll continue to our quotes partner, MyJobQuote, to describe your job.

Fencing on a slope: common questions

Can you put fence panels on a slope?

Yes, by stepping them so each panel is level and filling the triangular gaps underneath. On steeper slopes a raked closeboard fence is usually better.

How do you fill the gap under a stepped fence?

With gravel boards, cut timber boards or concrete boards fixed between the posts below each panel.

Is a raked fence more expensive?

Usually a little, because it is built on site and the boards have to be cut to the slope, but it looks better on steep or uneven ground.

Can a fence hold back soil?

Not reliably. If the ground is higher on one side, build a retaining wall first and put the fence on or behind it.

Ready to compare fencing quotes?

Free, no-obligation quotes from local fencing contractors.

Get Free Quotes