Resources · Education
Midpoint Formula
The midpoint formula finds the exact center point between two points on a coordinate plane. It is one of the simplest and most useful formulas in coordinate geometry, showing up everywhere from graphing problems to game programming. The formula is just the average of the two coordinate pairs, applied separately to x and y. For a fast computed answer, the midpoint formula calculator takes the four coordinates and returns the midpoint with a step-by-step breakdown.
6 min read
What is the midpoint formula?
The midpoint formula returns the point that lies exactly halfway along the straight line connecting two given points (x₁, y₁) and (x₂, y₂). It is a coordinate pair, not a single number, because the midpoint has both an x and a y component.
The midpoint is the geometric center of the segment. Both original points are the same distance from it, in opposite directions. If you drew the two points on a graph and connected them with a straight line, the midpoint would land exactly at the middle of that line.
When do you use the midpoint formula?
Use the midpoint formula whenever you have two points expressed as coordinates and want to know what point sits exactly between them. Common situations:
- School geometry problems involving coordinate planes.
- Finding the center of a line segment for a graph or geometric proof.
- Game programming: spawning an object at the center of two characters.
- Computer graphics: subdivision and interpolation between two points.
- Engineering or physics: averaging two coordinate readings.
If your two points happen to lie on the same horizontal or vertical line, you do not strictly need the formula. Just average the differing coordinate. But the formula handles those cases correctly too, so there is no harm in always using it.
The midpoint formula
The formula is one of the simplest in coordinate geometry. It just averages each coordinate axis separately.
The midpoint formula
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
The parts
- x midpoint = (x₁ + x₂) / 2
- y midpoint = (y₁ + y₂) / 2
- Midpoint = (x midpoint, y midpoint)
The formula spells out a simple recipe: average the x-coordinates, average the y-coordinates, and write the answer as an ordered pair. There is no Pythagorean theorem or square root involved, which is why the midpoint formula is much simpler than the distance formula.
What x₁, y₁, x₂, and y₂ mean
The coordinates label the two points:
- x₁ and y₁ are the coordinates of the first point.
- x₂ and y₂ are the coordinates of the second point.
- (x₁, y₁) reads as “x sub 1, y sub 1.” The subscript just labels which point this is.
The numbering is purely a label. You can call either point “point 1” and the other “point 2,” and the midpoint formula gives the same answer either way. Adding x₁ + x₂ (or y₁ + y₂) is symmetric: order does not matter for addition.
Why the midpoint formula works
The midpoint formula is just the average applied separately to each coordinate axis. To find the center of a segment, you find the average of the two endpoints in each direction.
Picture the segment from point 1 to point 2. The horizontal extent runs from x₁ to x₂. The exact middle of that range, the value halfway between them, is the average (x₁ + x₂) / 2. The same logic applies to the vertical extent: the y of the midpoint is (y₁ + y₂) / 2.
That is one-dimensional averaging applied twice: once to x and once to y. Combined into an ordered pair, it gives the geometric center of the segment.
Step by step midpoint formula example
Take the points (2, 4) and (8, 10).
- Identify the coordinates: x₁ = 2, y₁ = 4, x₂ = 8, y₂ = 10.
- Add the x coordinates: 2 + 8 = 10.
- Divide by 2 for the x of the midpoint: 10 / 2 = 5.
- Add the y coordinates: 4 + 10 = 14.
- Divide by 2 for the y of the midpoint: 14 / 2 = 7.
- Write the midpoint as an ordered pair: M = (5, 7).
The midpoint is (5, 7).
Example 1: Midpoint between two positive points
Take the points (0, 0) and (10, 10).
- x midpoint = (0 + 10) / 2 = 5
- y midpoint = (0 + 10) / 2 = 5
- M = (5, 5)
The midpoint is (5, 5), which makes sense: it is the center of the line from the origin to (10, 10).
Example 2: Midpoint with negative coordinates
Take the points (−4, 6) and (2, −2).
- x midpoint = (−4 + 2) / 2 = −2 / 2 = −1
- y midpoint = (6 + (−2)) / 2 = 4 / 2 = 2
- M = (−1, 2)
The midpoint is (−1, 2). The formula handles negative coordinates the same way as positive ones. Just be careful with the addition when negatives are involved.
Example 3: Midpoint with decimals
Take the points (1.5, 2.5) and (4.5, 6.5).
- x midpoint = (1.5 + 4.5) / 2 = 6 / 2 = 3
- y midpoint = (2.5 + 6.5) / 2 = 9 / 2 = 4.5
- M = (3, 4.5)
Decimal coordinates work fine. The midpoint can also have decimals; there is no requirement that it land on a clean integer.
Midpoint formula vs distance formula
Both formulas take the same inputs (two points), but answer different questions:
- The midpoint formula gives the center point of the segment between them: an ordered pair (x, y).
- The distance formula gives the length of the segment between them: a single number.
The two formulas use the same coordinates but combine them differently:
- Midpoint: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
- Distance: d = √((x₂ − x₁)² + (y₂ − y₁)²)
Use whichever matches what you need. For more on the distance formula, see the Distance Formula guide for the article or the distance formula calculator for the tool.
Common midpoint formula mistakes
A few traps that catch people:
- Subtracting instead of adding. The midpoint formula adds the coordinates, then divides by 2. Subtracting (which is the first step of the distance formula) gives a different answer.
- Forgetting to divide by 2. Adding the coordinates without dividing gives the sum, not the midpoint.
- Mixing up x and y. Average x with x and y with y. Do not cross-mix.
- Sign errors with negative coordinates. (−4 + 2) / 2 = −1, not −3 or 3. Add carefully.
- Writing the midpoint as a single number. The midpoint is an ordered pair (x, y), not a scalar. If the answer is just one number, something went wrong.
Midpoint formula calculator vs solving by hand
Solving by hand:
- Quick once you know the formula.
- Useful for understanding what the midpoint represents.
- Easy to slip on signs with negative coordinates.
Using a calculator:
- Fast: enter the four coordinates and read the answer.
- Handles negatives and decimals cleanly.
- Reports the breakdown (x midpoint, y midpoint) so you can see how the answer was constructed.
For the calculator approach, the midpoint formula calculator does the math in one step and shows the step-by-step breakdown using your actual numbers.
Quick summary
- Formula: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
- Average the x-coordinates for the x of the midpoint.
- Average the y-coordinates for the y of the midpoint.
- Write the result as an ordered pair (x, y).
- The midpoint can have decimals; the inputs can be negative.
- Midpoint gives the center point of the segment; the distance formula gives its length.
- The midpoint formula calculator runs the math in one step.
Run the numbers
Three Education math calculators that pair naturally: the midpoint formula for the center, the distance formula for the length, and the Pythagorean theorem that underlies both.
Midpoint Formula Calculator
Find the midpoint between two points with a step-by-step breakdown of the x and y averages.
Distance Formula Calculator
Find the distance between two points, with exact radical form when the answer is not a clean integer.
Pythagorean Theorem Calculator
Solve right triangles for the missing side using a² + b² = c².
Frequently asked questions
The midpoint formula is M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). It returns the point exactly halfway between two points (x₁, y₁) and (x₂, y₂) on a 2D coordinate plane. The midpoint is the average of the two x-coordinates paired with the average of the two y-coordinates.
Add the two x-coordinates and divide by 2. That gives you the x of the midpoint. Add the two y-coordinates and divide by 2. That gives you the y. Write the result as an ordered pair (x, y).
The midpoint is the single point that lies exactly halfway along the straight line connecting the two original points. It is the geometric center of the segment. Both endpoints are the same distance from the midpoint, in opposite directions.
Yes. If the two coordinates do not add to even numbers, the midpoint coordinates will include decimals. For example, the midpoint of (1, 2) and (4, 5) is (2.5, 3.5). That is normal and expected.
Yes. Negative coordinates are fine on either or both points. The formula adds the two coordinates regardless of sign and divides by 2. For example, the midpoint of (−4, 6) and (2, −2) is (−1, 2).
No. The midpoint is a coordinate pair (the center point of the segment). The distance is a single number (the length of the segment). They use the same input points but answer different questions.
The midpoint formula returns a point: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). The distance formula returns a length: d = √((x₂ − x₁)² + (y₂ − y₁)²). One gives a position, the other gives a magnitude. Both use the same two input points.
Yes. The midpoint formula calculator on this site takes the four coordinates, computes the midpoint in one step, and reports the breakdown (x midpoint and y midpoint separately) so you can see how the answer was built.