The Util Box

Slope Calculator

Free online slope calculator. Rise/run, degrees, percentage grade. 100% client-side — your data stays private.

RunRise
Slope (rise/run)
0.0833
Grade
8.33%
Angle
4.76°
Ratio
1:12

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/slope-calculator" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Slope Calculator tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/slope-calculator -->
<a href="https://www.theutilbox.org/tools/slope-calculator">Slope Calculator by The Util Box</a>

Frequently Asked Questions about Slope Calculator

Slope Calculator — Rise, Run, Grade, Angle and Ratio

This slope calculator converts a gradient between all the forms you meet it in: rise over run, the angle in degrees, the grade as a percentage, and the simplified ratio. Enter any one of them and the others follow, with a diagram drawn underneath.

Four presets cover the standards you are most likely to need — a 1:12 wheelchair ramp, a 4:12 roof pitch, a 7:11 stair and a 6% highway grade.

The Four Ways of Expressing a Slope

Form How it is worked out
Slope (rise ÷ run) rise / run
Grade rise / run × 100
Angle atan2(rise, run) in degrees
Ratio Rise and run divided by their greatest common divisor.

The distinction between grade and ratio catches people out. A 1:12 ratio and a 1:12 slope are the same thing, but a 1:12 grade would be 8.33%, not 1 — grade is the ratio expressed as a percentage of the run, and the tool converts between them consistently.

Honest Limits

  • There are no units. Rise and run must be in the same unit, and the tool does not check that they are — enter 1 and 12 in different units and you will get a confident answer.
  • Switching modes can overwrite what you typed. The angle, grade and ratio boxes keep their own copies of the values, and they are only refreshed when a field is edited — so if you change the rise and then click the Angle button, the calculation can run from a stale copy and reset your rise. Re-enter your figures after switching modes.
  • Ratio simplification rounds first. The greatest common divisor is taken of the rounded rise and run, so 1.5 and 3 gives a ratio of 2:3 rather than the 1:2 you would expect.
  • No code compliance checking. The presets are common conventions, not a statement about whether a ramp or roof meets any building regulation — that depends on the jurisdiction, the rise and the span.
  • The diagram is schematic. It draws the gradient but is not to scale in either direction, and there is no way to ask what run a given angle needs over a specific span.

Related Calculators

Every calculation runs locally in your browser; nothing is uploaded.