—

How to use Slope Calculator

Slope, line equation, intercepts and angle from two points.

  1. Enter x₁, y₁, x₂ and y₂; each field shows its unit.
  2. Read the Slope result — it updates as you type.
  3. Check the method in the formula below, then change any value to compare scenarios.

Formula & assumptions

m = (y₂ − y₁) / (x₂ − x₁)

y = mx + b, b = y₁ − m·x₁

About Slope Calculator

The slope of a line through two points is the rise over the run: m = (y₂ − y₁) ÷ (x₂ − x₁). The line’s equation in slope-intercept form is y = mx + b.

Slope also appears as a grade (m × 100%) on roads and ramps and as an angle (arctan m). A perpendicular line has slope −1 ÷ m.

Questions

What is the slope through (1, 2) and (4, 8)?

2, with the equation y = 2x.

What is the slope of a vertical line?

Undefined, because the run is zero.

Ratings & reviews

No ratings yet. Signed-in users can rate this app.