Search the complete library

What do you want to learn or calculate?

Quick linksAll calculatorsMath subjectsPractice questionsFormula library

Unlock Unlimited Help

Try unlimited chats, explanations, practice, flashcards, and more free for 7 days.

7 days free · cancel anytime

MathGPT Unlimited

  • Chats and explanations
  • Personalized practice exams
  • Custom study guides
  • Flashcard sets
  • Interactive graphs
  • Cancel anytime
Choose a billing period
Ask a parent to pay

No charge for 7 days. After the trial, your selected plan renews automatically until cancelled. Cancel anytime from your plan page; payments are processed securely by Stripe.

← Algebra formulas

Slope-intercept form: what it means and how to use it

Write a nonvertical line using its slope and vertical intercept.

Algebra · Lines
$$y=mx+b$$

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

  1. Name the unknown, and the unit the answer has to come out in.
  2. Match the symbols to your values. $m$ is slope and $b$ is the $y$-intercept.
  3. Check the conditions before substituting. This form does not directly represent a vertical line $x=c$.
  4. 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.

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.

Stuck on a problem?

Work a slope-intercept form problem step by step

Type your own problem, or upload a photo of it. You get the method, the answer, and a check you can repeat yourself.