📍 Midpoint Calculator

Find the midpoint of two points in 2D or 3D, a missing endpoint, or the point dividing a segment in a ratio — with distance, slope and a graph.

✓ Free✓ No Signup Required✓ Browser-Based
Point A
Point B
Midpoint M
(5, 7)

M = ((x₁ + x₂)/2, (y₁ + y₂)/2) = ((2 + 8)/2, (3 + 11)/2)

Length of AB
10
Half length
5
Slope of AB
1.333333333
ABM

What Midpoint Calculator Does

This midpoint calculator finds the point exactly halfway between two points, in two or three dimensions, and shows the midpoint formula with your numbers filled in. It also works backwards — give one endpoint and the midpoint to find the missing endpoint — and it can find the point that divides a segment in any ratio, such as one third of the way from A to B.

Alongside the answer you get the length of the segment, half its length and, in 2D, its slope, plus a small graph of the points so you can see the result makes sense. Negative and decimal coordinates are fine.

How to Use Midpoint Calculator

  1. Choose midpoint, missing endpoint, or point at a ratio
  2. Tick 3D if your points have z-coordinates
  3. Enter the coordinates of the points
  4. Read the result with the formula filled in
  5. Check the distance, slope and graph

Formula Used by Midpoint Calculator

Midpoint

M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)

Worked example

A(2, 3) and B(8, 11).

  1. (2 + 8) ÷ 2 = 5
  2. (3 + 11) ÷ 2 = 7

Result: M = (5, 7).

Missing endpoint

B = 2M − A

Worked example

A(−1, 4) and midpoint M(3, 1).

  1. x: 2 × 3 − (−1) = 7
  2. y: 2 × 1 − 4 = −2

Result: B = (7, −2).

Section formula

P = (n·A + m·B) ÷ (m + n), where AP : PB = m : n

Worked example

A(0, 0), B(9, 6), m : n = 1 : 2.

  1. x: (2 × 0 + 1 × 9) ÷ 3 = 3
  2. y: (2 × 0 + 1 × 6) ÷ 3 = 2

Result: P = (3, 2), one third of the way from A.

Related Coordinate Formulas

QuantityFormula
Distanced = √((x₂ − x₁)² + (y₂ − y₁)²)
Slopem = (y₂ − y₁) ÷ (x₂ − x₁)
Midpoint (3D)((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2)
Perpendicular bisector slope−1 ÷ m

How to Read Your Result

Checking your answer

The midpoint should be the same distance from both endpoints, and its coordinates should lie between theirs. If a coordinate of your midpoint is outside the range of the endpoints’ coordinates, a sign has slipped.

Circles and bisectors

The midpoint of a diameter is the circle’s center, and the radius is half the diameter’s length — both shown here. The perpendicular bisector of a segment passes through its midpoint with slope −1/m, which is how you find the set of points equidistant from two points.

Limitations & Accuracy Notes

  • The graph is drawn for 2D points only.
  • The section formula here finds internal division; external division uses a minus sign in the formula.

Frequently Asked Questions

What is the midpoint formula?
Average the coordinates: M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). The midpoint of (2, 3) and (8, 11) is ((2 + 8) ÷ 2, (3 + 11) ÷ 2) = (5, 7). In 3D, average the z-coordinates as well.
How do I find an endpoint from the midpoint?
Double the midpoint and subtract the known endpoint: B = 2M − A. If A = (2, 3) and M = (5, 7), then B = (2×5 − 2, 2×7 − 3) = (8, 11).
How do I find the distance between the points?
Use the distance formula: d = √((x₂ − x₁)² + (y₂ − y₁)²). From (2, 3) to (8, 11) that is √(36 + 64) = 10. The calculator shows it along with half the distance.
What is the section formula?
The point P that divides AB so that AP : PB = m : n is P = (n·A + m·B) ÷ (m + n). With m : n = 1 : 1 it is the midpoint; 1 : 2 gives the point one third of the way from A to B.
Does the midpoint work with negative coordinates?
Yes — the formula is the same. The midpoint of (−4, 2) and (6, −8) is (1, −3).
Where is the midpoint formula used?
Finding the center of a circle from a diameter, bisecting line segments in geometry proofs, locating a halfway point on a map grid, and in computer graphics for subdividing lines and shapes.
By OnlineToolHubs Team • September 2026