• Practice
  • About 17 min
  • 5 practice questions

Inclination and slope of a line, and slopes of parallel and perpendicular lines

Find the inclination and slope of a line, read the sign of a slope, and use 'equal slopes' and 'product of slopes = −1' to test for parallel and perpendicular lines, collinear points, right triangles and parallelograms.

If something looks wrong, please tell us.

By the end of this lesson you can

  • Define the inclination θ of a line and its slope m = tan θ.
  • Find the slope from two points and say what a zero, positive, negative or undefined slope looks like.
  • Use m₁ = m₂ for parallel lines and m₁m₂ = −1 for perpendicular lines.
  • Prove points collinear, a triangle right-angled or a quadrilateral a parallelogram using slopes.

Roads, ramps, staircases and hill paths all have a steepness. A gentle ramp is easy to push a wheelchair up; a steep one is not. Mathematics measures steepness with a single number called the slope or gradient. Slope also tells direction: whether a line climbs or falls as you move to the right. It is the key idea for the rest of this chapter.

Inclination of a line

The inclination (angle of inclination) of a line is the angle θ that the line makes with the positive direction of the X axis, measured anticlockwise to the part of the line above the X axis. So 0° ≤ θ < 180°. The X axis and every line parallel to it have inclination 0°; the Y axis and every line parallel to it have inclination 90°.

Slope of a line

If θ is the inclination of a non-vertical line, its slope is m = tan θ. If the line passes through A(x₁, y₁) and B(x₂, y₂) with x₁ ≠ x₂, form a right triangle with horizontal side x₂ − x₁ and vertical side y₂ − y₁. Then tan θ = opposite side ÷ adjacent side.

Slope m = tan θ = (y₂ − y₁)/(x₂ − x₁) = (difference in y coordinates) ÷ (difference in x coordinates), x₁ ≠ x₂. A vertical line has undefined slope.

— Slope of a straight line
How the inclination decides the slope
Inclination θSlope m = tan θWhat the line does
θ = 0°0Horizontal (parallel to the X axis)
0° < θ < 90°PositiveRises from left to right
θ = 90°UndefinedVertical (parallel to the Y axis)
90° < θ < 180°NegativeFalls from left to right

Useful values: tan 30° = 1/√3, tan 45° = 1, tan 60° = √3, and for obtuse angles tan 135° = −1, tan 120° = −√3, tan 150° = −1/√3.

Worked example 1: slope from the angle, and back

(i) Inclination 45°: m = tan 45° = 1. (ii) Slope √3: tan θ = √3, so θ = 60°. (iii) Slope −1: the line falls, so θ is obtuse; tan 135° = −1, so θ = 135°.

Worked example 2: slope from two points

(i) Through (−3, 4) and (5, −2): m = (−2 − 4)/(5 − (−3)) = −6/8 = −3/4; the line falls from left to right. (ii) Through (7, 2) and (7, −5): the x-difference is 7 − 7 = 0, so the slope is undefined (the line x = 7 is vertical). Always subtract in the same order on top and bottom.

Parallel and perpendicular lines

If two non-vertical lines are parallel, they make equal corresponding angles with the X axis, so θ₁ = θ₂ and tan θ₁ = tan θ₂. Conversely equal slopes give equal inclinations, so the lines are parallel. For perpendicular lines, the inclinations differ by 90°, and the identity tan(θ + 90°) = −cot θ = −1/tan θ leads to m₁m₂ = −1.

Two lines with slopes m₁ and m₂

  • Parallel
    • m₁ = m₂
    • Same inclination
    • Example: slopes 2 and 2
  • Perpendicular
    • m₁ × m₂ = −1
    • Each slope is the negative reciprocal of the other
    • Example: slopes 2 and −1/2
Both tests need slopes that exist; the X and Y axes are perpendicular but the Y axis has no slope.

Worked example 3: are these lines perpendicular?

Line l passes through (1, 2) and (4, 8); line n passes through (0, 3) and (4, 1). Slope of l = (8 − 2)/(4 − 1) = 6/3 = 2. Slope of n = (1 − 3)/(4 − 0) = −2/4 = −1/2. Product = 2 × (−1/2) = −1, so l is perpendicular to n.

Worked example 4: three uses of slope

Collinear points. For (−1, −4), (1, 2), (3, 8): slope of the first pair = (2 − (−4))/(1 − (−1)) = 6/2 = 3; slope of the second pair = (8 − 2)/(3 − 1) = 6/2 = 3. Equal slopes through the common point (1, 2) mean one line: the points are collinear.

Right triangle without Pythagoras. For A(2, 1), B(5, 3), C(0, 4): slope AB = (3 − 1)/(5 − 2) = 2/3 and slope AC = (4 − 1)/(0 − 2) = −3/2. Product = (2/3)(−3/2) = −1, so AB ⟂ AC and the triangle is right-angled at A.

Parallelogram. For A(0, 0), B(5, 1), C(7, 5), D(2, 4): slope AB = 1/5 and slope DC = (5 − 4)/(7 − 2) = 1/5, so AB ∥ DC; slope BC = (5 − 1)/(7 − 5) = 4/2 = 2 and slope AD = (4 − 0)/(2 − 0) = 2, so BC ∥ AD. Both pairs of opposite sides are parallel, so ABCD is a parallelogram. It is not a rectangle, because (1/5) × 2 = 2/5 ≠ −1.

Key takeaways: inclination is measured anticlockwise from the positive X axis; slope m = tan θ = (y₂ − y₁)/(x₂ − x₁). Positive slopes rise, negative slopes fall, zero is horizontal and vertical lines have no slope. Parallel lines have equal slopes; perpendicular lines have slopes whose product is −1.

Check your understanding

  1. 1. What is the slope of a line whose inclination is 60°?

    1. 1/√3
    2. √3
    3. 1
    4. −√3
    Show answer

    Answer: B. m = tan 60° = √3. (tan 30° = 1/√3 and tan 45° = 1; −√3 is tan 120°.)

  2. 2. What is the slope of the line through (2, −3) and (−4, 9)?

    1. 2
    2. −1/2
    3. −2
    4. 1/2
    Show answer

    Answer: C. m = (9 − (−3))/(−4 − 2) = 12/(−6) = −2. The line falls from left to right, so a negative slope is expected.

  3. 3. Line p has slope 3/4 and line q has slope −4/3. How are they related?

    1. Parallel
    2. The same line
    3. Neither parallel nor perpendicular
    4. Perpendicular
    Show answer

    Answer: D. The slopes are not equal, so the lines are not parallel. Their product is (3/4) × (−4/3) = −12/12 = −1, so the lines are perpendicular.

  4. 4. The line through (2, k) and (5, 7) is parallel to a line of slope 2. Find k.

    1. k = 1
    2. k = 13
    3. k = −1
    4. k = 3
    Show answer

    Answer: A. Parallel lines have equal slopes: (7 − k)/(5 − 2) = 2, so 7 − k = 6 and k = 1. Check: slope from (2, 1) to (5, 7) is 6/3 = 2.

  5. 5. What is the inclination of a line with slope −1?

    1. 45°
    2. 135°
    3. −45°
    4. 90°
    Show answer

    Answer: B. The slope is negative, so the inclination is between 90° and 180° (inclination is never negative). tan 135° = −1, so θ = 135°. A 90° line has no slope at all.

Privacy · Terms · Refunds · Delivery