Algebra

Slope-Intercept Form

Last updated: March 2026 · Beginner
Before you start

You should be comfortable with:

Real-world applications
πŸ’°
Retail & Finance

Discounts, tax, tips, profit margins

🌑️
HVAC

Refrigerant charging, airflow, system sizing

The slope-intercept form of a linear equation is the most widely used way to write the equation of a line. Once you can recognize this form and pull out the slope and y-intercept, graphing becomes fast and interpreting real-world relationships becomes intuitive.

What Is Slope-Intercept Form?

A linear equation is in slope-intercept form when it is written as:

y=mx+by = mx + b

where:

  • mm is the slope β€” the rate of change, or how steep the line is
  • bb is the y-intercept β€” the value of yy when x=0x = 0, i.e., the point where the line crosses the yy-axis

This form is powerful because both key properties of the line β€” its steepness and its starting point β€” are immediately visible.

Identifying Slope and Y-Intercept

To read the slope and y-intercept from an equation already in slope-intercept form, simply match it to the pattern y=mx+by = mx + b.

Example 1: Read mm and bb directly

Identify the slope and y-intercept of y=3xβˆ’7y = 3x - 7.

Step 1 β€” Match to the pattern: Compare y=3xβˆ’7y = 3x - 7 with y=mx+by = mx + b.

Step 2 β€” Identify the slope: The coefficient of xx is 33, so m=3m = 3.

Step 3 β€” Identify the y-intercept: The constant term is βˆ’7-7, so b=βˆ’7b = -7. The line crosses the yy-axis at (0,βˆ’7)(0, -7).

Example 2: Equation with a fractional slope

Identify the slope and y-intercept of y=βˆ’25x+4y = -\frac{2}{5}x + 4.

Matching to y=mx+by = mx + b:

  • Slope: m=βˆ’25m = -\frac{2}{5} (the line falls 2 units for every 5 units to the right)
  • Y-intercept: b=4b = 4, so the line crosses the yy-axis at (0,4)(0, 4)

Writing Equations in Slope-Intercept Form

If you know the slope and y-intercept of a line, you can write its equation by substituting directly into y=mx+by = mx + b.

Example 3: From slope and y-intercept

Write the equation of a line with slope βˆ’2-2 and y-intercept 55.

y=βˆ’2x+5y = -2x + 5

That is it. Plug m=βˆ’2m = -2 and b=5b = 5 into the formula.

Example 4: From a graph

Suppose a graph shows a line crossing the yy-axis at (0,3)(0, 3) and passing through the point (4,7)(4, 7).

Step 1 β€” Read the y-intercept: b=3b = 3.

Step 2 β€” Calculate the slope using the two visible points (0,3)(0, 3) and (4,7)(4, 7):

m=7βˆ’34βˆ’0=44=1m = \frac{7 - 3}{4 - 0} = \frac{4}{4} = 1

Step 3 β€” Write the equation:

y=1x+3=x+3y = 1x + 3 = x + 3

Rearranging Equations into Slope-Intercept Form

Not every linear equation starts in the form y=mx+by = mx + b. You often need to solve for yy first.

Example 5: Convert from standard form

Rewrite 4x+2y=104x + 2y = 10 in slope-intercept form.

Step 1 β€” Isolate the yy-term: Subtract 4x4x from both sides.

2y=βˆ’4x+102y = -4x + 10

Step 2 β€” Divide every term by the coefficient of yy:

y=βˆ’2x+5y = -2x + 5

Now you can read: slope m=βˆ’2m = -2, y-intercept b=5b = 5.

Example 6: Convert when yy-term has a negative coefficient

Rewrite 6xβˆ’3y=96x - 3y = 9 in slope-intercept form.

Step 1 β€” Subtract 6x6x:

βˆ’3y=βˆ’6x+9-3y = -6x + 9

Step 2 β€” Divide by βˆ’3-3:

y=2xβˆ’3y = 2x - 3

Slope: m=2m = 2, y-intercept: b=βˆ’3b = -3.

Graphing from Slope-Intercept Form

The slope-intercept form gives you a ready-made recipe for graphing:

  1. Plot the y-intercept (0,b)(0, b) on the yy-axis
  2. Use the slope to find additional points: from the y-intercept, move up (or down) by the rise and right by the run
  3. Draw the line through the points

Example 7: Graph y=32xβˆ’1y = \frac{3}{2}x - 1

Step 1 β€” Plot the y-intercept: (0,βˆ’1)(0, -1).

Step 2 β€” Apply the slope: m=32m = \frac{3}{2} means rise 3, run 2. From (0,βˆ’1)(0, -1), move up 3 and right 2 to reach (2,2)(2, 2).

Step 3 β€” Find a third point for accuracy: From (2,2)(2, 2), move up 3 and right 2 to reach (4,5)(4, 5).

Step 4 β€” Draw the line through (0,βˆ’1)(0, -1), (2,2)(2, 2), and (4,5)(4, 5).

Example 8: Graph y=βˆ’x+4y = -x + 4

Step 1 β€” Identify slope and intercept: m=βˆ’1=βˆ’11m = -1 = \frac{-1}{1}, b=4b = 4.

Step 2 β€” Plot (0,4)(0, 4).

**Step 3 β€” From (0,4)(0, 4), move down 1 and right 1 to (1,3)(1, 3). Repeat to get (2,2)(2, 2).

Step 4 β€” Draw the line through the three points. The negative slope means it falls from left to right.

Special Cases

Horizontal lines: An equation like y=5y = 5 can be written as y=0x+5y = 0x + 5. The slope is 00 and the y-intercept is 55. The line is flat.

Lines through the origin: An equation like y=3xy = 3x has b=0b = 0. The line passes through the origin (0,0)(0, 0).

No y-intercept form for vertical lines: A vertical line like x=2x = 2 cannot be written in slope-intercept form because its slope is undefined.

Real-World Application: HVAC β€” Heating Cost Estimation

An HVAC company charges a flat service fee plus an hourly rate. A technician’s billing follows the equation:

y=65x+95y = 65x + 95

where xx is the number of hours worked and yy is the total cost in dollars.

  • The slope m=65m = 65 tells you the hourly rate: $65 per hour
  • The y-intercept b=95b = 95 tells you the flat service call fee: $95

Using the equation for estimates:

  • A 2-hour job costs y=65(2)+95=130+95=225y = 65(2) + 95 = 130 + 95 = 225, so $225
  • A 4-hour job costs y=65(4)+95=260+95=355y = 65(4) + 95 = 260 + 95 = 355, so $355

The homeowner can also read the graph: every additional hour shifts the total cost up by $65 (the slope), and even a zero-hour visit starts at $95 (the y-intercept). This structure β€” a flat fee plus a per-unit rate β€” appears in utility bills, phone plans, rental agreements, and countless other everyday costs.

Common Mistakes to Avoid

  1. Mixing up mm and bb. In y=4x+3y = 4x + 3, the slope is 44 (the coefficient of xx) and the y-intercept is 33 (the constant). Do not confuse them.

  2. Forgetting the sign of bb. In y=2xβˆ’6y = 2x - 6, the y-intercept is βˆ’6-6, not 66. The subtraction sign is part of the value.

  3. Not fully isolating yy. When converting from standard form, you must divide every term by the coefficient of yy β€” not just the yy-term itself.

  4. Treating y=mx+by = mx + b as the only form. Some problems are easier in point-slope or standard form. Slope-intercept form is ideal for graphing and reading slope/intercept, but it is not always the best starting point for writing an equation.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Identify the slope and y-intercept of y=βˆ’5x+12y = -5x + 12.

Matching to y=mx+by = mx + b:

  • Slope: m=βˆ’5m = -5
  • Y-intercept: b=12b = 12, so the line crosses the yy-axis at (0,12)(0, 12)

Answer: Slope is βˆ’5-5, y-intercept is (0,12)(0, 12).

Problem 2: Write the equation of a line with slope 34\frac{3}{4} and y-intercept βˆ’2-2.

Substitute into y=mx+by = mx + b:

y=34xβˆ’2y = \frac{3}{4}x - 2

Answer: y=34xβˆ’2y = \frac{3}{4}x - 2

Problem 3: Rewrite 5x+y=85x + y = 8 in slope-intercept form.

Subtract 5x5x from both sides:

y=βˆ’5x+8y = -5x + 8

Answer: y=βˆ’5x+8y = -5x + 8 (slope =βˆ’5= -5, y-intercept =8= 8)

Problem 4: Rewrite 3xβˆ’6y=183x - 6y = 18 in slope-intercept form.

Subtract 3x3x: βˆ’6y=βˆ’3x+18-6y = -3x + 18

Divide by βˆ’6-6: y=βˆ’3βˆ’6x+18βˆ’6y = \frac{-3}{-6}x + \frac{18}{-6}

y=12xβˆ’3y = \frac{1}{2}x - 3

Answer: y=12xβˆ’3y = \frac{1}{2}x - 3 (slope =12= \frac{1}{2}, y-intercept =βˆ’3= -3)

Problem 5: A line passes through (0,6)(0, 6) and (3,0)(3, 0). Write its equation in slope-intercept form.

The y-intercept is b=6b = 6 (given directly by the point (0,6)(0, 6)).

Calculate slope: m=0βˆ’63βˆ’0=βˆ’63=βˆ’2m = \frac{0 - 6}{3 - 0} = \frac{-6}{3} = -2

y=βˆ’2x+6y = -2x + 6

Answer: y=βˆ’2x+6y = -2x + 6

Problem 6: A retail store’s monthly profit can be modeled by y=8xβˆ’400y = 8x - 400, where xx is the number of units sold and yy is profit in dollars. What does the slope represent? What does the y-intercept represent? How many units must be sold to break even?
  • Slope =8= 8: Each additional unit sold adds $8 to profit
  • Y-intercept =βˆ’400= -400: If zero units are sold, the store loses $400 (fixed costs)
  • Break-even (set y=0y = 0): 0=8xβˆ’400β€…β€ŠβŸΉβ€…β€Š8x=400β€…β€ŠβŸΉβ€…β€Šx=500 = 8x - 400 \implies 8x = 400 \implies x = 50

Answer: The slope represents $8 profit per unit, the y-intercept represents a $400 loss at zero sales, and the store must sell 50 units to break even.

Key Takeaways

  • Slope-intercept form is y=mx+by = mx + b, where mm is the slope and bb is the y-intercept
  • To identify mm and bb, match the equation to the pattern β€” the coefficient of xx is the slope, the constant is the y-intercept
  • To convert from other forms, solve for yy by isolating it on one side of the equation
  • To graph, plot the y-intercept first, then use the slope to find additional points
  • In real-world contexts, the slope is the rate (cost per hour, price per unit) and the y-intercept is the starting value (flat fee, fixed cost)

Return to Algebra 1 for more topics in this section.

Last updated: March 29, 2026