ToolNimba Browse

📐 Midpoint Calculator

By ToolNimba Math Team · Updated 2026-06-19

Point 1 (x1, y1)
Point 2 (x2, y2)
Midpoint (x, y)
-
Distance between points
-

Enter both points to find the midpoint and the distance between them.

The midpoint is the exact halfway point between two coordinates. Enter the x and y values for your first point and your second point, and this calculator returns the midpoint (x, y) along with the straight-line distance between the two points. It also shows the substituted formula and steps, so you can follow the working and check your own homework.

What is the Midpoint Calculator?

In coordinate geometry, the midpoint of a line segment is the point that divides it into two equal halves. Because the segment runs in a straight line, the halfway point in the x direction and the halfway point in the y direction are simply the averages of the two end coordinates. That gives the midpoint formula M = ((x1 + x2) / 2, (y1 + y2) / 2). You average the x values to get the midpoint x, and average the y values to get the midpoint y. There is no special order: swapping point 1 and point 2 gives the same answer, because addition does not care about order.

The midpoint is closely related to, but different from, the distance between the two points. The midpoint tells you where the centre of the segment sits, while the distance tells you how long the segment is. Distance comes from the Pythagorean theorem applied to the horizontal gap (x2 - x1) and the vertical gap (y2 - y1): distance = sqrt((x2 - x1)^2 + (y2 - y1)^2). This calculator reports both so you can describe a segment completely with a single set of inputs.

Midpoints turn up far beyond textbook exercises. They are used to find the centre of a circle from the endpoints of a diameter, to locate the centroid of simple shapes, to place a label or marker at the middle of a line on a map or chart, and to bisect a segment in geometric constructions. Any time you need the average position of two points on a plane, the midpoint formula is the tool, and it extends naturally to three dimensions by averaging the z coordinates too.

When to use it

  • Checking coordinate geometry homework by confirming the midpoint and distance for two given points.
  • Finding the centre of a circle when you only know the two endpoints of a diameter.
  • Placing a label, marker or join exactly halfway along a line on a map, chart or design.
  • Bisecting a line segment in a geometric construction or CAD sketch.

How to use the Midpoint Calculator

  1. Enter the x and y coordinates of your first point as x1 and y1.
  2. Enter the x and y coordinates of your second point as x2 and y2.
  3. Read off the midpoint (x, y) and the distance between the two points.
  4. Open the steps to see the formula with your numbers substituted in.

Formula & method

Midpoint M = ((x1 + x2) / 2, (y1 + y2) / 2). Distance d = sqrt((x2 - x1)^2 + (y2 - y1)^2), where (x1, y1) and (x2, y2) are the two points.

Worked examples

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

  1. Midpoint x = (2 + 8) / 2 = 10 / 2 = 5
  2. Midpoint y = (3 + 11) / 2 = 14 / 2 = 7
  3. Distance = sqrt((8 - 2)^2 + (11 - 3)^2) = sqrt(6^2 + 8^2)
  4. Distance = sqrt(36 + 64) = sqrt(100) = 10

Result: Midpoint (5, 7), distance 10

Find the midpoint and distance between (-4, -1) and (6, 5).

  1. Midpoint x = (-4 + 6) / 2 = 2 / 2 = 1
  2. Midpoint y = (-1 + 5) / 2 = 4 / 2 = 2
  3. Distance = sqrt((6 - (-4))^2 + (5 - (-1))^2) = sqrt(10^2 + 6^2)
  4. Distance = sqrt(100 + 36) = sqrt(136) = 11.6619

Result: Midpoint (1, 2), distance ≈ 11.6619

Midpoint and distance for sample point pairs

Point 1Point 2MidpointDistance
(0, 0)(10, 0)(5, 0)10
(2, 3)(8, 11)(5, 7)10
(-4, -1)(6, 5)(1, 2)≈ 11.6619
(1, 1)(4, 5)(2.5, 3)5

Common mistakes to avoid

  • Subtracting instead of adding the coordinates. The midpoint uses the sum divided by two, (x1 + x2) / 2, not the difference. Subtracting gives the gap used for distance, not the centre. Mixing the two is the most common slip.
  • Mishandling negative coordinates. With a value like -4, write (-4 + 6) / 2 = 1, not (4 + 6) / 2. Keep the minus sign through the calculation, and remember subtracting a negative, as in 6 - (-4), becomes adding.
  • Averaging x with y. Always pair x with x and y with y. The midpoint x comes only from x1 and x2, and the midpoint y only from y1 and y2. Crossing them gives a meaningless point.
  • Confusing midpoint with distance. The midpoint is a point (a pair of coordinates) marking the centre of the segment. The distance is a single length. They answer different questions, so do not report one when the other is asked for.

Glossary

Midpoint
The point exactly halfway between two given points, found by averaging their x and y coordinates.
Coordinate
A number that fixes a position along an axis. A point on a plane has an x coordinate and a y coordinate.
Line segment
The straight portion of a line between two endpoints, which the midpoint divides into two equal halves.
Distance
The straight-line length between two points, found with the Pythagorean theorem on the horizontal and vertical gaps.
Bisect
To divide something into two equal parts. The midpoint bisects a line segment.

Frequently asked questions

What is the midpoint formula?

The midpoint of two points (x1, y1) and (x2, y2) is M = ((x1 + x2) / 2, (y1 + y2) / 2). You average the two x values to get the midpoint x and average the two y values to get the midpoint y. The calculator applies this as soon as you enter the four coordinates.

How do I find the midpoint between two points?

Add the two x coordinates and divide by 2, then add the two y coordinates and divide by 2. The two results are the x and y of the midpoint. For example, the midpoint of (2, 3) and (8, 11) is ((2 + 8) / 2, (3 + 11) / 2) = (5, 7).

Does the order of the points matter?

No. Because the formula adds the coordinates, swapping point 1 and point 2 gives exactly the same midpoint. The distance is also unchanged, since the squared gaps are the same either way.

What is the difference between midpoint and distance?

The midpoint is a point that marks the centre of the segment between the two points. The distance is a single number giving the straight-line length of that segment. The midpoint uses averages of the coordinates, while distance uses the Pythagorean theorem on the gaps.

Can I find the midpoint with negative coordinates?

Yes. The same formula works for negative values: just keep the signs. For (-4, -1) and (6, 5), the midpoint is ((-4 + 6) / 2, (-1 + 5) / 2) = (1, 2). Be careful that subtracting a negative becomes adding when you compute distance.

How do I find the midpoint in three dimensions?

Extend the formula by also averaging the z coordinates: M = ((x1 + x2) / 2, (y1 + y2) / 2, (z1 + z2) / 2). This calculator works in two dimensions, but the same averaging idea applies to any number of dimensions.