Midpoint Calculator
This calculator finds the point halfway between two coordinates in a plane or in three-dimensional space. It averages corresponding coordinates, reports the midpoint as an ordered tuple, and accepts negative or decimal coordinates as long as all active values share one consistent coordinate system.
By Dr. Hassan Khames EliwaLast updated
Result
- Midpoint x
- 5
- Midpoint y
- 7
How it works
Average one axis at a time
For endpoints A = (x₁, y₁) and B = (x₂, y₂), the midpoint is M = ((x₁+x₂)/2, (y₁+y₂)/2). In three dimensions, add the coordinate (z₁+z₂)/2. Each axis is handled independently. No trigonometric angle, slope, or distance is needed to locate the halfway point along a straight segment.
An equivalent vector statement is M = A + 0.5(B−A). That expression shows why the answer lies on the segment, not merely somewhere halfway across its bounding rectangle. Moving from A toward B by half the displacement reaches the same position as moving from B toward A by half the reverse displacement.
Select dimensions before entering coordinates
Choose 2D for a drawing plane and 3D for spatial coordinates with a height or depth axis. The z inputs are only used in 3D mode. Old hidden z values therefore cannot change a 2D result, even if they contain invalid text. Every active coordinate must be finite and no greater than one trillion in absolute magnitude.
The implementation calculates each average as first/2 + second/2. This avoids forming an unnecessarily large intermediate sum. Results display up to six decimal places, so extremely small offsets can round away visually. Keep the original coordinate precision when transferring the result into a drawing or another calculation.
Coordinate systems are part of the input
Both endpoints must use the same origin, axis orientation, units, and coordinate reference system. Mixing a point measured in meters with one measured in feet does not produce a meaningful midpoint. Neither does mixing local drawing coordinates with geographic latitude and longitude. This tool assumes straight Cartesian geometry, not a route over a curved Earth or a midpoint along a winding road.
Use the distance calculator to check the resulting segment lengths. The distance from A to M should equal the distance from M to B, apart from display rounding. Equal distances alone do not uniquely define the midpoint; the point must also lie on the original segment.
Worked example
Scenario 1: a drawing-plane segment
Let A = (2, 4) and B = (8, 10). Select 2D and enter these four values. The x average is 2/2 + 8/2 = 5, and the y average is 4/2 + 10/2 = 7. The reported midpoint is (5, 7), with individual x and y outputs of 5 and 7. The displacement from either endpoint to the midpoint is three units along each axis in opposite directions.
Scenario 2: a spatial connector
Keep the same x and y values, select 3D, and assign z₁ = −2 and z₂ = 6. The z midpoint is −2/2 + 6/2 = 2. The output becomes (5, 7, 2), with coordinate results 5, 7, and 2. Both halves of the original displacement are (3, 3, 4) in magnitude. Negative height at the first endpoint simply means that point lies below the chosen reference plane.
Expert tips
Common mistakes
- Do not use the midpoint as the centroid of an irregular object. It is the halfway location between exactly two points, not the area-weighted center of a polygon or the mass center of a physical part.
- Do not confuse a midpoint with half the distance. Distance is a scalar length, whereas the midpoint is a location expressed relative to an origin and axis system.
- Do not average latitude and longitude for long journeys or dateline crossings. Geographic halfway points need a specified Earth model and route definition, neither of which this Cartesian tool supplies.
Frequently asked questions
Can both endpoints be identical?
Yes. Their midpoint is that same point. A segment of zero length still has a well-defined halfway coordinate, unlike formulas that require division by the segment length.
Does endpoint order matter?
No. Addition is commutative, so swapping the first and second endpoint leaves every coordinate average unchanged. This makes reversing endpoint order a useful quick check on copied inputs.
Can coordinates be negative?
Yes. Negative values represent positions on the negative side of an axis relative to the chosen origin. The midpoint formula does not require either endpoint or the result to be positive.
Can I find a point one third along a segment?
Not with this fixed halfway calculator. Use A + t(B−A) with t = one third for that task. The midpoint is specifically the case t = 0.5; arbitrary section ratios require a different input.
Why are there no unit selectors?
The formula is unit-neutral. All coordinates must already use matching units, and the result retains those units. A selector could misleadingly imply conversion between mixed axes or different coordinate reference systems.
Related calculators
Related guides
MathSample size and confidence intervals without the jargonSeparate sample planning from interval estimation, and make the assumptions visible before reporting a margin of error.15 November 2026 · 8 min read
MathStandard deviation without the jargonThe average tells you the centre. Standard deviation helps describe the spread, provided you know what the data represents.14 November 2026 · 7 min read
MathPercentages people get wrong: change, difference and pointsThe denominator determines the answer. Learn to distinguish percentage change, symmetric difference and percentage-point movements.14 November 2026 · 7 min readSources and standards
About the author
Dr. Hassan Khames Eliwa holds a PhD in Construction & Built Environment and has more than 20 years of international project controls experience. He is Director of Eliwa Project Controls Limited in Auckland and founder of PMMilestone.org and PMMilestone.com.
Buy me a coffee