What the Rise Over Run Calculator Does
This calculator finds the slope of a straight line from two points on a coordinate plane. You provide the coordinates of two points — the first point (X1, Y1) and the second point (X2, Y2) — and the tool computes four things at once: the rise (vertical change), the run (horizontal change), the slope (m), and the angle the line makes with the horizontal, expressed in degrees.
It is a quick aid for algebra, geometry, trigonometry, and physics problems where you need to describe how steeply a line climbs or falls.
The Inputs
- X1, Y1 – the coordinates of your first point.
- X2, Y2 – the coordinates of your second point.
All four values can be positive, negative, or zero. Order does not affect the slope, as long as you keep each point's X and Y together.
The Formula
The calculator uses the standard slope definition:
$$\text{m} = \frac{\text{rise}}{\text{run}} = \frac{y_2 - y_1}{x_2 - x_1}$$
It first computes the rise as \(y_2 - y_1\) and the run as \(x_2 - x_1\). The slope is rise divided by run. If the run is zero (a perfectly vertical line), the slope is undefined — the tool returns infinity, because you cannot divide by zero. The angle is then found with \(\text{angle} = \arctan(\text{slope})\), converted from radians to degrees.
Worked Example
Suppose your points are (1, 2) and (4, 8):
- Rise = \(y_2 - y_1 = 8 - 2 = 6\)
- Run = \(x_2 - x_1 = 4 - 1 = 3\)
- Slope = \(\frac{6}{3} = 2\)
- Angle = \(\arctan(2) \approx 63.43°\)
So the line rises 2 units for every 1 unit it moves right, and it climbs at about 63.4 degrees from horizontal.
More Worked Examples
Each example uses the same steps. Find the rise \(\Delta y = y_2 - y_1\) and the run \(\Delta x = x_2 - x_1\). Divide them to get the slope \(m\). Then get the angle the line makes with the positive x-axis from \(\theta = \arctan(m)\), written in degrees.
Example 1: A negative slope, from (2, 5) to (6, −3)
- Rise: \(\Delta y = -3 - 5 = -8\)
- Run: \(\Delta x = 6 - 2 = 4\)
- Slope: $$m = \frac{-8}{4} = -2$$
- Angle: \(\theta = \arctan(-2) \approx -63.43^\circ\)
The slope is -2. The line drops 2 units for every 1 unit it moves right. The negative angle means it slopes down below the horizontal.
Example 2: A fractional slope with negative coordinates, from (−3, −1) to (5, 3)
- Rise: \(\Delta y = 3 - (-1) = 4\)
- Run: \(\Delta x = 5 - (-3) = 8\)
- Slope: $$m = \frac{4}{8} = 0.5$$
- Angle: \(\theta = \arctan(0.5) \approx 26.57^\circ\)
The slope is 0.5, so the line climbs 1 unit for every 2 units of run. When you subtract a negative coordinate, keep the brackets: \(3 - (-1) = 4\), not 2.
Example 3: A vertical line, from (4, 1) to (4, 7)
- Rise: \(\Delta y = 7 - 1 = 6\)
- Run: \(\Delta x = 4 - 4 = 0\)
- Slope: \(m = \frac{6}{0}\). You can't divide by zero, so the slope is undefined. The calculator shows it as infinity (∞).
- Angle: the line is perpendicular to the x-axis, so \(\theta = 90^\circ\).
Any two points with the same x-value lie on a vertical line. Two points with the same y-value lie on a horizontal line, which has a run that isn't zero, a slope of 0 and an angle of 0°.
Swapping the points gives the same slope
Take Example 1 again, but start at (6, −3) and end at (2, 5):
- Rise: \(\Delta y = 5 - (-3) = 8\)
- Run: \(\Delta x = 2 - 6 = -4\)
- Slope: $$m = \frac{8}{-4} = -2$$
Swapping the points flips the sign of both the rise and the run, so the signs cancel when you divide and the slope stays the same. It doesn't matter which point you call the first one. Just use the same order in the top and bottom of the fraction.
Slope, Angle and Percent Grade Conversion Table
You can describe the same steepness in three ways. Slope is \(m\) (rise ÷ run). The angle comes from \(\theta = \arctan(m)\). Percent grade is \(m \times 100\). Angles below are rounded to two decimal places.
| Slope m (rise:run) | Angle (arctan m) | Percent grade (m × 100) |
|---|---|---|
| 0 (flat) | 0° | 0% |
| 0.1 (1:10) | 5.71° | 10% |
| 0.25 (1:4) | 14.04° | 25% |
| \(1/\sqrt{3} \approx 0.577\) | 30° | 57.7% |
| 1 (1:1) | 45° | 100% |
| \(\sqrt{3} \approx 1.732\) | 60° | 173.2% |
| 2 (2:1) | 63.43° | 200% |
| 5 (5:1) | 78.69° | 500% |
| Undefined (vertical, run = 0) | 90° | Undefined |
Negative slopes give the same angles and grades with a minus sign. For example, \(m = -1\) gives −45° and −100%, and \(m = -0.25\) gives −14.04° and −25%. A 100% grade is a 45° angle, not a vertical line. Percent grade keeps growing without limit as the line approaches vertical, while the angle never goes past 90°.
Frequently Asked Questions
What does a negative slope mean? A negative slope means the line falls as you move from left to right. The calculator returns a negative angle in that case.
Why is my slope shown as infinity? That happens when X1 equals X2, making the run zero. The line is vertical, so its slope is undefined.
What if the slope is zero? A slope of zero means the line is perfectly horizontal (\(y_2 = y_1\)), and the angle is 0 degrees.