Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Midpoint M (x, y, z)
( 5, 7, 9 )
midpoint of the line segment in 3D space
Midpoint x 5
Midpoint y 7
Midpoint z 9

What is the 3D Midpoint Calculator?

The 3D Midpoint Calculator finds the exact center point of a straight line segment that connects two points in three-dimensional space. Given a first point \((\text{x}_1, \text{y}_1, \text{z}_1)\) and a second point \((\text{x}_2, \text{y}_2, \text{z}_2)\), it returns the midpoint \(M\) — the single point that lies halfway between them. This is one of the most common operations in coordinate geometry, computer graphics, physics, CAD modeling, and 3D game development.

Two points in 3D space connected by a segment with the midpoint marked at the center
The midpoint \(M\) lies exactly halfway along the segment joining two points in 3D space.

How to use it

Enter the three coordinates of your first point in the top row and the three coordinates of your second point in the bottom row. Coordinates can be positive, negative, whole numbers, or decimals. Click calculate and the tool returns the midpoint as an ordered triple (x, y, z), with each axis value also listed separately for clarity.

The formula explained

The midpoint formula simply averages the two endpoints on every axis independently:

$$M = \left( \frac{\text{x}_1 + \text{x}_2}{2},\ \frac{\text{y}_1 + \text{y}_2}{2},\ \frac{\text{z}_1 + \text{z}_2}{2} \right)$$

Each midpoint coordinate is the mean of the corresponding coordinates of the two points. Because every axis is treated separately, the same idea extends naturally from 2D to 3D (and to any number of dimensions).

Advertisement
Diagram showing the midpoint as the average of each coordinate component
Each midpoint coordinate is the average of the two corresponding coordinates.

Worked example

Suppose \(A = (2, 4, 6)\) and \(B = (8, 10, 12)\). Then:

$$M_x = \frac{2 + 8}{2} = 5$$$$M_y = \frac{4 + 10}{2} = 7$$$$M_z = \frac{6 + 12}{2} = 9$$

So the midpoint is \(M = (5, 7, 9)\), which sits exactly halfway along the line segment from A to B.

FAQ

Can I use negative coordinates? Yes. Negative values work for any axis; the formula averages them the same way.

Does this give the center of mass? For two equal-weight points, the midpoint is the same as the centroid. For more than two points or unequal weights, you would average all coordinates or use a weighted average instead.

Is the midpoint always between the two points? Yes — the midpoint always lies on the segment connecting them, at equal distance from each endpoint.

Last updated: