Midpoint Calculator
The midpoint is the point exactly halfway between two points — average the x-coordinates, average the y-coordinates, and you are there. This calculator finds the midpoint in 2D or 3D and shows the distance between the points too.
Find the exact midpoint between two points in 2D or 3D, and the distance between them — useful for geometry homework, plotting maps, splitting a line segment and checking coordinates.
Result
How It Works
The midpoint of a line segment is the point on the segment exactly halfway between its two ends. Because the halfway point of each coordinate is just the average of the two values, the midpoint formula averages each coordinate separately: in 2D, ((x₁ + x₂)/2, (y₁ + y₂)/2); in 3D, add the z-average (z₁ + z₂)/2. The midpoint is the same distance from both points, and it splits the segment into two equal halves. The steepness of the same segment is its slope.
The distance shown alongside comes from Pythagoras. In 2D, the straight-line distance between (x₁, y₁) and (x₂, y₂) is the hypotenuse of a right triangle with sides (x₂ − x₁) and (y₂ − y₁): distance = √((x₂ − x₁)² + (y₂ − y₁)²). In 3D, the same idea extends with a third term: distance = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²). If the two points are identical, the midpoint is that point itself and the distance is 0.
Worked Examples
2D: the midpoint of (2, 3) and (8, 7) is ((2 + 8)/2, (3 + 7)/2) = (5, 5). The distance is √(6² + 4²) = √52 ≈ 7.2111.
3D: the midpoint of (1, 2, 3) and (5, 6, 7) is ((1 + 5)/2, (2 + 6)/2, (3 + 7)/2) = (3, 4, 5). The distance is √(4² + 4² + 4²) = √48 ≈ 6.9282.
Assumptions
- Coordinates can be any real numbers — positive, negative or decimal. Every coordinate must be filled in; an empty field shows a message instead of a guessed answer.
- Results are shown to 4 decimal places. Midpoints of whole-number coordinates are often exact; distances are usually irrational and are rounded only for display.
- Distance uses the exact Pythagorean formula before rounding, so √52 shows as 7.2111, not 7.21.
- Identical points are handled, not an error: the midpoint is the point itself and the distance is 0.
Last reviewed: 15 November 2026.
Built and tested by SumKitTool — see how we check our numbers.
How to Use This Calculator
Choose 2D or 3D, enter the two points, and the midpoint and distance update live as you type.
- Choose 2D or 3D — 3D adds a z-coordinate for each point.
- Enter both points — x and y (and z) for point 1 and point 2.
- Read the midpoint in the headline, with each coordinate and the distance in the table.
The Reset button restores the worked example ((2, 3) and (8, 7): midpoint (5, 5), distance 7.2111).
Tips and Practical Advice
- The midpoint bisects the segment. If you need the centre of a wall, a fence run or a line on a map, the midpoint is the point to mark.
- Check a midpoint by distance: the midpoint must be the same distance from both ends — half the total distance shown in the table.
- For distance alone, use the Distance Calculator — it covers the same formula with more distance options.
- In 3D, the midpoint is the centre of a room diagonal — the average of opposite corners gives the exact middle of the space.
Frequently Asked Questions
How do you find the midpoint between two points?
Average each coordinate separately: midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2). For (2, 3) and (8, 7) that is ((2 + 8)/2, (3 + 7)/2) = (5, 5). In 3D, average the z-coordinates the same way.
What is the midpoint formula in 3D?
Add the z-coordinate average: ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2). For (1, 2, 3) and (5, 6, 7) the midpoint is (3, 4, 5).
What is the distance between (2, 3) and (8, 7)?
About 7.2111. Distance = √((8 − 2)² + (7 − 3)²) = √(36 + 16) = √52 ≈ 7.2111. This calculator shows the distance alongside every midpoint.
What if the two points are the same?
Then the midpoint is that point itself, and the distance is 0. For example, the midpoint of (4, 4) and (4, 4) is (4, 4) with a distance of 0.
Last updated: