Midpoint Calculator Formula
Understand the math behind the midpoint calculator. Each variable explained with a worked example.
Formulas Used
Midpoint X
midpoint_x = (x1 + x2) / 2Midpoint Y
midpoint_y = (y1 + y2) / 2Distance
distance = sqrt((x2 - x1)^2 + (y2 - y1)^2)Variables
| Variable | Description | Default |
|---|---|---|
x1 | x₁ | 2 |
y1 | y₁ | 3 |
x2 | x₂ | 8 |
y2 | y₂ | 7 |
How It Works
How to Find the Midpoint
Formula
Midpoint = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
The midpoint is found by averaging the x-coordinates and averaging the y-coordinates of the two points.
Worked Example
Find the midpoint between (2, 3) and (8, 7).
x1 = 2y1 = 3x2 = 8y2 = 7
- 01Midpoint x = (2 + 8) / 2 = 10 / 2 = 5
- 02Midpoint y = (3 + 7) / 2 = 10 / 2 = 5
- 03Midpoint = (5, 5)
Ready to run the numbers?
Open Midpoint Calculator