# Distance between Point and Line Formula

There are a few ways in finding the distance between a point and a line. But the easiest of all is through the use of a formula. The derivation of the formula is reserved for another lesson.

The word “distance” here pertains to the shortest between the fixed point and the line. This is precisely what the formula calculates – the least amount of distance that a point can travel to any point on the line. In addition, this distance which can be drawn as a line segment is perpendicular to the line.

This concept of perpendicular distance as the shortest distance between a point and a line is best explained using an illustration.

## Formula of the Distance between Point and Line

The distance \large{d} between the **point** with coordinates \large{\left( {{x_0},{y_0}} \right)}, and the **line** written in the general form \large{ax + by + c = 0} is calculated as follows.

Notice that the values of the coordinates of the point go to the numerator.

Also, the values of the coefficients of the line written in general form go to the numerator and denominator.

In addition, the numerator has an absolute value symbol which means the numerator will either have a value of zero or a positive number. Thus, the numerator will never be a negative number. The denominator will also be positive since both \large{a} and \large{b} are being squared before they are added.

## Examples of the Distance between a Point and a Line

**Example 1:** Find the distance between the point (0,0) and the line 3x + 4y + 10 = 0.

We have the point (0,0) that means {x_0} = 0 and {y_0} = 0. Our line is already in the general form so we can easily identify the values for \large{a}, \large{b}, and \large{c}.

From 3x + 4y + 10 = 0, we have

\large{a=3}

\large{b=4}

\large{c=10}

Since we all have the values needed to be substituted into the formula, we can now calculate the distance between the point (0,0) and the line 3x + 4y + 10 = 0.

Here’s the diagram of the point and line with a red line segment showing its distance between them.

**Example 2:** Find the distance between the point (3,-4) and the line 6x-8y=5.

The given point is (3,-4) thus {x_0} = 3 and {y_0} = -4. But the line 6x-8y=5 is written in standard form. We need to convert it to general form by subtracting both sides of equation by 5.

From 6x - 8y - 5 = 0

\large{a=6}

\large{b=-8}

\large{c=-5}

We have all the values needed to calculate the distance between the point and the line.

Here is the illustration showing the distance between the point (3,-4) and the line 6x-8y=5. The red line segment is the length of the distance.

**Example 3:** Find the distance between the point (10,5) and the line {y = {\Large{5 \over 3}}x + 7}.

From the given point, we know that {x_0} = 10 and {y_0} = 5. However for the line, it is not written in the form that we want.

The given line {y = {\Large{5 \over 3}}x + 7} is expressed in the Slope-Intercept Form. We need to rewrite it into the general form ax + by + c = 0.

We can do that by multiplying both sides of the equation by 3. Then, we subtract both sides by 5x. Finally, subtract both sides by 21.

We have all the necessary information to compute for the distance between the given point and line.

► From the point (10,5), we have

{x_0} = 10 and {y_0} = 5

► From the line - 5x + 3y - 21 = 0, we have

\large{a=-5}

\large{b=3}

\large{c=-21}

Thus,

Below is the diagram showing the point (10,5), line {y = {\Large{5 \over 3}}x + 7}, and its perpendicular distance.

**You might also be interested in:**