Calculators

Midpoint Calculator

Find the midpoint of two points in 2D or 3D with the formula worked out, plus the distance, slope and a find-the-endpoint mode.

Loading interactive tool…

Embed this tool on your site

About this tool

The Midpoint Calculator finds the point exactly halfway between two points using M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Type the coordinates of both points to get the midpoint with every substitution shown, the distance between the points from the distance formula, the slope, and the equation of the line through them. Switch to 3D to add z coordinates, or to Find an endpoint when you know one endpoint and the midpoint: each missing coordinate is 2 × midpoint − known endpoint. Coordinates can be integers, decimals, negatives, fractions such as 3/4 or mixed numbers such as 1 1/2, and the arithmetic is exact, so fractions stay fractions and distances appear in simplest radical form when possible, such as √40 = 2√10 ≈ 6.3246. A vertical line gets an undefined slope instead of a division error. Slope and the line equation apply to 2D points only. The calculator runs in your browser.

Why use it

  • Shows the midpoint formula with your numbers substituted, step by step.

  • Exact answers: fractions stay fractions and distances come in simplest radical form.

  • Distance, slope and the line equation arrive with the midpoint, so one entry covers a whole coordinate geometry question.

  • Finds a missing endpoint from one endpoint and the midpoint.

  • Handles 3D points and reports a vertical line as an undefined slope.

How to use

  1. Choose Find the midpoint, or Find an endpoint if you already know the midpoint.
  2. Pick 2D for (x, y) points or 3D to add a z coordinate.
  3. Type the coordinates of Point 1 and Point 2 (or the midpoint), one number per box. Fractions like 3/4 and negatives like −2.5 are fine.
  4. Read the midpoint or the missing endpoint, the distance and the slope in the result cards.
  5. Follow the worked formula under the cards to see every substitution and simplification.

When it helps

  • Coordinate geometry homework on midpoints, distance and slope.
  • Finding the center of a circle from the two ends of a diameter.
  • Recovering the other end of a segment when a worksheet gives one endpoint and the midpoint.
  • Locating the point halfway between two positions on a map grid, a drawing or a game level.
  • Finding the center between two corners of a box in 3D space.

Examples

Midpoint, distance and slope

Input

(2, −3) and (8, 5)

Expected result

Midpoint (5, 1); distance √100 = 10; slope 4/3 ≈ 1.3333; line y = (4/3)x − 17/3

Fractions stay exact

Input

(1/2, 3/4) and (−1 1/2, 1/4)

Expected result

Midpoint (−1/2, 1/2) = (−0.5, 0.5); distance √17/2 ≈ 2.0616; slope 1/4 = 0.25

Missing endpoint

Input

Endpoint (2, −3), midpoint (8, 5)

Expected result

Other endpoint (14, 13), because 2 × 8 − 2 = 14 and 2 × 5 − (−3) = 13

Tips

  • Order does not matter for the midpoint: swapping Point 1 and Point 2 gives the same answer.
  • Quick sanity check: the midpoint's x lies between the two x values, and the same goes for y.
  • When x₁ = x₂ the line is vertical, so the slope is undefined and the line is x = constant.
  • For the center of a circle, enter the two ends of a diameter; the distance shown is the diameter, so halve it for the radius.
  • Type one coordinate per box. A pasted pair such as (2, 3) in a single box is not read as a point.

Frequently Asked Questions

What is the midpoint formula?
M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2): average the x coordinates and average the y coordinates. In 3D, average the z coordinates as well.
How do you find the midpoint of (2, −3) and (8, 5)?
Add each pair of coordinates and halve the result: (2 + 8) ÷ 2 = 5 and (−3 + 5) ÷ 2 = 1, so the midpoint is (5, 1).
How do I find an endpoint from the midpoint?
Double the midpoint and subtract the known endpoint, one coordinate at a time. With endpoint (2, −3) and midpoint (8, 5), the other endpoint is (2 × 8 − 2, 2 × 5 − (−3)) = (14, 13).
How is the distance between the points calculated?
With the distance formula d = √((x₂ − x₁)² + (y₂ − y₁)²). For (2, −3) and (8, 5): √(6² + 8²) = √100 = 10.
Why is the slope undefined?
Slope is rise ÷ run. When both points share the same x coordinate, the run is 0, the line is vertical and the slope is undefined.
Can I enter fractions or negative numbers?
Yes. Integers, decimals, negatives, fractions like 3/4 and mixed numbers like 1 1/2 all work, and the results stay exact.
Does it work for 3D points?
Yes. Choose 3D to add z coordinates and you get the 3D midpoint and distance. Slope and the line equation apply to 2D only.
Is the midpoint the same as the average of the points?
Yes. Each coordinate of the midpoint is the mean of the two points' coordinates.

Explore the category

Glossary

Midpoint
The point on a line segment that is the same distance from both endpoints.
Endpoint
One of the two points at the ends of a line segment.
Slope
The steepness of a line: the change in y divided by the change in x.
Distance formula
d = √((x₂ − x₁)² + (y₂ − y₁)²), the straight-line distance between two points.
Coordinate
A number giving a point's position along one axis, such as x or y.
A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.

Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.

✓ Free to use✓ No sign-up✓ 500+ possibilities