Skip to content
Chester County’s Premium Fence ContractorWest Chester & Newtown Square(610) 890-4988

Fence Guide

How to Build a Fence on Sloped Ground

Racking and stepping are the two ways a fence follows a grade, the fall across a single panel decides which is correct, and footings, drainage and gates all change on a hill.

Last updated

Chester County is rolling ground and very little of it is flat. Most fence lines we lay out cross a grade somewhere, and how that grade is handled is the difference between a fence that reads as one deliberate line and one that looks like it was assembled by three different crews.

There are exactly two methods. Rack the panel so it follows the slope, or step it so each section stays level and takes the drop at the post. The choice is not a matter of taste. It is decided by the material and by one measurable number — how far the ground falls across the width of a single panel. Get that number first and everything else follows from it.

The number that decides the method: fall across one panel

Before any discussion of method, measure the drop across the width of one panel — six or eight feet, depending on the system — at the steepest point of the run. A string pulled level from the high post to a point above the low post, with the drop measured down to grade, gives it in a couple of minutes.

That figure, not the overall slope of the yard, is what governs. A long shallow grade falling a few inches per panel racks invisibly. A short bank falling a foot or more across the same span cannot be racked by any residential panel system and has to be stepped or built on site. A single yard often contains both, which is why the method sometimes changes partway along a run.

Manufacturers publish a racking capacity for each panel, usually as a maximum rise over the panel width or as an angle. Exceeding it does not produce a slightly imperfect fence. It produces racked-out rail pockets, split routing and a panel that will never sit square.

Racking: the panel follows the grade

A racked panel pivots at the picket-to-rail connection, so the rails run parallel to the ground while the pickets stay plumb. The top of the fence follows the contour of the yard in a continuous line and the bottom does the same, which means no gap underneath and no stair-step silhouette.

It is the better-looking answer wherever it is available, and it is the only one that keeps a dog or a small child from finding the wedge under a stepped section. What it cannot do is exceed the tolerance built into the system.

  • Rackable aluminum — pickets are attached with a swaged or pinned connection designed to pivot, and rackable panels are specified as such at the order. Standard welded panels do not rack.
  • Vinyl privacy and picket systems, within the manufacturer's stated capacity, which is modest — vinyl rails are rigid and the routed pockets have limited tolerance.
  • Site-built wood fence, which racks without limit because rails are cut to the actual slope and boards are fastened one at a time. The most flexible method available and the most labor.
  • Pre-built cedar panels on gentle grade only. A dog-ear or stockade panel has some give at the fasteners, but very little of it.
  • Chain link, which conforms to almost any grade because the fabric is flexible and the top rail is cut to the run.
  • What will not rack: welded aluminum and steel panels, most composite systems, mortised post-and-rail beyond a shallow angle, and any panel whose manufacturer specifies level installation.

Stepping: when level sections are the correct answer

A stepped fence holds every section dead level and takes the elevation change vertically at each post. The result is a stair-step top line, which on formal frontage or an ornamental run frequently looks better than a racked line, and on a steep bank is the only thing that will work at all.

Step when the system will not rack, when the grade exceeds the racking capacity, when the fence should read level for aesthetic reasons — a straight top line alongside a house or a courtyard usually should — or when the run crosses a terrace or retaining wall where the ground is already stepped.

Stepping needs longer posts, because each post carries the fence height plus the drop it absorbs, and it needs the steps planned across the whole run rather than section by section. Equal steps across a uniform grade look intentional. Unequal steps, or a run that dumps all its drop into the last two panels, looks like a mistake even when it is structurally sound.

The triangular gap under a stepped run, and the four ways to close it

This is the consequence of stepping that nobody raises at the quote. Because each section is level and the ground is not, a wedge of open space opens beneath every section — widest at the downhill post, closing to nothing at the uphill one. Over a steep grade that wedge can be large enough for a dog to walk through.

There are four ways to deal with it, and which one is right depends entirely on why the gap matters to you.

  • Leave it. On an ornamental or ranch fence where containment is not the point, the gap is unremarkable and the airflow keeps the bottom of the fence dry.
  • Fit a rot board — a wide pressure-treated or composite board scribed to the ground line beneath the fence. It closes the wedge, takes the wear at grade, and can be replaced without touching the fence itself.
  • Regrade or backfill under the run so the ground rises to meet the level section. Fine over a small drop, a drainage problem over a large one, because you are placing fill across a path water is already using.
  • Cut the panel to grade, so the bottom of the section follows the ground while the top stays level. The cleanest result and genuinely custom work — the panel is built or trimmed as a wedge rather than a rectangle.

Custom-cut panels and site-built fence on steep ground

Past a certain grade the pre-built panel stops being the right unit of construction. On a real bank the answer is to build on site: posts set to the line, rails cut to the actual slope between them, and boards or pickets fastened individually and cut to length top and bottom.

It costs more in labor and it earns that back on the runs that are visible, because it produces a continuous line with no gap and no stair-step on ground where a panel system would produce both. It is also the only practical answer where the grade changes direction mid-run — a swale crossing, a berm, the transition from a terrace onto a bank.

Aluminum has a parallel version of the same idea. Where grade exceeds racking capacity, panels can be ordered raked to a specified angle, or stepped with a modified bottom rail. Which of those is available depends on the system, and it is decided at the order rather than in the field.

Posts and footings change on a slope

Three things change below ground on a hill, and each one is a place where a sloped fence fails while the same fence on flat ground does not.

Post length first. A stepped run needs posts long enough to carry the fence height plus the step, and ordering standard-length posts for a sloped run is a reliable way to end up splicing. Footing depth second, and this is the one that gets missed: the frost line does not follow a datum, it follows the surface, so every post has to reach below frost depth measured where that post actually stands.

Lateral load third. A post on a slope is braced by less soil on the downhill side than on the uphill side, and the soil it does have is the soil most likely to move. Chester County clay holds water and heaves, and a fence line running across a hillside is the classic place to find posts leaning downhill three winters later. Wider footings on the downhill posts and concrete crowned to shed water away from the post are cheap insurance against that.

Water is the reason slope fences fail

A fence line across a slope behaves like a small dam. It sits perpendicular to the direction water wants to travel, and the posts, the footings and the bottom board all interrupt the flow.

Two failures follow. Above the fence, silt and leaf litter build against the bottom rail and hold moisture there, which is the fastest way to rot a bottom board and the reason a replaceable rot board earns its keep. Below the fence, water concentrated by the run scours a channel and undermines the downhill posts.

The fixes are unglamorous. Keep a deliberate gap or a sacrificial board at grade rather than burying the fence in the ground. Crown the concrete at every post so water runs off rather than standing in the collar. Do not backfill a stepped run with material that dams the flow. And where the line crosses a swale or a defined drainage path, leave that crossing open at the bottom, because water will make its own opening if you do not give it one.

Gates on a slope need a level pad

A gate is the one component that cannot rack, cannot step and cannot follow a grade. It is a rigid rectangle swinging through an arc, and the ground under that arc has to be flat enough for it to clear at every point in the swing.

Which means gate location is chosen before the fence line is finalized, not after. Put the gate on the flattest available stretch of the run. Where the grade genuinely will not allow that, build a level pad — regrade the swing area, or set the gate on a landing between two steps of a stepped run.

Where the ground rises in the direction of swing, the gate has to hang high enough to clear the high point, which leaves a gap at the low point. Where that gap is unacceptable — a pool barrier, a yard containing a small dog — the answer is to swing it the other way, regrade, or step the pad. A gate hung to clear a slope it should never have been asked to cross is the most common gate complaint we get called out to fix.

Common questions

Frequently Asked Questions

What is the difference between racking and stepping a fence?

Racking lets a panel pivot at the picket-to-rail connection so the rails run parallel to the ground and the fence follows the slope continuously, with no gap underneath. Stepping keeps every section level and takes the elevation change vertically at each post, producing a stair-step top line and a triangular gap beneath each section. Racking looks better where the system allows it. Stepping is required on steeper ground and on panels that cannot rack.

How steep a slope can a fence rack over?

It depends on the system, and the figure that matters is the fall across a single panel rather than the slope of the yard. Manufacturers publish a racking capacity as a maximum rise over the panel width. Rackable aluminum handles the most among panel systems, vinyl noticeably less, and pre-built cedar panels very little. Site-built wood fence racks without limit because rails are cut to the actual slope. Measure the drop at the steepest point before choosing a material.

How do you close the gap under a fence on a slope?

Four options. Leave it, where containment is not the point. Fit a rot board scribed to the ground line, which closes the wedge and can be replaced later without disturbing the fence. Regrade or backfill beneath the run, which works over small drops and creates drainage problems over large ones. Or cut the panel to grade so the bottom follows the ground while the top stays level, which is custom work and the cleanest result.

Do fence posts need to be set deeper on a slope?

Footing depth is measured from grade at each individual post, and the frost line follows the ground surface rather than a fixed elevation, so every post has to reach below frost depth measured where it stands. Downhill posts also carry less soil bracing them and benefit from wider footings. Stepped runs need longer posts as well, since each post carries the fence height plus the drop it absorbs.

Can a gate be installed on a sloped section of fence?

A gate cannot rack or step, so it needs a level pad. The best answer is to place the gate on the flattest stretch of the run, chosen before the fence line is finalized. Where that is not possible, regrade the swing area or set the gate on a landing between two steps. Hanging a gate high enough to clear rising ground leaves a gap at the low end, which matters on a pool barrier.

Does a sloped yard make a fence project more involved?

Yes, and the grade is one of the things a written estimate accounts for. Sloped ground affects post length, footing size, the volume of concrete, whether panels are stock or cut to grade, access for equipment and materials, and how the gate is set. We measure the fall across a panel at the steepest point during the site walk, so the method and the estimate both reflect the actual ground rather than an assumption about it.

Ready for a straight fence line?

On-site assessment. Written quote. No obligation.