Midpoint Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the coordinates of the two endpoints. The midpoint is the point halfway between them, found by averaging the x-coordinates and the y-coordinates.
Result
Midpoint M
Midpoint x = (x₁ + x₂) ÷ 2
- Midpoint y = (y₁ + y₂) ÷ 2
- Segment length (same units as the coordinates)
- Distance from M to each endpoint (same units)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- First point x₁: enter a number.
- First point y₁: enter a number.
- Second point x₂: enter a number.
- Second point y₂: enter a number.
- Read the result: Midpoint M; the panel also shows Midpoint x = (x₁ + x₂) ÷ 2, Midpoint y = (y₁ + y₂) ÷ 2, Segment length (same units as the coordinates) and Distance from M to each endpoint (same units).
How this calculator works
Midpoint formula: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Each coordinate of the midpoint is the average of the endpoints' coordinates.
Segment length, from the distance formula (Pythagorean theorem): d = √((x₂ − x₁)² + (y₂ − y₁)²). The midpoint sits at d ÷ 2 from each endpoint.
Results are shown with up to 4 decimal places.
Worked example
| First point x₁ | 2 |
|---|---|
| First point y₁ | 3 |
| Second point x₂ | 8 |
| Second point y₂ | -5 |
| Midpoint M | (5, -1) |
|---|---|
| Midpoint x = (x₁ + x₂) ÷ 2 | 5 |
| Midpoint y = (y₁ + y₂) ÷ 2 | -1 |
| Segment length (same units as the coordinates) | 10 |
| Distance from M to each endpoint (same units) | 5 |
Frequently asked questions
How do I find an endpoint if I know the midpoint?
Reverse the formula: x₂ = 2 × Mx − x₁ and y₂ = 2 × My − y₁.
Does the order of the points matter?
No. Averaging is symmetric, so swapping the two points gives the same midpoint and the same length.
Does it work for points in three dimensions?
The same rule applies: average the z-coordinates too. This calculator handles points in the plane.