Skip to content
Convert. Calculate.

Slope Calculator

Find slope, distance, midpoint and the line equation between two points.

Your details

Result

Slope (m)

2

Distance
6.7082
Midpoint
(2.5, 5)
Angle with x-axis
63.43°
Line
y = 2x + 0

Good to know: m = (y₂ − y₁) ÷ (x₂ − x₁)

About this tool

Formula

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

Questions people ask

What is the slope of a vertical line?

Undefined, because the change in x is zero.

Related tools

How we calculate this

We use the standard published formula or definition for this calculation, and we show the working so you can check it.

Spotted a mistake? Tell us and we'll check it. How we check our calculators