ThisCalculator

Everyday

Ratio to Angle: How to Convert

Updated · Standard formula, shown below

Angle (degrees) 5.71 deg
Angle (radians)
0.0997 rad
Result
First number (rise)
1
You entered
Second number (run)
10
You entered

This calculator converts a ratio (such as a slope, grade, or aspect ratio) into an angle in degrees. You enter the ratio as two numbers (rise and run, or width and height), and you get the corresponding angle in degrees, plus the angle in radians for reference.

Formula

The angle θ (theta) in degrees is the inverse tangent (arctangent) of the ratio of the first number to the second number:

θ = arctan(a / b) × (180 / π)

Where:

  • a = the first number of the ratio (often the rise, vertical change, or opposite side)
  • b = the second number of the ratio (often the run, horizontal change, or adjacent side)
  • θ = the angle in degrees (0° to 90° for positive numbers)

If you want the angle in radians, simply use arctan(a / b) without the degree conversion.

Worked Example

Using the default values from the calculator: a = 1, b = 10.

  1. Divide a by b: 1 / 10 = 0.1
  2. Find the arctangent of 0.1: arctan(0.1) ≈ 0.0996687 radians
  3. Convert radians to degrees: 0.0996687 × (180 / π) ≈ 5.7106°

The calculator rounds to two decimal places, so the displayed angle is 5.71°.

When to Use This Conversion

Ratios appear in many real-world situations, and converting them to angles helps you understand the steepness or inclination. Common uses include:

  • Slope or grade: A road sign saying “10% grade” means a rise of 10 units for every 100 units of horizontal distance. The angle is arctan(10/100) ≈ 5.71°.
  • Roof pitch: A roof pitch of “6/12” means the roof rises 6 inches for every 12 inches of horizontal run. The angle is arctan(6/12) = 26.57°.
  • Aspect ratio: A screen with a 16:9 aspect ratio has a diagonal angle of arctan(9/16) ≈ 29.36° from the horizontal.
  • Ramps and inclines: Wheelchair ramps often have a recommended maximum slope of 1:12, which is arctan(1/12) ≈ 4.76°.

How to Read the Result

The angle is measured from the horizontal (or from the first axis) to the line that the ratio describes. For a ratio a:b, the angle is the arctangent of a divided by b. The result is always between 0° and 90° when both numbers are positive. If the ratio is 1:1, the angle is 45°. If the ratio is 0:anything, the angle is 0° (flat). If the ratio is very large (like 100:1), the angle approaches 90° but never quite reaches it unless b is zero.

Common Mistakes and Misconceptions

One common mistake is confusing the ratio order. A slope of “1 in 10” means 1 unit of rise for every 10 units of run, so the angle is arctan(1/10). If you accidentally enter 10/1, you get 84.29° instead of 5.71° — a huge difference. Another mistake is using degrees when the calculator expects radians (or vice versa) in a manual calculation. Always check whether your calculator is in degree mode before using the arctangent function. Also, remember that the ratio is dimensionless: it does not matter if you use inches, meters, or feet, as long as both numbers use the same unit.

Limits of the Formula

The arctangent formula works for any positive ratio, but it assumes a right triangle where one angle is 90°. If you are dealing with a ratio that is not a rise-over-run (for example, a ratio of two sides that are not perpendicular), the angle will not be the arctangent. For a general triangle, you would need the law of cosines or sines. Also, the formula gives the acute angle (less than 90°); if you need the obtuse angle, subtract the result from 180°.

Frequently Asked Questions

What is the angle of a 1:1 ratio?

A 1:1 ratio means the rise equals the run, so the angle is arctan(1/1) = 45°. This is a perfect diagonal.

How do I convert a percentage grade to an angle?

A percentage grade is the rise divided by the run, multiplied by 100. For example, a 10% grade means a rise of 10 per 100 run. To get the angle, divide the percentage by 100 to get the ratio (0.10), then take the arctangent: arctan(0.10) ≈ 5.71°.

What is the angle of a 2:1 slope?

A 2:1 slope (2 units rise for 1 unit run) gives arctan(2/1) ≈ 63.43°. This is a steep slope, often used in landscaping or embankments.

Can I use this for screen aspect ratios?

Yes, but be careful with the order. A 16:9 screen has a width-to-height ratio of 16:9. The angle from horizontal is arctan(9/16) ≈ 29.36°. If you want the angle from vertical, use arctan(16/9) ≈ 60.64°.

What if the second number is zero?

If the second number (b) is zero, the ratio is undefined (division by zero). In practical terms, this would mean a vertical line, which is 90°. The calculator will show an error because you cannot divide by zero.

Why does the calculator give both degrees and radians?

Radians are the standard unit of angle in mathematics and many scientific contexts. If you are doing further calculations or using programming functions, radians are often required. The calculator gives both so you can use whichever you need.

Related

Formula used
in a | First number (rise) | - | 1 | 0
in b | Second number (run) | - | 10 | 0
out angle_deg | Angle (degrees) | deg | atan(a / b) * 180 / pi | 2
out angle_rad | Angle (radians) | rad | atan(a / b) | 4

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.