Midpoint Calculator
Find the point exactly halfway between two coordinates.
Results update as you type.
About this calculator
The midpoint is the point exactly halfway between two coordinates. This calculator returns the midpoint, its separate x and y components, and the distance between the two points, with a plot showing the segment split in half.
The method is to average the two x-values and the two y-values independently: midpoint = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). For (0, 0) and (4, 6), the midpoint is ((0 + 4) / 2, (0 + 6) / 2) = (2, 3). Because averaging is symmetric, the order of the points makes no difference, and negative or decimal coordinates work just as well.
Midpoints are used to bisect a line segment, find the centre of a shape, place a label halfway along a line, or average two positions. If you know the midpoint and one endpoint, the other endpoint is 2 × midpoint − known point.
Frequently asked questions
How do you find the midpoint of two points?
Average the two x-coordinates and the two y-coordinates separately. The midpoint of (0,0) and (4,6) is ((0+4)/2, (0+6)/2) = (2, 3).
Is the midpoint the same as the average?
Yes — the midpoint is just the average of the two points, taken coordinate by coordinate.
What is the midpoint of (0,0) and (4,6)?
Average each coordinate: ((0 + 4)/2, (0 + 6)/2) = (2, 3), the default example this tool shows.
Does it show the distance between the points?
Yes. Along with the midpoint, the calculator gives the length of the segment joining the two points.
Can I find an endpoint from the midpoint?
Yes, with a rearrangement: if M is the midpoint and A is a known endpoint, the other endpoint is 2M − A, applied to each coordinate.
Is the midpoint affected by which point comes first?
No. You average the coordinates, so entering the two points in either order lands on the same midpoint.
API — use this calculator from code
Call this calculator as a free JSON endpoint — no key required. Send the field values below as query parameters or JSON. Read the full API docs →
Endpoint
GET https://calculator.free/api/v1/midpoint/
curl
curl "https://calculator.free/api/v1/midpoint/?x1=0&y1=0&x2=4&y2=6"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/midpoint/?" + new URLSearchParams({
"x1": "0",
"y1": "0",
"x2": "4",
"y2": "6"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.