Midpoint Calculator

Find the midpoint between two points on a 2D plane, with the distance between them.

By Konstantin Iakovlev · Updated September 2026 · Source: Khan Academy

Midpoint

(5.00, 5.00)

Distance

7.2111

Midpoint Formula

FormulaM = ((x1+x2)/2, (y1+y2)/2)
Midpoint X5.00
Midpoint Y5.00
Midpoint(5.00, 5.00)

Use the Midpoint Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates based on the information you provide and the assumptions described on this page.

How It Works

Finding the exact center between two coordinates is a small operation with surprisingly wide reach. Surveyors, urban planners siting a transit stop equidistant from two neighborhoods, and game developers placing an object squarely between two reference points all lean on the same idea: split the distance evenly along every axis. The tool works with two points on a flat 2D plane.

The math is the midpoint formula, which simply averages the matching coordinates of each point. Given two points P1(x1, y1) and P2(x2, y2), the midpoint M is ((x1 + x2)/2, (y1 + y2)/2). The calculator also reports the straight-line distance between the two points, √((x2 − x1)² + (y2 − y1)²), and the midpoint sits exactly half that distance from each of them. For points in 3D space, average the z-coordinates the same way; this calculator takes x and y only.

Watch your signs and stay consistent within one coordinate system, since a misplaced negative is the single most common reason a result lands far from where you expect. Mixed positive and negative values are fine as long as you enter them correctly. Note too that the answer is always one point, even when the inputs describe vectors or travel paths rather than fixed locations.

Example: A Hub Halfway Between Two Distribution Centers

  1. 1 A logistics company wants a new hub equidistant from two distribution centers on its map grid: Center A at (15.2, 8.7) and Center B at (23.8, 14.3), in kilometers east and north of a reference point.
  2. 2 Midpoint: x = (15.2 + 23.8)/2 = 39.0/2 = 19.5 and y = (8.7 + 14.3)/2 = 23.0/2 = 11.5, so the calculator shows (19.50, 11.50).
  3. 3 Distance: √((23.8 − 15.2)² + (14.3 − 8.7)²) = √(8.6² + 5.6²) = √(73.96 + 31.36) = √105.32 = 10.2626 km, so the hub sits about 5.13 km from each center.
  4. 4 The midpoint is the point halfway along the straight line between the two centers. Whether it is a workable site still depends on roads, zoning and land cost, which no coordinate formula captures.

Source: Khan Academy · Last updated: September 2026

Frequently Asked Questions

How do I find the midpoint between two points?
The midpoint formula is ((x1+x2)/2, (y1+y2)/2). Simply average the x-coordinates and average the y-coordinates. For example, the midpoint of (2, 4) and (8, 10) is (5, 7).
Can I find the midpoint in 3D space?
Yes. Add the z-coordinate: ((x1+x2)/2, (y1+y2)/2, (z1+z2)/2). The concept is the same as 2D but extended to three dimensions. Each coordinate of the midpoint is the average of the corresponding coordinates of the two endpoints. This calculator takes 2D points, so average the z-coordinates separately.
What is the midpoint used for in real life?
Midpoints are used to find the center of a line segment in geometry, determine the meeting point between two locations, calculate the center of a property boundary, and locate the centroid of shapes in engineering and design.