Distance and Midpoint Calculator
Enter the coordinates of two points, in two or three dimensions, and read the distance between them, the midpoint, the squared distance and the change along each axis. When the coordinates are whole numbers the exact form is shown, such as 5 times the square root of 2. The second tab finds the other end of a segment from one end and the midpoint. Everything runs in your browser.
The distance between (x1, y1) and (x2, y2) is the square root of the change in x squared plus the change in y squared, which is the Pythagorean theorem applied to the right triangle between the two points. In space a third squared change, in z, is added under the root. The midpoint is the average of each pair of coordinates, and the other end of a segment is twice the midpoint minus the end you know. When all the coordinates are whole numbers and the squared distance is a whole number, the exact form is shown, for example 5√2 for a squared distance of 50. The taxicab distance adds the changes along each axis, and the chessboard distance is the largest single change. Everything runs in your browser.
Related Tools
[5 suggestions]Pythagorean Theorem Calculator
Find the missing side, angles, area and perimeter of a right triangle from any two values, and see whether the sides form a Pythagorean triple.
Student ToolsSlope Calculator
Find the slope, equation, intercepts, distance and midpoint of the line through two points, with exact fractions.
Student ToolsTriangle Calculator
Solve any triangle from three values (SSS, SAS, ASA, AAS or SSA) and get every side and angle, the area, perimeter, type and circle radii.
Student ToolsGeometry Calculator: Area, Perimeter, Surface Area and Volume of Shapes
Find the area, perimeter, surface area or volume of a circle, ellipse, rectangle, trapezoid, regular polygon, sphere, cylinder, cone or box from its measurements.
Student ToolsSimplify Radicals and Square Roots Calculator
Simplify square roots, cube roots and higher roots to simplest radical form, with the prime factors shown, and rationalize denominators.
Student ToolsAbout the Distance and Midpoint Calculator
The distance between (x1, y1) and (x2, y2) is the square root of (x2 minus x1) squared plus (y2 minus y1) squared, which is the Pythagorean theorem applied to the right triangle between the points. In space a third term for z goes under the root. The points (1, 2) and (4, 6) are 3 apart in x and 4 apart in y, so the distance is 5 and the midpoint is (2.5, 4). The points (1, 1) and (6, 6) have a squared distance of 50, so the distance is the square root of 50, which is 5 times the square root of 2, about 7.0711. In three dimensions (1, 2, 3) and (4, 6, 15) are 13 apart. The midpoint is the average of each pair of coordinates. If you know one end of a segment and its midpoint, the other end is twice the midpoint minus the end you know, so with A at (1, 2) and a midpoint of (4, 5) the other end is (7, 8). The taxicab distance adds the changes along the axes, as if you walk along city blocks, and the chessboard distance is the largest single change. The distance does not depend on the order of the points.
What is the distance formula?▾
The distance is the square root of the change in x squared plus the change in y squared. For (1, 2) and (4, 6) that is the square root of 9 plus 16, which is 5. In 3D add the change in z squared under the root.
How do I find the midpoint of two points?▾
Average each coordinate. The midpoint of (1, 2) and (4, 6) is ((1 + 4) / 2, (2 + 6) / 2), which is (2.5, 4). The calculator shows it for two or three dimensions.
How do I find the other endpoint from the midpoint?▾
Double the midpoint and subtract the end you know, coordinate by coordinate. With one end at (1, 2) and the midpoint at (4, 5), the other end is (2 times 4 minus 1, 2 times 5 minus 2), which is (7, 8). Use the second tab.
What is the taxicab distance?▾
It is the sum of the absolute changes along each axis, the distance you would travel along a grid of streets. From (0, 0) to (3, 4) the straight line distance is 5 and the taxicab distance is 7.
Is my data uploaded?▾
No. The calculation runs in your browser and nothing you enter is sent anywhere.