CCalclabhub

Algebra

Slope between two points

Rise divided by run. Take both differences in the same direction, or the sign reverses.

Last updated

The Formula

m = (y2 - y1) / (x2 - x1)

Rise divided by run. Take both differences in the same direction, or the sign reverses.

SymbolMeaning
x1, y1Coordinates of the first point
x2, y2Coordinates of the second point
mSlope of the line

What Each Symbol Means

x1, y1coordinates

Coordinates of the first point

Order does not matter as long as both differences are taken the same way.

x2, y2coordinates

Coordinates of the second point

If x2 equals x1 the line is vertical and the slope is undefined.

munits of y per unit of x

Slope of the line

Positive slopes rise left to right; negative slopes fall.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate slope page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate Slope, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Slope between two points?

The formula for Slope between two points is m = (y2 - y1) / (x2 - x1). Rise divided by run. Take both differences in the same direction, or the sign reverses.

What does each symbol in Slope between two points stand for?

x1, y1 is coordinates of the first point; x2, y2 is coordinates of the second point; m is slope of the line.

What units should I use with Slope between two points?

Substitute x1, y1 in coordinates, x2, y2 in coordinates, m in units of y per unit of x. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Slope between two points?

Mixing the subtraction order between numerator and denominator. Taking y2 - y1 with x1 - x2 gives the negative of the correct answer. Always move in the same direction through both coordinates.