Slope Calculator – Rise Over Run, Angle and Line Equation
Calculate slope from two points or a rise and run, in decimal, percentage, grade and degrees, with the line equation and the distance between the points.
Calculator InputsFormula v1.0
m = (y₂ − y₁) ÷ (x₂ − x₁); percentage grade = m × 100; angle = arctan(m)
Slope (m)
Step-by-Step Mathematical Working
Formula and method
m = (y₂ − y₁) ÷ (x₂ − x₁); percentage grade = m × 100; angle = arctan(m)Slope is vertical change divided by horizontal change, so a slope of 0.02 equals a 2% grade. A vertical line has no defined slope, and a horizontal line has slope zero: these are different answers, not rounding differences.
Variables
- x₁, y₁
- Coordinates of the first point
- x₂, y₂
- Coordinates of the second point
- m
- Slope, the vertical change per unit of horizontal change
Worked example
Points (2, 3) and (6, 11) give a slope of 2, an angle of 63.43°, a percentage grade of 200%, and a line equation of y = 2x − 1.
Who this calculator is for
Students graphing lines, roofers and civil engineers working to grade, and anyone checking a ramp against accessibility limits.
Complete guide to the slope calculator – rise over run, angle and line equation
Every figure below comes from this calculator itself. The method is m = (y₂ − y₁) ÷ (x₂ − x₁); percentage grade = m × 100; angle = arctan(m), applied to the tool's default inputs and then stress-tested one input at a time.
What the Slope Calculator – Rise Over Run, Angle and Line Equation works out
Slope Calculator – Rise Over Run, Angle and Line Equation answers one specific question: Calculate slope from two points or a rise and run, in decimal, percentage, grade and degrees, with the line equation and the distance between the points. It is written for students graphing lines, roofers and civil engineers working to grade, and anyone checking a ramp against accessibility limits.
The method is m = (y₂ − y₁) ÷ (x₂ − x₁); percentage grade = m × 100; angle = arctan(m). The inputs are x₁, y₁, x₂, y₂, Angle output. With the default values - x₁ = 2, y₁ = 3, x₂ = 6, y₂ = 11, Angle output = degrees - the result is Slope (m): 2.000000. Raising x₁ from 2 to 2.20 moves the headline result from 2.000000 to 2.105263.
Working through the reported figures
Alongside 2.000000 this method reports 9 supporting quantities: Percentage grade: 200.0000%; Angle from horizontal: 63.4349°; Ratio (rise : run): 2.0000 : 1 (rise : run), or 1 : 0.5000 (run : rise); Rise (Δy): 8.0000. Taken together they show which input moved the answer and by how much.
The arithmetic as executed: Rise = y₂ − y₁ = 11 − 3 = 8.0000. Run = x₂ − x₁ = 6 − 2 = 4.0000. Slope = rise ÷ run = 8.0000 ÷ 4.0000 = 2.000000. Grade = 2.000000 × 100 = 200.0000%; angle = arctan(2.000000) = 63.4349°. Intercept: b = y₁ − m·x₁ = 3 − 2.000000 × 2 = -1.000000. Run the same substitution yourself; a match confirms the inputs were read as you intended.
How to interpret the answer
Slope is vertical change divided by horizontal change, so a slope of 0.02 equals a 2% grade. A vertical line has no defined slope, and a horizontal line has slope zero: these are different answers, not rounding differences.
In this case 2.000000 together with percentage grade of 200.0000% is a single scenario, not a forecast range. Move the input you are least sure of, and watch the two figures change in step.
Common mistakes to avoid
Reversing the subtraction order in only one coordinate, which flips the sign. Confusing percentage grade with degrees: a 45° slope is 100%, not 45%. Dividing by zero when the two points share an x-coordinate, which produces a vertical line rather than a numeric slope.
Read the inputs back once before trusting the figure: x₁, y₁, x₂, y₂, Angle output and confirm each entry matches its label, including whether a quantity is entered in the unit the label names. Nudge x₁ and confirm the output responds in the direction the formula implies - here 2.000000 should shift smoothly rather than jump.
Limitations and responsible use
Assumes Cartesian coordinates in the same units on both axes. Describes a straight line only; curves have a varying slope.
Each number above is bounded by the limits just described, so treat it as a conditional result. Every figure here can be reproduced by hand from the formula shown, but no calculation can confirm that the inputs match your actual circumstances. For a consequential decision, confirm the current rate or threshold independently, because published figures change between editions.
Frequently asked questions
What does a slope of 2 mean?
For every 1 unit you move right, the line rises 2 units.
How do I convert slope to degrees?
Take the arctangent of the decimal slope: arctan(1) = 45°, arctan(0.5) = 26.57°.
What slope is wheelchair accessible?
Many accessibility standards cap ramps at a 1:12 slope, about 8.33% or 4.76°.
Related searches for this calculator
People also look for slope calculator, rise over run calculator, grade calculator slope, slope percentage and line equation from two points. Everything on this page is calculated in your browser from the formula shown above.
Related Mathematics Calculators
Explore another calculator in this subject.
Distance Between Coordinate Differences
Calculates the Straight-line distance / hypotenuse with Distance = √(x² + y²). Enter Horizontal difference and Vertical difference; the default example returns 5.
Midpoint
Calculates the Mean / midpoint with Midpoint = (x + y) / 2. Enter First coordinate and Second coordinate; the default example returns 5.
Roof Pitch Percentage
Calculates the Pitch percentage with Pitch = rise / run × 100. Enter Rise and Run; the default example returns 40.