Slope-intercept form
Write a nonvertical line using its slope and vertical intercept.
Slope-intercept form is one of 4 lines formulas in the algebra section of this library, and it is used at high school level.
Why slope-intercept form works
Set x to zero and the mx term disappears, leaving y = b, which is the height where the line crosses the vertical axis. Then every step of one unit to the right adds another m to the height. So the two letters in this form are simply a starting height and a constant step size.
What each symbol means
$m$ is slope and $b$ is the $y$-intercept.
Slope-intercept form: when it holds
This form does not directly represent a vertical line $x=c$.
When it stops applying
A vertical line cannot be written this way at all. There is no number m that describes x = 4, because the height changes while the horizontal position never does. Any equation you can put in this form is guaranteed to be non-vertical.
Slope-intercept form: a worked example
Slope $3$ and intercept $-2$ give $y=3x-2$.
The mistake to avoid
What people do: Reading 2y = 6x + 8 as a line with slope 6 and intercept 8.
Why it goes wrong: The form only reports slope and intercept when y stands alone with a coefficient of 1. Here everything is doubled, so the true slope is 3 and the true intercept is 4.
Do this instead: Divide every term by the coefficient on y before you read anything off. Dividing 2y = 6x + 8 by 2 gives y = 3x + 4.
Slope-intercept form: step by step
- Name the unknown, and the unit the answer has to come out in.
- Match the symbols to your values. $m$ is slope and $b$ is the $y$-intercept.
- Check the conditions before substituting. This form does not directly represent a vertical line $x=c$.
- Substitute, keep exact values to the last line, then test the sign, size, and unit against a rough estimate — the check that catches most algebra slips.
Where this formula fits
- Subject
- Algebra formulas — 28 entries in this library
- Topic
- Lines
- Level
- High school
Formulas are easiest to keep when they sit inside a method rather than on a list. Use the links below to see where slope-intercept form comes from, to check a calculation against a tool, and to practise it until you can recall it without looking.
- How to Solve Linear Equations — the lesson behind this formula: balance equations one reversible step at a time.
- Slope Intercept Form Calculator — check your substitution and the value it produces.
- Study algebra — the subject guide that explains the ideas these formulas compress.
- Algebra I Practice — questions that make you retrieve the formula instead of recognising it.
- All 28 algebra formulas — the full grouped reference, or the complete formula library.
Questions about slope-intercept form
Is y = 5 a line in this form?
Yes. It is y = 0x + 5, so the slope is 0 and the intercept is 5. The graph is a flat horizontal line five units above the origin, and every point on it has the same height.
How do I get this form when I am given two points instead?
Find the slope from the two points first, then substitute either point and solve for b. Points (1,2) and (5,10) give slope 2, and 2 = 2(1) + b makes b = 0.
What does a negative value of m look like on the graph?
The line falls as you read left to right. Each step right subtracts from the height, so a slope of -2 drops the graph two units for every one unit you move across.
Why do textbooks call b the y-intercept and not just the intercept?
Because a slanted line also crosses the horizontal axis, at a different place. Naming the axis avoids confusion: b is the height at x = 0, while the x-intercept is where the height is 0.