Midpoint Calculator
Calculate the midpoint of the segment joining two points.
Midpoint: (4, 5)
- 1
Sum of x-coordinates
2 + 6 = 8 - 2
Midpoint x
8 ÷ 2 = 4 - 3
Sum of y-coordinates
3 + 7 = 10 - 4
Midpoint y
10 ÷ 2 = 5The same averaging process applied independently to the y-axis.
Formula
How this is calculated
The calculator takes four numbers: the coordinates of two points in a 2D plane, point A as (x₁, y₁) and point B as (x₂, y₂). Each coordinate is treated as a pure real number, so the units are whatever you use consistently for both points (pixels, meters, grid squares) — the calculator does not assume any particular unit and never mixes them.
The midpoint is found by averaging each axis independently. It adds the two x-values and divides by 2 to get the midpoint x, then adds the two y-values and divides by 2 to get the midpoint y. This works because the average of two numbers always lands exactly halfway between them, so the resulting point sits at the center of the straight segment joining A and B and splits it into two equal lengths.
The formula is symmetric: swapping A and B gives the same answer. It handles negative, decimal, and identical coordinates — if both points are the same, the midpoint equals that point. It is purely geometric, ignoring any path, curvature, or distance; it only locates the center of the straight line between the two endpoints.
Examples
| Input | Result |
|---|---|
| (2, 3) and (6, 7) | M = (4, 5) |
About this calculator
The midpoint of a line segment is the point exactly halfway between its two endpoints. To find it, you average the x-coordinates and average the y-coordinates: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). The result is a single coordinate pair that lies on the segment and divides it into two equal halves.
The midpoint formula is essential in geometry for finding centers of segments, the center of a circle from a diameter, or the balance point between two locations. It works for any real coordinates and is symmetric — swapping the two points gives the same midpoint.
Frequently asked questions
Add the two x-coordinates and divide by 2 to get the midpoint x, then do the same with the y-coordinates. The pair (avg x, avg y) is the midpoint.
Yes. The midpoint lies exactly halfway along the straight segment connecting the two points, splitting it into two equal pieces.
Yes. If you know the midpoint and one endpoint, double the midpoint coordinate and subtract the known endpoint coordinate to find the other endpoint.
Also known as
TG we-Calculate Editorial Team. (2026). Midpoint Calculator [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/midpoint-calculator
TG we-Calculate Editorial Team. "Midpoint Calculator." TG we-Calculate. 2026. https://we-calculate.com/calculator/midpoint-calculator.
TG we-Calculate Editorial Team, "Midpoint Calculator," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/midpoint-calculator
@misc{wecalculate_midpoint_calculator, title = {Midpoint Calculator}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/midpoint-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
