ThisCalculator

Everyday

Slope to Angle Equation: How to Convert

Updated · Standard formula, shown below

Angle (degrees) 26.57 °
Angle from % slope
26.57 °
Result
Slope (rise/run)
0.5
You entered
Slope as percentage (%)
50 %
You entered

This calculator converts a slope (rise over run, often given as a percentage or a ratio) into an angle in degrees, and it also gives you the reverse conversion from an angle back to a slope. You enter the slope as a decimal or a percentage, and the calculator returns the angle in degrees using the arctangent function. The core equation is angle = arctan(slope), where slope is the rise divided by the run.

Formula

The mathematical relationship between slope and angle is given by the tangent function. In a right triangle, the tangent of an angle is the ratio of the opposite side (rise) to the adjacent side (run). Therefore, to find the angle from the slope, you use the inverse tangent (arctan):

angle (degrees) = arctan(slope)

Where:

  • slope = rise / run (dimensionless, e.g., 0.5 for a 1:2 slope)
  • angle = the angle between the slope and the horizontal, in degrees

If your slope is given as a percentage, first divide by 100 to get the decimal slope, then apply the same formula. For example, a 50% slope means a rise of 50 units for every 100 units of run, so the decimal slope is 0.5.

Worked Example

Using the default values from the calculator: slope = 0.5 (which is also 50%).

  1. Start with the slope as a decimal: 0.5.
  2. Apply the arctangent function: angle = arctan(0.5).
  3. Using a calculator in degree mode, arctan(0.5) ≈ 26.565°.
  4. Rounded to two decimal places, the angle is 26.57°.

The calculator also checks the percentage input: atand(50 / 100) = atand(0.5) = 26.57°, which matches.

When to Use This Conversion

Converting slope to angle is common in construction, road design, landscaping, and any field that deals with ramps, roofs, or terrain. For example, a roof pitch of 6/12 means a rise of 6 inches for every 12 inches of run; that is a slope of 0.5, which corresponds to about 26.57°. Knowing the angle helps when setting up tools like miter saws or when checking accessibility ramp requirements, which often specify a maximum slope ratio.

In civil engineering, road grades are given as percentages. A 5% grade means a rise of 5 feet per 100 feet of horizontal distance. That translates to a slope of 0.05 and an angle of about 2.86°. This is useful for understanding how steep a road really is, especially when comparing to angle limits for vehicles.

How to Choose the Correct Input

You can enter the slope either as a decimal ratio or as a percentage. The calculator uses the decimal slope for the first output, and the percentage for the second. To avoid confusion:

  • If you have a ratio like 1:4, enter 0.25 as the slope (since 1/4 = 0.25).
  • If you have a percentage like 25%, enter 25 in the percentage field.
  • If you have a rise and run, divide rise by run first, then enter that decimal.

Both fields are independent, so you can use either one. The outputs will match if you enter equivalent values.

Common Mistakes and Misconceptions

A frequent error is confusing slope with angle directly. A 100% slope is not a 90° angle; it is a 45° angle because arctan(1) = 45°. Another common mistake is using the wrong mode on your calculator (degrees vs. radians). If you get a result like 0.46 instead of 26.57, your calculator is in radian mode.

Also, note that slope is rise over run, not rise over hypotenuse. Some people mistakenly use the hypotenuse length as the run, which changes the value. For a 1:1 slope, the angle is 45°, not 60° or 90°.

When working with very small slopes, the angle in degrees is roughly equal to the slope multiplied by 57.3 (the number of degrees in a radian). For example, a 0.01 slope is about 0.573°. This approximation is only accurate for small angles (under about 10°).

Limitations of the Formula

The arctangent function returns angles between -90° and +90°, which is perfect for slopes that are not vertical. A vertical slope (infinite rise) would give an angle of 90°, but you cannot input infinity. For practical purposes, slopes are almost always less than 100% (45°), but the formula works up to any finite positive slope.

The formula assumes a straight line and a flat horizontal baseline. In real-world terrain, slopes can vary, and the angle may change along a path. Also, the conversion does not account for the curvature of the Earth, which is negligible for most construction and engineering applications.

Frequently Asked Questions

What is the difference between slope and angle?

Slope is a ratio of vertical change to horizontal change (rise over run), while angle is the measure of steepness in degrees. They are related by the tangent function: slope = tan(angle), and angle = arctan(slope).

How do I convert a slope percentage to an angle?

Divide the percentage by 100 to get a decimal, then take the arctangent of that decimal. For example, a 40% slope gives arctan(0.4) ≈ 21.8°.

Is a 45-degree slope the same as a 100% slope?

Yes. A 100% slope means rise equals run, so the slope is 1. Arctan(1) is 45°, so a 100% slope corresponds to a 45° angle.

Can I convert an angle to a slope using this calculator?

Yes, but indirectly. You can use the inverse formula: slope = tan(angle). For example, if you want a 30° angle, the slope is tan(30°) ≈ 0.577, which is a 57.7% grade.

Why does my calculator give a result in radians?

Most scientific calculators have a mode setting for degrees or radians. If you get a small number like 0.46 for arctan(0.5), switch to degree mode. This calculator always uses degrees.

What is the steepest slope I can convert?

Mathematically, any finite slope works, but as the slope approaches infinity, the angle approaches 90°. In practice, slopes above 100% (45°) are rare in construction, but the formula still works.

Related

Formula used
in slope | Slope (rise/run) | - | 0.5 | 0
in pct | Slope as percentage (%) | % | 50 | 0
out angle | Angle (degrees) | ° | atand(slope) | 2
out angle_pct | Angle from % slope | ° | atand(pct / 100) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.