Mathematics
Slope-Intercept Form Explained (How to Graph Linear Equations Easily)
What is Slope-Intercept Form?
Slope-intercept form is the most common way to write the equation of a straight line:
y = mx + b
Where:
- y = the y-coordinate (vertical position)
- x = the x-coordinate (horizontal position)
- m = the slope (how steep the line is)
- b = the y-intercept (where the line crosses the y-axis)
This form is called "slope-intercept" because it directly shows you both the slope and the y-intercept. Once you know m and b, you can graph any straight line quickly. If you've studied linear equations before, this builds directly on those concepts.
Understanding the Slope (m)
The slope measures the steepness and direction of a line. It tells you how much y changes for each unit change in x.
Slope formula: m = (change in y) / (change in x) = (y₂ − y₁) / (x₂ − x₁) = rise / run
Types of slopes:
- Positive slope (m > 0): Line goes up from left to right ↗
- Negative slope (m < 0): Line goes down from left to right ↘
- Zero slope (m = 0): Horizontal line →
- Undefined slope: Vertical line ↑ (can't be written in slope-intercept form)
Examples:
- m = 2 means: for every 1 unit you move right, the line goes up 2 units
- m = −3 means: for every 1 unit you move right, the line goes down 3 units
- m = 1/2 means: for every 2 units you move right, the line goes up 1 unit
Understanding the Y-Intercept (b)
The y-intercept is the point where the line crosses the y-axis. At this point, x = 0.
- If b = 3, the line crosses the y-axis at the point (0, 3)
- If b = −2, the line crosses the y-axis at the point (0, −2)
- If b = 0, the line passes through the origin (0, 0)
The y-intercept gives you a starting point for graphing the line.
How to Graph Using Slope-Intercept Form
Graphing a line from y = mx + b takes just three steps:
Step 1: Plot the y-intercept (0, b) on the y-axis.
Step 2: Use the slope to find a second point. From the y-intercept:
- Move right by the "run" amount (denominator of slope)
- Move up or down by the "rise" amount (numerator of slope)
Step 3: Draw a straight line through both points.
Example: Graph y = 2x + 1
- Plot (0, 1) — the y-intercept
- Slope = 2 = 2/1, so from (0, 1): move right 1, up 2 → reach (1, 3)
- Draw a line through (0, 1) and (1, 3)
Example: Graph y = −½x + 4
- Plot (0, 4) — the y-intercept
- Slope = −1/2, so from (0, 4): move right 2, down 1 → reach (2, 3)
- Draw a line through (0, 4) and (2, 3)
Examples With Solutions
Example 1: Write y = 3x − 5 in words.
- Slope (m) = 3: the line rises 3 units for every 1 unit to the right
- Y-intercept (b) = −5: the line crosses the y-axis at (0, −5)
Example 2: What are the slope and y-intercept of 2y = 6x + 8?
- First, solve for y: y = 3x + 4
- Slope = 3, y-intercept = 4
Example 3: Write the equation of a line with slope 4 and y-intercept −2.
- y = 4x + (−2)
- y = 4x − 2
Example 4: Does the point (2, 7) lie on the line y = 3x + 1?
- Substitute x = 2: y = 3(2) + 1 = 7 ✓
- Yes! The point lies on the line.
Finding the Equation From a Graph
If you're given a graph and need to find the equation:
- Find the y-intercept — Look where the line crosses the y-axis. That's b.
- Find the slope — Pick two clear points on the line and calculate: m = (y₂ − y₁) / (x₂ − x₁)
- Write the equation — Plug m and b into y = mx + b.
Example: A line crosses the y-axis at (0, 2) and passes through (3, 8).
- b = 2
- m = (8 − 2) / (3 − 0) = 6/3 = 2
- Equation: y = 2x + 2
Finding the Equation From Two Points
If you know two points but not the y-intercept:
Step 1: Calculate the slope using m = (y₂ − y₁) / (x₂ − x₁)
Step 2: Use one point and the slope to find b:
- Plug x, y, and m into y = mx + b
- Solve for b
Example: Find the equation of the line through (1, 4) and (3, 10).
Step 1: m = (10 − 4) / (3 − 1) = 6/2 = 3
Step 2: Using point (1, 4):
- 4 = 3(1) + b
- 4 = 3 + b
- b = 1
Equation: y = 3x + 1
Parallel and Perpendicular Lines
Parallel lines have the same slope but different y-intercepts.
- y = 2x + 3 and y = 2x − 1 are parallel (both have slope 2)
Perpendicular lines have slopes that are negative reciprocals of each other.
- If one line has slope m, the perpendicular line has slope −1/m
- y = 2x + 1 and y = −½x + 4 are perpendicular (2 × −½ = −1)
Common Mistakes Students Make
-
Mixing up m and b. In y = 3x + 5, the slope is 3 (not 5) and the y-intercept is 5 (not 3). The slope is always the coefficient of x.
-
Forgetting to solve for y first. If the equation is 2y = 4x + 6, you must divide everything by 2 first: y = 2x + 3. Then you can identify m and b.
-
Getting the slope fraction upside down. Rise is the change in y (numerator), run is the change in x (denominator). Don't flip them.
-
Plotting the y-intercept on the x-axis. The y-intercept is on the y-axis (vertical axis), not the x-axis.
For a deeper dive into solving equations, see our guides on the quadratic formula and linear equations.
Master Linear Equations With Mr Jarven AI Tutor
Working with slope-intercept form gets easier with practice. Mr Jarven AI Tutor can:
- Walk you through graphing problems step by step
- Help you find equations from points or graphs
- Explain parallel and perpendicular lines
- Generate practice problems tailored to your level
- Give instant feedback on your work
Get personalized math help whenever you need it — day or night.
Get a step-by-step explanation.
Mr Jarven explains mathematics and any topic at your level — with practice questions and instant feedback.
Ask Mr Jarven