Midpoint Calculator
Find the midpoint of two points on a line or in a plane. Also shows distance, slope, and the midpoint formula with a worked example.
How the calculation works
The midpoint calculator is the fastest way to find the center of a line segment for geometry homework, coordinate geometry, and CAD-style layout. Enter two endpoints; the tool returns the midpoint, the segment length, the run and rise, and the slope when the segment is not vertical.
Leave z₁ and z₂ at 0 for 2D. If either z differs from zero, the result is the 3D midpoint and the distance uses all three components. This is the same midpoint formula taught in algebra: average the x-coordinates and average the y-coordinates.
Formula
Worked example
The midpoint of (2, 3) and (8, 11) is ((2+8)/2, (3+11)/2) = (5, 7). Distance is √(6² + 8²) = 10.
Related calculators
Frequently asked questions
What is the midpoint formula?
M = ((x₁ + x₂)/2, (y₁ + y₂)/2). Average each coordinate of the two endpoints.
How do I find the midpoint of two points?
Add the x-values and divide by 2, then add the y-values and divide by 2. This calculator does that instantly and also reports distance and slope.
Does this work in 3D?
Yes. Enter z₁ and z₂ to get ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2) and the 3D distance.
What if the slope is undefined?
A vertical segment has Δx = 0, so slope is undefined. The midpoint and distance are still defined.
Is the midpoint the same as the average of the points?
Yes. The midpoint is the arithmetic mean of the two position vectors.
Results are estimates for informational purposes and are not financial or professional advice.