Where is the exact halfway spot between two points on a graph? You only need one addition and one halving for each coordinate. Run the same idea backward, and you can recover a missing endpoint too.
To find a midpoint, average each pair of coordinates: add the two x-values and halve, then do the same for y. To find a missing endpoint, double the midpoint and subtract the known endpoint, coordinate by coordinate. For A(-3, 5) and B(7, -1), the midpoint is (2, 2).
The Midpoint Formula in Plain Words
The midpoint is the point exactly halfway along a line segment. It sits the same distance from both endpoints, and it splits the segment into two equal parts. Mathematicians say it bisects the segment.
To find it, handle each coordinate on its own. Add the two x-values and divide by 2, then add the two y-values and divide by 2. For points (x1, y1) and (x2, y2), the midpoint is ((x1 + x2) / 2, (y1 + y2) / 2).
This is just an average, repeated for each direction. The same rule works in any number of dimensions, because each midpoint coordinate is the average of the two matching coordinates. You can check your own points with our midpoint calculator, which handles 2D and 3D.
People use midpoints to find the center of a segment, split a distance into two equal halves, or pick a fair meeting spot between two positions. Each of those jobs rests on the same average.
A Worked Midpoint Example With Negative Numbers
Take A(-3, 5) and B(7, -1). The x-values are -3 and 7, and the y-values are 5 and -1. Here is the full process.
- Average the x-values. Add -3 and 7 to get 4, then halve it. The x-coordinate is 2.
- Average the y-values. Add 5 and -1 to get 4, then halve it. The y-coordinate is 2.
- Write the pair. The midpoint is M = (2, 2).
Watch the signs. Here -3 + 7 equals 4, not 10. For a quick check, the whole segment has length √(102 + 62) = √136, about 11.66, so each half should be about 5.83. That distance rule, the square root of the sum of the squared differences, comes from Euclidean distance.
The same two points also give a slope of -6/10, or -0.6. Our guide to slope and distance between two points covers that side. A line through M with slope 5/3 is perpendicular to AB, and it becomes y = (5/3)x – 4/3; see how to find the slope-intercept form.
Finding an Endpoint When You Know the Midpoint
Sometimes you know one end and the middle, and you need the other end. The answer is the midpoint formula solved for the unknown. If M = (A + B) / 2, then B = 2M – A, one coordinate at a time.
In words, double the midpoint, then subtract the known endpoint. Another way to see it: M is one step from A, so take the same step again from M.
Try A(2, 3) with M(5, -1). For x, 2(5) – 2 = 8. For y, 2(-1) – 3 = -5. So B = (8, -5).
Work x and y as two separate small problems. That keeps the signs clear and stops a slip in one coordinate from spreading to the other.
Check it by midpoint: (2 + 8) / 2 = 5 and (3 + -5) / 2 = -1, which gives M back. The whole segment AB measures √(62 + 82) = 10. The endpoint calculator reports that full A-to-B length, not half of it.
Circle Diameters and the Center
A circle is a neat place to use both formulas. The midpoint of any diameter is the center of the circle. So a diameter gives you the center, and a center plus one end gives you the other end.
Say one end of a diameter is A(7, 1) and the center is M(3, -2). Then B = 2M – A = (6 – 7, -4 – 1) = (-1, -5).
The check works out. From M to A the steps are 4 and 3, so the distance is 5. From M to B the steps are -4 and -3, so the distance is also 5.
This helps whenever a drawing shows the center and only one point on the edge. Take the same step from the center in the opposite direction, and the opposite edge point appears.
Three Dimensions and a Quick Reference Table
Add a z-coordinate and nothing else changes. Average the z-values for a midpoint, or use 2zM – zA for an endpoint. Decimals work the same way: A(1.5, -2.25) and B(4.5, 3.75) give M(3, 0.75).
For A(-5, 2, 3) and B(3, 4, -1), the midpoint is (-1, 3, 1), and the segment length is √84, about 9.165. The table collects six cases side by side, so you can match your own problem to the closest row and copy its method.
| Given | Find | Formula | Result |
|---|---|---|---|
| A(-3, 5), B(7, -1) | Midpoint | Average each pair | (2, 2) |
| A(1.5, -2.25), B(4.5, 3.75) | Midpoint | Average each pair | (3, 0.75) |
| A(2, 3), M(5, -1) | Endpoint B | 2M – A | (8, -5) |
| Diameter end A(7, 1), center M(3, -2) | Other end B | 2M – A | (-1, -5) |
| A(-5, 2, 3), B(3, 4, -1) | Midpoint in 3D | Average x, y and z | (-1, 3, 1) |
| A(1, 2, 3), M(4, 0, 5) | Endpoint B in 3D | 2M – A for x, y and z | (7, -2, 7) |
Common Mistakes and Quick Checks
Most errors come from small slips, not from the formulas. Scan this list before you trust an answer. A slow, careful second pass catches most of them.
- Halving only one coordinate. Every coordinate gets averaged, including z in 3D.
- Dropping a negative sign. Compute -3 + 7 as 4, not 10.
- Using M – A for the endpoint. That gives only the step. You need 2M – A.
- Doubling M but not subtracting A. Both parts of 2M – A are required.
- Mixing up the known points. Decide first which point is A, which is M, and which is unknown.
- Swapping x and y. Keep each pair in order.
- Reporting half the length. The endpoint tool gives the whole A-to-B length.
The best check is to run the answer backward. The midpoint of A and your new B must equal M. When you want the line through the two points, linear equations explained shows how to write it.
Use the midpoint calculator when you know both ends, or the endpoint calculator when you know one end and the middle.
FAQs About Midpoints and Endpoints
What is the midpoint formula?
Add the two x-values and halve the sum, then add the two y-values and halve that sum. For points (x1, y1) and (x2, y2), the midpoint is ((x1 + x2)/2, (y1 + y2)/2).
How do you find an endpoint from the midpoint?
Double the midpoint and subtract the known endpoint, one coordinate at a time. In symbols, B = 2M – A. For A(2, 3) and M(5, -1), the missing endpoint B is (8, -5).
Does the midpoint formula work in three dimensions?
Yes. Average the z-values the same way you average x and y. For A(-5, 2, 3) and B(3, 4, -1), the midpoint is (-1, 3, 1). The idea works in any number of dimensions.
Does the order of the two points change the midpoint?
No. Addition does not care about order, so the midpoint of A and B equals the midpoint of B and A. Just keep each x paired with an x and each y with a y.
What is the midpoint of a circle’s diameter?
It is the center of the circle. So if you know one end of a diameter and the center, you can find the other end with B = 2M – A.
Why is my endpoint wrong when I use M – A?
M – A gives only the step from A to the midpoint. You must take that step again from M. That equals M + (M – A), which simplifies to 2M – A.
Is the midpoint always on the segment?
Yes. The midpoint is the middle point of the line segment, so it sits between the two endpoints. It is the same distance from each end and splits the segment into two equal parts.
Sources and Further Reading
References Used in This Article
- Wikipedia, Midpoint, accessed 2026-10-15.
- Wikipedia, Euclidean distance, accessed 2026-10-15.
- Wikipedia, Circle (diameter and centre), accessed 2026-10-15.
This article is a general geometry guide. Check the coordinate rules your class or software uses before relying on a result. Reviewed for accuracy by Prof. Dr. Khalil Mudassar, PhD. Last updated 2026-10-15.
Author
Shakeel is the Founder and Editor-in-Chief of MultiCalculators.com, with over 15 years of experience in digital publishing and online tool development. He oversees editorial quality, formula accuracy, and usability to ensure the platform delivers reliable, practical calculators for users worldwide.




