How to Find Slope: A Step-by-Step Math Guide
By the BrainSnail editorial team. How these articles are written and checked, and how to tell us when one is wrong.
Finding slope comes down to measuring how much a line rises or falls for each step it moves horizontally. On a graph, slope is often described as rise over run, and with two points you can calculate the same idea using a simple coordinate formula.
From a graph
Choose two clear points that lie exactly on the line. Start at the left point and move vertically until you are level with the second point. Count that vertical change as the rise. Then move horizontally to the second point and count that change as the run.
Slope equals vertical change divided by horizontal change. If the line rises 6 units while moving 3 units to the right, the slope is 6 divided by 3, which equals 2. That means every increase of 1 in x is matched by an increase of 2 in y.
Signs matter when finding slope. A line that rises from left to right has positive slope. A line that falls from left to right has negative slope. A horizontal line has slope 0 because there is no vertical change, while a vertical line has undefined slope because the horizontal change is 0 and division by zero is undefined.
From two points
If you are given two coordinates, label them as first point and second point. Subtract the y-values in the same order that you subtract the x-values. In symbols, slope is the change in y divided by the change in x.
Suppose the points are (2, 3) and (6, 11). The change in y is 11 minus 3, which is 8. The change in x is 6 minus 2, which is 4. The slope is 8 divided by 4, so the answer is 2.
You could subtract in the opposite order and still get the same result as long as you reverse both differences. If you calculate 3 minus 11 over 2 minus 6, you get negative 8 over negative 4, which is also 2. Mixing the orders is a common mistake when finding slope.
What slope tells you
Slope is more than a graph exercise. It describes a rate of change:
- •Positive slope - y increases as x increases.
- •Negative slope - y decreases as x increases.
- •Zero slope - the line is horizontal.
- •Undefined slope - the line is vertical.
- •Slope units - y-units divided by x-units.
Units help give slope meaning. If y is distance in kilometres and x is time in hours, slope has units of kilometres per hour. If y is cost in euros and x is number of tickets, slope can represent euros per ticket. Reading the axes tells you what the rate means.
Once how to find slope feels comfortable, connect it with the equation y = mx + b. In this form, m is the slope and b is the y-intercept. A larger positive m gives a steeper rising line, while a more negative m gives a steeper falling line.
Road gradients and perpendicular lines
Road signs use slope in a practical form. A sign showing a 10 percent gradient means the road rises or falls 10 metres for every 100 metres of horizontal distance, which is a slope of 0.1. A common misconception is that a 100 percent gradient would be a vertical wall. In fact, 100 percent means the rise equals the run, a slope of 1, which is an angle of 45 degrees. A vertical wall has undefined slope, matching the rule that division by zero is undefined.
Slope also tells you how lines relate to each other. Parallel lines never meet, so they must have exactly the same slope. Perpendicular lines meet at a right angle, and for lines that are neither horizontal nor vertical, their slopes multiply to give negative 1. So if one line has slope 2, a line perpendicular to it has slope negative one half. You can check this with a sketch: turning a line through a right angle swaps its rise and run and changes the direction of one of them.
When the line is a curve
Straight lines have the same slope everywhere, but curves do not. On the graph of y = x squared, the curve is flat near the origin and grows steeper as x increases. You can still measure an average slope between two points on it using the same formula. Between x = 1 and x = 3, the y values are 1 and 9, so the average slope is 8 divided by 2, which is 4. The straight line joining those two points is called a chord, and its slope describes the average rate of change across that stretch.
Now bring the second point closer. Between x = 1 and x = 2 the average slope is 3. Between x = 1 and x = 1.1 it is 0.21 divided by 0.1, which is 2.1. Between x = 1 and x = 1.01 it is 2.01. The values are closing in on 2, which is the slope of the tangent line that just touches the curve at x = 1. Finding that limiting slope is the central idea of differential calculus, and it is the same difference as the one between a speedometer reading and your average speed over a whole journey.
Finding slope from an equation or a table
Sometimes you are given an equation instead of points. If it is written as 4x + 2y = 10, rearrange it into the form y = mx + b. Subtract 4x from both sides to get 2y = -4x + 10, then divide every term by 2 to get y = -2x + 5. The slope is -2. For any equation of the form Ax + By = C, the same steps always give a slope of negative A divided by B, so 3x + 6y = 7 has a slope of -3/6, which simplifies to negative one half. If B is zero, the line is vertical.
Tables of values are another common source. Suppose the x values are 0, 2, 4 and 6 and the matching y values are 5, 8, 11 and 14. Each time x increases by 2, y increases by 3, so the slope is 3 divided by 2, which is 1.5. Those constant differences are also your test for a straight line. If the y values rose by 3, then 4, then 6 for equal steps in x, the points would lie on a curve and no single slope would describe them. The same idea checks whether three points lie on one line, since the slopes between each pair must match.
From slope to the equation of a line
Knowing the slope is often the halfway point towards the equation of a line. If you have the slope m and any one point (x1, y1) on the line, the point-slope form y - y1 = m(x - x1) gives the equation straight away. Take the earlier points (2, 3) and (6, 11), which gave a slope of 2. Using the first point, y - 3 = 2(x - 2). Expanding the bracket gives y - 3 = 2x - 4, and adding 3 to both sides gives y = 2x - 1. Check it with the second point: 2 times 6 minus 1 is 11, as it should be.
The same steps turn word problems into equations. Suppose a gym charges a joining fee plus a fixed monthly fee, and after 3 months a member has paid 95 pounds in total, while after 7 months they have paid 175 pounds. The slope is 175 minus 95 over 7 minus 3, which is 80 divided by 4, or 20 pounds per month. Point-slope form gives y - 95 = 20(x - 3), which simplifies to y = 20x + 35. The intercept, 35 pounds, is the joining fee: the cost at zero months, before any monthly payment has been made.
The takeaway
Finding slope is a repeatable process: take the change in y and divide it by the change in x. Keep subtraction order consistent, watch the sign, and check the axis units. Once you see slope as a rate of change rather than just a formula, graphs and linear equations become easier to connect.