Download Careers360 App
Distance Between Two Points Formula - Definition & Examples

Distance Between Two Points Formula - Definition & Examples

Edited By Komal Miglani | Updated on Jul 02, 2025 07:33 PM IST

For any two points, there is a unique line segment that connects them. The distance between two points is the length of the line segment joining the two points. The distance formula is used to calculate the distance between two points if their coordinates are given. It's important to remember that the distance is always a positive value.

This Story also Contains
  1. What is the Distance Between Two Points?
  2. Distance Between Two Points Formula
  3. Derivation of Formula for Distance Between Two Points
  4. Steps to Calculate Distance Between Two Points
  5. Solved Examples Based on the Distance Between Two Points
Distance Between Two Points Formula - Definition & Examples
Distance Between Two Points Formula - Definition & Examples

In this article, we will cover the concept of the Distance formula. This category falls under the broader category of Coordinate geometry, which is a crucial Chapter in class 11 Mathematics. It is not only essential for board exams but also for competitive exams like the Joint Entrance Examination(JEE Main) and other entrance exams such as SRMJEE, BITSAT, WBJEE, BCECE, and more. A total of five questions have been asked on JEE MAINS( 2013 to 2023) from this topic including four in 2019, and one in 2022

What is the Distance Between Two Points?

The distance between two points is the length of the line segment joining the two points. Distance between two points can be calculated by finding the length between two points. The distance formula is used to calculate the distance between two points if their coordinates are given.

Distance formula can be used to calculate the distance between two points if the points are on the plane or the points lie on the x-axis or y-axis.

Distance Between Two Points Formula

The distance formula is used to calculate the distance between two points if their coordinates are given. For any point given in the 2-D plane, we can apply the 2D distance formula or the Euclidean distance formula given as:

$|A B|=\sqrt{\left(x_2-x_1\right)^2+\left(y_2-y_1\right)^2}$

This is also known as the Euclidean Distance Formula.

Derivation of Formula for Distance Between Two Points

We can derive the distance formula by using Pythagoras' theorem.

Using Pythagoras Theorem

$\begin{aligned} & c^2=a^2+b^2 \\ & A B^2=a^2+b^2 \\ & A B^2=\left(x_2-x_1\right)^2+\left(y_2-y_1\right)^2 \\ & |A B|=\sqrt{\left(x_2-x_1\right)^2+\left(y_2-y_1\right)^2}\end{aligned}$

Important Points:

1) The distance of a point A (x, y) from the origin O (0, 0) is given by

$|O A|=\sqrt{(x-0)^2+(y-0)^2}=\sqrt{x^2+y^2}$

2) If the points lie on the x-axis, the Distance between (x1,0) and(x2,0) is |x1-x2|

3) If the points lie on the y-axis, the Distance between (y1,0) and(y2,0) is |y1-y2|

Steps to Calculate Distance Between Two Points

The distance between two points using the given coordinates can be calculated with the help of the following steps:

Step 1: Find the coordinates of the two points whose distance has to be calculated. Suppose, Point A (x1, y1) and B (x2, y2) are two points on the cartesian plane

Step 2: Use the distance formula to calculate the distance between two points. Distance between two points A, B = $|A B|=\sqrt{\left(x_2-x_1\right)^2+\left(y_2-y_1\right)^2}$

Step 3: Express the given answer in units.

Recommended Video Based on the Distance Between Two Points


Solved Examples Based on the Distance Between Two Points

Example 1: A rectangle $\text { R }$ with endpoints of one of its sides as $(1,2)$ and $(3,6)$ is inscribed in a circle. If the equation of the diameter of the circle is $2 x-y+4=0$, then the area of \text { R } is______________. [JEE MAINS 2022]

Solution: Let the center of the circle is $C(\alpha, 4+2 \alpha)$

It will be equidistant from $(1,2)(3,6)$

$
\begin{aligned}
& \Rightarrow(\alpha-1)^2+(4+2 \alpha-2)^2=(\alpha-3)^2+(4+2 \alpha-6)^2 \\
& \Rightarrow \alpha^2-2 \alpha+1+4 \alpha^2+8 \alpha+4=\alpha^2-6 \alpha+3+4 \alpha^2-8 \alpha+4 \\
& \Rightarrow 20 \alpha=8 \Rightarrow \alpha=\frac{4}{5} ; \quad \text { c: }\left(\frac{4}{5}, \frac{28}{5}\right) .
\end{aligned}
$
distance $\mathrm{b} / \mathrm{w}(1,2) \quad \&(3,6)=2 \sqrt{5}=$ length.

Equation of line joining $(1,2)$ and $(3,6)$ is
$
\begin{aligned}
& y-2=\frac{6-2}{3-1}(x-1) \\
& 2 x-y=0
\end{aligned}
$
distance of centre from $2 x-y=0$ is
$
\mathrm{d}=\frac{\left|2 \times \frac{4}{5}-\frac{28}{5}\right|}{\sqrt{2^2+1^2}}=\frac{4}{\sqrt{5}} \text { units }
$

So Breadth =$2 \times \frac{4}{\sqrt{5}}=\frac{8}{\sqrt{5}}$ units

$\text { Area of } \mathrm{R}=1 \times \mathrm{b}=2 \sqrt{5} \times \frac{8}{\sqrt{5}}=16 \text { sq.units. }$

So answer is $\text { 16sq.units. }$

Hence, the answer is 16.

Example 2: A number of the lines, among the lines 2 $\mathrm{x}+\mathrm{y}+4+\mathrm{k}(\mathrm{x}-2 \mathrm{y}-3)=0$; whose minimum distance is $\sqrt{10}$ from the point (2,-3) is:

Solution

We have $\left|\frac{(2+k) 2+(1-2 \mathrm{k})(-3)+4-3 \mathrm{k}}{\sqrt{(2+\mathrm{k})^2+(1-2 \mathrm{k})^2}}\right|=\sqrt{10}$
Simplifying this quadratic will yield an equal root $\mathrm{k}=1$

Hence, the answer is 1.

Example 3: The extremities of the base of an isosceles triangle are (2,0) and (0,2). If the equation of one of the equal sides is x=2, the equation of the other equal side is

Solution:

Let coordinates of isosceles triangle be A=(2,h),B=(2,0),C=(0,2)

so, AB=AC

By distance formula

$h^2=4+(h-2)^2$ $h^2=4+h^2+4-4 h$ $4 h=8$ $h=2$

Equation of line AC

y=2.
Hence, the answer is y=2.

Example 4: A triangle with vertices (4, 0), (–1, –1), (3, 5) is

Solution:

Using distance formula$\begin{aligned}
& A B=\sqrt{(4-(-1))^2+(0-(-1))^2}=\sqrt{25+1}=\sqrt{26} \\
& A C=\sqrt{(4-3)^2+(0-5)^2}=\sqrt{1+25}=\sqrt{26} \\
& B C=\sqrt{(3-(-1))^2+(5-(-1))^2}=\sqrt{16+36}=\sqrt{52}
\end{aligned}$

Clearly, AB = AC and $A B^2+A C^2=B C^2$

So, this is a right-angle isosceles triangle.

Example 5: Let A(h, k), B(1,1) and C(2,1) be the vertices of a right-angled triangle with A C as its hypotenuse. If the area of the triangle is 1 square unit, then the set of values which ' k^{\prime} can be taken is given by

Solution: The distance between the point $A\left(x_1, y_1\right)$ and $B\left(x_2, y_2\right)$ is $\sqrt{\left(x_1-x_2\right)^2+\left(y_1-y_2\right)^2}$

$\begin{aligned} & A C^2=A B^2+B C^2 \\ & (h-2)^2+(k-1)^2=(h+1)^2+(k-1)^2+1^2 \\ & 4-4 h=1-2 h+1 \\ & 2 h=2 \Rightarrow h=1\end{aligned}$

Also, $\frac{1}{2} A B \cdot B C=1$

$\begin{aligned} & \frac{1}{2} \times A B \times 1=1 \\ & A B=2=\sqrt{(h-1)^2+(k-1)^2} \\ & (k-1)^2=2^2 \\ & k-1=2 \quad \text { or } k=-1=-2\end{aligned}$

$k=3 \quad$ or $\quad k=-1$

Hence, the answer is {–1, 3}.

Frequently Asked Questions (FAQs)

1. What is the distance formula, and why is it important in geometry?
The distance formula is a mathematical equation used to calculate the straight-line distance between two points in a coordinate plane. It's derived from the Pythagorean theorem and is important because it allows us to measure distances in two-dimensional space without physically measuring them. This formula is crucial in various fields, including geometry, physics, and engineering, as it helps solve problems involving distances between objects or locations.
2. How is the distance formula related to the Pythagorean theorem?
The distance formula is a direct application of the Pythagorean theorem. In a right triangle, the Pythagorean theorem states that a² + b² = c², where c is the hypotenuse. When finding the distance between two points, we create a right triangle by drawing horizontal and vertical lines between the points. The distance formula then uses the differences in x and y coordinates as the legs of this triangle, with the straight-line distance being the hypotenuse.
3. Why do we square the differences in coordinates in the distance formula?
We square the differences in coordinates for two reasons: First, squaring eliminates negative values, ensuring the result is always positive. Second, it's a direct application of the Pythagorean theorem, where the squares of the legs are added to find the square of the hypotenuse. The square root is then taken to find the actual distance.
4. Can the distance formula be used in three-dimensional space?
Yes, the distance formula can be extended to three-dimensional space. While the 2D formula is √[(x₂-x₁)² + (y₂-y₁)²], the 3D version includes a z-coordinate: √[(x₂-x₁)² + (y₂-y₁)² + (z₂-z₁)²]. This allows for calculating distances between points in 3D coordinate systems, which is useful in fields like 3D modeling, physics, and engineering.
5. In what situations might the Manhattan distance be more appropriate than the Euclidean distance (given by the distance formula)?
The Manhattan distance (sum of absolute differences in coordinates) might be more appropriate in situations where movement is restricted to grid-like paths, such as city blocks or certain types of networks. While the Euclidean distance (given by the distance formula) measures "as the crow flies," Manhattan distance is useful when diagonal movement isn't possible or practical, like in taxi routes or circuit board design.
6. What's the relationship between the distance formula and vector magnitude?
The distance formula and vector magnitude are closely related. In fact, the distance formula calculates the magnitude of the vector between two points. If you consider one point as the tail of a vector and the other as its head, the distance formula gives the length (magnitude) of this vector. This connection highlights the formula's importance in both geometry and vector algebra.
7. What's the difference between Euclidean distance and geodesic distance?
Euclidean distance, calculated by the distance formula, measures the straight-line distance between two points in a flat plane. Geodesic distance, on the other hand, measures the shortest path between two points on a curved surface, like the Earth's surface. While the distance formula works well for relatively small distances on Earth, for larger distances, geodesic calculations are necessary to account for the Earth's curvature.
8. What's the geometric interpretation of the terms inside the square root in the distance formula?
The terms inside the square root in the distance formula, (x₂-x₁)² and (y₂-y₁)², represent the squares of the horizontal and vertical distances between the two points, respectively. Geometrically, these correspond to the squares of the legs of a right triangle formed by the two points and their projections onto the coordinate axes.
9. What's the relationship between the distance formula and the concept of locus in geometry?
The distance formula is fundamental to many locus problems in geometry. A locus is a set of points that satisfy a certain condition, often involving distances. For example, the locus of points equidistant from two fixed points is the perpendicular bisector of the line segment joining them. The distance formula is used to express and solve such conditions mathematically.
10. How does the distance formula relate to the concept of eccentricity in conic sections?
The distance formula is used in calculating the eccentricity of conic sections. Eccentricity is defined as the ratio of the distance from any point on the conic to a focus, to the distance from that point to the directrix. These distances are calculated using the distance formula. The value of this ratio determines whether the conic is a circle, ellipse, parabola, or hyperbola.
11. How does the concept of significant figures apply to results from the distance formula?
When using the distance formula, the concept of significant figures is important for maintaining precision. The result should not have more significant figures than the least precise input. For example, if coordinates are given to two decimal places, the final distance should also be rounded to two decimal places. This ensures that the calculated distance doesn't imply more precision than the original data supports.
12. Can the distance formula be used to find the perimeter of a polygon on a coordinate plane?
Yes, the distance formula can be used to find the perimeter of a polygon on a coordinate plane. To do this, you would use the formula to calculate the length of each side of the polygon by finding the distance between consecutive vertices. The sum of all these distances gives the perimeter of the polygon.
13. Can the distance formula be used to find the area of irregular shapes on a coordinate plane?
While the distance formula itself doesn't directly give areas, it can be a crucial tool in finding areas of irregular shapes on a coordinate plane. By using the distances between points to break down the shape into triangles or trapezoids, you can calculate the areas of these simpler shapes and sum them to find the total area. This method is known as the Shoelace formula or the surveyor's formula.
14. How can the distance formula be used to classify triangles?
The distance formula can be used to classify triangles by calculating the lengths of all three sides. Once you have these lengths, you can determine if the triangle is equilateral (all sides equal), isosceles (two sides equal), or scalene (no sides equal). Additionally, by comparing the squares of the sides, you can use the converse of the Pythagorean theorem to determine if the triangle is right, acute, or obtuse.
15. How does scaling affect distances calculated using the formula?
Scaling affects distances proportionally. If you scale all coordinates by a factor k, the calculated distance will be scaled by the same factor. For example, if you double all coordinates (k=2), the calculated distance will also double. This is because the distance formula involves linear terms that are then squared and square-rooted, preserving the scaling factor.
16. How does the distance formula differ from the midpoint formula?
While both formulas involve two points on a coordinate plane, they serve different purposes. The distance formula calculates the length of the line segment between two points, while the midpoint formula finds the coordinates of the point exactly halfway between two given points. The distance formula uses subtraction and square roots, whereas the midpoint formula uses averages of the x and y coordinates.
17. Can the distance formula result in a negative value?
No, the distance formula cannot result in a negative value. The formula involves squaring the differences in coordinates and then taking the square root of the sum. Since we're dealing with real numbers, the square root of a positive number is always positive or zero. This aligns with the concept of distance being a non-negative quantity.
18. How does changing the order of points affect the result of the distance formula?
The order of points does not affect the result of the distance formula. Whether you calculate (x₂-x₁) or (x₁-x₂), the result will be squared, making the order irrelevant. This property reflects the fact that the distance from point A to point B is the same as the distance from point B to point A.
19. What happens to the distance when one point is moved parallel to the x-axis or y-axis?
When one point is moved parallel to either axis, only one coordinate changes. If moved parallel to the x-axis, only the x-coordinate changes; if parallel to the y-axis, only the y-coordinate changes. This affects the distance calculation by changing one of the squared terms in the formula. The change in distance depends on how far the point is moved along that axis.
20. How can you use the distance formula to determine if three points are collinear?
To determine if three points are collinear (lie on the same straight line), you can use the distance formula to calculate the distances between all three pairs of points. If the sum of the two shorter distances equals the longest distance, the points are collinear. Alternatively, you can check if the slope between any two pairs of points is the same.
21. How does the distance formula relate to the equation of a circle?
The distance formula is integral to the equation of a circle. A circle is defined as all points equidistant from a center point. The equation of a circle, (x-h)² + (y-k)² = r², where (h,k) is the center and r is the radius, is derived from the distance formula. It represents all points (x,y) that are at a distance r from the center (h,k).
22. How can you use the distance formula to find the radius of a circle given two points on its circumference?
To find the radius of a circle given two points on its circumference, you can use the distance formula to calculate the distance between these two points. This distance is a chord of the circle. The radius can then be found using the formula: r = (c² + d²) / (4d), where c is the chord length (distance between the points) and d is the perpendicular distance from the chord to the center of the circle.
23. Can the distance formula be used to find the distance between a point and a line?
While the distance formula itself is for point-to-point distance, it can be used as part of the process to find the distance between a point and a line. This involves finding the perpendicular from the point to the line. The formula for point-to-line distance uses concepts from the distance formula but also incorporates the equation of the line.
24. How does the distance formula relate to the concept of slope?
The distance formula and slope are related through the concept of rise over run. In the distance formula, (y₂-y₁) represents the vertical change (rise) and (x₂-x₁) represents the horizontal change (run). The slope formula, (y₂-y₁)/(x₂-x₁), uses these same differences. While the distance formula combines these differences using the Pythagorean theorem, the slope formula divides them.
25. How does the concept of significant digits apply when using the distance formula?
When using the distance formula, it's important to consider significant digits to maintain appropriate precision. The number of significant digits in the result should generally not exceed the number of significant digits in the least precise input. For example, if coordinates are given to two decimal places, the final distance should also be rounded to two decimal places to avoid implying greater precision than the data supports.
26. What's the connection between the distance formula and the concept of a metric in mathematics?
The distance formula is an example of a metric in mathematics. A metric is a function that defines a distance between elements of a set. The Euclidean distance given by the distance formula satisfies the four properties of a metric: non-negativity, identity of indiscernibles, symmetry, and the triangle inequality. This connection highlights the formula's importance in more advanced mathematical concepts like metric spaces.
27. How can the distance formula be used to find the coordinates of a point that divides a line segment in a given ratio?
To find a point that divides a line segment in a given ratio, you can use the distance formula in conjunction with the section formula. If you know the coordinates of the endpoints and the ratio in which the line is to be divided, you can set up equations using the distances from the dividing point to each endpoint. Solving these equations will give you the coordinates of the dividing point.
28. What's the relationship between the distance formula and the concept of continuity in functions?
The distance formula plays a role in defining continuity of functions. A function is continuous at a point if the limit of the function as you approach that point equals the function's value at that point. This concept often involves calculating the distance between points on the function's graph. The distance formula is used to quantify how close points are to each other, which is crucial in formal definitions of limits and continuity.
29. How does the distance formula relate to the concept of vector projection?
The distance formula is related to vector projection through its connection to the dot product. When projecting one vector onto another, you're essentially finding the component of one vector that's parallel to the other. This involves calculating distances and angles between vectors. The distance formula is used in these calculations, particularly when working with position vectors in a coordinate system.
30. Can the distance formula be used to determine if two circles intersect?
Yes, the distance formula can be used to determine if two circles intersect. By calculating the distance between the centers of the circles using the distance formula and comparing this to the sum and difference of their radii, you can determine whether the circles intersect, are tangent, or are separate. If the distance is less than the sum of radii but greater than the difference, the circles intersect.
31. How does the distance formula relate to the concept of work in physics?
In physics, work is defined as force multiplied by displacement in the direction of the force. When calculating work done by a constant force over a straight-line path, the displacement can be found using the distance formula. This is particularly useful in problems involving two-dimensional motion, where the start and end points are given as coordinates.
32. What's the connection between the distance formula and the concept of linear interpolation?
Linear interpolation involves estimating a value between two known points. The distance formula is used in this process to calculate the distances between points. When interpolating, you often need to find a point that divides a line segment in a certain ratio, which involves using distances calculated by the formula. This connection highlights the formula's utility in various estimation and approximation techniques.
33. How can the distance formula be used to find the equation of a perpendicular bisector?
To find the equation of a perpendicular bisector of a line segment, you first use the distance formula to find the midpoint of the segment. Then, using the fact that the perpendicular bisector passes through this midpoint and is perpendicular to the original line segment, you can derive its equation. The distance formula is crucial in finding the midpoint and in ensuring the perpendicularity condition is met.
34. What's the relationship between the distance formula and the concept of isometric transformations?
Isometric transformations are those that preserve distances between points. The distance formula is essential in verifying whether a transformation is isometric. By calculating distances between corresponding points before and after the transformation using the distance formula, you can check if these distances remain unchanged. This property is crucial in understanding and working with rigid transformations in geometry.
35. How does the distance formula relate to the concept of a norm in linear algebra?
The distance formula is closely related to the Euclidean norm in linear algebra. The Euclidean norm of a vector is the square root of the sum of the squares of its components, which is essentially what the distance formula calculates for the vector between two points. This connection highlights how the distance formula extends to higher-dimensional spaces and more abstract mathematical concepts.
36. Can the distance formula be used to find the area of a circle given points on its circumference?
Yes, the distance formula can be used to find the area of a circle given points on its circumference. If you have two points on the circumference, you can use the distance formula to find the length of the chord between them. From this, you can calculate the radius of the circle using chord properties, and then use the standard area formula (πr²) to find the circle's area.
37. How does the concept of significant figures apply when using the distance formula?
When using the distance formula, it's important to consider significant figures to maintain appropriate precision in your calculations. The number of significant figures in your result should generally not exceed the number of significant figures in the least precise input. For example, if coordinates are given to two decimal places, the final distance should also be rounded to two decimal places to avoid implying greater precision than the data supports.
38. What's the connection between the distance formula and the concept of a metric space in topology?
The distance formula is an example of a metric in mathematics, which is a key concept in defining metric spaces in topology. A metric space is a set where a notion of distance (a metric) between elements is defined. The Euclidean distance given by the distance formula satisfies the four properties of a metric: non-negativity, identity of indiscernibles, symmetry, and the triangle inequality. This connection shows how the distance formula extends to more abstract mathematical structures.
39. How can the distance formula be used in optimization problems?
The distance formula is often used in optimization problems, particularly those involving minimizing or maximizing distances. For example, in finding the shortest path between points, locating the optimal position for a facility, or determining the furthest pair of points in a set. In these problems, the distance formula is used to express the objective function that needs to be minimized or maximized,

Articles

Back to top