The midpoint of a segment is the point exactly halfway between its two endpoints. In coordinates it is simply the average of the endpoints: add the -coordinates and halve, then do the same for (and in space). This calculator gives the midpoint of and in 2D or 3D, with exact fractions like when the answer is not a whole number.
It also solves the two questions that usually follow in class. Missing endpoint: you know one end and the midpoint , and you need the other end . Section formula: you need the point that splits in a given ratio — one third of the way, three quarters of the way, or even outside the segment (external division). Each answer comes with the length of the segment and the working, coordinate by coordinate.
To measure the segment itself, use the distance between two points calculator; for its direction and equation, see the slope calculator.
How to use this calculator
- Choose what to find: Midpoint, Missing endpoint or Ratio m : n.
- Pick 2D or 3D.
- Enter point , then point (midpoint and ratio modes) or the midpoint (endpoint mode).
- In ratio mode, enter and so that , and choose internal or external division.
- Read the point. Fractions appear in the exact line, and the steps show the calculation for each coordinate.
The formula
For and , the midpoint averages each coordinate:
In 3D, add . Solving this for gives the missing endpoint:
The section formula generalises the midpoint. The point on with is
Note the crossing: , the part next to , multiplies 's coordinates. With you get the midpoint again. For external division (P outside the segment, on line ), replace by and by .
Worked example
Midpoint of and : $\left(\frac{-1 + 5}{2}, \frac{4 + (-3)}{2}\right) = $ (2, 0.5), or exactly (2, 1/2).
Missing endpoint: one end is and the midpoint is . Then $B = (2 \times 4 - 1, 2 \times 3 - (-2)) = $ (7, 8). Check: the average of and is .
Ratio 1 : 2 from to : $P = \left(\frac{2 \times 1 + 1 \times 10}{3}, \frac{2 \times 2 + 1 \times 8}{3}\right) = $ (4, 4), one third of the way from to .
Finding the endpoints of a segment
The endpoint formula says that is halfway, so the step from to is repeated once more to reach . Thinking in steps avoids sign errors: from to you move in and in ; another identical step lands on .
When both endpoints are unknown, one midpoint is not enough — infinitely many segments share it. You need extra information: the length and direction of the segment, a second condition such as " lies on the -axis", or the fact that the segment is a diameter of a known circle. Each condition becomes an equation you can solve together with and .
Where the midpoint is used
- Parallelograms: a quadrilateral is a parallelogram exactly when its diagonals have the same midpoint.
- Circles: the centre of a circle is the midpoint of any diameter; the radius is half the diameter's length.
- Perpendicular bisector: the line through the midpoint, perpendicular to , is the set of points equidistant from and .
- Triangles: the three medians join each vertex to the midpoint of the opposite side and meet at the centroid, at the ratio from the vertex — a direct use of the section formula.
Frequently asked questions
What is the midpoint formula?
M = ((x₁ + x₂)/2, (y₁ + y₂)/2): average the x-coordinates and average the y-coordinates. For (2, 3) and (8, −5), the midpoint is (5, −1). In 3D, average the z-coordinates too.
How do I find an endpoint if I know the midpoint and the other endpoint?
Double the midpoint and subtract the known endpoint: B = 2M − A, coordinate by coordinate. With A(1, −2) and M(4, 3): B = (8 − 1, 6 + 2) = (7, 8).
What is the section formula?
It gives the point P dividing AB internally in the ratio m : n: P = ((n·x₁ + m·x₂)/(m + n), (n·y₁ + m·y₂)/(m + n)). For example, (4, −3) and (8, 5) split 3 : 1 give P = (7, 3).
Can the midpoint have fractional coordinates?
Yes, whenever the sum of two matching coordinates is odd. The midpoint of (−1, 4) and (5, −3) is (2, 1/2). The calculator shows both the decimal and the exact fraction.
What is the difference between internal and external division?
Internal division places P between A and B. External division places P on the line AB but beyond one end, still with AP : PB = m : n; it needs m ≠ n.
Sources
- OpenStax, College Algebra 2e — §2.1 The Rectangular Coordinate Systems and Graphs (midpoint formula)
- NCERT, Mathematics Class X — Chapter 7 Coordinate Geometry, §7.3 Section Formula
- Weisstein, Midpoint — Wolfram MathWorld
Last updated: