The midpoint and distance between two points, in 2D or 3D, worked in exact fractions: the midpoint is the coordinate-by-coordinate average, and the distance comes out as a simplified radical (4√(5), not just 8.944) next to its decimal, with the points plotted. Two companion modes complete the family: recover a missing endpoint when you have one endpoint and the midpoint, and a number-line mode for the midpoint and distance between two plain values.
Coordinates and values may be whole numbers, decimals or fractions, and may be negative. All coordinates must share one unit for a distance to mean anything; the tool does the geometry, not the unit conversion.
How to use this calculator
- Two points: pick 2D or 3D, enter both points, and read the midpoint, the exact and decimal distance, and the plot. Optionally fill the ratio fields to also get the point that splits the segment in that ratio.
- Find the other endpoint: enter the endpoint you have and the midpoint; the missing endpoint is the reflection of yours through the midpoint.
- Number line: enter two plain values for their average (their midpoint) and the gap between them (their distance), the same two ideas in one dimension.
The method
The midpoint averages each coordinate separately, which is why it is computed here in exact fractions: (2, 3) and (6, 11) meet at exactly (4, 7), and a midpoint like (5/2, 4) prints as the fraction 5/2 with its decimal, never as a rounded 2.5 pretending to be exact. The distance is Pythagoras in however many dimensions are active: square each coordinate difference, add, and take the root. When the differences are whole numbers the root is simplified as a radical, pulling out the largest square factor (80 = 16 × 5, so √80 = 4√(5)), which is the exact answer a decimal can only approximate.
The endpoint reversal
Since the midpoint is the average, endpoint = 2M − E per coordinate: double the midpoint and subtract the known endpoint. It is the same formula read backwards, and it is exact here for the same reason.
Splitting in a ratio
The point dividing P₁P₂ in the ratio p : q, measured from P₁, is ((q·P₁ + p·P₂) / (p + q)) per coordinate: the weights cross, because the point sits p/(p+q) of the way along. The midpoint is the special case p = q = 1, which is a useful check on any ratio answer.
Worked examples
Example 1: the preloaded points
(2, 3) and (6, 11): midpoint (4, 7); differences (4, 8), so distance = √(16 + 64) = √80 = 4√(5) ≈ 8.94427.
Example 2: a 3D pair
(1, 2, 3) and (4, 6, 3): differences (3, 4, 0), distance = √(9 + 16) = 5 exactly, midpoint (5/2, 4, 3). A zero difference in one axis is fine; the geometry just flattens in that direction.
Example 3: the endpoint recovered
Endpoint (2, 3) with midpoint (4, 7): the other endpoint is (2·4 − 2, 2·7 − 3) = (6, 11), Example 1 read backwards, as it must be.
Example 4: the preloaded number line
−4 and 10: midpoint 3, distance 14. Negative values are ordinary positions here; distance is the size of the gap, so it comes out positive.
Example 5: a ratio split
(0, 0) to (10, 0) split 1 : 4: the point is 1/5 of the way along, (2, 0). Split 1 : 1 instead and the same formula returns the midpoint (5, 0), the built-in sanity check.
Example 6: the same point twice
(5, 5) and (5, 5): distance 0 and midpoint (5, 5). Not an error: a segment of no length has a perfectly good middle, itself.
Reading your results
The radical is the exact distance. 4√(5) is the answer; 8.94427 is its reading. Quote the radical in exact work and the decimal in measured work, and keep as many decimals as your input precision justifies, no more.
The midpoint has the segment’s units and meaning. For a journey it is the halfway location coordinate-wise, which on a map is the point halfway along the straight line, not halfway along a road. For data values on the number line it is the ordinary average, with the same strengths and blindnesses averages have.
Distance is unsigned. It does not say which point is “ahead”; direction lives in the differences (Δx, Δy), which the steps show signed so the geometry can be reconstructed.
Common mistakes
- Averaging the points as wholes. There is no single average of two points; each coordinate averages separately. (2, 3) and (6, 11) meet at (4, 7), not at any single number.
- Forgetting the root, or rooting too early. The distance is the root of the sum of squares, not the sum and not √(Δx) + √(Δy). √80 ≈ 8.94, whereas the unsquared shortcuts give 12 and about 7.24, both wrong.
- Quoting √80 as the simplified answer. 80 hides a square factor: √80 = 4√(5). Unsimplified radicals are unfinished answers in exact work, which is why the tool simplifies them.
- Endpoint arithmetic in the wrong order. Other endpoint = 2M − E, not M − 2E and not E − M. Doubling the midpoint first is the step people skip; Example 3 verifies the order by landing back on Example 1.
- Ratio weights uncrossed. In the section formula the weights cross: the point p : q from P₁ leans on P₂ with weight p. Writing them straight swaps the split (1 : 4 becomes 4 : 1) and moves the point to the wrong end’s neighbourhood.
- Mixing units across coordinates. A distance from x in metres and y in kilometres is a number without a meaning. Convert first; the tool assumes one shared unit.
Limitations
- Straight-line (Euclidean) distance only: not road distance, not Manhattan/grid distance, and not distance along a curve. The midpoint is likewise the straight segment’s middle.
- Two points per calculation, in 2D or 3D, plus the one-dimensional pair. Distances between many points are pairwise work.
- The 3D diagram is a labelled schematic projection, not a rotatable model; positions in it are illustrative while all reported numbers are computed in full 3D.
- Coordinates are exact as typed; measured coordinates carry their measurement error into the distance, amplified when the points are close relative to that error.
- Ratio parts must both be positive; a split at an external point (a negative ratio part) is a different construction and is refused with the reason stated.
Frequently asked questions
Why is the distance also shown as a radical?
Because √80 is not finished mathematics: it simplifies to 4√(5), which is exact, while 8.94427 is a reading rounded at the sixth figure. Exact work (geometry, algebra) wants the radical; measured work wants the decimal. Showing both keeps each audience honest.
Is the number-line midpoint just an average?
Yes, exactly: the midpoint of a and b is (a + b)/2, and the distance is |a − b|. The point versions are the same ideas applied coordinate by coordinate, which is why one page covers both: a point is several number lines read together.
Can the midpoint have fraction coordinates even when both points are whole?
Yes: (1, 2, 3) and (4, 6, 3) meet at (5/2, 4, 3). Averaging two integers gives a half whenever their sum is odd. The tool prints the fraction and its decimal so the exactness is visible rather than hidden in a rounded display.
How do I find an endpoint if I only have the midpoint and the other endpoint?
Use the endpoint mode: the missing endpoint is 2M − E per coordinate. Geometrically it is your endpoint reflected through the midpoint, the same distance again on the far side, which the results verify by reporting the endpoint-to-midpoint distance.
What does splitting a segment in a ratio mean?
The point that lies p/(p + q) of the way from the first point to the second. Ratio 1 : 4 puts it a fifth of the way along, nearer the first point; 1 : 1 is the midpoint. It is how sectioning works in geometry and how a partial journey’s location is pinned down.
Why does the 3D plot look flat?
Because a screen is flat. The 3D diagram is a schematic projection (z drawn diagonally) so the configuration can be seen, and it is labelled as such; every reported number is computed from the full three coordinates, not from the projection.
Related calculators
- Math calculators
- Slope Calculator: the direction of the same segment whose length and middle live here.
- Coordinate Transformation Calculator: moving and rotating the points themselves.
- Graphing Calculator: the points in their wider picture, with the line through them.
Method: coordinates are kept as exact fractions as typed. The midpoint averages each coordinate; the distance is the square root of the sum of squared differences, simplified as a radical by extracting the largest square factor of the radicand (with a decimal alongside). The missing endpoint is 2M − E per coordinate, and the ratio point uses the section formula with crossed weights. Last reviewed: 21 October 2026.
Disclaimer: This calculator gives estimates for general information only. It is not financial, medical or other professional advice.
