The midpoint formula is one of the simplest in coordinate geometry: average the x's, average the y's, done. But the elegance hides depth — the same averaging idea drives center-of-mass calculations, computer graphics interpolation, and most "find the middle of something" problems across math and science.

The formula

For two points P₁ = (x₁, y₁) and P₂ = (x₂, y₂), the midpoint M is:

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

Treat each coordinate independently. The x-coordinate of the midpoint is the average of the two x-coordinates; similarly for y.

Why averaging works

The midpoint has two defining properties:

  1. It lies on the segment between P₁ and P₂.
  2. It's equidistant from both endpoints.

The average satisfies both. The average of two numbers is the unique value where the distance to each is equal — it's the center of the interval. Apply this independently to each coordinate, and you get a point that's centered in both axes. That point is the geometric midpoint.

A worked example

Find the midpoint of the segment from (1, 2) to (5, 8).

  • M_x = (1 + 5)/2 = 3
  • M_y = (2 + 8)/2 = 5
  • Midpoint = (3, 5)

Verify: distance from (1, 2) to (3, 5) is √(4 + 9) = √13. Distance from (3, 5) to (5, 8) is √(4 + 9) = √13. Equal. ✓

3D midpoint

Same idea, one more coordinate:

M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2)

And n-dimensional: average each coordinate independently.

The section formula: dividing in any ratio

The midpoint formula is the special case (ratio 1:1) of the more general section formula, which finds the point that divides a segment in any ratio m:n.

P = ((mx₂ + nx₁)/(m + n), (my₂ + ny₁)/(m + n))

For m = n = 1, this collapses to the midpoint. For m = 1, n = 3 (one-quarter from P₁), it gives the point 25% of the way from P₁ to P₂.

Worked example: find the point one-third of the way from (3, 4) to (9, 10). Use ratio 1:2 (closer to first endpoint).

  • P_x = (1×9 + 2×3)/3 = (9 + 6)/3 = 5
  • P_y = (1×10 + 2×4)/3 = (10 + 8)/3 = 6
  • P = (5, 6)

Geometry uses for the midpoint

  • Triangle medians: a median goes from a vertex to the midpoint of the opposite side. The three medians intersect at the centroid (the triangle's center of mass).
  • Triangle circumcenter: the perpendicular bisectors of the three sides intersect at the circumcenter, equidistant from all three vertices. Building the perpendicular bisectors requires the midpoint formula.
  • Trapezoid mid-segment: the segment connecting midpoints of the two non-parallel sides of a trapezoid is parallel to the bases and has length equal to the average of the bases.
  • Parallelogram diagonals: the diagonals bisect each other — they meet at their common midpoint. This is one of the standard ways to prove a quadrilateral is a parallelogram.

Physics: center of mass

For two equal point masses, the center of mass is the midpoint. For unequal masses, it shifts toward the heavier one — exactly the section formula with the ratio determined by the masses.

Two masses of 3 kg at (0, 0) and 1 kg at (4, 0): center of mass is at ((1×4 + 3×0)/4, 0) = (1, 0). The center of mass sits closer to the heavier object.

Computer graphics: linear interpolation

Animation and graphics use "lerp" (linear interpolation) constantly: given a start state and an end state and a parameter t between 0 and 1, blend them as (1−t) × start + t × end. The midpoint is t = 0.5 — the smoothest single value.

Bézier curves, smooth transitions, fade-in effects, and interpolated camera movements all rely on this same averaging idea, generalized to any t value.

Design: visual balance

UI/UX designers use midpoints constantly — centering text in a button, finding the center of a layout, splitting space evenly between elements. The math is trivial; the discipline is in noticing what should align to a midpoint and what shouldn't.

Common pitfalls

  • Subtracting instead of adding — the midpoint formula uses sums, not differences. Differences (and dividing) give you the slope or distance, not the midpoint.
  • Dividing by 1 instead of 2 — you're averaging two numbers, not summing them.
  • Confusing midpoint with mean of more than two points — for three or more points, "midpoint" generalizes to centroid: average all the x's, average all the y's. Same averaging principle, more terms.

Verify quickly

Our midpoint calculator handles two-point midpoints in seconds. For more advanced cases (centroids, sections in arbitrary ratios), the same principle applies — average the relevant coordinates, weighted by the ratio you want.