↔️ Midpoint Calculator

Find the midpoint of a line segment from its two endpoints — or the number exactly halfway between two numbers. Leave the y boxes empty for numbers; fill them in for coordinate points.

5.0 out of 5 (1 rating)

Enter details

Two points (leave both y empty for a number line)
M = ((x1 + x2)/2, (y1 + y2)/2)
A,B,
  • x₁ (first number, or first point's x)
  • y₁ (first point's y — leave empty for numbers) — Leave both y boxes empty to find the midpoint of two numbers.
  • x₂ (second number, or second point's x)
  • y₂ (second point's y — leave empty for numbers)

Log in or create a free account to save your inputs and results, so you don't have to enter them again next time.🔒 No spam, ever. We never sell or share your details, and you can delete your history or account at any time. Privacy policy

Fill in the details and click Calculate to see your results.

Formula at a glance

Midpoint formula: Midpoint = (a + b) ÷ 2; Distance = |b − a|
How the midpoint works: Midpoint = (a + b) ÷ 2

Rate this calculator

Was it useful? A quick star rating helps others — and you can leave a comment too.
Rate it: ★ ★ ★ ★ ★

📘 About the Midpoint Calculator

The midpoint of a line segment is the point exactly halfway between its two endpoints. Its x-coordinate is the average of the two x-coordinates and its y-coordinate is the average of the two y-coordinates.

Enter two points to get the midpoint, the length of the segment, its slope and the perpendicular bisector, with every step. Leave the y boxes empty to find the number halfway between two numbers on a number line.

🧮 Formula

Midpoint of two points
M = ((x₁ + x₂)/2, (y₁ + y₂)/2)
Midpoint of two numbers
M = (a + b)/2
Distance between the points
d = √((x₂ − x₁)² + (y₂ − y₁)²)
Missing endpoint
x₂ = 2·Mx − x₁, y₂ = 2·My − y₁

Where

  • (x₁, y₁) and (x₂, y₂) = the two endpoints
  • M = the midpoint
Leave both y boxes empty to find the number halfway between two numbers.

✏️ Worked examples

Midpoint of (2, 3) and (8, 7)

You enter
x₁ (first number, or first point's x)2
y₁ (first point's y — leave empty for numbers)3
x₂ (second number, or second point's x)8
y₂ (second point's y — leave empty for numbers)7
You get
Midpoint M(5, 5)
Distance between the points7.211102551
FormulaM = ((x₁ + x₂)/2, (y₁ + y₂)/2) = ((2 + 8)/2, (3 + 7)/2)
Slope of the segment2/3
Perpendicular bisectory = −(3/2)x + 25/2
Endpoint checkFrom (2, 3), the other endpoint is (2·5 − 2, 2·5 − 3) = (8, 7)

Midpoint (5, 5).

Midpoint of (−4, 6) and (10, −2)

You enter
x₁ (first number, or first point's x)-4
y₁ (first point's y — leave empty for numbers)6
x₂ (second number, or second point's x)10
y₂ (second point's y — leave empty for numbers)-2
You get
Midpoint M(3, 2)
Distance between the points16.1245155
FormulaM = ((x₁ + x₂)/2, (y₁ + y₂)/2) = ((−4 + 10)/2, (6 + −2)/2)
Slope of the segment−4/7
Perpendicular bisectory = (7/4)x − 13/4
Endpoint checkFrom (−4, 6), the other endpoint is (2·3 − (−4), 2·2 − 6) = (10, −2)

Midpoint (3, 2).

Number halfway between 10 and 30

You enter
x₁ (first number, or first point's x)10
x₂ (second number, or second point's x)30
You get
Midpoint20
Distance between the numbers20
Half the distance10
Working(10 + 30) ÷ 2 = 20

Midpoint 20.

🧭 How to use this calculator

What you enter

  • x₁ (first number, or first point's x)
  • y₁ (first point's y — leave empty for numbers)Leave both y boxes empty to find the midpoint of two numbers.
  • x₂ (second number, or second point's x)
  • y₂ (second point's y — leave empty for numbers)

What you get

  • Midpoint
  • Distance Between Values

💡 Uses

  • Finding the center of an interval.
  • Coordinate geometry.
  • Checking equally spaced endpoints.

❓ Frequently asked questions

How do you find the midpoint of two numbers?

Add the two numbers and divide their sum by two.

Can the midpoint be negative?

Yes. The formula works for negative and positive endpoints.

What is the midpoint formula?

M = ((x₁ + x₂)/2, (y₁ + y₂)/2): add the x-coordinates and halve, then add the y-coordinates and halve.

What is the midpoint of (2, 3) and (8, 7)?

((2 + 8)/2, (3 + 7)/2) = (5, 5).

How do I find a missing endpoint from the midpoint?

Double the midpoint and subtract the known endpoint: x₂ = 2·Mx − x₁ and y₂ = 2·My − y₁.

What is the midpoint between two numbers?

Their average: the midpoint of 10 and 30 is (10 + 30)/2 = 20.

What people are saying
★★★★★
Anonymous · 16 Oct 2026