Physics Wallah

Distance Between Point and Line Formula

Distance Between a Point and a Line Formula: Euclidean geometry measures the shortest distance between a point and a line, often using a perpendicular line segment, with practical applications like object spacing.
authorImageManoj Kumar18 Sept, 2023
Share

Share

Distance Between a Point and a Line Formula

Distance Between Point and Line Formula Euclidean geometry, determining the distance from a point to a line involves finding the shortest span between a specific point and any point along an infinitely extending straight line. This shortest distance is essentially the length of the line segment that connects the point to the nearest spot on the line, which is defined as the perpendicular distance from the point to the line. The formula for this distance can be expressed in various ways. Knowing how to calculate the distance from a point to a line is valuable in practical scenarios, such as measuring the separation between two objects like trees.

Also Check - Volume of a Cylinder Formula

Understanding the Distance of a Point From a Line

The distance between a point and a line signifies the shortest possible gap between them, indicating the minimum distance needed to move from the point to a position on the line. This minimal length manifests as a line segment that is perpendicular to the line. Consider a Line L and a point X that does not fall on L:

Line and Point

Line and point

But how do we calculate the distance when the point isn't situated on the line? To address this, let's revisit the equation of a straight line and the distance formula. Additionally, think of a right-angled triangle ABC:

Right Angle

Right-angled triangle

Note that since ∠B = 90°, it's the largest angle in the triangle, implying that AC (the hypotenuse) is the longest side. This remains true in all cases. The hypotenuse AC will always surpass the perpendicular from A to BC, which is AB. Returning to our point and line, let's drop a perpendicular from X onto L:

Shortest distance between point and line

Shortest distance between point and line

In this diagram, Y represents the base of the perpendicular, while Z is any other point on L. It's important to realize that XY will always be shorter than XZ, regardless of where Z is positioned on the line. In simpler terms, the shortest distance from a point to a line follows the path of the perpendicular drawn from the point to the line. Consequently, we define the distance of a point X from a line L as the length of this perpendicular.

Also Check - Volume of a Hemisphere Formula

Deriving the Formula for the Distance of a Point From a Line

Let's derive the formula to compute the distance of a point from a line by employing the distance formula and the triangle area formula.

Consider a line L in the XY-plane, with K(x₁, y₁) being a point at a distance 'd' from the line. The line L is represented by Ax + By + C = 0, where the x and y-intercepts are (-C/A) and (-C/B), respectively.

Distance Between a Point and a Line Formula

Distance of a point from a line

The line L intersects the x and y-axes at points B and A, respectively. KJ represents the perpendicular distance from point K, meeting the base AB of triangle KAB at point J. For the three given points K, B, and A, we have coordinates: K(x₁, y₁), B(x₂, y₂), and A(x₃, y₃).

Here, (x₂, y₂) = (-C/A, 0) and (x₃, y₃) = (0, -C/B).

We aim to find the perpendicular distance KJ = d.

The area of the triangle is calculated using the formula: Area (Δ KAB) = ½ base × perpendicular height

Area (Δ KAB) = ½ AB × KJ

⇒ KJ = 2 × area (Δ KAB) / AB -> (1)

In coordinate geometry, the area (Δ KAB) is computed as:

Area A = ½ |x₁(y₂ - y₃) + x₂(y₃ - y₁) + x₃(y₁ - y₂)|

= ½ |x₁(0 - (-C/B)) + (-C/A)((-C/B) - y₁) + 0(y₁ - 0

= ½ |(C/B) × x₁ - C/A ((-C/B) - y₁) + 0|

= ½ |(C/B) × x₁ - C/A ((-C-By₁)/B)|

= ½ |(C/B) × x₁ + C²/AB + ((BCy₁)/AB)|

= ½ |(C/B) × x₁ + (C/A) × y₁ + (C²/AB)|

= ½ |C(x₁/B + y₁/A + C/AB)|

By multiplying and dividing the expression by AB, we get:

= ½ |C(ABx₁/AB² + ABy₁/BA² + ABC²/AB²)|

= ½ |CA(x₁/AB + By₁/AB + C/AB)|

= ½ |C/(AB)| ⋅ |Ax₁ + By₁ + C| -> (2)

According to the distance formula, the distance of the line AB with coordinates A(x₁, y₁) and B(x₂, y₂) can be calculated as:

AB = √((x₂ - x₁)² + (y₂ - y₁)²)

Here, A(x₁, y₁) = A(0, -C/B), and B(x₂, y₂) = B(-C/A, 0).

AB = √(((-C/A)² - 0) + (0 - (-C/B)²))

= √((C²/A²) + (C²/B²))

Distance, AB = |C/AB| √(A² + B²) -> (3)

Substituting (2) and (3) into (1), we obtain:

The distance of the perpendicular KJ = d = |Ax₁ + By₁ + C| / √(A² + B²)

Therefore, the distance from a point (x₁, y₁) to the line Ax + By + C = 0 is given by |Ax₁ + By₁ + C| / √(A² + B²). It's important to enclose the numerator in absolute value signs since the distance must always be a positive value, and certain combinations of Ax₁, By₁, and C can yield negative results.

Distance Between Point and Line Formula FAQs

What's the formula for finding the distance between a point and a line in geometry?

The formula is: Distance (d) = |Ax₁ + By₁ + C| / √(A² + B²).

What does this distance represent?

It's the shortest separation from a point to a line, found by a perpendicular line segment.

Why is the absolute value used in the formula?

Absolute value ensures the distance is always positive, regardless of coordinates and coefficients.
Join 15 Million students on the app today!
Point IconLive & recorded classes available at ease
Point IconDashboard for progress tracking
Point IconMillions of practice questions at your fingertips
Download ButtonDownload Button
Banner Image
Banner Image
Free Learning Resources
Know about Physics Wallah
Physics Wallah is an Indian edtech platform that provides accessible & comprehensive learning experiences to students from Class 6th to postgraduate level. We also provide extensive NCERT solutions, sample paper, NEET, JEE Mains, BITSAT previous year papers & more such resources to students. Physics Wallah also caters to over 3.5 million registered students and over 78 lakh+ Youtube subscribers with 4.8 rating on its app.
We Stand Out because
We provide students with intensive courses with India’s qualified & experienced faculties & mentors. PW strives to make the learning experience comprehensive and accessible for students of all sections of society. We believe in empowering every single student who couldn't dream of a good career in engineering and medical field earlier.
Our Key Focus Areas
Physics Wallah's main focus is to make the learning experience as economical as possible for all students. With our affordable courses like Lakshya, Udaan and Arjuna and many others, we have been able to provide a platform for lakhs of aspirants. From providing Chemistry, Maths, Physics formula to giving e-books of eminent authors like RD Sharma, RS Aggarwal and Lakhmir Singh, PW focuses on every single student's need for preparation.
What Makes Us Different
Physics Wallah strives to develop a comprehensive pedagogical structure for students, where they get a state-of-the-art learning experience with study material and resources. Apart from catering students preparing for JEE Mains and NEET, PW also provides study material for each state board like Uttar Pradesh, Bihar, and others

Copyright © 2025 Physicswallah Limited All rights reserved.