How this instrument works
The distance between two points on a plane is nothing more exotic than the Pythagorean theorem turned sideways. Draw the horizontal run from (x₁, y₁) to (x₂, y₁), then the vertical rise up to (x₂, y₂): those two segments meet at a right angle and measure |x₂−x₁| and |y₂−y₁|, so the straight line closing the triangle — the actual distance you want — is its hypotenuse, d = √((x₂−x₁)² + (y₂−y₁)²). Nothing about the sign of either difference survives the squaring, which is why the order you name the two points never changes the answer.
This is the same identity Descartes leaned on in 1637 when he fused algebra with geometry: once a plane carries coordinates, every geometric question about length becomes an algebraic one about subtracting and squaring numbers. It also generalizes without any new idea required — add a third coordinate and a (z₂−z₁)² term, and the formula measures distance through space instead of across a page; add a fourth and it keeps working in dimensions nobody can draw. Mathematicians call this family the Euclidean norm, and this 2D version is its smallest interesting case.
A genuine edge case sits at the bottom of the formula rather than at its extremes: when the two points coincide, both differences vanish and d = 0, the smallest value any distance can return. That zero is not a special exception bolted on afterward — it falls straight out of the same arithmetic that handles every other pair, and it is one of the properties (never negative, symmetric, and no shortcuts through a third point) that separates a genuine distance measure from a formula that merely resembles one.
- Enter the first point's coordinates in x₁ and y₁ — any consistent unit, positive or negative.
- Enter the second point's coordinates in x₂ and y₂; decimals down to one-tenth are fine.
- Read Distance: the straight-line length between the two points, always zero or positive.
- Swap which point you call first and which second if you like — squaring erases the sign, so the reading is unchanged.
Worked example — the 3-4-5 triangle at the origin
Set x₁ = 0 and y₁ = 0 — the origin — with x₂ = 3 and y₂ = 4. The differences are Δx = 3 − 0 = 3 and Δy = 4 − 0 = 4. Square each and add: 3² + 4² = 9 + 16 = 25. Take the root: d = √25 = 5, a whole number with no rounding involved, because (3, 4, 5) is the smallest Pythagorean triple in existence.
The sheet handles the opposite extreme just as cleanly. Set x₂ = x₁ = 1 and y₂ = y₁ = 1 so the two points coincide: Δx = Δy = 0, and d = √(0² + 0²) = 0 exactly. Nudge either coordinate by any nonzero amount and the reading leaves zero immediately — proof the formula is measuring a genuine separation rather than returning a fixed default.
Questions
What is the distance formula, and where does it come from?
It comes straight from the Pythagorean theorem. Draw the horizontal segment from (x₁, y₁) to (x₂, y₁), then the vertical segment up to (x₂, y₂): those two legs measure |x₂−x₁| and |y₂−y₁| and meet at a right angle, so the straight line back to the start is the hypotenuse, d = √((x₂−x₁)² + (y₂−y₁)²) — the same theorem Descartes leaned on in 1637 to turn geometric distance into ordinary algebra.
How is this different from the Pythagorean theorem calculator?
That sheet takes two side lengths you already know and returns the third. This one takes two coordinate points and builds the right triangle itself: the horizontal and vertical gaps Δx and Δy become the legs automatically, so you never measure a triangle directly — you only supply where two points sit on a plane, and the instrument works out the rest.
Does it matter which point I label (x1, y1) and which (x2, y2)?
No. Swapping the labels flips the sign of both Δx and Δy, but each difference is squared before it is added, and squaring erases the sign — (−3)² is 9, same as 3². So (0,0) to (3,4) and (3,4) to (0,0) return the identical distance, 5. Only the pairing of each x with its own y matters; cross the coordinates and the answer comes out wrong.
How do I find the distance between two points in 3D?
Add one more squared term for the missing axis: d = √((x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²). The pattern continues without limit — in n dimensions you square and sum n coordinate differences under one root. This 2D version is the base case of what mathematicians call the Euclidean norm, the standard way to measure straight-line length in any number of dimensions.
Why not just add the horizontal and vertical gaps instead of squaring them?
Because that measures a different kind of distance. Summing the absolute differences gives 'Manhattan' or taxicab distance — the length of a path along a city grid, restricted to horizontal and vertical moves. For the (0,0)-to-(3,4) pair here it gives 7, not 5; only the squared-and-rooted version returns the true straight-line, 'as the crow flies' length, because it accounts for the diagonal a grid path can't take.
Can the distance formula ever return a negative number?
No. Both squared terms under the root are non-negative, their sum is non-negative, and a real square root of a non-negative number is never negative — the smallest possible output is zero, reached only when the two points coincide. This non-negativity is one of the defining properties of any true distance measure, alongside symmetry and the fact that no third point can offer a shortcut around it.