Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Distance Formula Calculator

This calculator finds the distance between two points in the plane or in space. It also gives the squared distance, the difference in each coordinate and the midpoint.

How to use Distance Formula Calculator online

  1. Choose two or three dimensions. Pick the number of coordinates.
  2. Type both points. Enter the coordinates of each.
  3. Read the distance. The distance and its square appear.
  4. See the midpoint. The differences and the midpoint are listed.

Why use this free Distance Formula Calculator

  • Two and three dimensions
  • Squared distance
  • Differences by direction
  • Midpoint
  • Any unit
  • Share by link

Distance between points

The distance formula comes from the Pythagorean theorem. In the plane, the distance between (x1, y1) and (x2, y2) is √((x2 − x1)² + (y2 − y1)²). In three dimensions a third squared difference is added under the root.

How to use it

Choose two or three dimensions, then type the coordinates of both points. The distance appears with the squared distance, which is useful when you want to compare distances without taking roots, the differences in each direction and the midpoint.

A worked example

The points (0, 0) and (3, 4) are 5 apart, since 3² + 4² = 25. In three dimensions, (0, 0, 0) and (3, 4, 12) are 13 apart, because 9 + 16 + 144 = 169. The first is the 3, 4, 5 triple and the second is a three-dimensional version.

Straight-line distance

The formula gives the shortest distance, in a straight line. For travel along roads or grids, the real distance is longer. On the Earth's curved surface, distances between places use another formula, which this page does not cover.

Checking your numbers

Distance is never negative and is 0 only when the points are the same. If you swap the two points, the distance stays the same. These facts make a quick check on a result.

Using the calculator

Change any box of the Distance Formula Calculator and the answers move straight away. Keep a result as scenario A, change a number and compare both.

Distance Formula Calculator: frequently asked questions

What is the distance formula?
The square root of the sum of the squared differences of the coordinates.
How do I find distance in 3D?
Add the squared difference in z to the sum before taking the square root.
Why is the squared distance useful?
To compare which of two points is closer without taking roots.
Does the order of the points matter?
No. The distance is the same either way.
Does it work for places on Earth?
Not for long distances, where the curve of the surface matters.
Does the Distance Formula Calculator store my numbers?
Nothing leaves your browser; the Distance Formula Calculator numbers can also be kept on this device if you allow it.
Can I save a Distance Formula Calculator calculation?
Yes. Copy the page link, which holds your numbers, or copy the text of the Distance Formula Calculator result.

Related searches for Distance Formula Calculator

  • Distance Formula Calculator online
  • free Distance Formula Calculator
  • Distance Formula Calculator online free
  • Distance Formula Calculator for mobile
  • Distance Formula Calculator without sign up
  • distance formula formula
  • distance formula calculator with table
  • Distance Formula Calculator – Math, Stats & Charts

Distance Formula Calculator is a free online tool on MAITBOX, in the Math, Stats & Charts group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Math, Stats & Charts →

Search tools