Pythagorean theorem
Find a missing side in a right triangle. Choose whether the missing side is the longest hypotenuse or one of the two perpendicular legs.
Calculate distance, midpoint and displacement for two points in a plane or three-dimensional space.
Saved in this browser. Before changing devices, export a backup from My tools.
Distance is the straight line between points; midpoint averages coordinates, and displacement points from first to second.
Plane mode uses the 2D distance and midpoint formulas and provides a reduced integer line equation for distinct points; coincident points do not determine one line and vertical slope is undefined. Space mode adds a z coordinate for distance and midpoint; no plane line is calculated. Use one unit, coordinates between −1,000,000 and 1,000,000 and at most six decimals. Results are floating-point approximations, not measurement precision, navigation or Earth-surface distance.
Coordinates must use the same Cartesian coordinate system and length unit; each is limited to −1,000,000 through 1,000,000 with at most six decimal places.
The result is a floating-point approximation; this is not a latitude/longitude, road-route or Earth-surface distance.
References:openstax.org reference、OpenStax: distance and midpoint formulas、NEHS: two points and a line
Find the straight-line distance and midpoint of two points in a Cartesian plane or three-dimensional space.
Enter x and y for each point; in space mode also enter z. Preserve signs and use one consistent unit.
Distance is the square root of the sum of squared coordinate differences; midpoint coordinates are the averages. In 3D include the z coordinate. For distinct points the line is given in reduced integer form Ax + By + C = 0.
For A(−1,2) and B(3,5), distance is 5 and midpoint (1,3.5). In space, (1,2,3) to (4,6,15) has distance 13 and midpoint (2.5,4,9).
Distance is nonnegative and uses the coordinate length unit; displacement is directed from first to second.
In plane mode identical points do not determine a unique line and vertical slope is undefined. In space mode the plane line and slope are not computed. This is not a route or latitude/longitude distance.
You are offline. Calculations use the version already downloaded.