Slope Calculator
Calculate the slope between two points. Free online slope calculator with rise over run formula.
The Slope Calculator finds the slope of a line passing through two points using the rise over run formula (m = (y₂-y₁)/(x₂-x₁)). Slope represents the steepness and direction of a line—essential for graphing, construction, road grades, and understanding linear relationships. Enter two points and get the slope instantly.
Slope Calculator
Formula: m = (y₂ − y₁) ÷ (x₂ − x₁)
Worked example
- Rise = y₂ − y₁ = 8 − 2 = 6
- Run = x₂ − x₁ = 3 − 1 = 2
- m = 6 ÷ 2 = 3
- b = y₁ − m·x₁ = 2 − 3 × 1 = -1
Replace these values in the calculator above to compute your own numbers.
Common use cases
- Graphing linear equations
- Construction and grading
- Wheelchair ramp calculations
- Roof pitch determination
- Road and path gradients
How to use
- Enter coordinates of Point 1 (x₁, y₁)
- Enter coordinates of Point 2 (x₂, y₂)
- Click calculate for the slope
- View rise, run, and slope
- See slope as fraction and decimal
FAQ
What is slope?
Slope = rise/run = (change in y)/(change in x) = (y₂-y₁)/(x₂-x₁).
What does slope tell us?
Positive slope goes up, negative goes down, zero is horizontal, undefined is vertical.
How does slope relate to angle?
Slope = tan(angle). A 45° line has slope = 1.
What is undefined slope?
Vertical lines have undefined slope because run (x₂-x₁) = 0, causing division by zero.
Related tools
- Distance Between Points CalculatorCalculate the distance between two points in 2D or 3D. Free online distance formula calculator.
- Midpoint CalculatorFind the midpoint between two points. Free online midpoint formula calculator for coordinates.
- Linear Equation SolverSolve linear equations step by step. Free online linear equation calculator for ax + b = c format.
- Tangent CalculatorCalculate tangent of any angle. Free online tan calculator for degrees and radians.
- Vector Magnitude CalculatorCalculate the magnitude (length) of a vector. Free online vector magnitude calculator for 2D and 3D vectors.
- Roof Pitch CalculatorIn Construction
- Gradient CalculatorIn Construction
- Ramp CalculatorIn Construction