Geometry • Coordinate Geometry Flagship

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.

|
Last Updated: September 2026
|
Verified Mathematical Solution
Point 1: A (x₁, y₁)
Point 2: B (x₂, y₂)
Preset Examples:
Calculated Midpoint Center Equidistant Point
Midpoint M (xₘ, yₘ)
(2.000, 7.000)
Exact: (4/2, 14/2) = (2, 7)
xₘ (Mean X) 2.000
yₘ (Mean Y) 7.000
Segment d 10.000
Slope (m) 0.750

2D Cartesian Line Segment & Midpoint

AM = MB = d/2
Endpoint A
Midpoint M
Endpoint B

Step-by-Step Algebraic Midpoint Derivation Formula: M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

Direct Answer & Overview
Verified Educational Guide

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₁.

Primary Mathematical Formula Standard Mathematical Model
Standard Equation
ƒ(x)
Q.E.D.
M = ((x₁ + x₂)/2, (y₁ + y₂)/2) | 3D: M = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2) | x₂ = 2x_m - x₁
Evaluated with exact mathematical formulation • Rigorously verified
Exact Formula
Input Parameters
Required
1
2D / 3D Endpoints Mode: Coordinates of Point A (x₁, y₁) and Point B (x₂, y₂)
2
Missing Endpoint Mode: Known Endpoint A (x₁, y₁) and Known Midpoint M (x_m, y_m)
Expected Outputs
Calculated
Midpoint Coordinates (M): Exact decimal and fraction forms (x_m, y_m)
Total Segment Distance (d): Full Euclidean straight-line length between endpoints
Segment Slope (m): Rise over run Δy/Δx for 2D coordinate segments
Cartesian Visualizer: Real-time SVG line plot showing equidistant center point
Worked Numerical Example
Instant Verification
Find the midpoint between A(-2, 4) and B(6, 10)
→ x_m = (-2 + 6)/2 = 4/2 = 2. y_m = (4 + 10)/2 = 14/2 = 7
Midpoint M = (2.000, 7.000) | Full Segment Length d = 10.000 | Slope m = 0.750

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.

X-Coordinate Center
xₘ = (x₁ + x₂) / 2

The horizontal average position between endpoints.

Y-Coordinate Center
yₘ = (y₁ + y₂) / 2

The vertical average position between endpoints.

Bisected Lengths
d(A, M) = d(M, B) = d/2

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)$:

Missing X-Coordinate
x₂ = 2xₘ − x₁

Multiply the midpoint's x by 2, then subtract the known point's x.

Missing Y-Coordinate
y₂ = 2yₘ − y₁

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.

  1. Find the Midpoint $M$: $M = \left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}\right)$.
  2. Find Segment Slope $m$: $m = \frac{y_2 - y_1}{x_2 - x_1}$.
  3. Determine Perpendicular Slope $m_\perp$: $m_\perp = -\frac{1}{m}$.
  4. Construct Equation via Point-Slope: $y - y_m = m_\perp(x - x_m)$.

Step-by-Step Worked Examples (Fractions & Negative Coordinates)

Missing Endpoint Example Level: Intermediate

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

Pitfall 1: Subtracting Instead of Adding

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$).

Pitfall 2: Forgetting to Divide by 2

$(x_1 + x_2, y_1 + y_2)$ gives the vector sum, not the center point. Always divide by 2.

Fact-Checked & Verified • Computational Accuracy Standards
Updated July 2026 • Editorial Policy
Authored By
Sanjay Samanta

Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.

Reviewed & Verified By
Academic Review Board

Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.

Found an error or have an improvement suggestion? Report a calculation issue

Frequently Asked Questions

What is the midpoint formula?
The midpoint formula finds the exact center point of a line segment connecting two points. In 2D Cartesian space, M = ((x₁ + x₂)/2, (y₁ + y₂)/2). In 3D space, M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2).
How do you find a missing endpoint when the midpoint is known?
Rearrange the midpoint formula to isolate the second endpoint (x₂, y₂): x₂ = 2x_m - x₁ and y₂ = 2y_m - y₁, where (x_m, y_m) is the known midpoint and (x₁, y₁) is the first endpoint.
Why do we add the coordinates in the midpoint formula instead of subtracting?
Because the midpoint represents the arithmetic mean (average) of the coordinates. The average of two numbers a and b is (a + b)/2. Subtraction is used only when finding differences or distances (x₂ - x₁).
Does the order of points matter when finding the midpoint?
No. Because addition is commutative (x₁ + x₂ = x₂ + x₁ and y₁ + y₂ = y₂ + y₁), the resulting midpoint is always identical regardless of which point is chosen first.
How is the midpoint formula used in geometry proofs?
The midpoint formula is widely used in coordinate geometry to prove properties of diagonals in parallelograms (which bisect each other), calculate triangle medians and centroids, and construct perpendicular bisectors.