The Midpoint Formula, Explained with Examples
By Shihab Mia June 20, 2026 7 min read
Quick answer
The midpoint between two points (x1, y1) and (x2, y2) is ( (x1 plus x2) divided by 2 , (y1 plus y2) divided by 2 ). In plain words: average the two x values, average the two y values, and pair those two averages into one point. That point sits exactly halfway along the straight line segment joining the originals.
The midpoint formula is one of the first tools you meet in coordinate geometry, and it stays useful long after the exam is over. It bisects line segments, finds the centre of a circle from the endpoints of a diameter, locates the balance point between two locations on a map, and underpins the perpendicular bisector used in constructions. This guide covers the formula, why it works, several worked examples, the common mistakes, and how it extends to three dimensions.
What is the midpoint formula?
The midpoint formula returns the point exactly halfway between two given points by averaging their coordinates separately. For points (x1, y1) and (x2, y2), the midpoint M is ( (x1 plus x2) divided by 2 , (y1 plus y2) divided by 2 ).
Notice that you never mix an x with a y. The x coordinate of the midpoint depends only on the two x values, and the y coordinate depends only on the two y values. That separation is what keeps the formula simple and hard to get wrong once you see the pattern.
Why does the midpoint formula work?
The midpoint is just the average of the two points, and an average always lands in the middle. Averaging the two x coordinates places you halfway across horizontally, and averaging the two y coordinates places you halfway up vertically. Combine those two halfway positions and you get the exact centre of the segment.
Another way to see it: the average of two numbers is the same distance below the larger value as it is above the smaller value. Because that is true for the x values and the y values at the same time, the resulting point is equidistant from both ends along the segment. That equidistance is the defining property of a midpoint.
Picture it on a single number line first. Between 2 and 8, the middle is 5, because 5 is 3 steps from each end. The midpoint formula does that exact halving twice, once along the x axis and once along the y axis, and then stacks the two answers into one coordinate pair. Nothing more sophisticated is happening; it is the one-dimensional idea of a middle value applied to two directions at the same time. This is also why the midpoint always lies on the line segment itself and never off to the side.
How do you find the midpoint, step by step?
Find the midpoint between (2, 3) and (8, 7). Work the two averages independently, then pair them.
- Average the x values: (2 plus 8) divided by 2 equals 10 divided by 2 equals 5.
- Average the y values: (3 plus 7) divided by 2 equals 10 divided by 2 equals 5.
- Pair the results into a single point: (5, 5).
So the midpoint is (5, 5). You can sanity check it: the horizontal gap from 2 to 5 is 3, and from 5 to 8 is also 3; the vertical gap from 3 to 5 is 2, and from 5 to 7 is also 2. Equal on both sides, exactly as a midpoint should be.
More examples, including negatives and fractions
The formula behaves the same with negative numbers, decimals and fractions. The only extra care needed is the arithmetic of adding signed values. The table below shows a range of cases so you can match your own numbers to a pattern.
Midpoints for a range of point pairs
| Point A | Point B | x average | y average | Midpoint |
|---|---|---|---|---|
| (2, 3) | (8, 7) | (2 plus 8) / 2 = 5 | (3 plus 7) / 2 = 5 | (5, 5) |
| (-4, 6) | (2, -2) | (-4 plus 2) / 2 = -1 | (6 plus -2) / 2 = 2 | (-1, 2) |
| (0, 0) | (5, 9) | (0 plus 5) / 2 = 2.5 | (0 plus 9) / 2 = 4.5 | (2.5, 4.5) |
| (-3, -3) | (-9, -1) | (-3 plus -9) / 2 = -6 | (-3 plus -1) / 2 = -2 | (-6, -2) |
When one coordinate is negative, add it as a signed number rather than subtracting. For (-4, 6) and (2, -2), the x average is (-4 plus 2) divided by 2, which is -2 divided by 2, or -1. Treat the minus sign as part of the value, not as an operation, and the result comes out right every time.
The formula also runs in reverse. If you already know the midpoint and one endpoint, you can recover the missing endpoint by doubling the midpoint and subtracting the known point. Say the midpoint is (5, 5) and one endpoint is (2, 3). Double the midpoint to get (10, 10), then subtract the known endpoint coordinate by coordinate: 10 minus 2 is 8, and 10 minus 5 is 5, so the missing endpoint is (8, 7). This reverse step shows up constantly in geometry problems where a segment is bisected and only half the information is given.
Midpoint vs distance formula
They use the same two points but answer different questions: the midpoint formula finds a location halfway between them, while the distance formula finds how far apart they are. One returns a point, the other returns a length.
How the two formulas compare
| Feature | Midpoint formula | Distance formula |
|---|---|---|
| Answers | Where is the middle? | How far apart are they? |
| Output | A point (x, y) | A single number (a length) |
| Operation | Add then divide by 2 | Subtract, square, add, square root |
| Based on | Averaging coordinates | The Pythagorean theorem |
A quick memory aid: midpoint adds, distance subtracts. If you catch yourself subtracting the coordinates while hunting for a midpoint, you have drifted into the distance formula. For the full walkthrough of the other one, see the distance formula explained guide, which builds on the Pythagorean theorem calculator.
Where is the midpoint formula actually used?
Beyond homework, the midpoint formula turns up anywhere you need the exact centre between two known positions. A few concrete places it earns its keep:
- Geometry constructions: the midpoint is the starting point for a perpendicular bisector, and bisecting a segment is one of the most common ruler-and-compass tasks.
- Circles: given the two endpoints of a diameter, the midpoint is the centre of the circle, which you then need for its equation.
- Maps and logistics: to pick a meeting spot halfway between two locations, average their coordinates to get a fair central point.
- Design and layout: centring an object between two anchors, such as placing a label exactly between two pins, is a midpoint calculation.
- Computer graphics: the midpoint of an edge is used when subdividing shapes, smoothing curves, and building levels of detail.
Does the midpoint formula work in 3D?
Yes. In 3D space you simply average a third coordinate as well. The midpoint of (x1, y1, z1) and (x2, y2, z2) is ( (x1 plus x2) / 2 , (y1 plus y2) / 2 , (z1 plus z2) / 2 ). Nothing about the logic changes; there is just one more average to compute. For example, the midpoint of (2, 4, 6) and (8, 0, 2) is (5, 2, 4).
The same idea generalises to any number of dimensions: average each coordinate on its own. This is why the midpoint formula is really a special case of the more general concept of an average, or centroid, of a set of points. The midpoint is the centroid of exactly two points, and a triangle centroid is the same idea applied to three.
Common mistakes to avoid
- Subtracting instead of adding. Subtracting gives the gap between coordinates, which feeds the distance formula, not the midpoint.
- Mixing x with y. Keep the x values together and the y values together; never average an x against a y.
- Forgetting to divide by 2. Adding the coordinates without halving lands you at a point twice as far out, not the middle.
- Sign slips with negatives. Add negative coordinates as signed numbers, for example -4 plus 2 equals -2, not 6.
- Rounding too early. Keep fractions or decimals exact until the final step so the point stays precise.
Enter your two points below and the midpoint calculator returns the halfway point with the working shown, so you can check your own hand calculation against it.
๐ Try the free tool Midpoint Calculator Free midpoint calculator: enter two points (x1,y1) and (x2,y2) to find the midpoint and the distance between them, with the midpoint formula and clear steps.To measure how far apart the two points are instead, use the distance calculator; to find the steepness of the line joining them, try the slope calculator covered in the slope formula explained guide.
Frequently asked questions
What is the midpoint formula?
The midpoint of points (x1, y1) and (x2, y2) is ((x1 plus x2) divided by 2, (y1 plus y2) divided by 2). You average the two x values and average the two y values, then pair them into a single point.
How do you find the midpoint of two points?
Add the two x coordinates and divide by 2 to get the midpoint x, then add the two y coordinates and divide by 2 to get the midpoint y. Combine those two results into one point (x, y).
What is the difference between the midpoint and distance formulas?
The midpoint formula finds the point halfway between two coordinates by averaging them and returns a point. The distance formula finds how far apart they are using the Pythagorean theorem and returns a single length.
How do you find the midpoint with negative coordinates?
Use the same formula but add the coordinates as signed numbers. For (-4, 6) and (2, -2), the x average is (-4 plus 2) divided by 2, which equals -1, and the y average is (6 plus -2) divided by 2, which equals 2, giving (-1, 2).
Is the midpoint formula the same in 3D?
Yes, you just average a third coordinate too. The midpoint of (x1, y1, z1) and (x2, y2, z2) is ((x1 plus x2) / 2, (y1 plus y2) / 2, (z1 plus z2) / 2). The logic is identical, with one extra average.
How do you find a missing endpoint if you know the midpoint?
Rearrange the formula. If M is the midpoint and A is a known endpoint, the other endpoint B has coordinates (2 times Mx minus Ax, 2 times My minus Ay). In words, double the midpoint coordinate and subtract the known endpoint coordinate.
Can the midpoint have decimal or fraction coordinates?
Yes. Whenever the sum of two coordinates is odd, dividing by 2 gives a decimal or fraction, for example (0, 0) and (5, 9) have midpoint (2.5, 4.5). That is a valid, exact answer, not an error.