Perpendicular Distance from a Point to a Line

(BTW - we don't really need to say 'perpendicular' because the distance from a point to a line always means the shortest distance.)

This is a great problem because it uses all these things that we have learned so far:

Later, on this page...

Example using perpendicular distance formula

Need Graph Paper?

rectangular grid
Download graph paper

The distance from a point (m, n) to the line Ax + By + C = 0 is given by:

perpendicular distance formula

There are some examples using this formula following the proof.


Proof of the Perpendicular Distance Formula

Let's start with the line Ax + By + C = 0 and label it DE. It has slope math expression.

math expression

We have a point P with coordinates (m, n). We wish to find the perpendicular distance from the point P to the line (that is, distance PQ).

math expression

We now do a trick to make things easier for ourselves (the algebra is really horrible otherwise). We construct a line parallel to DE through (m, n). This line will also have slope math expression, since it is parallel to DE. We will call this line FG.

math expression

Now we construct another line parallel to PQ passing through the origin.

This line will have slope math expression, because it is perpendicular to DE.

Let's call it line RS. We extend it to the origin (0, 0).

We will find the distance RS, which I hope you agree is equal to the distance PQ that we wanted at the start.

math expression

Since FG passes through (m, n) and has slope math expression, its equation is math expression or math expression.

Line RS has equation math expression

Line FG intersects with line RS when

math expression

Solving this gives us

math expression

So after substituting this back into math expression, we find that point R is

math expression

Point S is the intersection of the lines math expression and Ax + By + C = 0 (which can be written math expression).

This occurs when (that is, we are solving them simultaneously)

math expression

Solving for x gives

math expression

Finding y by substituting back into

math expression

gives

math expression

So S is the point

math expression

So the distance RS, using the distance formula,

math expression

is

math expression

The absolute value sign is necessary since distance must be a positive value, and certain combinations of A, m , B, n and C can produce a negative number in the numerator.

So the distance from the point (m, n) to the line Ax + By + C = 0 is given by:

perpendicular distance formula

Example 1

Find the perpendicular distance from the point (5, 6) to the line -2x + 3y + 4 = 0, using the formula we just found.

Example 2

Find the distance from the point (-3, 7) to the line

math

Didn't find what you are looking for on this page? Try search:

Online Algebra Solver

This algebra solver can solve a wide range of math problems. (Please be patient while it loads.)

Math Lessons on DVD

get MathTutorDVDs

Easy to understand math lessons on DVD. See samples before you commit.

More info: Math videos

Ready for a break?

shadow factory

Play a math game.

(Well, not really a math game, but each game was made using math...)

The IntMath Newsletter

Sign up for the free IntMath Newsletter. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!

Given name: * required

Family name:

email: * required

See the Interactive Mathematics spam guarantee.

Share IntMath!

This page has

  • 2 tweets
  • 57 Facebook likes & comments
  • 1 Google +1's

Short URL for this Page

Save typing! You can use this URL to reach this page:

intmath.com/perpdistptline

axs