Midpoint Calculator

Point 1 (x₁, y₁)
(,)
Point 2 (x₂, y₂)
(,)
Whole numbers, decimals, fractions or 1e3 form.
Try:
Midpoint

How it was worked out

Drag to move. Press Esc to leave full screen.

What Is a Midpoint?

The midpoint is the point exactly halfway between two points. It sits on the line segment that joins them, and it is the same distance from both ends.

On a graph, each point has an x value and a y value. The midpoint takes the average of the two x values and the average of the two y values. The same two points also give the steepness of the line, which the slope calculator works out.

Midpoint Formula

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

Add the two x values and divide by 2. Then add the two y values and divide by 2. Those two numbers together are the midpoint.

Example: the points are (2, 4) and (8, 10).
x: (2 + 8) ÷ 2 = 10 ÷ 2 = 5
y: (4 + 10) ÷ 2 = 14 ÷ 2 = 7
The midpoint is (5, 7).

Why the Midpoint Formula Works

Halfway between two numbers is their average. Between 2 and 8, the halfway number is 5, because 5 is 3 away from each.

A point on a graph is just two numbers, one across and one up. Going halfway across and halfway up at the same time lands you halfway along the segment. That is why the formula averages x and y separately.

How to Find the Midpoint Step by Step

  1. Write the two points as (x₁, y₁) and (x₂, y₂). It does not matter which one is first.
  2. Add the x values, then divide by 2.
  3. Add the y values, then divide by 2.
  4. Write the answer as a point: (x, y).

With negative numbers

Put negatives in brackets so the signs stay right. For (-3, 5) and (7, -1): x is (-3 + 7) ÷ 2 = 2, and y is (5 + (-1)) ÷ 2 = 2. The midpoint is (2, 2).

With fractions

Example: the points are (1/2, -3) and (-5/4, 2/3).
x: (1/2 + (-5/4)) ÷ 2 = (2/4 − 5/4) ÷ 2 = (-3/4) ÷ 2 = -3/8
y: (-3 + 2/3) ÷ 2 = (-9/3 + 2/3) ÷ 2 = (-7/3) ÷ 2 = -7/6
The midpoint is (-3/8, -7/6), which is about (-0.375, -1.167). Dividing a fraction by 2 is the same as doubling its bottom number.

How to Find a Missing Endpoint

Sometimes you know one end and the midpoint, and you need the other end. Turn the formula around:

x₂ = 2·xₘ − x₁    y₂ = 2·yₘ − y₁
Example: one end is (1, 3) and the midpoint is (4, 5).
x₂ = 2 × 4 − 1 = 7
y₂ = 2 × 5 − 3 = 7
The missing endpoint is (7, 7). Check: (1 + 7) ÷ 2 = 4 and (3 + 7) ÷ 2 = 5.

Use the Endpoint tab to do this for any numbers.

Common Mistakes

MistakeWhat goes wrongFix
Subtracting instead of adding(8 − 2) ÷ 2 = 3 is half the distance, not the midpointThe midpoint always adds: (2 + 8) ÷ 2 = 5
Mixing x and yAdding an x value to a y valueKeep x with x and y with y
Losing a minus sign(-3 + 7) written as -10Put negatives in brackets before adding
Forgetting to divide by 2The result is the sum of the coordinates, not their average, and it may fall outside the segmentAlways finish by dividing by 2
Averaging to find an endpointAveraging the midpoint and the known end gives a point a quarter of the way alongUse x₂ = 2·xₘ − x₁
Quick check: each coordinate of the midpoint must be between, or equal to, the two matching coordinates of the ends.

Frequently Asked Questions

What is the midpoint formula?

M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2). Average the x values, then average the y values.

How do you find the midpoint between two numbers?

Add them and divide by 2. The midpoint between 12 and 30 is (12 + 30) ÷ 2 = 21. Between -6 and 10 it is 2.

Can the midpoint be a fraction or a decimal?

Yes. For whole-number coordinates, an odd sum gives a half: the midpoint of (1, 0) and (2, 0) is (3/2, 0), which is (1.5, 0). With fractions or decimals, the midpoint can be any fraction or decimal.

Does the order of the points matter?

No. Adding is the same in any order, so (2, 4) and (8, 10) give the same midpoint as (8, 10) and (2, 4).

How do you find an endpoint from the midpoint?

Double the midpoint and subtract the known end: x₂ = 2·xₘ − x₁ and y₂ = 2·yₘ − y₁.

Is the midpoint the same as the halfway point on a map?

On a flat graph, yes. Between two places on Earth, the true halfway point follows the curve of the globe. Averaging latitude and longitude is only close for short distances, and it fails near the 180° longitude line. For places on a map, use a geographic midpoint tool.

Last updated: November 22, 2026
Cite this page: “Midpoint Calculator”, Slope Calculators, https://slopecalculators.com/midpoint-calculator/
Copied