Formulas
distance = √((x₂ − x₁)² + (y₂ − y₁)²)
midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2)
The distance formula is the Pythagorean theorem applied to the horizontal and vertical gaps.
| Points | Distance | Midpoint |
|---|---|---|
| (0, 0) – (3, 4) | 5 | (1.5, 2) |
| (1, 2) – (4, 6) | 5 | (2.5, 4) |
| (-2, 3) – (4, -5) | 10 | (1, -1) |
| (0, 0) – (1, 1) | 1.4142 | (0.5, 0.5) |
| (2, 7) – (10, 1) | 10 | (6, 4) |