Midpoint Calculator Formula

Understand the math behind the midpoint calculator. Each variable explained with a worked example.

Formulas Used

Midpoint X

midpoint_x = (x1 + x2) / 2

Midpoint Y

midpoint_y = (y1 + y2) / 2

Distance

distance = sqrt((x2 - x1)^2 + (y2 - y1)^2)

Variables

VariableDescriptionDefault
x1x₁2
y1y₁3
x2x₂8
y2y₂7

How It Works

How to Find the Midpoint

Formula

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

The midpoint is found by averaging the x-coordinates and averaging the y-coordinates of the two points.

Worked Example

Find the midpoint between (2, 3) and (8, 7).

x1 = 2y1 = 3x2 = 8y2 = 7
  1. 01Midpoint x = (2 + 8) / 2 = 10 / 2 = 5
  2. 02Midpoint y = (3 + 7) / 2 = 10 / 2 = 5
  3. 03Midpoint = (5, 5)

Ready to run the numbers?

Open Midpoint Calculator