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)

Frequently Asked Questions

What is a midpoint?

The midpoint is the point that is exactly halfway between two given points. It has the average x-coordinate and the average y-coordinate of the two endpoints.

What is the midpoint used for?

Midpoints are used in geometry to find centers of line segments, in coordinate geometry proofs, and in real-world applications like finding the center between two locations.

Ready to run the numbers?

Open Midpoint Calculator