Coordinate Distance Calculator – Distance Between Two Points

Use the free Coordinate Distance Calculator below: your data never leaves your browser — all work happens on your device, and nothing is uploaded to any server.

The Shortest Path Between Two Points

The distance between two points is the length of the straight line joining them. On a map it is the “as the crow flies” distance, ignoring roads and bends. In coordinates, for points (x1, y1) and (x2, y2), the distance is √((x2 − x1)² + (y2 − y1)²). The formula looks like a mouthful, but it is just the Pythagorean theorem in disguise: the horizontal gap and the vertical gap are the two legs of a right triangle, and the distance is its hypotenuse.

That connection is worth seeing once, because it turns a formula to memorise into a picture to remember. Draw the two points, drop a vertical line from one and a horizontal line from the other, and the right triangle appears. Its legs are the differences in x and in y. Its hypotenuse is the distance. Every distance problem is a hidden right triangle.

How to Use This Calculator

Enter the two points and press Calculate distance. The tool shows each step: the horizontal difference dx, the vertical difference dy, their squares, the sum of the squares, and the square root. Seeing the steps matters, because the two places where distance problems go wrong are forgetting to square and forgetting to take the root, and the step display exposes both at once.

Coordinates can be negative, and the tool handles them without complaint, because squaring removes the sign. The distance from (−1, −1) to (2, 3) is 5, the same as from (1, 2) to (4, 6): shifting both points by the same amount never changes the distance between them. Only the gaps matter, never the absolute positions.

A Worked Example: The 3-4-5 Distance

Take points (1, 2) and (4, 6). The horizontal gap is 4 − 1 = 3. The vertical gap is 6 − 2 = 4. The squares are 9 and 16, their sum is 25, and the square root is 5. So the points are 5 units apart. Enter those points in the tool and the step display matches this chain exactly.

The 3-4-5 triangle keeps appearing in distance problems because it is the simplest whole-number case, and it is a useful sanity check: if your gaps are 3 and 4 and your answer is not 5, something went wrong. Other whole-number cases include gaps 5 and 12 giving 13, and gaps 8 and 15 giving 17.

Where Distances Get Used

Distance in coordinates is the engine behind mapping software, game graphics, robotics and data analysis. A delivery app measures the gap between addresses in coordinates before it ever looks at roads. A scatter plot groups points by how close they sit to each other. A robot arm plans its reach from the distance between its joints. The formula is small, but the number of systems built on it is enormous.

In pure mathematics, the same formula defines circles: a circle is the set of points at a fixed distance from a centre. It also defines the distance in higher dimensions, where you simply add more squared gaps under the root. The two-dimensional case you practise here is the foundation for all of them.

Common Mistakes

The most common mistake is adding the gaps instead of squaring them: 3 + 4 = 7 is not the distance, 5 is. The second mistake is forgetting the square root at the end and answering 25 instead of 5. The third mistake is subtracting in different orders for x and y, which does not change the answer because of the squares, but confuses the working. Subtract consistently: second point minus first point, both times.

A fourth mistake is mixing units: x in metres and y in centimetres gives a meaningless root. Keep one unit for both coordinates. The tool cannot detect mixed units, so that check is yours.

Try It Yourself

Start with (1, 2) and (4, 6) and confirm 5. Then try (0, 0) and (3, 4) for another 5, then (0, 0) and (1, 1) for about 1.4142, and then two identical points for 0. Those four cases cover whole answers, irrational answers and the zero case. Use the tool as often as you like; every calculation runs in your browser, and nothing you type is sent anywhere.

Related tools

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top