Slope Calculator

Enter a slope as percent, degrees, a 1:n ratio, inches per foot or a measured rise and run. Get every other format, the rise over any distance and how it compares with common code limits.

Free · No sign-up · Runs in your browser

How to use the slope calculator

Slope turns up all over a project: ramps and accessible routes, site grading, driveways, flat roofs, gutters, drainage pipes, landscaping and section drawings. Each discipline writes it differently. Civil drawings use percent grade, roofers use inches per foot, accessibility codes use ratios like 1:12 and surveyors often work in degrees. This calculator converts between all of them in one step.

  1. Pick how your slope is written and enter the value. If you measured on site or scaled off a drawing, choose rise and run and enter both in the same unit.
  2. Enter a horizontal distance to see how much the slope rises or falls over that length, and how long the sloping surface is.
  3. Read the checks. The note under the results compares your slope with the accessibility, drainage and grading limits that come up most often.

Slope formulas

Slope = Rise ÷ Run
Percent grade = Rise ÷ Run × 100
Angle = atan(Rise ÷ Run)
Ratio = 1 : (Run ÷ Rise)
Inches per foot = Rise ÷ Run × 12
Sloped length = Run × √(1 + (Rise ÷ Run)²)

The key rule is that run is always measured horizontally. If you measure along the surface instead, you'll understate the slope slightly on gentle grades and noticeably on steep ones. Percent and degrees are not proportional to each other: 10% is 5.71°, but 100% is 45°, so never scale one from the other.

RatioPercentDegreesIn per ftTypical use
1:482.08%1.19°1/4"Max accessible cross slope, min low-slope roof
1:205%2.86°0.6"Max walking surface before it counts as a ramp
1:128.33%4.76°1"Max accessible ramp
1:812.5%7.13°1.5"Steep driveway
1:333.3%18.43°4"Steepest lawn most mowers handle safely
1:1100%45°12"Steep embankment

Worked examples

Checking a garden path

A path climbs 0.45 m over 12 m. The slope is 0.45 ÷ 12 = 0.0375, so 3.75%, about 1:26.7 or 2.15°. That's under the 1:20 limit, so it can be an accessible walking surface without handrails or landings.

Fall on a flat roof

A membrane roof needs a minimum of 1/4 inch per foot. That's 2.08%, so over a 9 m drainage run the roof must fall at least 9 × 0.0208 = 0.19 m. The tapered insulation package has to be at least 190 mm thicker at the high end, before allowing for crickets around the drains.

A driveway in degrees

A topographic survey shows a 7° slope along a proposed driveway. tan 7° = 0.123, so the grade is 12.3%, or about 1:8.1. Over a 15 m driveway that's a 1.84 m change in level. Many local authorities cap driveways somewhere between 12% and 20%, so check the local standard and the transition at the street.

Who this calculator helps

  • Architects checking accessible routes, setting finished floor levels against site levels and drawing sections.
  • Landscape architects grading paths, lawns, swales and planting beds.
  • Civil engineers and site designers converting between survey angles and design grades.
  • Plumbers and roofers turning inches per foot into percentages and total fall.
  • Contractors setting out ramps, driveways and slabs that must fall to drains.
  • Students and homeowners making sense of slopes on drawings, permits and survey reports.

Practical tips

  • Design a little under every maximum. Built work rarely lands exactly on the drawn level, so a ramp drawn at exactly 1:12 can end up too steep.
  • Check both directions. An accessible route can meet its running slope but fail its 1:48 cross slope.
  • For slopes above 5% on a walking route, design it as a ramp and size it with the ADA ramp slope calculator.
  • Roof pitches are usually written as x/12. The roof pitch calculator adds rafter length and roof area.
  • Turning a site section into a drawing? Use the architectural scale converter to scale levels and distances.

Want to see how a regraded garden or new terracing would look? Upload a photo of the site and try Landscape Design.

From numbers to pictures

See the space before it's built.

Once the plan works on paper, BasedFrame turns a sketch, a massing model or a site photo into a photoreal render in seconds. Try Sketch to Render or Room Redesign with free credits.

Try BasedFrame free

FAQ

Slope Calculator FAQ

How do I calculate slope as a percentage?

Divide the vertical rise by the horizontal run and multiply by 100. A path that rises 0.6 m over 12 m of level distance has a slope of 0.6 ÷ 12 × 100 = 5%. Always measure the run horizontally, not along the sloping surface.

How do I convert percent grade to degrees?

Divide the percentage by 100 and take the arctangent. A 10% grade is atan(0.10) = 5.71°. To go from degrees to percent, use tan(angle) × 100, so 30° is a 57.7% grade.

Is a 100% slope the same as 90 degrees?

No. A 100% slope rises one unit for every unit of run, which is 45°. A vertical face is an infinite percentage, so percent grade is only useful for slopes well short of vertical.

What does a slope ratio of 1:12 mean?

It means one unit of rise for every 12 units of horizontal run, which is 8.33% or 4.76°. It's the maximum running slope for an accessible ramp under the ADA Standards and most building codes.

What is 1/4 inch per foot as a percentage?

A quarter inch of fall per 12 inches of run is 0.25 ÷ 12 = 2.08%, or about 1.19°. It's the usual minimum slope for low-slope roofs under the IBC and for drain pipes 3 inches and smaller under the International Plumbing Code.

What slope should ground have away from a house?

The International Residential Code (R401.3) asks for the ground to fall at least 6 inches within the first 10 feet from the foundation, which is a 5% slope. Where that isn't possible, swales or drains must carry the water away.

What is the maximum cross slope for an accessible route?

The ADA Standards limit cross slope, the slope at right angles to the direction of travel, to 1:48, about 2.08%. The running slope of a walking surface must not exceed 1:20 (5%) unless it's designed as a ramp.

How do I find the length along a slope?

Multiply the horizontal run by √(1 + (rise ÷ run)²), or use Pythagoras: √(rise² + run²). A 20 m run at 8.33% has a sloped length of 20 × 1.0035 ≈ 20.07 m. The difference is small for gentle slopes and grows quickly on steep ones.

Keep exploring

More free tools for architects

Turn any listing
into rooms that sell

Start with a Zillow link or a single photo. Redesign, stage, relight and walk buyers through every room, ready to list today.