Over 7,029,000 live tutoring sessions served!
Top

Distance Formula

Learn about distance formula here and understand the concept better with solved examples provided. Students can also use the online distance formula calculator and distance formula worksheet provided in the page.

Let's understand what is the distance formula? The length of a line segment AB, which joins A (x1, y1) and B (x2, y2) is given by,

distance formula

 

Distance Formula Proof

Back to Top

Let A (x1, y1) and B (x2, y2) be two points in the plane.

Let d = distance between the points A and B.

Draw AL and BM perpendicular to x-axis (parallel to y-axis).

Draw AC perpendicular to BM to cut BM at C.

In the figure,

OL = x1, OM = x2 [AC = LM = OM - OL = x2 - x1]

MB = y2, MC = LA = y1 [CB = MB - MC = y2 - y1]

From the right-angled DACB,

Note:

i) If the points A and B lie on the x-axis, then the ordinates of A and B are zeros.

i.e., A (x1, 0), B (x2,0)

ii) If the points A and B lie on the y-axis, then the abscissae of A and B are zeros.

i.e., A (0,y1) and B (0,y2)

iii) Distance of any point A (x, y) from the origin

Distance Formula Examples

Back to Top

Below are some examples based on distance formula

Example 1: Find the distance between the following pair of points: A (1,2) and B (4,5).

Solution:

Using the distance formula, we have

Example 2: Find the distance between places when the two coordinates (2, 4) and (4, 6)are given, using the distance formula.?

Solution:

(x1, y1)= (2, 4)

(x2, y2) = (4, 6)

Distance= `sqrt((y2-y1)^2 + (x2-x1)^2)`

Here (x1, y1) and (x2, y2) are two places. We need to find the distance the two places

Distance=`sqrt((4-2)^2 + (6 -4)^2)`

Distance=`sqrt((2)^2 + (2)^2)`

Distance= `sqrt(8)`

Distance= 2.82 units

Example 3: Find the distance between places when the two coordinates (10, 15) and (15, 20)are given, using the distance formula.?

Solution:

(x1, y1)= (10, 15)

(x2, y2) = (15, 20)

Distance=`sqrt((y2-y1)^2 +(x2-x1)^2) `

Here (x1, y1) and (x2, y2) are two places. We need to find the distance the two places

Distance=`sqrt((15-10)^2 + (20-15 )^2)`

Distance=`sqrt((5)^2 + (5)^2)`

Distance= `sqrt(50)`

Distance = 7.07 units

*AP and SAT are registered trademarks of the College Board.