What Is Slope? Rise Over Run
The slope of a line measures how steep it is and in which direction it tilts. Informally, slope answers the question: for every step I take to the right, how far do I move up or down?
slope = rise / run, where rise is the vertical change and run is the horizontal change between any two points on the line.The four cases of slope
| Case | Sign | Behavior | Why |
|---|---|---|---|
| 1 | Positive slope | Line goes uphill from left to right | As x increases, y increases. |
| 2 | Negative slope | Line goes downhill from left to right | As x increases, y decreases. |
| 3 | Zero slope | Line is perfectly horizontal | No vertical change. |
| 4 | Undefined slope | Line is perfectly vertical | No horizontal change — you would be dividing by zero. |
A staircase that rises 3 inches for every 12 inches of horizontal distance.
3/12 = 1/4A ski run that drops 200 meters over 400 meters horizontally.
−200/400 = −1/2Slope is a rate — it tells you the rate at which one quantity changes relative to another, which is why it appears everywhere in science, economics, and engineering.
The Slope Formula with Two Points
When you know two points on a line, (x₁, y₁) and (x₂, y₂), you can calculate the slope using a formula.
m = (y₂ − y₁) / (x₂ − x₁). The letter m is the standard variable for slope. It does not matter which point you call "point 1" and which you call "point 2," as long as you are consistent — subtract the y-coordinates in the same order as the x-coordinates.Find the slope through (2, 3) and (6, 11).
m = (11 − 3) / (6 − 2) = 8 / 4 = 2.
The line rises 2 units for every 1 unit to the right.
m = 2Find the slope through (−1, 4) and (3, −2).
m = (−2 − 4) / (3 − (−1)) = −6 / 4 = −3/2.
The line falls 3 units for every 2 units to the right.
m = −3/2Points (5, 7) and (5, 12) give m = (12 − 7) / (5 − 5) = 5 / 0, which is undefined. This is a vertical line, which has no slope.
undefinedA frequent error is subtracting x-values in one order and y-values in another — this flips the sign. Always keep the order consistent to get the correct result.
Slope-Intercept Form: y = mx + b
y = mx + b, where m is the slope and b is the y-intercept — the point where the line crosses the y-axis.This form is powerful because you can read both key properties of the line directly from the equation without any calculation. For example, in the equation y = 3x − 5, the slope is 3 and the y-intercept is −5, meaning the line crosses the y-axis at the point (0, −5).
Every linear relationship can be written in slope-intercept form. If someone tells you a line has a slope of −2 and passes through (0, 4), you immediately write y = −2x + 4.
When the point isn't the y-intercept
But what if you know the slope and a point that is not the y-intercept? Use the point-slope form y − y₁ = m(x − x₁), then rearrange to slope-intercept form.
A line with slope 1/2 passes through (4, 3).
Start with y − 3 = (1/2)(x − 4).
Distribute: y − 3 = (1/2)x − 2.
Add 3: y = (1/2)x + 1.
y = (1/2)x + 1Now you can see the y-intercept is 1. Solver AI can convert any linear equation into slope-intercept form instantly and identify the slope and intercept for you.
Graphing a Line Using Slope and Y-Intercept
One of the greatest advantages of slope-intercept form is how easily it lets you graph a line by hand. The process requires only two steps.
- Plot the y-intercept
Since
bis the y-coordinate where the line crosses the y-axis, plot the point(0, b). - Use the slope to find a second point
Express the slope as a fraction
rise/run. From the y-intercept, move up (or down if negative) by the rise and right by the run, and plot the second point. Draw a straight line through both points and extend it in both directions.
Plot (0, 4).
The slope is −2/3, so from (0, 4) move down 2 and right 3 to reach (3, 2). Plot that point and draw the line.
For accuracy, you can find a third point by applying the slope again: from (3, 2), move down 2 and right 3 to reach (6, 0).
If all three points are collinear, the graph is correct.If the slope is an integer like 3, think of it as 3/1 — rise 3, run 1. If the slope is negative, you can either move down with a positive run, or up with a negative run — both produce the same line.
Converting Between Standard Form and Slope-Intercept Form
Ax + By = C, where A, B, and C are integers and A is typically non-negative. Converting between standard form and slope-intercept form is a routine algebra skill.Standard to slope-intercept
- Solve for y
Start with
Ax + By = C. - Subtract Ax
By = −Ax + C. - Divide by B
y = (−A/B)x + C/B. So the slope is−A/Band the y-intercept isC/B.
Subtract 3x: 4y = −3x + 12.
Divide by 4: y = (−3/4)x + 3.
y = (−3/4)x + 3Slope-intercept to standard
Move all terms to one side and clear fractions.
Multiply everything by 5: 5y = 2x − 15.
Rearrange: −2x + 5y = −15, or equivalently 2x − 5y = 15.
2x − 5y = 15Standard form is preferred when working with systems of equations (elimination method), while slope-intercept form is better for graphing and identifying slope. Being fluent in converting between the two gives you flexibility to choose the form that makes each problem easiest to solve.
Real-World Applications: Rate of Change
Slope is not just a concept on a graph — it represents rate of change in countless real-world situations. Anytime one quantity changes at a constant rate relative to another, you have a linear relationship whose slope tells the rate.
If a car travels 180 miles in 3 hours at a constant speed, the slope of the distance-vs-time graph is 180/3 = 60 miles per hour.
d = 60tThe y-intercept is 0 (starting at the origin).
A phone plan charges $25 per month plus $0.10 per text.
C = 0.10t + 25The slope 0.10 represents cost per text and 25 is the fixed monthly fee (y-intercept).
If a pot of water heats from 20°C to 100°C in 8 minutes at a steady rate, the slope is (100 − 20)/8 = 10 degrees per minute.
T = 10t + 20In each case, the slope gives the unit rate — the amount of change per single unit of the independent variable. Understanding slope as rate of change bridges the gap between abstract algebra and applied problem-solving.
When you encounter word problems involving rates, translating them into y = mx + b form is often the fastest path to the answer. Solver AI recognizes rate-of-change problems in word-problem format and sets up the linear model for you, showing how each real-world quantity maps to m and b.