Find the straight-line distance between two points in two or three dimensions, exactly when the result is a whole number.
Midpoint Calculator
Find the midpoint of two points exactly, in two or three dimensions.
- Free
- No sign-up
- Runs in your browser
Input
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
Leave blank for a 2D calculation.
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
A whole number, a decimal, or a fraction such as 3/4. Arithmetic is exact, so fractions stay exact.
Leave blank for a 2D calculation.
Ready
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Enter both points. The midpoint is the average of the coordinates, so it is always exact.
Questions about Midpoint Calculator
Why is the midpoint always exact when the distance often is not?
Because it is an average - one addition and one halving - and no square root is involved. The distance needs a root of the sum of squares, which is usually irrational. So (0,0) to (3,5) has midpoint exactly (1.5, 2.5) but a distance of 5.830951894...
Why does this say the answer is exact?
Because it is. The arithmetic runs on exact fractions over arbitrary-precision integers, not floating-point numbers, so 1/3 + 1/3 + 1/3 is exactly 1 rather than 0.9999999999999999, and there is no rounding anywhere in the calculation. Where a result genuinely cannot be written exactly - a square root, a logarithm, anything involving pi - the page says so and gives a stated number of correct digits instead.
Is my data sent anywhere?
No. This runs as JavaScript in your browser tab: there is no network request carrying your numbers, nothing reaches a server log, and it keeps working with your connection off. You can confirm it in the browser’s network panel.
Does the Midpoint Calculator work offline?
Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Midpoint Calculator keeps working with the network switched off and nothing is ever sent to a server.
Is anything I enter into the Midpoint Calculator uploaded or stored?
No. The Midpoint Calculator runs in your browser, so whatever you type or paste never leaves your device — there is no server round-trip, nothing is logged, and there is nothing to delete afterwards.
Related tools
Other tools you might reach for next.
Find the slope of the line through two points, with its equation and angle, reporting a vertical line as vertical rather than as infinity.
Solve a right triangle for the hypotenuse or a missing leg, reported exactly for a Pythagorean triple.
Evaluate an expression with exact fraction arithmetic, trigonometry, logarithms and factorials, reporting whether the result is exact.
Reduce a fraction to lowest terms, with its mixed number and exact decimal form including any repeating block.
Add two fractions exactly, showing the common denominator step and reducing the result.
Subtract one fraction from another exactly, showing the common denominator step.
Multiply two fractions exactly, multiplying across and reducing the result.