Access free live classes and tests on the app
Download
+
Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA
Login Join for Free
avtar
  • ProfileProfile
  • Settings Settings
  • Refer your friendsRefer your friends
  • Sign outSign out
  • Terms & conditions
  • •
  • Privacy policy
  • About
  • •
  • Careers
  • •
  • Blog

© 2023 Sorting Hat Technologies Pvt Ltd

Watch Free Classes
    • Free courses
    • JEE Main 2024
    • JEE Main 2024 Live Paper Discussion
    • JEE Main Rank Predictor 2024
    • JEE Main College Predictor 2024
    • Stream Predictor
    • JEE Main 2024 Free Mock Test
    • Study Materials
    • Notifications
    • JEE Advanced Syllabus
    • JEE Books
    • JEE Main Question Paper
    • JEE Coaching
    • Downloads
    • JEE Notes & Lectures
    • JEE Daily Videos
    • Difference Between
    • Full Forms
    • Important Formulas
    • Exam Tips
JEE Main 2026 Preparation: Question Papers, Solutions, Mock Tests & Strategy Unacademy » JEE Study Material » Mathematics » Distance Formula from a Point to a Line

Distance Formula from a Point to a Line

How should you determine the distance between a point to a line? Find out the easiest way with key examples here.

Table of Content
  •  

In geometry, if you need to calculate the distance of a point from any given line, identify the shortest distance that rests between the line and the given point. In general, you can draw an infinite number of straight lines from a point onto a line lying in the plane. 

Now, how can you determine the distance the rests between the line from this given point? You can do so by finding the shortest distance between this given point to the line.

How do you find the shortest distance from a point to a line? You can do this by drawing a perpendicular line on the given straight line that needs to pass through the given point. 

Calculating the Distance Formula from a Point to a Line

As already highlighted, the shortest distance will give you the distance from the point to the line. This is the minimum length or distance that is required to move from the point onto the line. How do you calculate it? 

Start with a triangle. A right-angled triangle is the best way to determine the shortest distance from a point to the given line. A longer distance here will be the hypotenuse of the right-angled triangle, while the perpendicular gives the distance. By joining these two lines, you will get another line segment that completes the entire right-angled triangle.

Calculating the Perpendicular Distance of a Point to a Line

Now that you know how to form the triangle, let us derive the formula for the perpendicular to determine the distance of the point from a line.

Let’s consider a straight line whose equation is given below:

L: Ax + By + C = 0 from a given point P (x1, y1)

Let us assume that the distance of this line from the point P is ‘d’.

Start by drawing a perpendicular from P to M on the line L. Let Q and R be the exact points where this line PM meets the x-axis and y-axis, respectively. Here, the coordinates of the points are

Q (-C/A, 0) 

R (0, -C/B)

Deriving the Distance of the Point from a Given Line

Now that you have successfully created the right-angled triangle PQR, let’s derive the distance formula using the triangle’s area formula:

Area of ΔPQR = Half of Base x Height = Half of (PM x QR)

Therefore, PM = [2 area of (ΔPQR)]/2….(1)

According to the coordinate geometry, 

The triangle’s area with the vertices (x1, y1), (x2, y2) and (x3, y3) = (1/2) |x1(y2 – y3) + x2(y3 – y1) + x3(y1 – y2)|

Therefore, (x1, y1) is equal to P(x1, y1)

(x2, y2) is equal to Q (-C/A, 0)

(x3, y3) is equal to R (0, -C/B) 

So, the area of PQR = (1/2) | x 1(0 + C/B) + (-C/A)(-C/B – y1) + 0(y1 – 0)|

Or 2 times the area of PQR = |C/AB| . |Ax1 + By1 + C|….(2)

Distance of QR = √[(0 + C/A)2 + (C/B – 0)2] = √[(C2/A2) + (C2/B2)]

So, finding the value of QR will give the distance formula.

Here, QR = |C/AB| √(A2 + B2)….(3)

Substituting (2) and (3) in (1),

PM = [|C/AB| x |Ax1 + By1 + C|] / [|C/AB| √(A2 + B2)]

d = |Ax1 + By1 + C|]/ √(A2 + B2)

So, the perpendicular distance of the line L: Ax + By + C = 0 from the given point P (x1, y1) is

d = |Ax1 + By1 + C|]/ √(A2 + B2)

Let’s go through a few examples to understand how to use the distance formula to calculate the length from a given point to a straight line.

Examples

A couple of examples have been provided for a better understanding of how to calculate the distance from a point to a line.

Example 1:

How do you calculate the distance of point Q (-6,10) from the line 8x – 6y – 52 = 0?

Solution

The given equation of the line is 8x – 6y – 52 = 0.

The given point is Q (-6,10). 

Comparing these two with the standard points, 

A = 8

B = -6

C = -52

x1 = -6

y1 = 10

You already know that the perpendicular distance from a line like Ax + By+ C = 0 from a given line point (x1, y1) is given by

d = |Ax1 + By1 + C|]/ √(A2 + B2)

Substituting the values accordingly,

d = |8(-6) + (-6)(10) + (-52)|/√[(8)2 + (-6)2]

= |-48 – 60 – 52|/√(64 + 36)

= |-160|/√100

= 160/10

= 16 units

Hence, the required distance of Q (-6,10) from the line 8x – 6y – 52 = 0 is 16 units.

Example 2:

Calculate the length from P (5,1) and the straight line y = 3x + 1.

Solution

The given point P (5,1) and the straight line y = 3x + 1, i.e. 3x + 1 – y = 0

To find the distance between the line and P, let’s compare the values with the standard distance formula. To substitute,

A = 3, B = -1, C = 1

x1 = 5, y1 = 1

So, the perpendicular distance from the point (x1, y1) to the line Ax + By+ C = 0 is:

d = |Ax1 + By1 + C|]/ √(A2 + B2)

To substitute the values, you will get the distance from the point to the line:

d = [|3.5 + (-1)(1) + 1|]/√(32 + (-1)2)

d = 15/√10

So, the length from P (5,1) and the straight line y = 3x + 1 is 15/√10 units.

 

Conclusion:

This article explains the distance formula from point to the line. The shortest distance is the distance from the point to the line. This is the minimum length or distance that is required to move from the point onto the line. Using the Pythagorean theorem, you can derive the distance formula from any point to a line, which is:

d = √((x2 – x1)² + (y2 – y1)²)

faq

Frequently asked questions

Get answers to the most common queries related to the IIT JEE Examination Preparation.

What is the distance formula from any given point to a line?

Answer: Using the Pythagorean theorem, you can derive the distance formula from any point to a line, which is...Read full

How do you calculate the distance from the point X (5, 2) to the line 3x - 4y = 4?

Answer: The given equation of the line is 3x – 4y = 4. The...Read full

Can you calculate the distance between the point T (0, 0) and the given line 3x + 4y + 10 = 0?

Answer: The given equation of the line is 3x + 4y +10 = 0 The gi...Read full

Answer: Using the Pythagorean theorem, you can derive the distance formula from any point to a line, which is:

d = √((x2 – x1)² + (y2 – y1)²)

Answer: The given equation of the line is 3x – 4y = 4.

The given point is X (5, 2).

Comparing these two measurements with the standard points, 

A = 3

B = -4

C = -4

x1 = 5

y1 = 2

You already know that the perpendicular distance from a line like Ax + By+ C = 0 from a given line point (x1, y1) is given by

d = |Ax1 + By1 + C|]/ √(A2 + B2)

Substituting the values accordingly,

d = |3(5) + (-4)(2) + (-4)|/√[(3)2 + (-4)2]

= |15 – 8 – 4|/√(9 + 16)

= |3|/√25

= 3/5 units

Answer: The given equation of the line is 3x + 4y +10 = 0

The given point is T (0, 0).

Comparing these two measurements with the standard points, 

A = 3

B = 4

C = 10

x1 = 0

y1 = 0

The perpendicular distance from a line like Ax + By+ C = 0 from a given line point (x1, y1) is given by

d = |Ax1 + By1 + C|]/ √(A2 + B2)

Comparing to substitute the values accordingly,

d = |3(0) + (4)(0) + (10)|/√[(3)2 + (4)2]

= |10|/√(9 + 16)

= |10|/√25

= 10/5 = 2 units

Hence, the required distance of T (0, 0) and the given line 3x + 4y + 10 = 0 is 2 units.

Crack IIT JEE with Unacademy

Get subscription and access unlimited live and recorded courses from India’s best educators

  • Structured syllabus
  • Daily live classes
  • Ask doubts
  • Tests & practice
Learn more

Notifications

Get all the important information related to the JEE Exam including the process of application, important calendar dates, eligibility criteria, exam centers etc.

Allotment of Examination Centre
JEE Advanced Eligibility Criteria
JEE Advanced Exam Dates
JEE Advanced Exam Pattern 2023
JEE Advanced Syllabus
JEE Application Fee
JEE Application Process
JEE Eligibility Criteria 2023
JEE Exam Language and Centres
JEE Exam Pattern – Check JEE Paper Pattern 2024
JEE Examination Scheme
JEE Main 2024 Admit Card (OUT) – Steps to Download Session 1 Hall Ticket
JEE Main Application Form
JEE Main Eligibility Criteria 2024
JEE Main Exam Dates
JEE Main Exam Pattern
JEE Main Highlights
JEE Main Paper Analysis
JEE Main Question Paper with Solutions and Answer Keys
JEE Main Result 2022 (Out)
JEE Main Revised Dates
JEE Marking Scheme
JEE Preparation Books 2024 – JEE Best Books (Mains and Advanced)
Online Applications for JEE (Main)-2022 Session 2
Reserved Seats
See all

Related articles

Learn more topics related to Mathematics
Zero Vector

A zero vector is defined as a line segment coincident with its beginning and ending points. Primary Keyword: Zero Vector

ZERO MATRIX

In this article, we will discuss about the zero matrix and it’s properties.

YARDS TO FEET

In this article we will discuss the conversion of yards into feet and feets to yard.

XVI Roman Numeral

In this article we are going to discuss XVI Roman Numerals and its origin.

See all
Access more than

10,505+ courses for IIT JEE

Get subscription

Trending Topics

  • JEE Main 2024
  • JEE Main Rank Predictor 2024
  • JEE Main Mock Test 2024
  • JEE Main 2024 Admit Card
  • JEE Advanced Syllabus
  • JEE Preparation Books
  • JEE Notes
  • JEE Advanced Toppers
  • JEE Advanced 2022 Question Paper
  • JEE Advanced 2022 Answer Key
  • JEE Main Question Paper
  • JEE Main Answer key 2022
  • JEE Main Paper Analysis 2022
  • JEE Main Result
  • JEE Exam Pattern
  • JEE Main Eligibility
  • JEE College predictor
combat_iitjee

Related links

  • JEE Study Materials
  • CNG Full Form
  • Dimensional Formula of Pressure
  • Reimer Tiemann Reaction
  • Vector Triple Product
  • Swarts Reaction
  • Focal length of Convex Lens
  • Root mean square velocities
  • Fehling’s solution
testseries_iitjee
Predict your JEE Rank
.
Company Logo

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585

Company
About usShikshodayaCareers
we're hiring
BlogsPrivacy PolicyTerms and Conditions
Help & support
User GuidelinesSite MapRefund PolicyTakedown PolicyGrievance Redressal
Products
Learner appLearner appEducator appEducator appParent appParent app
Popular goals
IIT JEEUPSCSSCCSIR UGC NETNEET UG
Trending exams
GATECATCANTA UGC NETBank Exams
Study material
UPSC Study MaterialNEET UG Study MaterialCA Foundation Study MaterialJEE Study MaterialSSC Study Material

© 2026 Sorting Hat Technologies Pvt Ltd

Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA

Share via

COPY