Slope Calculator Guide

Slope Calculator Guide: Formula, Percent Grade and Degrees

A slope calculator turns two measurements, rise (vertical change) and run (horizontal change), into the steepness of a line. Good ones show that steepness three ways: as a ratio, as a percent grade, and as an angle in degrees. The math is simple. Most wrong answers come from bad inputs, not bad calculators, so this guide covers the formulas, the conversions, and the checks worth doing before you trust a result.

The slope formula

Slope is the change in vertical position divided by the change in horizontal position. For two points, it is written as m = (y2 − y1) / (x2 − x1).

Take the points (2, 3) and (6, 11). The rise is 11 − 3 = 8, and the run is 6 − 2 = 4. The slope is 8 ÷ 4 = 2, so the line climbs 2 units for every 1 unit across. That equals a 200% grade and an angle of about 63.4°.

Three rules prevent most errors:

  • Subtract in the same order. If you take y2 − y1, take x2 − x1. Swapping only one pair flips the sign.
  • A negative slope is not a mistake. It means the line falls from left to right.
  • A vertical line has no slope. The run is zero, and dividing by zero is undefined. A flat line has a slope of zero.

Converting slope to percent grade and degrees

The three forms measure the same steepness on different scales:

  • Percent grade = (rise ÷ run) × 100
  • Angle in degrees = arctangent of (rise ÷ run)
  • Grade from an angle = tangent of the angle × 100

A 100% grade is a 45° slope, where rise equals run. It is not a vertical wall. Beyond 45°, the percentage keeps climbing while the angle only approaches 90°.

Rise : RunPercent gradeAngle (approx.)
1 : 128.33%4.76°
1 : 1010%5.71°
1 : 425%14.04°
1 : 250%26.57°
1 : 1100%45°

For gentle slopes, one degree is roughly 1.75% grade, and the shortcut holds up to about 10°. Past that, the two scales drift apart, so use the full formula.

Use horizontal run, not the length along the surface

Calculators almost always expect horizontal run. If you measure along the surface of a ramp or driveway, you’ve measured the hypotenuse, and the result will read too shallow. You have two fixes. Measure level distance with a level and tape, or use a tool that accepts slope length. When you know rise and surface length, the angle is the arcsine of (rise ÷ length), and the run is the square root of (length² − rise²).

Ramps: why 1:12 matters

Ramps are where slope errors cost the most. The U.S. Access Board’s guide to ramps under the ADA Standards sets these main limits:

  • A running slope no steeper than 1:12 (8.33%)
  • A maximum rise of 30 inches per ramp run
  • Handrails on ramps with a rise greater than 6 inches
  • A cross slope no steeper than 1:48

Steeper slopes of 1:10 and 1:8 are permitted only in limited alterations where space is tight, and only for very small rises. Landings are also required at the top and bottom of each run.

The math is simple. A 30-inch rise at 1:12 needs 360 inches of run, which is 30 feet. People often underestimate that. A slope calculator tells you the ramp length, but it won’t check landings, handrails, or width, so confirm the full requirements with your local code office before building anything people rely on.

Roof pitch and the “over 12” convention

Roofers state pitch as rise per 12 inches of run. A 6:12 roof rises 6 inches for every 12 inches across. In calculator terms:

  • 4:12 is a slope of 0.333, a 33.3% grade, and about 18.4°
  • 6:12 is a 50% grade and about 26.6°
  • 12:12 is a 100% grade and 45°

Pitch and angle are not interchangeable. A “30-degree roof” and a “6:12 roof” are different steepness, since 6:12 is about 26.6°. Enter rise and run in the same unit, and convert before you compare quotes or product specs.

Driveways, trails, and terrain

Road and driveway grades are quoted in percent. A driveway that rises 10 feet over 100 feet of horizontal run is a 10% grade, about 5.7°. Trails work the same way. Climbing 300 feet over a half mile (2,640 feet) of horizontal distance is about an 11.4% average grade, or 6.5°. Averages hide steep sections, so a trail with a modest average can still contain short, harsh pitches.

Drainage and grading

For drainage, a small slope goes a long way. A drop of 1/4 inch per foot is about 2%. A county summary of International Residential Code section R401.3 shows the typical model-code approach. It calls for ground to fall at least 6 inches within the first 10 feet from a foundation, which is a 5% slope. Where barriers prevent that, the exception is 5% along the available distance. Impervious surfaces such as patios and driveways within 10 feet of the foundation should slope at least 2% away from the building. Local codes adopt and amend these rules, so check yours.

Here is how the calculator helps. A 12-foot patio sloping 2% should drop about 2.9 inches across its width (144 inches × 0.02). Check that number before you pour concrete or lay pavers. For pipes and plumbing, requirements depend on pipe type and local code, so use your area’s published figures, not generic advice.

Common mistakes

  • Mixed units. Rise in inches and run in feet makes the answer twelve times off.
  • Flipped rise and run. If the result looks absurdly steep or flat, swap them and check again.
  • Confusing percent and degrees. A 10% grade is not 10°. It is under 6°.
  • Rounding early. Keep extra decimals and round only the final answer.
  • Radians instead of degrees. If your angle looks strangely small, check the calculator’s mode.

Choosing a calculator

Pick one that labels its inputs clearly, lets you choose units, and shows ratio, percent, and degrees together. Showing the formula and steps is a bonus, because it makes errors easier to spot. Free web calculators, scientific calculators, and graphing apps all use the same math. Test any tool against a known case, like the 1:12 ramp (8.33%, 4.76°), before relying on it. For on-site work, a level or inclinometer measures real angles that you can then convert.

When to skip the shortcut

Mental math is fine for quick checks. For ramps, stairs, structural roofs, or anything safety-related, a casual calculation is not enough. Confirm requirements with your local building department or a qualified professional. For other projects where slope matters, our Home Improvement guides are a useful next stop.

Last updated: October 26, 2026

Related Guides

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *