The midpoint is the point exactly halfway along the line segment joining two points in the coordinate plane. This calculator returns it as an ordered pair from the two endpoints you enter — useful in geometry, graphics, mapping and any 2D layout problem.
The midpoint formula explained
The midpoint is found by averaging the x-coordinates and averaging the y-coordinates of the two endpoints:
midpoint = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
The logic behind this is straightforward: the average of two numbers is always exactly halfway between them. Since the x and y axes are independent, averaging each coordinate independently gives the point that is halfway in both dimensions simultaneously.
Because averaging is symmetric, the order of the points does not matter — swapping A and B gives the same midpoint. The formula also works unchanged for negative and decimal coordinates.
Worked examples
Example 1 — first quadrant: Points (2, 4) and (6, 10):
- x = (2 + 6) ÷ 2 = 4
- y = (4 + 10) ÷ 2 = 7
- Midpoint: (4, 7)
Example 2 — points spanning quadrants: Points (-4, 1) and (6, -3):
- x = (-4 + 6) ÷ 2 = 1
- y = (1 + -3) ÷ 2 = -1
- Midpoint: (1, -1)
Example 3 — symmetric around origin: Points (-5, 3) and (5, -3):
- x = (-5 + 5) ÷ 2 = 0
- y = (3 + -3) ÷ 2 = 0
- Midpoint: (0, 0) — the origin
| Point A | Point B | Midpoint |
|---|---|---|
| (2, 4) | (6, 10) | (4, 7) |
| (0, 0) | (8, 0) | (4, 0) |
| (-3, 5) | (3, -5) | (0, 0) |
| (-4, 1) | (6, -3) | (1, -1) |
Where you would actually use this
Geometry proofs. Finding the midpoint of a side to construct a median, bisector, or midsegment. The midsegment of a triangle connects midpoints of two sides and is parallel to the third side with half its length.
Computer graphics. Algorithms like Bézier curve construction and recursive subdivision use midpoints heavily. The midpoint circle algorithm draws circles without trigonometry by stepping pixel-by-pixel using midpoints.
Mapping and GIS. Finding the geographic center between two coordinates — for example, the midpoint of a road segment or the center of a bounding box — uses the same averaging formula applied to longitude and latitude values.
Data layout. Centering a label between two anchors, or finding the midpoint of a range to place a tick mark on a number line.
Relationship to other geometry tools
The midpoint lies on the perpendicular bisector of the segment — the line perpendicular to the segment that passes through the midpoint. If you also need the distance between the endpoints, use the distance formula (the Pythagorean theorem applied to the coordinate differences) alongside this midpoint result.
All calculations run in your browser — no data is uploaded.