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

x₁
1
y₁
2
x₂
3
y₂
8
Slope (m)
3
Slope-intercept formy = 3x − 1
Point-slope formy − 2 = 3(x − 1)
y-intercept (b)-1
x-intercept0.333333
Angle with the x-axis71.5651°
Distance between points6.324555
Line directionRising (positive slope)
Step by step
  1. Rise = y₂ − y₁ = 8 − 2 = 6
  2. Run = x₂ − x₁ = 3 − 1 = 2
  3. m = 6 ÷ 2 = 3
  4. 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

  1. Enter coordinates of Point 1 (x₁, y₁)
  2. Enter coordinates of Point 2 (x₂, y₂)
  3. Click calculate for the slope
  4. View rise, run, and slope
  5. 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.