Distance formula calculator
Calculator
The calculator needs JavaScript. The tables below give the same numbers for common cases.
How it is worked out
- d = √((x₂ − x₁)² + (y₂ − y₁)²).
- d = √(6² + 8²) = √100 = 10.
| Inputs | Answer |
|---|---|
| x₁: 1; y₁: 2; x₂: 7; y₂: 10 | The distance between the two points is 10. |
| x₁: 0; y₁: 0; x₂: 3; y₂: 4 | The distance between the two points is 5. |
| x₁: -2; y₁: 3; x₂: 5; y₂: -1 | The distance between the two points is 8.062258. |
How to use it
The distance between (x₁, y₁) and (x₂, y₂) is d = √((x₂ − x₁)² + (y₂ − y₁)²). It is the Pythagorean theorem applied to the horizontal and vertical differences.
The calculator also gives the midpoint of the segment and the two differences used.
Frequently asked questions
What is the distance between (1, 2) and (7, 10)?
√(6² + 8²) = √100 = 10.
How is the distance formula related to the Pythagorean theorem?
The horizontal and vertical differences are the legs of a right triangle and the distance is the hypotenuse.
Does the order of the points matter?
No; the differences are squared.
Method: standard arithmetic shown step by step; no outside data is used. Checked 2026-11-12.
About · How we verify this · Editorial policy · Corrections
General information only. Results are plain arithmetic on the numbers you enter; check anything important (money, health, school work) against your own records or the official source.