No history yet

Slope Formula Derivation

Calculating Slope

Any straight line has a constant steepness. This steepness is called the slope. It measures how much the line goes up or down for every step it takes to the right. Since you're familiar with plotting points on a , we can jump straight to how we measure this slope algebraically. The slope tells us the exact rate of change between any two points on the line.

To find the slope, you only need the coordinates of two different points on that line. Let's call them Point 1 (x1,y1)(x_1, y_1) and Point 2 (x2,y2)(x_2, y_2). The slope, often represented by the letter mm, is calculated with a specific formula.

m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1}

The expressions y2y1y_2 - y_1 and x2x1x_2 - x_1 are so common that they have their own shorthand. You'll often see them written using the Greek letter delta (ΔΔ), which means 'change in'. So, the slope formula can also be written as:

m=ΔyΔxm = \frac{\Delta y}{\Delta x}

Let's calculate the slope for a line that passes through the points (1,1)(1, 1) and (2,5)(2, 5).

First, we assign our points: Let (x1,y1)=(1,1)(x_1, y_1) = (1, 1) And (x2,y2)=(2,5)(x_2, y_2) = (2, 5)

Now, we plug these values into the formula.

m=5121=41=4m = \frac{5 - 1}{2 - 1} = \frac{4}{1} = 4
Lesson image

Does Order Matter?

What if we had chosen (2,5)(2, 5) as our first point and (1,1)(1, 1) as our second? Let's see.

This time: (x1,y1)=(2,5)(x_1, y_1) = (2, 5) (x2,y2)=(1,1)(x_2, y_2) = (1, 1)

Plugging these into the formula gives us:

m=1512=41=4m = \frac{1 - 5}{1 - 2} = \frac{-4}{-1} = 4

The result is identical. The key is consistency. Whichever point you choose to provide the first y-value must also provide the first x-value. You can't mix and match.

For example, this would be incorrect:

m=5112=41=4(Incorrect!)m = \frac{5 - 1}{1 - 2} = \frac{4}{-1} = -4 \quad (\text{Incorrect!})

This consistency ensures that the slope correctly represents the line's regardless of which two points you pick or how you order them.

As long as you subtract the x and y coordinates in the same order, you will always get the correct slope.

Quiz Questions 1/5

What does the slope of a straight line represent?

Quiz Questions 2/5

Which formula correctly calculates the slope (mm) of a line passing through points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2)?