EZ Tuitions Logo
EZ Tuitions

Find the distance from a point to a line

The distance from the point (x₁, y₁) to the line ax + by + c = 0 is |ax₁ + by₁ + c| / √(a² + b²).

This is original written practice with invented values chosen so that the distance is a whole number. Each answer is checked by finding the foot of the perpendicular, checking that it lies on the line and measuring the distance to it.

Use the formula, then find the foot of the perpendicular

  1. Put the point in ax + by + c and take the absolute value.
  2. Divide by √(a² + b²).
  3. Check: the foot of the perpendicular is (x₁ − t·a, y₁ − t·b), where t = (ax₁ + by₁ + c) / (a² + b²). Check that it lies on the line and that its distance from the point matches.

Point (3, 4) and the line 3x + 4y − 5 = 0

The top is |9 + 16 − 5| = 20, and √(9 + 16) = 5, so the distance is 4.

Check: t = 20/25 = 4/5, so the foot is (3 − 12/5, 4 − 16/5) = (3/5, 4/5). On the line: 9/5 + 16/5 − 5 = 0. The distance is √((12/5)² + (16/5)²) = √(400/25) = 4.

Point (0, 0) and the line 3x + 4y − 10 = 0

The top is |−10| = 10, and the bottom is 5, so the distance is 2.

Check: t = −10/25 = −2/5, so the foot is (6/5, 8/5). On the line: 18/5 + 32/5 − 10 = 0. The distance is √(36/25 + 64/25) = 2.

Point (2, 1) and the line 5x + 12y − 9 = 0

The top is |10 + 12 − 9| = 13, and √(25 + 144) = 13, so the distance is 1.

Check: t = 13/169 = 1/13, so the foot is (21/13, 1/13). On the line: 105/13 + 12/13 − 9 = 0. The distance is √(25 + 144) / 13 = 1.

Counterexample: forgetting the square root

A student divides by a² + b² = 25 for the first example and gets 20 / 25 = 0.8.

The check fails. The foot of the perpendicular is 4 units from the point, since √((12/5)² + (16/5)²) = 4. The bottom must be √(a² + b²) = 5, giving 4.

Try one yourself

Find the distance from (1, 1) to the line 3x + 4y − 12 = 0 and check it.

Show the worked self-check

The top is |3 + 4 − 12| = 5, and the bottom is 5, so the distance is 1. Check: t = −5/25 = −1/5, the foot is (1 + 3/5, 1 + 4/5) = (8/5, 9/5). On the line: 24/5 + 36/5 − 12 = 0. The distance is √(9/25 + 16/25) = 1.

Scope and limits

  • The page covers the distance from one point to a line given as ax + by + c = 0.
  • It does not cover the distance between parallel lines or the angle between lines.
  • The values are invented, and the questions are practice, not an exam key.
  • Every distance is checked with the foot of the perpendicular.

Common questions

Why does the point-to-line distance formula use an absolute value?

A distance cannot be negative. The sign of the top only tells which side of the line the point is on, so the absolute value removes it.

What is the distance from a point that lies on the line?

It is zero. The coordinates of the point satisfy the equation of the line, so the top of the formula is zero and the foot of the perpendicular is the point itself.

Do I need to rewrite the line as ax + by + c = 0 before using the distance formula?

Yes. Move every term to one side so that the other side is zero, then read off a, b and c with their signs.

Where does the point-to-line distance formula come from?

It is the length of the perpendicular drawn from the point to the line. The foot of that perpendicular, found in the check, is the nearest point of the line.

Sources and scope

Sources checked . They support the distance from a point to a line. The numbers, worked examples and self-check above are original EZT practice.

Read the Class 11 straight lines chapterBrowse tuition and practice pages