notesonly.in

One notebook for every subject — open it anywhere.

Log in

Distance Formula: Explained with Examples, Notes and FAQs

The distance formula is a rule that gives you the exact straight-line distance between any two points on a coordinate plane. If one point is A with coordinates (x1, y1) and the other is B with coordinates (x2, y2), the formula converts those four numbers into a single length, no ruler needed.

It matters because almost every geometry question begins with measuring a length: checking whether two segments are equal, proving that a triangle is isosceles or equilateral, or finding the radius of a circle drawn on graph paper. Navigation apps, architects, surveyors and game developers all rely on the same idea whenever they need the distance between two known positions.

Key Concepts

  • Coordinate pair (x, y): a point's address on the plane. The symbols x1, y1 belong to the first point and x2, y2 belong to the second point.
  • Horizontal and vertical gaps: the differences (x2 − x1) and (y2 − y1) form the two legs of a right-angled triangle whose hypotenuse is exactly the distance you want.
  • Connection to Pythagoras: the distance formula is simply the Pythagoras theorem applied on the plane — (hypotenuse)² = (leg1)² + (leg2)².
  • Units: the answer comes in the same units as the coordinates, such as centimetres, metres or kilometres.
  • Order is irrelevant: swapping the two points gives the same answer, because squaring removes any negative sign from the differences.

Formulas

The distance d between P(x1, y1) and Q(x2, y2) is:

  • d = √((x2 − x1)² + (y2 − y1)²) — subtract the coordinates, square each difference, add them, then take the square root.
  • Distance from the origin: for P(x, y), the distance from O(0, 0) is simply √(x² + y²).

Assumptions: this measures the straight-line (shortest) distance on a flat Euclidean plane. Limits: it does not measure distance along a curved path, and for very large distances on the Earth (a sphere) surveyors use different formulas.

Worked Example

Find the distance between A(2, 3) and B(7, 15).

  1. Find the horizontal gap: x2 − x1 = 7 − 2 = 5.
  2. Find the vertical gap: y2 − y1 = 15 − 3 = 12.
  3. Square each gap: 5² = 25 and 12² = 144.
  4. Add the squares: 25 + 144 = 169.
  5. Take the square root: √169 = 13.

So AB = 13 units. Notice that 5, 12 and 13 form a Pythagorean triplet, which is why the answer came out as a neat whole number.

Common Misconceptions

  • "I can skip the square root." Without the square root you have the squared distance, which is a different number. Always finish with the square root.
  • "The order of subtraction matters." (x1 − x2) gives −5 instead of 5, but (−5)² = 25, so the final distance is identical.
  • "It gives the walking or driving distance." The formula gives only the straight-line distance. A real road route is almost always longer.

Real-World Applications

  • Map and GPS apps estimate the straight-line distance between two locations before computing a route.
  • Geometry proofs use it to show that a triangle is isosceles, equilateral or right-angled.
  • The radius of a circle is found as the distance between its centre and any point on the circle.
  • Game developers use it to detect when two objects are close enough to collide.

The distance formula turns coordinate pairs into lengths using one clean idea from the Pythagoras theorem. Remember the steps — subtract, square, add, square-root — and you can measure any segment on the plane without a ruler.