Home Improvement

Fence Panel Stepping on a Slope Calculator

Enter the run, the rise and your panel width to plan stepped or racked fence panels.

Your numbers

The level distance along the fence line from the first post to the last. Example values.

How much the ground climbs from the first post to the last.

The widest panel you can use. The run is divided into equal panels no wider than this.

More options

Adds to every post length.

Result

Step per panel

7.20 in

5 level panels, each 96.00 in wide, rising 7.20 in each.

Number of panels
5
Horizontal width of each panel
96.00 in
Step between panels
7.20 in up
Slope
7.50% (4.29 degrees)
Rake angle for racked panels
4.29 degrees
Length of a racked panel
96.27 in
Steps add up to the total rise
36.00 in = 36.00 in
Longest post
79.20 in

Posts from the first to the last

PostDistance (in)Ground rise (in)Fence top above first ground (in)Post length (in)
10.000.0079.2079.20
296.007.2086.4079.20
3192.0014.4093.6079.20
4288.0021.60100.8079.20
5384.0028.80108.0079.20
6480.0036.00108.0072.00
How this was calculated
  1. The ground climbs 36 in over a run of 480 in, a slope of 7.50%. Dividing the run into 5 equal panels (no wider than your 96 in) makes each 96.00 in wide.
  2. Level panels step by slope x width = 7.20 in. Each panel is set at the height of its higher end, so the gap under the lower end is also up to 7.20 in. The 5 steps add up to the full rise.
  3. On stepped fences the post at the lower side of each step must stand taller by the step to carry the higher panel.
  • Assumes an even slope between the first and last post. For uneven ground, measure the ground height at each post and repeat the calculation per section. Local rules on fence height and setbacks are not covered.

Calculated using SumPanda.com · https://sumpanda.com/fence-panel-stepping-on-slope-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the fence panel stepping on a slope calculator

  1. Choose Stepped for level panels that step up or down, or Racked for panels that follow the slope.
  2. Enter the horizontal run of the fence, the total rise (negative if the ground falls) and the widest panel you can use.
  3. Enter the fence height above the ground, and the post depth in More options if you want full post lengths.
  4. Read the number of panels, the step per panel, the racked panel length and the table of posts.

Formula

Panels = run / panel width, rounded up; width of each = run / panels

Slope = rise / run; step per panel = width x slope

Racked panel length = width / cos(atan(slope)); rake angle = atan(slope)

Stepped post length = fence height + step on the lower side + depth in the ground

The sum of the steps equals the total rise, which the page shows as a check. A level panel is set at the height of its higher end, so the gap under the lower end is up to one step.

A 40 foot run rising 3 feet

A fence line with a run of 480 inches and a rise of 36 inches, using panels up to 96 inches, needs 5 panels, each 96 inches wide. The slope is 7.5 percent, which is 4.29 degrees, and each stepped panel rises 7.2 inches. Racked panels are 96.27 inches long. With a 72 inch fence, the stepped posts are 79.2 inches long and the racked posts 72 inches.

On a downhill run of 384 inches falling 48 inches, using 96 inch panels, there are 4 panels, each stepping down 12 inches, and the slope is 12.5 percent or 7.13 degrees. The posts after the first are 84 inches, which is the 72 inch fence plus the 12 inch step.

Stepped or racked

Stepped panels stay level and are set at a new height at each post, which leaves a wedge-shaped gap under each panel on a slope. They suit rigid panels such as solid wood or vinyl. Racked panels tilt to follow the ground, so the fence top follows the land. They suit pickets and flexible panels that can be adjusted in the frame. Many panels allow only a small amount of racking, so check what the panel maker allows.

For material counts of a fence see the fence calculator. Other slope and layout tools include the stair stringer calculator, the roof pitch calculator and the nominal to actual lumber size converter.

When the ground is not a straight slope

This tool assumes an even slope between the first and last post. For uneven ground, measure the rise at each post, treat each stretch as its own slope, and run the calculator once for each. Lay out the posts before you dig, since a small error in post height adds up over the run.

Assumptions and limits

  • The ground rises or falls evenly from the first post to the last, and the run is the level distance.
  • Panels are all the same width, no wider than the width you enter.
  • Stepped panels are placed so each one clears the higher ground under its two ends.
  • Local rules on fence height, setbacks and permits are not covered.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

How do I fence a sloped yard?

Divide the run into equal panels, find the step by multiplying the panel width by the slope, and either step each panel up or tilt (rack) the panels to follow the ground. Cut posts to match the style you pick.

How much should each panel step?

The step is the panel width times the slope. A 96 inch panel on a 7.5 percent slope steps 7.2 inches. The steps over the whole run always add up to the total rise.

How long is a racked panel?

It is the level width divided by the cosine of the slope angle. On a 4.29 degree slope a 96 inch panel is 96.27 inches along its length, so the difference is small on gentle slopes.

What if the slope goes down?

Enter a negative rise. The steps then go down, and each stepped panel is set at the height of its higher, uphill end, so the posts on the downhill side are taller.