Midpoint Calculator
Calculate the exact center point coordinates $M$ of any line segment in 2D and 3D coordinate space, or back-solve for a missing endpoint when the midpoint and one endpoint are known.
2D Cartesian Line Segment & Midpoint
AM = MB = d/2Step-by-Step Algebraic Midpoint Derivation Formula: M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
How to Find the Midpoint of a Line Segment
To find the midpoint between two points (x₁, y₁) and (x₂, y₂), add their x-coordinates together and divide by 2 to find the middle x-value, then add their y-coordinates together and divide by 2 to find the middle y-value: M = ((x₁ + x₂)/2, (y₁ + y₂)/2). In 3D space, repeat for the z-coordinates: z_m = (z₁ + z₂)/2. If you are given an endpoint A and the midpoint M, solve the missing endpoint B via x₂ = 2x_m - x₁ and y₂ = 2y_m - y₁.
Anatomy of the Midpoint Formula & Arithmetic Mean Concept
The midpoint of a line segment is the point that bisects the segment into two congruent halves of equal length. In geometric terms, if $M$ is the midpoint of segment $\overline{AB}$, then the distance $AM$ equals the distance $MB$, and $AM + MB = AB$.
Algebraically, finding the midpoint is simply taking the arithmetic mean (average) of the coordinates independently along each dimensional axis.
The horizontal average position between endpoints.
The vertical average position between endpoints.
Both half-segments are exactly equal in distance.
The 2D Midpoint Formula in Cartesian Space
For two endpoints $A(x_1, y_1)$ and $B(x_2, y_2)$ in the 2D Cartesian plane $\mathbb{R}^2$:
M = ( (x₁ + x₂) / 2, (y₁ + y₂) / 2 )
Step 1: Sum the x-coordinates ($x_1 + x_2$) and divide by 2.
Step 2: Sum the y-coordinates ($y_1 + y_2$) and divide by 2.
Step 3: Combine both components into coordinate pair $(x_m, y_m)$.
The 3D Spatial Midpoint Formula
In three-dimensional Euclidean space $\mathbb{R}^3$, the midpoint of points $A(x_1, y_1, z_1)$ and $B(x_2, y_2, z_2)$ is:
M = ( (x₁ + x₂) / 2, (y₁ + y₂) / 2, (z₁ + z₂) / 2 )
Finding a Missing Endpoint Given the Midpoint
A common geometry exam question provides endpoint $A(x_1, y_1)$ and midpoint $M(x_m, y_m)$, asking for the opposite endpoint $B(x_2, y_2)$:
Multiply the midpoint's x by 2, then subtract the known point's x.
Multiply the midpoint's y by 2, then subtract the known point's y.
Constructing Perpendicular Bisectors with Midpoints
The perpendicular bisector of a segment $\overline{AB}$ is the line that passes through the midpoint $M$ at a $90^\circ$ right angle.
- Find the Midpoint $M$: $M = \left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}\right)$.
- Find Segment Slope $m$: $m = \frac{y_2 - y_1}{x_2 - x_1}$.
- Determine Perpendicular Slope $m_\perp$: $m_\perp = -\frac{1}{m}$.
- Construct Equation via Point-Slope: $y - y_m = m_\perp(x - x_m)$.
Step-by-Step Worked Examples (Fractions & Negative Coordinates)
Given endpoint A(1, 2) and midpoint M(4, 7), find endpoint B.
1. x₂ = 2(4) − 1 = 8 − 1 = 7.
2. y₂ = 2(7) − 2 = 14 − 2 = 12.
3. Endpoint B = (7, 12).
Check: M = ((1 + 7)/2, (2 + 12)/2) = (8/2, 14/2) = (4, 7). Verified!
Common Pitfalls: Distance Subtraction vs Midpoint Addition
Students often confuse the distance formula ($x_2 - x_1$) with the midpoint formula. Remember: midpoints are averages, so you must add the coordinates ($x_1 + x_2$).
$(x_1 + x_2, y_1 + y_2)$ gives the vector sum, not the center point. Always divide by 2.
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.