Slope-Intercept Form

Slope-intercept form directly reveals a line's slope and y-intercept, making it ideal for graphing and comparing linear relationships.

y=mx+by = mx + b

Solve a problem with Slope-Intercept Form

Type the problem. The solver will use Slope-Intercept Form where Slope-Intercept Form is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Slope-Intercept Form takes
mm
bb
xx
yy
Slope-Intercept Form
SymbolMeaning
mmThe slope, which measures how steep the line is (rise over run); if mm is negative, the line slopes downward from left to right.
bbThe y-intercept, the point where the line crosses the y-axis, occurring when x=0x = 0; a negative bb means the line crosses below the origin.
xxThe independent variable representing any point on the horizontal axis; each value of xx determines a corresponding yy value on the line.
yyThe dependent variable representing the vertical coordinate; once you substitute xx, the equation tells you the exact yy value on the line.

When to use it

Reach for slope-intercept form when you need to quickly graph a line or write its equation from the slope and y-intercept.

Level

Usually taught in: Algebra I · Appears on: SAT, ACT

Worked examples

1. Convert slope and intercept to equation form

Problem

Write the equation of a line with slope 2 and y-intercept 3-3.
  1. m=2,b=3m = 2, \quad b = -3

    Identify the slope mm and the y-intercept bb from the problem statement.

  2. y=mx+by = mx + b

    Write the general slope-intercept form.

  3. y=2x+(3)y = 2x + (-3)

    Substitute m=2m = 2 and b=3b = -3 into the formula.

  4. y=2x3y = 2x - 3

    Simplify by removing the parentheses.

Answer: y=2x3y = 2x - 3

Slope-intercept form is the quickest way to turn slope and y-intercept into an equation because the variables directly replace mm and bb with no additional algebra needed.

2. Find equation from two points

Problem

A line passes through (0,5)(0, 5) and (4,1)(4, 1). Write its equation in slope-intercept form.
  1. m=y2y1x2x1=1540m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{1 - 5}{4 - 0}

    Use the slope formula with the two given points.

  2. m=44=1m = \frac{-4}{4} = -1

    Simplify the fraction to find that m=1m = -1, meaning the line slopes downward.

  3. b=5b = 5

    Since the line passes through (0,5)(0, 5), the y-intercept is b=5b = 5.

  4. y=x+5y = -x + 5

    Substitute m=1m = -1 and b=5b = 5 into slope-intercept form.

Answer: y=x+5y = -x + 5

When you have two points, finding the slope first reveals the rate of change, and then identifying the y-intercept completes the equation in one clean substitution.

3. Model a player's season scoring with slope-intercept form

Problem

A basketball player scores at a constant rate. After 6 games, she has 84 total points. After 10 games, she has 140 total points. Write an equation relating total points scored (yy) to the number of games played (xx).
  1. (6,84) and (10,140)(6, 84) \text{ and } (10, 140)

    Set up two ordered pairs from the given information, where each pair is (games, points).

  2. m=14084106=564=14m = \frac{140 - 84}{10 - 6} = \frac{56}{4} = 14

    Calculate the slope using the two points; this means she scores 14 points per game on average.

  3. 84=14(6)+b84 = 14(6) + b

    Substitute one point (6,84)(6, 84) and the slope m=14m = 14 into y=mx+by = mx + b to solve for bb.

  4. 84=84+bb=084 = 84 + b \quad \Rightarrow \quad b = 0

    Simplify and solve to find that b=0b = 0, meaning she had 0 points at the start.

  5. y=14xy = 14x

    Substitute m=14m = 14 and b=0b = 0 into slope-intercept form.

Answer: y=14xy = 14x

This real-world scenario shows how slope-intercept form models linear relationships with a starting value (bb) and a constant rate of change (mm), making predictions and interpretations straightforward.

Common mistakes

Where Slope-Intercept Form usually goes wrong
Answer came out wrong
Writing y=bx+my = bx + m instead of y=mx+by = mx + b, swapping slope and y-intercept.
Remember that mm (slope) always multiplies xx, and bb (y-intercept) is the constant term at the end; the order mx+bmx + b is mandatory.
Reading b=2b = 2 from y=3x+2y = 3x + 2 and plotting the point (2,0)(2, 0) instead of (0,2)(0, 2) on the y-axis.
Always plot the y-intercept at (0,b)(0, b) on the y-axis; set x=0x = 0 to find it, not y=0y = 0.
Assuming a line cannot be written in slope-intercept form if the given information does not include the slope and y-intercept directly.
Always use the slope formula to calculate mm from two points, then substitute any point into y=mx+by = mx + b to solve for bb; the form works for every non-vertical line.
The mistakeWhy it is wrongThe fix
Writing y=bx+my = bx + m instead of y=mx+by = mx + b, swapping slope and y-intercept.This reversal swaps which number multiplies xx and which is constant, causing the line to have the wrong slope and cross the y-axis at the wrong point.Remember that mm (slope) always multiplies xx, and bb (y-intercept) is the constant term at the end; the order mx+bmx + b is mandatory.
Reading b=2b = 2 from y=3x+2y = 3x + 2 and plotting the point (2,0)(2, 0) instead of (0,2)(0, 2) on the y-axis.The y-intercept bb is where the line crosses the y-axis (when x=0x = 0), not the x-axis, so confusing axes leads to plotting the wrong starting point entirely.Always plot the y-intercept at (0,b)(0, b) on the y-axis; set x=0x = 0 to find it, not y=0y = 0.
Assuming a line cannot be written in slope-intercept form if the given information does not include the slope and y-intercept directly.Any non-vertical line has a unique slope-intercept form; you can calculate the slope from any two points and find bb by substituting into the equation.Always use the slope formula to calculate mm from two points, then substitute any point into y=mx+by = mx + b to solve for bb; the form works for every non-vertical line.

Tips and when to use something else

  • If you're given a point and a slope, slope-intercept form is faster than Point-Slope Form because you can write the equation directly without rearranging.
  • When graphing, start at the y-intercept (0,b)(0, b), then move by the slope: rise (up/down) by the numerator and run (left/right) by the denominator.
  • For a vertical line (where slope is undefined), slope-intercept form does not work; instead, write the equation as x=cx = c for the constant x-coordinate.
  • Always verify your final equation by substituting the y-intercept (0,b)(0, b) to confirm it gives y=by = b.

Frequently asked questions

How do I find the slope and y-intercept if I only have two points?
Use the slope formula m=y2y1x2x1m = \frac{y_2 - y_1}{x_2 - x_1} to find the slope. Then substitute either point into y=mx+by = mx + b and solve for bb. If one of the points is on the y-axis (where x=0x = 0), that point's y-coordinate is bb directly.
What does it mean if the slope is 0?
A slope of 0 means the line is horizontal and does not rise or fall as xx changes. The equation becomes y=by = b, a constant; every point on the line has the same y-value.
Can a line have a negative y-intercept?
Yes, absolutely. A negative bb means the line crosses the y-axis below the origin, at the point (0,b)(0, b) where bb is negative. This is perfectly valid and very common in real-world situations.
If I have the equation 3xy=63x - y = 6, how do I rewrite it as slope-intercept form?
Solve for yy: subtract 3x3x from both sides to get y=3x+6-y = -3x + 6, then divide every term by 1-1 to get y=3x6y = 3x - 6. Now you can see directly that m=3m = 3 and b=6b = -6.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18