How to Find a Midpoint and an Endpoint

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.

Quick Answer

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.

  1. Average the x-values. Add -3 and 7 to get 4, then halve it. The x-coordinate is 2.
  2. Average the y-values. Add 5 and -1 to get 4, then halve it. The y-coordinate is 2.
  3. Write the pair. The midpoint is M = (2, 2).
Midpoint of A(-3, 5) and B(7, -1) on a grid A coordinate grid drawn to scale. Point A sits at x of negative 3 and y of 5. Point B sits at x of 7 and y of negative 1. A straight segment joins them. The midpoint M at 2, 2 lies exactly halfway along the segment, with dashed guide lines to both axes. A side panel shows the two averages that give M. -4-22468 -2246 A (-3, 5) B (7, -1) M (2, 2) Average each axis x: (-3 + 7) / 2 = 2 y: (5 + -1) / 2 = 2 M = (2, 2) AB is about 11.66 Each half, 5.83
M lands exactly halfway along the segment from A to B.

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.

Finding the endpoint by taking the same step again Three points on a line from left to right. A at 2, 3 and M at 5, negative 1 are known. The step from A to M is plus 3 in x and minus 4 in y. Repeating the same step from M lands on the unknown endpoint B at 8, negative 5. A formula line at the bottom shows B equals 2M minus A. The endpoint is one more equal step past M step (+3, -4) same step again A (2, 3) known M (5, -1) known B (8, -5) to find B = 2M – A = (2(5) – 2, 2(-1) – 3) = (8, -5)
The step from A to M repeats once to reach B.

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 midpoint of a diameter is the circle’s center A circle with a diameter drawn through it. One end of the diameter is A at 7, 1 and the other is B at negative 1, negative 5. The midpoint M at 3, negative 2 sits at the center of the circle. M is 5 units from both A and B. A B M Diameter midpoint = center A = (7, 1), one end B = (-1, -5), other end M = (3, -2), the center M = (A + B) / 2 = (3, -2) M to A = 5 and M to B = 5
The center sits halfway along every diameter.

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.

Midpoint and endpoint cases, with the formula and result for each
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.

Want to test your own points?

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

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-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~ More Posts

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.