Calculate fence slope from horizontal distance and vertical rise to get slope %, ratio, angle, and slope length, plus fence panel layout guidance.

Use a negative number when the ground drops in the measured direction.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Slope from rise and runFinds the slope of the fence line as a percentageRequires horizontal distance and vertical rise
Rise from slope and runFinds how far the ground rises or drops along the fence lineRequires horizontal distance and slope in percent
Run from slope and riseFinds the horizontal distance covered for a given riseRequires vertical rise and slope in percent, with the same sign
Equal panel layoutFinds the number of equal panels for the run and the horizontal span, vertical change and sloped length of eachRequires horizontal distance, vertical rise and the maximum horizontal panel span. A 6 ft or 8 ft panel example can fill the span

Distances can be in feet, metres, inches or yards. A negative rise or slope means the ground drops in the direction measured. Every answer also gives the slope angle in degrees, the slope as a ratio of 1 unit of rise to so many units of run, and the length measured along the slope.

Fence Slope Formulas

S = V รท R ร— 100 [1]
SSlope (%)
VVertical rise over the run, negative for a drop
RHorizontal distance (run), in the same unit as the rise
Angle = atan(V รท R) [1]
Length = โˆš(Rยฒ + Vยฒ)

Percent slope is the change in elevation divided by the horizontal distance covered, times 100, and the slope angle is the inverse tangent of that same ratio [1]. The run is the level distance, not the distance walked along the ground. The length along the slope is the hypotenuse of the rise and the run, which is what the rails or a string line have to span.

Slope from rise and run

This is the main formula. A fence line that rises 5 ft over 50 ft of horizontal distance has a slope of 5 รท 50 ร— 100 = 10%, or 1 : 10. The angle is 5.71ยฐ and the length along the slope is 50.25 ft. A line that drops 2 ft over 40 ft has a slope of โˆ’5%.

Rise from slope and run

V = S ร— R รท 100

An 8% slope over 100 ft of run rises 8 ร— 100 รท 100 = 8 ft.

Run from slope and rise

R = V รท S ร— 100

A 3 ft rise on a 6% slope takes 3 รท 6 ร— 100 = 50 ft of horizontal distance. The slope cannot be zero, and the rise and slope must both be positive or both negative.

Equal panel layout

N = R รท P, rounded up
Span = R รท N
Step = V รท N

P is the longest horizontal span one panel can cover. The run is divided into the fewest equal panels that are no longer than P, and the rise is shared equally between them. A 50 ft run that rises 5 ft, with 8 ft panels, needs 50 รท 8 = 6.25, rounded up to 7 panels. Each covers 7.1429 ft horizontally and rises 0.7143 ft, about 8.6 inches, and measures 7.1785 ft along the slope. A 48 ft run takes exactly 6 panels of 8 ft.

Step is the height each panel steps up when panels are kept level, and the amount each panel is racked when it follows the slope. The sloped length is always longer than the horizontal span, so a racked panel has to be long enough for it.

Limits of This Estimate

  • The ground is treated as one straight, even slope from end to end. Where the grade changes along the line, measure and calculate each section separately.
  • The result is geometry only. It is not a structural design and does not account for post widths, gates or corner posts.
  • A slope percentage does not choose between stepped and racked panels. How far a panel can rack, and how much gap is allowed under it, depend on the manufacturer's limits and on local requirements.

Sources

  1. U.S. Geological Survey, To Determine Percent of Slope and Angle of Slope: percent slope as rise divided by run times 100, and slope angle as the inverse tangent of rise over run