Part of the Maths & Statistics suite · 235 calculators

Slope Calculator

The slope between two points, plus the full equation of the line through them.

Slope is rise over run: how much the line climbs for each step across.

Results update as you type
Results
Slope
2
Slope-intercept form
Standard form
y-intercept
Angle with the horizontal
Slope of a perpendicular line
Distance between the points
Reviewed September 2026. Pure mathematics: the result does not depend on where you are. Terminology follows the Australian Curriculum (maths, brackets, decimal point).
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About slope

How the slope calculator works

Slope is rise over run: how much the line climbs for each step across. A slope of 2 climbs two units for every one across; a slope of −0.5 falls half a unit.

A vertical line has no slope at all, which is different from having a slope of zero. Zero slope is horizontal — it climbs nothing. Vertical is undefined, because the run is zero and you cannot divide by it. Conflating the two is the most common mistake on this topic.

The page also gives the line in all three standard forms, the angle it makes with the horizontal, and the slope of any perpendicular line.

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

Worked examples

InputsSlopeNote
From (2, 3) to (8, 15)2slope 2, y = 2x − 1
A horizontal line0 — the line is horizontalslope 0
A vertical lineundefined — the line is verticalundefined, not zero

Frequently asked questions

How do I find the slope between two points?

Divide the change in y by the change in x: (y₂ − y₁)/(x₂ − x₁).

What is the slope of a vertical line?

Undefined — the run is zero and you cannot divide by it. That is different from a slope of zero, which is horizontal.

What is the slope of a horizontal line?

Zero. It climbs nothing as it moves across.

What is slope-intercept form?

y = mx + b, where m is the slope and b is where the line crosses the y-axis.

What is the slope of a perpendicular line?

The negative reciprocal: a line of slope 2 is perpendicular to one of slope −½.

Where these figures come from

Last checked: September 2026. Formulas are fixed by mathematics and do not change with tax years or regulations.