Calculating Slope with the Slope Formula
Slope is the change in y divided by the change in x, with both differences taken in the same order. Use coordinates from two points, a graph, a table, or an equation’s intercepts to calculate slope, then interpret its sign and units as a rate of change.

A Number for Steepness
Some skate-park ramps are gentle, while others are much steeper. Slope turns the steepness of a straight line into a number. It can also describe how quickly a quantity, such as money or water, changes
One way to find slope is rise over run: count the vertical and horizontal changes between two points on a grid. But for a line through A (30, 45) and B (90, 165), counting individual squares would be cumbersome. The coordinates already contain the information needed to find both changes. The slope formula uses those coordinates directly
The Slope Formula
Rise is the vertical change between two points: how far up or down. Run is the horizontal change: how far right or left. The letter m represents slope
Name the first point (x₁, y₁) and the second point (x₂, y₂). From the first point to the second, the rise is y₂ − y₁ and the run is x₂ − x₁. Therefore, slope = rise/run = change in y/change in x, or m = (y₂ − y₁)/(x₂ − x₁)
Example: slope through (4, −2) and (−2, 1)
Find the slope of the line through (4, −2) and (−2, 1). Either point can be point 1. Choose (x₁, y₁) = (4, −2) and (x₂, y₂) = (−2, 1)
Substitute the y-values on top and the x-values underneath: m =
$$1 − (−2)$$
/(−2 − 4). Subtracting a negative adds, so the numerator is 3. The denominator is −6. Thus m = 3/(−6) = −1/2. The negative slope means the line falls as we move to the right
Why subtraction order matters
Reverse the point labels so that (−2, 1) is point 1 and (4, −2) is point 2. Then m = (−2 − 1)/
$$4 − (−2)$$
= −3/6 = −1/2. Reversing both subtractions gives the same slope
Mixing the orders does not work. For these same points,
$$1 − (−2)$$
/
$$4 − (−2)$$
= 3/6 = 1/2. That positive result is incorrect because the numerator starts with one point while the denominator starts with the other
Practice 1: complete the substitution
Find the slope through (3, 8) and (5, 2), using (3, 8) as (x₁, y₁) and (5, 2) as (x₂, y₂). Complete the numerator, denominator, and slope in m = (numerator)/(denominator) = slope. The supplied choices are 2 − 8, 8 − 2, 5 − 3, 3 − 5, −3, and 3
The correct substitution is m = (2 − 8)/(5 − 3) = −6/2 = −3. Both subtractions start with point 2. Keep the negative sign when simplifying
Slope from Graphs and Tables
Example: read two points from a graph
Find the slope of a graphed line by first choosing two points whose coordinates can be read exactly. In this example, the line passes through the grid intersections (−3, 1) and (1, 3). Read each point in (x, y) order: horizontal position first, then vertical position
Use (x₁, y₁) = (−3, 1) and (x₂, y₂) = (1, 3). The rise is 3 − 1 = 2, and the run is 1 − (−3) = 4. Therefore, m = (3 − 1)/
$$1 − (−3)$$
= 2/4 = 1/2. The vertical change is 2 units upward, from (−3, 1) to (−3, 3), followed by a horizontal change of 4 units rightward to (1, 3)
The same line also passes through (−1, 2) and (3, 4). These points give the same slope, 1/2. On a straight line, choosing another pair of points does not change the slope
Example: a table with constant y
Each column of an x/y table represents one point. In the table below, the points are (1, −2), (4, −2), and (6, −2). Although x changes, y stays at −2
| Coordinate | Point 1 | Point 2 | Point 3 |
|---|---|---|---|
| x | 1 | 4 | 6 |
| y | −2 | −2 | −2 |
Using the first two columns, m =
$$−2 − (−2)$$
/(4 − 1) = 0/3 = 0. There is no vertical change, so the line is horizontal
Practice 2: find the slope from a table
The table shows points on a line. What is its slope? The original number-line choices range from −4 to 4 in steps of 1
| Coordinate | Point 1 | Point 2 | Point 3 |
|---|---|---|---|
| x | 0 | 3 | 6 |
| y | 5 | 11 | 17 |
Take (0, 5) and (3, 11) as the two points. Then m = (11 − 5)/(3 − 0) = 6/3 = 2. The correct slope value is 2. Keep each x-value paired with the y-value from its own column, and put the y-change on top
Slope as a Rate of Change
Example: a tablet’s falling resale value
A family’s tablet loses resale value at a steady rate. At 2 months it is worth $760; at 8 months it is worth $520. With time in months as x and value in dollars as y, the value line passes through (2, 760) and (8, 520). Find its slope and explain what it means
Choose (x₁, y₁) = (2, 760) and (x₂, y₂) = (8, 520). The change in value is 520 − 760 = −240 dollars. The change in time is 8 − 2 = 6 months. Thus m = (520 − 760)/(8 − 2) = −240/6 = −40 dollars per month
The tablet loses $40 of resale value each month. The units come from change in dollars divided by change in months. The negative sign expresses the decrease: as time increases, the tablet’s value falls
Practice 3: Maya’s earnings
Maya babysits at a steady hourly rate. After 3 hours she has earned $36 in total; after 7 hours she has earned $84. Treat hours worked as x and total dollars earned as y
Slope from an Equation
When a line is given by an equation rather than by two points, find points on the line first. For the equation in this example, the x- and y-intercepts provide two points to use in the slope formula
Example: find the slope of 2x − 4y = 8
First find the y-intercept by setting x = 0: 2(0) − 4y = 8, so −4y = 8. Divide both sides by −4 to get y = −2. The y-intercept is the point (0, −2)
Next find the x-intercept by setting y = 0: 2x − 4(0) = 8, so 2x = 8 and x = 4. The x-intercept is the point (4, 0). To find where a line crosses one axis, set the other variable to zero
Use (0, −2) as point 1 and (4, 0) as point 2. Then m =
$$0 − (−2)$$
/(4 − 0) = 2/4 = 1/2. The line rises 1 unit for every 2 units it runs to the right
Practice 4: intercepts and slope
Find both intercepts of 6x + 3y = 18, then compute its slope. Complete the values in y-intercept (0, ___), x-intercept (___, 0), and m = ___. The supplied choices are 6, 3, −2, 2, 18, and −6
For the y-intercept, set x = 0: 3y = 18, so y = 6 and the point is (0, 6). For the x-intercept, set y = 0: 6x = 18, so x = 3 and the point is (3, 0). Then m = (0 − 6)/(3 − 0) = −6/3 = −2. The correct completed values are 6, 3, and −2
Summary
The formula: m = (y₂ − y₁)/(x₂ − x₁) = rise/run = change in y/change in x. Coordinates provide the rise and run without counting grid squares
The order rule: start both subtractions from the same point. Swapping both orders preserves the slope; mixing the orders can produce the wrong sign
Where points come from: read exact coordinates from a graph, pair the x- and y-values in each table column, or find points from an equation using its intercepts. For a y-intercept, set x = 0; for an x-intercept, set y = 0. A constant y-row with changing x gives a horizontal line with slope 0
In context, slope is a rate. Keep the units in y-units per x-unit, such as dollars per month. Keep the sign as well: a negative slope means y decreases as x increases
Quiz
For the next question, a tank drains at a steady rate. The table shows the water remaining. Treat time in minutes as x and water in gallons as y
| Quantity | Point 1 | Point 2 | Point 3 |
|---|---|---|---|
| Time (minutes) | 0 | 4 | 8 |
| Water (gallons) | 50 | 42 | 34 |