Skip to main content
Skip to main content

What is the Distance Between a Point and a Line?

Visual representation of perpendicular distance from a point to a line
Visual representation of the shortest distance from a point to a line

The distance between a point and a line is the length of the shortest path from the point to the line. This path is always perpendicular to the line.

Imagine you're standing at a point and want to walk to the nearest point on a straight road. The shortest path would be a straight line directly to the road, perpendicular to it. That perpendicular line represents the shortest distance.

This concept is important in many real-world situations, such as:

  • Finding the shortest path to a road or wall
  • Calculating distances in navigation systems
  • Designing computer graphics and video games
  • Solving geometry problems

How to Calculate the Distance

Visual guide showing the distance formula calculation
Visual guide to the distance formula

To calculate the distance from a point to a line, we use a special formula. For a line given by the equation ax + by + c = 0 and a point (x₀, y₀), the distance is:

Distance Formula

d = |ax₀ + by₀ + c| / √(a² + b²)

Where d is the shortest distance from the point to the line.

Here are the steps to follow:
  1. Write the line equation in the form ax + by + c = 0
  2. Identify the values of a, b, and c from the equation
  3. Identify the coordinates of the point (x₀, y₀)
  4. Plug into the formula and calculate the distance

Examples

Coordinate plane showing example calculations
Visual example of distance calculation

Let's practice with some examples:

Example 1

Find the distance from point (2,3) to the line 3x + 4y - 5 = 0

1 Identify coefficients: a = 3, b = 4, c = -5
2 Point coordinates: x₀ = 2, y₀ = 3
3 Calculate numerator: |3(2) + 4(3) - 5| = |6 + 12 - 5| = |13| = 13
4 Calculate denominator: √(3² + 4²) = √(9 + 16) = √25 = 5
5 Distance: d = 13/5 = 2.6 units

Example 2

Find the distance from point (1,1) to the line y = 2x + 1

1 First, write in standard form: 2x - y + 1 = 0 (so a=2, b=-1, c=1)
2 Point coordinates: x₀ = 1, y₀ = 1
3 Calculate numerator: |2(1) + (-1)(1) + 1| = |2 - 1 + 1| = |2| = 2
4 Calculate denominator: √(2² + (-1)²) = √(4 + 1) = √5 ≈ 2.236
5 Distance: d = 2/√5 ≈ 0.894 units

Practice Quiz

Test your understanding with this 5-question quiz. Choose the correct answer for each question.

1. The shortest distance from a point to a line is always:
2. For the line 2x - 3y + 6 = 0, what are the values of a, b, and c?
3. What is the distance from point (1,2) to the line 4x + 3y - 5 = 0?
4. Which part of the distance formula ensures the result is positive?
5. If the distance from a point to a line is zero, what does that mean?

Frequently Asked Questions

Here are answers to common questions about distance between a point and a line:

Geometry Trivia

Discover interesting facts about geometry and distance:

Copyright © 2025 Workybooks. Made with ♥ in California.