How it works
In y = mx + b, m is the slope and b is the y-intercept: where the line crosses the y-axis (the value of y when x = 0).
Finding b from a point: put the slope and the point's x and y into y = mx + b, then solve for b. Slope 3 through (2, 11): 11 = 3(2) + b, so b = 5.
Parallel lines have the same slope.
Perpendicular lines have slopes that are negative reciprocals: flip the fraction and change the sign. Perpendicular to slope is −.
(The GED® formula sheet gives slope-intercept and point-slope forms.)
Worked example
A line passes through (−2, −12) and (6, −4). What is its y-intercept?
- Slope: m = (−4 − (−12)) ÷ (6 − (−2)) = 8 ÷ 8 = 1.
- Put a point into y = mx + b: −12 = 1(−2) + b.
- b = −12 − (−2) = −10.
Answer: −10
Common mistakes
- Adding instead of solving for b. Slope 2 through (3, 1): put the point into y = mx + b. 1 = 2(3) + b, so b = 1 − 6 = −5, not 1 + 6 = 7.
- Mixing up the slope and the y-intercept. In y = 4x − 7, the slope is 4 (the number with x) and the y-intercept is −7.
- Getting the perpendicular slope wrong. A perpendicular slope is the negative reciprocal: flip and change sign. For slope 2/3 it is −3/2, not 3/2. A parallel line keeps 2/3.
- Skipping the slope step with two points. Through (1, 5) and (3, 9): first m = (9 − 5)/(3 − 1) = 2, then 5 = 2(1) + b, so b = 3.