- Foundation
- About 14 min
- 5 practice questions
Slope, parallel and perpendicular lines
Find the slope of a line from two points or from its inclination, decide whether two lines are parallel or perpendicular, and find the angle between two lines.
If something looks wrong, please tell us.
A straight line can be steep or gentle, rising or falling. The slope puts a single number on this. Slope is the key to almost every question about lines: it tells you whether two lines are parallel, whether they meet at right angles, and the angle between them. In this lesson angles are measured in degrees.
Slope from two points
If a line passes through A(x₁, y₁) and B(x₂, y₂) with x₁ ≠ x₂, its slope is the rise divided by the run: m = (y₂ − y₁)/(x₂ − x₁). For the points (1, 2) and (4, 8), m = (8 − 2)/(4 − 1) = 6/3 = 2: the line rises 2 units for every 1 unit to the right.
- A positive slope means the line rises from left to right; a negative slope means it falls.
- A horizontal line has slope 0 (the rise is 0).
- A vertical line has no defined slope, because the run x₂ − x₁ is 0 and we cannot divide by 0.
Slope and inclination
The inclination θ of a line is the angle it makes with the positive direction of the x-axis, measured anticlockwise, with 0° ≤ θ < 180°. The slope is m = tan θ (for θ ≠ 90°). So a line inclined at 45° has slope tan 45° = 1, a line at 60° has slope √3, and a line at 135° has slope tan 135° = −1.
Parallel and perpendicular lines
Two non-vertical lines with slopes m₁ and m₂ are parallel if m₁ = m₂, and perpendicular if m₁ × m₂ = −1, that is m₂ = −1/m₁.
Parallel lines have the same inclination, hence the same slope. For perpendicular lines, take the slope of one, turn it upside down and change its sign: the perpendicular to a line of slope 3/4 has slope −4/3. A horizontal line and a vertical line are also perpendicular, even though the vertical one has no slope.
Worked example 1: parallel or perpendicular?
Line L₁ passes through (1, 1) and (3, 5); line L₂ passes through (0, 4) and (4, 2). Slope of L₁ = (5 − 1)/(3 − 1) = 2. Slope of L₂ = (2 − 4)/(4 − 0) = −1/2. The product is 2 × (−1/2) = −1, so the lines are perpendicular.
Worked example 2: an unknown coordinate
The line through (2, k) and (4, 7) is parallel to a line of slope 3. Find k. Parallel lines have equal slopes, so (7 − k)/(4 − 2) = 3. Then 7 − k = 6 and k = 1. The same method shows when three points are collinear: the slope from the first to the second must equal the slope from the second to the third.
The angle between two lines
If two lines have slopes m₁ and m₂ and are not perpendicular, the acute angle θ between them satisfies the formula below. The absolute value gives the acute angle; the obtuse angle between the lines is 180° − θ.
tan θ = |(m₂ − m₁)/(1 + m₁m₂)|, where θ is the acute angle between the lines (1 + m₁m₂ ≠ 0).
Worked example 3: two angles
(a) Slopes 2 and 1/3: tan θ = |(1/3 − 2)/(1 + 2/3)| = |(−5/3)/(5/3)| = 1, so θ = 45°. (b) Slopes 1/√3 and √3: tan θ = |(√3 − 1/√3)/(1 + 1)| = (2/√3)/2 = 1/√3, so θ = 30°. This agrees with the inclinations: the lines are at 30° and 60° to the x-axis, which differ by 30°.
Key takeaways: slope = rise/run = tan(inclination). Horizontal lines have slope 0 and vertical lines have none. Equal slopes mean parallel; slopes multiplying to −1 mean perpendicular. The acute angle between two lines comes from tan θ = |(m₂ − m₁)/(1 + m₁m₂)|.
Check your understanding
-
1. What is the slope of the line through (2, 3) and (6, 11)?
- 1/2
- 8
- 2
- −2
Show answer
Answer: C. (11 − 3)/(6 − 2) = 8/4 = 2.
-
2. A line makes an angle of 60° (in degrees) with the positive x-axis, measured anticlockwise. What is its slope?
- 1/√3
- 1
- −√3
- √3
Show answer
Answer: D. Slope = tan 60° = √3.
-
3. A line has slope 3/4. What is the slope of a line perpendicular to it?
- −4/3
- 4/3
- −3/4
- 3/4
Show answer
Answer: A. Perpendicular slopes multiply to −1: m₂ = −1/(3/4) = −4/3.
-
4. What is the acute angle (in degrees) between two lines with slopes 3 and −2?
- 30°
- 45°
- 60°
- 90°
Show answer
Answer: B. tan θ = |(−2 − 3)/(1 + 3 × (−2))| = |−5/−5| = 1, so θ = 45°.
-
5. The line through (2, k) and (4, 7) is parallel to a line of slope 3. What is k?
- 13
- 3
- 1
- −1
Show answer
Answer: C. (7 − k)/(4 − 2) = 3 gives 7 − k = 6, so k = 1.
Sign in to keep track of the lessons you finish.