Distance Calculator
Find the straight-line distance between two points on a coordinate plane, with the midpoint and the change in x and y. Calculates in your browser.
Distance
-
Show the math
The distance formula is the Pythagorean theorem on the x and y gaps:
d = √((x₂ − x₁)² + (y₂ − y₁)²)
This is the straight-line distance across a flat coordinate plane, not a road or travel distance. The order of the points does not matter. All math runs locally in your browser.
What this does
The distance calculator finds the straight-line distance between two points (x₁, y₁) and (x₂, y₂) on a coordinate plane, along with the midpoint and the horizontal and vertical change between them.
How to use it
- Enter the coordinates of the first point.
- Enter the coordinates of the second point.
- Read the distance and the midpoint.
How it works
The distance formula is the Pythagorean theorem applied to the horizontal and vertical gaps between the points. The midpoint is the average of the two x-values and the two y-values.
d = √((x₂ − x₁)² + (y₂ − y₁)²)
Understanding your result
This is the geometric distance across a flat coordinate plane (the length of the straight segment joining the points) not a road or travel distance. Because the differences are squared, the result is always positive and the order of the two points does not matter.
Example
From (1, 2) to (4, 6) the distance is 5, the hypotenuse of a 3-4-5 right triangle.
Sources & methodology
Last updated .
Frequently asked questions
What distance does this calculate?
The straight-line (Euclidean) distance between two points on a flat coordinate plane. It is geometry, not a driving or map distance.
What is the distance formula?
d = √((x₂ − x₁)² + (y₂ − y₁)²). It is the Pythagorean theorem applied to the horizontal and vertical differences between the points.
Does the order of the points matter?
No. The differences are squared, so swapping the two points gives the same distance.
Is my data stored?
No. Everything is calculated locally in your browser.
Related tools
Scientific Calculator
A calculator that understands full expressions, operators, powers, parentheses, factorials, the constants π and e, and trig, log, and root functions in radians or degrees. Calculates in your browser.
Average Calculator
Paste a list of numbers to get the mean, median, mode, range, count, sum, and standard deviation at once. Calculates in your browser.
Area Calculator
Find the area of a rectangle, triangle, circle, parallelogram, trapezoid, or ellipse from its dimensions. Calculates in your browser.
Volume Calculator
Find the volume of a box, cylinder, sphere, cone, pyramid, or capsule from its dimensions. Calculates in your browser.