Formula
Slope-intercept form
Also written: y = mx + b · y equals mx plus b · slope intercept equation
Slope-intercept form writes a line so its slope and its y-intercept can be read straight off the equation.
What each part means
- the slope — how much y changes per step of 1 in x
- the y-intercept — the y-value where the line crosses the y-axis
Slope-intercept form calculator
Describe a line by a slope and a point, by two points, or by its equation, and see it written as with the slope and the y-intercept read off and the graph drawn. Choose how the line is given and fill in the boxes that choice uses. Whole numbers, decimals and fractions all work.
The steps below write the line with slope −2 through (0, 7) in slope-intercept form, . Turn on JavaScript to try your own line.
Worked example:
y = −2x + 7. The slope is −2 and the y-intercept is 7.
- y = −2x + 7
Identify the slope and the point
Keep each sign with its number.
Read m and b
The point is on the y-axis, so .
Write the equation
Put m and b into .
Graph it in two moves
Plot the y-intercept .
The slope −2 is −2/1: go down 2 and across 1. That lands on .
Draw the line through the two points.
Check
Put the point back into the equation.
At :
The same line in other forms
Point-slope form, through :
Standard form, with whole-number coefficients and A not negative:
Intercepts and graph
Set to find where the line crosses the x-axis.
Set to find where it crosses the y-axis.
The line crosses the x-axis at and the y-axis at .
A straight line that falls from left to right with slope −2. It crosses the y-axis at (0, 7) and the x-axis at (7/2, 0). Marked points: (0, 7) and (1, 5).
Runs on your device: nothing you type is sent or saved. Want the reasoning behind each step? Read the slope-intercept form lesson, or see how to graph a linear equation.
When to use it
You want to graph a line quickly, or compare two lines, or read a rate and a starting value out of a real-world equation.
Why this form is the useful one
Every other arrangement hides the two facts you most often want. Here they are both visible without any work:
To graph it, plot , then step across and up , and repeat. Two points fix a line.
Why b is the y-intercept
The -axis is the set of points where . Substituting:
So the line passes through , whatever is. The intercept is not a separate fact bolted on — it is what the equation says at .
In a real situation
The is a rate: dollars per hour. The is a fixed starting amount charged before any hours are worked. Slope is the per-unit cost and the intercept is the flat fee, in almost every problem of this shape.
Worked examples
Write the line with slope through .
The point is on the -axis, so :
Put into slope-intercept form.
Slope , intercept . Converting from standard form means solving for .
The line it cannot write
A vertical line has undefined slope, so no value of describes it. Vertical lines are written instead.
Lessons that teach this
- Slope-Intercept Form: y = mx + b
Understand y = mx + b, what m and b each control, how to graph a line from it in two moves, and how to rewrite any linear equation into this form.
- How to Graph Linear Equations
Graph a line three ways — from slope-intercept form, from intercepts, or from a table — and understand why every point on the line is a solution.
- Parallel and Perpendicular Lines: The Slope Rules
Parallel lines have equal slopes and perpendicular lines have negative reciprocal slopes — why both rules are true, and how to write equations using them.
- Standard Form of a Linear Equation: Ax + By = C
What standard form is, when it beats slope-intercept form, how to convert between the two, and how to find the slope without rearranging.