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.

Midpoint Finder
P₁
x₁
y₁
P₂
x₂
y₂
Midpoint
M = (4, 7) = (4, 7)
M = (4, 7)
d = 7.21

Coordinate Graph

Line segment with midpoint highlighted in red

510510(2, 4)(6, 10)M(4, 7)xy

Distance & Slope

Measurements between the two points

Distance
7.2111
Slope
3/2
Slope (decimal)
1.5
Line Type
Increasing
Δx (x₂ − x₁)
4
Δy (y₂ − y₁)
6

Formula

The mathematical formula used for this calculation

Midpoint Formula
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2) = ((2 + 6) / 2, (4 + 10) / 2) = (4, 7)

Step-by-Step Solution

Detailed derivation of the result

1

Midpoint (x-coordinate)

xₘ = (x₁ + x₂) / 2

xₘ = (2 + 6) / 2

xₘ = 4

2

Midpoint (y-coordinate)

yₘ = (y₁ + y₂) / 2

yₘ = (4 + 10) / 2

yₘ = 7

3

Distance

d = √[(x₂ − x₁)² + (y₂ − y₁)²]

d = √[(6 − 2)² + (10 − 4)²] = √[(4)² + (6)²] = √(16 + 36)

d = 7.2111

4

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

1

Average the x-coordinates

(2 + 6) / 2 = 8 / 2 = 4

2

Average the y-coordinates

(4 + 10) / 2 = 14 / 2 = 7

3

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

1

Subtracting instead of adding

The midpoint formula adds coordinates, then divides. Don't confuse it with the distance formula which subtracts.

2

Forgetting to divide by 2

The midpoint is the average — always divide the sum by 2 for both coordinates.

3

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

4

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.