- Practice
- About 15 min
- 5 practice questions
Slopes and angles between lines
Find the angle between two lines given by their equations, find a slope from an angle condition, handle vertical lines, and use slopes for perpendicularity and collinearity problems.
If something looks wrong, please tell us.
Questions on slopes and angles are short, but they reward knowing the formula's edge cases. When is the angle 90°? What happens with a vertical line? Why do angle conditions usually give two slopes? This lesson works through these cases. Angles are in degrees unless stated, and θ denotes the acute angle between two lines.
Slopes from equations
For Ax + By + C = 0 with B ≠ 0 the slope is −A/B. So 2x − y + 3 = 0 has slope 2 and x + 3y − 4 = 0 has slope −1/3. If B = 0 the line is vertical. Reading slopes this way, without rearranging, saves time.
tan θ = |(m₂ − m₁)/(1 + m₁m₂)|. If 1 + m₁m₂ = 0 the lines are perpendicular (θ = 90°); if m₁ = m₂ they are parallel (θ = 0°).
Worked example 1: the angle between two given lines
Find the acute angle between 2x − y + 3 = 0 and x + 3y − 4 = 0. Slopes m₁ = 2 and m₂ = −1/3. tan θ = |(−1/3 − 2)/(1 + 2 × (−1/3))| = |(−7/3)/(1/3)| = 7. So θ = tan⁻¹ 7. Not every answer is a familiar angle; leave it as an inverse tangent when it is not.
When one line is vertical
The formula cannot be used with a vertical line, because it has no slope. Use inclinations instead: a vertical line is inclined at 90°, so the acute angle between it and a line of inclination α (with α < 90°) is 90° − α. For example, x = 3 and y = x/√3 + 1 (inclination 30°) meet at 60°.
Slopes from an angle condition
If a line of unknown slope m makes a given angle with a known line, the absolute value in the formula gives two equations. Both answers are real lines, one on each side of the known line, so expect two slopes.
Worked example 2: lines at 45° to a line of slope 1/2
We need |(m − 1/2)/(1 + m/2)| = tan 45° = 1. Case 1: m − 1/2 = 1 + m/2, so m/2 = 3/2 and m = 3. Case 2: m − 1/2 = −(1 + m/2), so 3m/2 = −1/2 and m = −1/3. The slopes are 3 and −1/3. Check case 1: (3 − 1/2)/(1 + 3/2) = (5/2)/(5/2) = 1. Notice the two answers are perpendicular to each other (3 × (−1/3) = −1), as they must be: two lines at 45° on either side of a line meet each other at 90°.
Worked example 3: a perpendicularity condition
The line through (−2, 6) and (4, 8) is perpendicular to the line through (8, 12) and (x, 24). Find x. The first slope is (8 − 6)/(4 + 2) = 1/3. The second must be −3: (24 − 12)/(x − 8) = −3, so x − 8 = −4 and x = 4.
Collinearity with slopes
Three points A, B, C are collinear when the slope of AB equals the slope of BC (or when both segments are vertical). This is faster than the area formula when the numbers are simple. For A(1, −1), B(2, 1), C(4, 5): slope AB = 2/1 = 2 and slope BC = 4/2 = 2, so the points are collinear.
- Trap 1: writing tan θ = (m₂ − m₁)/(1 + m₁m₂) without the absolute value and reporting a negative tangent for the acute angle.
- Trap 2: using the formula with a vertical line.
- Trap 3: dropping the second case of an angle condition.
- Trap 4: confusing inclination 135° (slope −1) with 45° (slope 1).
Key takeaways: read slopes as −A/B. Use the formula with the absolute value for the acute angle, and inclinations when a line is vertical. An angle condition on an unknown slope gives two slopes. Perpendicular slopes multiply to −1; equal slopes mean parallel or, for lines through a common point, collinear points.
Check your understanding
-
1. What is the acute angle between the lines 2x − y + 3 = 0 and x + 3y − 4 = 0?
- tan⁻¹(1/7)
- 45°
- tan⁻¹(5/7)
- tan⁻¹ 7
Show answer
Answer: D. Slopes 2 and −1/3. tan θ = |(−1/3 − 2)/(1 − 2/3)| = (7/3)/(1/3) = 7.
-
2. The line through (−2, 6) and (4, 8) is perpendicular to the line through (8, 12) and (x, 24). What is x?
- 4
- 12
- −4
- 44
Show answer
Answer: A. First slope 2/6 = 1/3, so the second must be −3: 12/(x − 8) = −3 gives x − 8 = −4, x = 4.
-
3. What are the slopes of the lines that make an angle of 45° with a line of slope 1/2?
- 3 only
- 3 and −1/3
- 1 and −1
- −3 and 1/3
Show answer
Answer: B. |(m − 1/2)/(1 + m/2)| = 1. Case +1: m = 3. Case −1: m − 1/2 = −1 − m/2, so m = −1/3.
-
4. What is the acute angle (in degrees) between the lines x = 3 and y = x/√3 + 1?
- 60°
- 30°
- 90°
- 45°
Show answer
Answer: A. x = 3 is vertical (inclination 90°). The other line has slope 1/√3, inclination 30°. The angle is 90° − 30° = 60°.
-
5. A line has inclination 135° (in degrees, measured anticlockwise from the positive x-axis). What is the slope of a line perpendicular to it?
- −1
- 1
- √3
- 0
Show answer
Answer: B. Slope = tan 135° = −1. A perpendicular slope is −1/(−1) = 1.
Sign in to keep track of the lessons you finish.