Calculating Slope from Two Points

Slope measures vertical change divided by horizontal change. Use two coordinates to calculate it, handle negative numbers and subtraction order, and interpret the result as a direction and a rate, such as dollars lost per month.

Course cover for Calculating Slope from Two Points

How Steep Is a Line?

A mountain road may climb gently in one stretch and drop quickly in another. In mathematics, slope is a single number used to measure a line's steepness

Consider a straight line through A(1, 2) and B(5, 4) on a coordinate grid, with x increasing to the right and y increasing upward. The line rises from left to right. How steep is it, exactly? These two points provide the information needed to calculate its slope

How Steep Is a Line?: 1 1 2 2 3 3 4 4 5 5 6 6 A(1, 2) B(5, 4)

Rise Over Run

To connect steepness with direction, consider a line segment whose horizontal run stays fixed at 4 units to the right while its rise varies from −6 to 6 units. A positive rise puts the right endpoint above the left endpoint, so the line climbs. A negative rise puts it below the left endpoint, so the line falls. A rise of 0 makes the segment flat

Rise Over Run: x y O 2 4 6 −4 −2 2 4 run = 4

Answering the opening question

For A(1, 2) and B(5, 4), the vertical change is from y = 2 to y = 4, a rise of 2 units. The horizontal change is from x = 1 to x = 5, a run of 4 units to the right

Rise Over Run: x y O 1 2 3 4 5 6 1 2 3 4 5 A(1, 2) B(5, 4) rise = change in y = 2 run = change in x = 4

The horizontal segment from (1, 2) to (5, 2), the vertical segment from (5, 2) to (5, 4), and the line segment from A to B form a right slope triangle. The slope is 2/4 = 1/2. This positive result agrees with the line rising from left to right

Read from left to right, a climbing line has positive slope and a falling line has negative slope

Example: a drop of 3 units

A line drops 3 units while running 4 units to the right. Find its slope. The drop is a negative change in y, so the rise is −3. Moving right gives a positive run of +4. Therefore, m = −3/(+4) = −3/4. The negative sign makes sense because the line goes downhill from left to right

Rise Over Run: x y O 1 2 3 4 5 6 1 2 3 4 5 rise = -3 run = +4

A skateboard ramp line drops 6 units for every 10 units it runs to the right. What is its slope?

A

-3/5

B

3/5

C

-5/3

The Two-Point Formula

When only coordinates are given, label the two points (x₁, y₁) and (x₂, y₂). The subscripts 1 and 2 are name tags for the points, not exponents: x₂ does not mean x squared

The Two-Point Formula: (x1, y1) (x2, y2)

Formula matching check: match y₂ − y₁, x₂ − x₁, and m to their meanings. The correct matches are y₂ − y₁ → change in y (the rise); x₂ − x₁ → change in x (the run); and m → the slope of the line. The remaining meaning, the y-intercept, does not match any of these three parts

Example: through (6, −1) and (−2, 3)

Find the slope of the line through (6, −1) and (−2, 3). First label the points: let (6, −1) be Point 1, so x₁ = 6 and y₁ = −1. Let (−2, 3) be Point 2, so x₂ = −2 and y₂ = 3. Either point could be Point 1; these are the labels used for this calculation

Calculate the rise: y₂ − y₁ = 3 − (−1) = 3 + 1 = 4. Subtracting a negative becomes adding. Calculate the run in the same point order: x₂ − x₁ = −2 − 6 = −8

Substitute and simplify: m =

$$3 − (−1)$$

/(−2 − 6) = 4/(−8) = −1/2. A positive number divided by a negative number is negative

Practice: complete the calculation

A line passes through (2, 9) and (7, −1). Complete m = (□ − 9)/(□ − 2) = □ using the choices −1, 7, −2, 2, and 9. The blanks, in order, are −1, 7, and −2: m = (−1 − 9)/(7 − 2) = −10/5 = −2

The y-value from the second point belongs in the numerator and its x-value belongs in the denominator. The final answer remains negative because a negative divided by a positive is negative

Keep the Order Consistent

Swap the labels, same slope

What if the points (6, −1) and (−2, 3) are labeled the other way around? Now let (6, −1) be Point 2 and (−2, 3) be Point 1. The rise becomes −1 − 3 = −4, and the run becomes 6 − (−2) = 8. Thus m = (−4)/8 = −1/2, the same result as before

The sign-flip trap

Using the original labels, suppose the rise is correctly written as 3 − (−1) = 4, which is Point 2 minus Point 1. If the run is instead written as 6 − (−2) = 8, it uses Point 1 minus Point 2. Combining these gives 4/8 = 1/2, an incorrect positive slope

The mistake is not the placement of rise and run: y-values are still on top and x-values on the bottom. The subtraction orders disagree. The line falls from left to right, and its correct slope is −1/2, not 1/2

A student computes the slope through (1, 4) and (5, -2) as m = (-2 - 4)/(1 - 5) = 3/2. What do you tell them?

A

The subtraction orders don't match, so the sign flipped; the correct slope is -3/2

B

The work is consistent; 3/2 is correct

C

Rise and run were swapped; the correct slope is -2/3

Slope as a Rate

A shop tracks a camera drone's resale value along a straight, falling line. The horizontal axis represents time in months, and the vertical axis represents value in dollars. The two marked points are (4, 840) and (16, 360): at 4 months the drone is worth $840, and at 16 months it is worth $360. Find the slope

Slope as a Rate: 4 8 12 16 20 200 400 600 800 1000 Time (Months) Value ($) (4, 840) (16, 360)

Let (4, 840) be Point 1 and (16, 360) be Point 2. The rise is 360 − 840 = −480 dollars. The run is 16 − 4 = 12 months. Therefore, m = (360 − 840)/(16 − 4) = −480/12 = −40

Slope as a Rate: 4 8 12 16 20 200 400 600 800 1000 Time (Months) Value ($) (4, 840) Point 1 (16, 360) Point 2

Because y measures dollars and x measures months, the slope is −40 dollars per month. On this straight-line model, the drone loses $40 of value each month. The negative sign expresses a decrease; 40 gives the size of that decrease per month

Check the interpretation against the data: the value drops $480 over 12 months, and $480 ÷ 12 = $40 per month. The rate agrees with both the calculation and the falling line

Summary

1. Slope is rise over run: slope = (change in y)/(change in x). Rise is vertical change, and run is horizontal change

2. For points (x₁, y₁) and (x₂, y₂), use m = (y₂ − y₁)/(x₂ − x₁). The subscripts label the points; they are not exponents

3. Keep the subtraction order consistent. Either point may go first, but using opposite orders in the numerator and denominator flips the sign

4. Simplify and interpret. The sign describes whether the line rises or falls from left to right, and the slope gives the change in y per one x-unit. For the drone's value, −40 means $40 lost per month

Quiz

Find the slope of the line through (-3, 5) and (3, -4)

A

-3/2

B

3/2

C

-2/3

A printer is worth $800 at 5 months and $200 at 15 months, along a straight line. What does the slope tell you?

A

Its value decreases by $60 per month

B

Its value increases by $60 per month

C

Its value decreases by $60 in total

D

Its value decreases by $6 per month

Check the subtraction order

A line passes through (2, 7) and (6, 1). Classify these three slope setups by their subtraction order: (1 − 7)/(6 − 2), (7 − 1)/(2 − 6), and (1 − 7)/(2 − 6). The two categories are “Consistent order (correct slope)” and “Mismatched order (wrong sign).”

Consistent order (correct slope): (1 − 7)/(6 − 2) starts both subtractions from (6, 1). The setup (7 − 1)/(2 − 6) starts both from (2, 7). Both are consistent, even though they begin with different points

Mismatched order (wrong sign): (1 − 7)/(2 − 6) starts the numerator from (6, 1) but the denominator from (2, 7). The test is whether both subtractions start from the same point, not which point is chosen to go first

Continue with the interactive lesson