Midpoint Calculator

Find the midpoint of a line segment, with its length, slope and equation — in 2D, or in 3D under Advanced options.

100% FreeNo sign-upPrivate — runs in your browser

Enter both z values to switch to 3D: the midpoint becomes the average of x, y and z, and slope is not defined in 3D.

—

midpoint

Distance between points
—
Slope
—
Line equation
—
Half-length
—
midpoint to either end

Copied to clipboard

How to use this tool

1
Enter the two points

Type x₁, y₁ for the first point and x₂, y₂ for the second.

2
Read the midpoint

The big result is the point exactly halfway between them.

3
Check distance and slope

The segment length, its slope and the line equation are shown alongside.

4
Go 3D if you need it

Under Advanced options, add z₁ and z₂ for the 3D midpoint and distance.

Formula & worked example

Midpoint = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Distance = √((x₂ − x₁)² + (y₂ − y₁)²). Slope = (y₂ − y₁) ÷ (x₂ − x₁).

For (2, 3) and (6, 7): midpoint = ((2 + 6) ÷ 2, (3 + 7) ÷ 2) = (4, 5); distance = √(16 + 16) = 5.657; slope = 1, so the line is y = x + 1.

Limitations — read this before you rely on it

Slope is undefined for a vertical line (x₁ = x₂), where the line equation is x = constant instead of y = mx + b. Results are rounded to 4 decimal places for display.

Frequently asked questions

The point exactly halfway along a line segment — the average of the two endpoints' coordinates.

Average the x values and average the y values: ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2).

The midpoint still works, but the slope is undefined (division by zero in run) and the line equation is x = constant.

Yes — average x, y and z separately. Enter both z values under Advanced options.

Bisecting segments, finding centres of shapes, splitting routes, and as a step in geometry and graphing problems.