Slope From an Equation: Slope-Intercept, Standard Form, and Point-Slope
Read m straight out of y = mx + b, use −A/B for standard form, and tidy point-slope form into an equation you can test.
A line equation always hides its slope in plain sight: in y = mx + b it is the multiplier of x, in Ax + By = C it is −A/B, and in point-slope form it is the number beside (x − x₁). Three worked conversions, the vertical-line exception, and the point test that catches every error.
- In y = 7x + 16 the slope is 7; in y = 5 − 3x it is −3 — tidy to y = (number)·x + (number), then read the two numbers.
- Standard form slope is m = −A/B: 2x + 3y = 12 gives m = −2/3 and y = (−2/3)x + 4. Forgetting the minus flips the line.
- From (1, 5) with slope −3: y − 5 = −3(x − 1) becomes y = −3x + 8, with x-intercept 8/3 — and testing (1, 5) proves it.
- One point alone never fixes a line, and a slope alone fixes only a direction: you need a slope plus an anchor.
Reading the slope straight out of y = mx + b
The slope-intercept form of a line, y = mx + b, wears its slope on its sleeve: m is the number multiplying x, and b is where the line crosses the y-axis. In y = 7x + 16, the slope is 7 and the y-intercept is 16 — every step right raises y by 7, and at x = 0 the line sits at y = 16. The angle follows from the slope by the inverse tangent: atan(7) = 81.87°, a very steep climb, which matches a slope of 7. In y = −2x + 5, the slope is −2, the line falls 2 for every step right, and the y-intercept is 5. In y = 3, there is no x term at all, which means the slope is 0: a perfectly flat line at height 3.
Three reading errors account for nearly every wrong answer here. First, a slope hidden by rearrangement: y = 16 + 7x still has slope 7, because addition order does not change the multiplier of x. Second, a slope with a fraction attached to x: y = (2/3)x − 4 has slope 2/3, not 2, and the intercept is −4, not 4 — signs travel with their terms. Third, a line written with x on the right of the constant or with a subtracted term, such as y = 5 − 3x, where the slope is −3, because 5 − 3x is the same as −3x + 5. The rule never changes: tidy the equation until it reads y = (number)·x + (number), then read the two numbers.
| Equation | Slope m | y-intercept b |
|---|---|---|
| y = 7x + 16 | 7 | 16 |
| y = −2x + 5 | −2 | 5 |
| y = (2/3)x − 4 | 2/3 | −4 |
| y = 5 − 3x | −3 | 5 |
| y = 3 | 0 | 3 |
Standard form: the slope is −A/B
Not every equation arrives in slope-intercept form. The standard form Ax + By = C is common in textbooks and in systems of equations, and its slope is hiding in the ratio of the two coefficients: m = −A/B. The minus sign is the part people forget, and forgetting it flips the line from rising to falling. Take 2x + 3y = 12. Here A = 2 and B = 3, so m = −2/3. The check by rearranging confirms it: 3y = −2x + 12, so y = (−2/3)x + 4, slope −2/3, intercept 4, angle atan(−2/3) = −33.69°, falling to the right.
Two more examples fix the pattern. For x − 4y = 8, A = 1 and B = −4, so m = −1/(−4) = 1/4; rearranging gives y = (1/4)x − 2, which agrees. For 3x + y = 9, A = 3 and B = 1, so m = −3; rearranging gives y = −3x + 9, which agrees. And the formula also tells you when it cannot work: if B = 0, the equation has no y term at all, so it is a vertical line like x = 2, whose slope is undefined rather than any number. A vertical line is the one case where “find the slope” has no numerical answer, and −A/B correctly refuses to give one, because it divides by zero.
| Standard form | m = −A/B | Slope-intercept form |
|---|---|---|
| 2x + 3y = 12 | −2/3 | y = (−2/3)x + 4 |
| x − 4y = 8 | 1/4 | y = (1/4)x − 2 |
| 3x + y = 9 | −3 | y = −3x + 9 |
| x = 2 | Division by zero | Vertical line, slope undefined |
Point-slope form: one point plus a slope
When you know one point on the line and its slope, the point-slope form builds the equation directly: y − y₁ = m(x − x₁). From the point (1, 5) with slope −3, the equation is y − 5 = −3(x − 1). Expanding the right side gives y − 5 = −3x + 3, and adding 5 to both sides gives y = −3x + 8. The intercepts fall out immediately: the y-intercept is 8, and setting y = 0 gives 0 = −3x + 8, so x = 8/3, about 2.67. Every step is reversible, so any error can be caught by testing the original point: at x = 1, y = −3 + 8 = 5, which matches.
A second example with a fractional slope shows the same moves. From the point (−1, 4) with slope 1/2: y − 4 = (1/2)(x + 1), because x − (−1) is x + 1. Expanding gives y − 4 = (1/2)x + 1/2, so y = (1/2)x + 4.5. The y-intercept is 4.5, and the x-intercept solves 0 = (1/2)x + 4.5, giving x = −9. Testing the point: at x = −1, y = −0.5 + 4.5 = 4, which matches. Point-slope form is also the bridge the calculator uses in its one-point-plus-slope mode: give it the point and the slope, and it returns exactly this equation, plus the intercepts and the angle.
Checking an equation against two points
An equation and a pair of points must agree, and checking one against the other catches more errors than any other habit in this topic. Take the points (1, 1) and (4, 3). The slope is rise over run: (3 − 1) ÷ (4 − 1) = 2/3. Point-slope form from the first point gives y − 1 = (2/3)(x − 1), which expands to y = (2/3)x + 1/3. Now test the second point: at x = 4, y = 8/3 + 1/3 = 3, which matches. If the test fails, either the slope or the intercept is wrong — and because the test uses the point you did not build from, it catches both kinds of error.
This check also resolves the most common classroom dispute: two different-looking equations for the same line. The equations y = (2/3)x + 1/3, 2x − 3y = −1, and y − 3 = (2/3)(x − 4) all describe the same line through (1, 1) and (4, 3). Standard form confirms the second: A = 2, B = −3, so m = −2/(−3) = 2/3, and rearranging 2x − 3y = −1 gives −3y = −2x − 1, so y = (2/3)x + 1/3. Different forms, one line — and the point test proves it in seconds.
Why one point alone is never enough
A single point cannot determine a line, because infinitely many lines pass through any one point — flat, steep, rising, falling, all of them crossing there. To pin a line down you need either a second point, or the slope to go with the first point, or the full equation. This is why the calculator offers exactly those modes: two points, or one point plus a slope. A search phrased as “slope with one point” is really asking for one of those two completions, and without the missing piece the only honest answer is that the slope could be anything.
The same logic explains why a slope alone does not determine a line either: a slope of 2 describes a whole family of parallel lines, y = 2x + b for every b. The slope fixes the direction; the point or the intercept fixes the position. Together they fix the line completely, which is why every form in this article carries exactly two pieces of information: a slope and something that anchors it.
Slope from a table of values
Tables hide equations the same way graphs do, and the slope comes from any two rows. Given x = 0, 1, 2 with y = 1, 3, 5, the rise between the first two rows is 2 over a run of 1, so the slope is 2; between the second and third rows it is again 2 over 1, confirming a straight line, and the equation is y = 2x + 1, since at x = 0 the value is 1. Given x = 0, 2, 4 with y = 4, 3, 2, the rise is −1 over a run of 2, so the slope is −1/2, and the equation is y = (−1/2)x + 4. The check is the same as ever: every row must satisfy the equation, and the first row, x = 0, hands you the intercept for free.
A table also exposes a non-line faster than any other form. For x = 0, 1, 2, 3 with y = 0, 1, 4, 9, the rises are 1, then 3, then 5, over runs of 1 — the slope keeps changing, so no single line fits, and no single slope exists. Fitting a line through the first two points anyway would give y = x, which misses the later rows by 2 and then 6. The changing rise is the signature of a curve, and it is the table version of the curve limit discussed in the companion article: two points give an average, but only a constant rise over run earns the name slope.
Frequently asked questions
How do I find the slope from standard form Ax + By = C?
Use m = −A/B. For 2x + 3y = 12, A = 2 and B = 3, so m = −2/3. Rearranging confirms it: y = (−2/3)x + 4. Do not forget the minus sign — it decides whether the line rises or falls.
How do I read the slope from y = mx + b?
The slope is the number multiplying x. In y = 7x + 16 the slope is 7 and the y-intercept is 16. In y = 5 − 3x the slope is −3, because 5 − 3x is the same as −3x + 5.
How do I turn point-slope form into slope-intercept form?
Expand and isolate y. From (1, 5) with slope −3: y − 5 = −3(x − 1) expands to y − 5 = −3x + 3, so y = −3x + 8. Then test the original point: at x = 1, y = 5, which matches.
What is the slope of a vertical line from its equation?
Undefined. A vertical line like x = 2 has no y term, so standard form gives division by zero (B = 0) and slope-intercept form cannot be written at all. The line is vertical, at 90°, and has no numerical slope.
Can I find a slope from just one point?
No. Infinitely many lines pass through a single point. You also need a second point or the slope itself — which is why the calculator offers two-points mode and one-point-plus-slope mode, but no one-point-only mode.
Why does the calculator show the slope as a fraction and a decimal?
Fractions are exact: a slope of 2/3 is clearer as 2/3 than as 0.667. The calculator shows both the reduced fraction and the decimal, so you get precision and readability at once.
- 1Slope Percent, Degrees, and Grade: Converting Between Them
Percent grade, angle, ratio, and decimal slope are four names for one steepness — with the conversion table,…
- 2Slope on a Graph, Parallel Lines, and Real Grades
Count rise and run off the grid, use equal slopes for parallels and negative reciprocals for perpendiculars,…
- 3
- 4
- 5
