Midpoint Calculator
Free midpoint calculator with steps. Find the midpoint between two points in 2D or 3D, calculate missing endpoints, distance between points, and slope. Interactive coordinate graph with step-by-step solutions and fraction or decimal output.
Coordinate Graph
Line segment with midpoint highlighted in red
Distance & Slope
Measurements between the two points
Formula
The mathematical formula used for this calculation
Step-by-Step Solution
Detailed derivation of the result
Midpoint (x-coordinate)
xₘ = (x₁ + x₂) / 2
xₘ = (2 + 6) / 2
xₘ = 4
Midpoint (y-coordinate)
yₘ = (y₁ + y₂) / 2
yₘ = (4 + 10) / 2
yₘ = 7
Distance
d = √[(x₂ − x₁)² + (y₂ − y₁)²]
d = √[(6 − 2)² + (10 − 4)²] = √[(4)² + (6)²] = √(16 + 36)
d = 7.2111
Slope
m = (y₂ − y₁) / (x₂ − x₁)
m = (10 − 4) / (6 − 2) = 6 / 4
m = 1.5 = 3/2
How to Calculate the Midpoint
The midpoint formula explained step by step
A midpoint is the exact center point of a line segment — the point that splits the segment into two equal halves. The midpoint's coordinates are the arithmetic means (averages) of the x-coordinates and y-coordinates of the two endpoints.
Midpoint Formula
M = (xₘ, yₘ) = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
In words: add the x-coordinates together and divide by 2 to get xₘ; add the y-coordinates together and divide by 2 to get yₘ. The midpoint is simply the average of the two points.
Worked Example
Average the x-coordinates
(2 + 6) / 2 = 8 / 2 = 4
Average the y-coordinates
(4 + 10) / 2 = 14 / 2 = 7
Combine the results
M = (4, 7)
Midpoint Formulas
Key formulas for finding midpoints in different dimensions
2D Midpoint
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
Finds the center between two points on a plane
3D Midpoint
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2, (z₁ + z₂) / 2)
Same logic, adds the z-coordinate
Find Endpoint
(x₂, y₂) = (2xₘ − x₁, 2yₘ − y₁)
Reverse the midpoint formula to find a missing endpoint
Number Line
m = (a + b) / 2
The average of any two numbers on a number line
Real-World Uses of Midpoints
Practical applications beyond the classroom
Navigation
Find an approximate halfway meeting point between two nearby locations on a projected map or local coordinate grid.
Construction
Find the center of a beam or wall to mount fixtures evenly. Center shelving or artwork on a wall.
Statistics
Calculate class midpoints for frequency distributions and histograms in statistical analysis.
Salary Planning
Calculate the midpoint of a salary range for compensation benchmarking and HR planning.
Common Mistakes to Avoid
Pitfalls students and professionals should watch for
Subtracting instead of adding
The midpoint formula adds coordinates, then divides. Don't confuse it with the distance formula which subtracts.
Forgetting to divide by 2
The midpoint is the average — always divide the sum by 2 for both coordinates.
Sign errors with negative coordinates
Adding a negative is the same as subtracting. For (−4, 3) and (2, −5), the midpoint is ((−4 + 2)/2, (3 + (−5))/2) = (−1, −1).
Using 2D formula for 3D points
Remember to include the z-coordinate in 3D: M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2).
Frequently Asked Questions
Common questions about midpoint calculations
Embed Midpoint Calculator
Add this calculator to your website or blog for free.
You Might Also Like
Related calculators from other categories
Last updated May 4, 2026