A percent slope to degrees calculator starts with the rise-to-horizontal-run ratio. This original classroom inspector shows the ratio, angle formula and inverse check together. It is an educational calculation, not a construction, access or route decision.

Define the three lines before the formula
Use an original schematic right triangle with these distinct labels:
- Horizontal run: the level base.
- Rise: the vertical change.
- Slanted segment: the diagonal connecting the endpoints.
The USGS defines percent slope using rise divided by horizontal distance, multiplied by 100, and slope angle using the inverse tangent of that ratio. Its horizontal run excludes the extra distance introduced by the rise. USGS percent and angle of slope
Do not substitute the slanted segment as the denominator. Confirm that rise and horizontal run use the same length unit and that the horizontal run is positive.
Work from 12% to an angle
The original classroom example supplies horizontal run = 100 length units and slope percent P = 12. The implied rise is 12 of the same units:
P = rise / horizontal run × 100
12 = 12 / 100 × 100
Ratio = P/100 = 0.12
Angle in degrees = atan(0.12) × 180/π
≈ 6.842773413°
The angle is approximately 6.842773413°, rounded to nine decimal places—not 12°. In the future original schematic, label the 100-unit horizontal run, 12-unit rise and angle between the horizontal base and diagonal. The diagram is not a terrain survey or measured route.
The atan expression above returns an angle in radians before multiplication by 180/π. If a calculator already returns inverse tangent in degree mode, do not apply that conversion again. Preserve the angle unit with the result.
Check zero, equal rise/run and values above 100
| Slope percent | Rise with horizontal run 100 | Expected angle |
|---|---|---|
| 0% | 0 | 0° |
| 12% | 12 | Approximately 6.842773413° |
| 100% | 100 | 45° |
| 200% | 200 | Approximately 63.434948823° |
At 100%, rise equals horizontal run, so the angle is 45°, not 90°. Percent slope is a ratio scaled by 100, not a probability constrained to 100%. The original unsigned-grade input policy accepts finite P ≥ 0, including values above 100.
Zero percent represents zero rise with positive horizontal run. Keep that valid zero separate from a blank field. Negative values are outside this tool's declared unsigned scope; they are not silently converted to absolute values.
Verify the inverse without rounding first
For an angle θ in degrees:
Slope percent = tan(θ × π/180) × 100
Using the unrounded angle calculated from P = 12 returns the original 12% mathematically. The exact 45° case returns 100%. Keep display rounding at the end rather than feeding a rounded angle back into the inverse calculation and calling it exact.
The proposed inverse field accepts 0 ≤ θ < 90°. At 90°, there is no finite rise-to-horizontal-run ratio; reject that input rather than returning a finite percentage. The field's scope is separate from the forward percent field, which has no 100% cap.
If later artwork must fit a small screen, scale both triangle legs together and label the actual ratio. Do not cap P, clip the rise or change the result to fit a diagram. The local example includes a schematic; verify its scale labels and controls in the intended host.
Record errors and the calculation basis
The native worksheet should hold entered percent, declared unsigned policy, positive horizontal run, implied rise, ratio, unrounded angle, rounded display and inverse-check basis. Rise and run are original supplied quantities, not field measurements.
Blank, negative or nonfinite percent input must show an error and clear the old answer. Apply the inverse field's separate range rules. Keep units and error reasons beside the relevant fields, with numerical precision checks during later implementation.
This packet does not establish a legal or accessible grade, a safe ramp, a hiking difficulty rating or a building requirement. No such criteria are supplied by the classroom ratio.
Copy this prompt for the slope inspector
Prepare an original US-English educational percent-slope/angle inspector specification, native ratio worksheet and original schematic design brief. Do not implement a tool, copy a source diagram or give construction/accessibility/legal/ramp/hiking guidance.
Label horizontal run, vertical rise and slanted segment separately. Percent P = rise/horizontal run*100; positive horizontal run, rise/run same length unit. Slanted length is not the denominator. Original run 100 units, P = 12 implies rise 12. θ = atan(P/100)*180/π ≈ 6.842773413° rounded to 9 places. atan expression is radians before conversion; do not convert a degree-mode result twice.
Forward scope finite P >= 0, unsigned; values >100 allowed, no probability cap. Audit: 0% -> 0°, 100% -> 45°, 200% -> 63.434948823° rounded. Blank/negative/nonfinite invalid, clear stale output; do not take absolute value of negative input. Inverse scope 0 <= θ < 90°, P = tan(θ*π/180)*100; 90° invalid, no finite percent. Preserve unrounded calculations, round only display; inverse from unrounded forward angle rather than display.
Schematic original/not actual terrain/scale survey. Show run 100, rise 12 and angle at horizontal base; for other inputs scale both legs together with actual ratio labels, never clip result or cap P for drawing width. Native input/ratio/angle/inverse/error ledger authoritative. Later precision/range/keyboard/width tests pending; no real measurements, compliance, persistence or integration claimed.
Review the ratio beside the angle
The local HTML example shows the horizontal-run schematic beside the percent, ratio, and degree results. NOS supports saving and rendering prepared HTML. Keep the maintained ratio worksheet authoritative.
Explore NOS to present the prepared slope calculation. Leave the horizontal denominator visible so a percent and an angle cannot be mistaken for the same number.