Math

Midpoint calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a midpoint calculator?

A midpoint calculator finds the point that lies exactly halfway between two points in the coordinate plane. Given the coordinates of two points, the calculator returns the coordinates of the point that splits the line segment connecting them into two equal halves.

This is one of the most fundamental constructions in analytic geometry. The midpoint is the centre of a line segment, the average position of two locations, and a building block for bisecting lines, finding centres of circles drawn through two points, and many other geometric operations.

Key concepts

  • Point — a location in the plane described by an ordered pair of coordinates (x,y)(x, y).
  • Line segment — a straight piece of a line bounded by two endpoints.
  • Midpoint — the unique point on a line segment that is equidistant from both endpoints.
  • Coordinate average — the midpoint’s coordinates are simply the arithmetic means of the two endpoints’ coordinates.

How does the calculator work?

The midpoint formula treats each coordinate independently. The x-coordinate of the midpoint is the average of the two x-coordinates of the endpoints; the y-coordinate of the midpoint is the average of the two y-coordinates. Because averaging is symmetric, the order in which you enter the points does not matter.

Formula

For two points P1=(x1,y1)P_1 = (x_1, y_1) and P2=(x2,y2)P_2 = (x_2, y_2), the midpoint MM is:

M=(x1+x22,y1+y22)M = \left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2} \right)

The x-component on its own:

Mx=x1+x22M_x = \frac{x_1 + x_2}{2}

And the y-component:

My=y1+y22M_y = \frac{y_1 + y_2}{2}

Worked examples

Example 1: midpoint of (0, 0) and (10, 10)

The endpoints are the origin and the point (10,10)(10, 10):

M=(0+102,0+102)=(5,5)M = \left( \frac{0 + 10}{2}, \frac{0 + 10}{2} \right) = (5, 5)

Example 2: midpoint of (2, 3) and (8, 7)

M=(2+82,3+72)=(102,102)=(5,5)M = \left( \frac{2 + 8}{2}, \frac{3 + 7}{2} \right) = \left( \frac{10}{2}, \frac{10}{2} \right) = (5, 5)

Example 3: midpoint of (-4, -2) and (4, 6)

Negative coordinates work the same way — the averages are unchanged:

M=(4+42,2+62)=(02,42)=(0,2)M = \left( \frac{-4 + 4}{2}, \frac{-2 + 6}{2} \right) = \left( \frac{0}{2}, \frac{4}{2} \right) = (0, 2)

Example 4: midpoint of two identical points

If P1=P2P_1 = P_2, the midpoint coincides with both:

M=(x1+x12,y1+y12)=(x1,y1)M = \left( \frac{x_1 + x_1}{2}, \frac{y_1 + y_1}{2} \right) = (x_1, y_1)

Practical uses

  • Geometry and construction — bisecting a line segment, locating the centre of a chord, or constructing perpendicular bisectors.
  • Computer graphics — interpolating between two positions, animating an object from one location to another, or subdividing a polyline.
  • Mapping and navigation — estimating the halfway point of a trip between two locations on a flat map.
  • Statistics and data — computing the average of two paired observations, or finding the centre of a bounding box from its opposite corners.
  • Game development — placing objects between two characters, centring camera positions, or finding pivot points.

Notes

  • The midpoint formula works for any two points, positive or negative coordinates included.
  • The midpoint always lies on the line segment between the two endpoints — it never lands outside.
  • For points in three dimensions, the same idea extends naturally: average each coordinate independently.
  • To find the distance between two points instead of the midpoint, see the distance calculator.
  • The line through the midpoint perpendicular to the segment is the perpendicular bisector — it is the set of all points equidistant from the two endpoints.

FAQs

Does the order of the two points matter?

No. Because addition is commutative, swapping P1P_1 and P2P_2 gives the same midpoint.

Can I use the midpoint formula for 3D points?

Yes. For points (x1,y1,z1)(x_1, y_1, z_1) and (x2,y2,z2)(x_2, y_2, z_2), the midpoint is (x1+x22,y1+y22,z1+z22)\left( \frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}, \frac{z_1 + z_2}{2} \right).

What is the connection between the midpoint formula and the Pythagorean theorem?

The midpoint formula gives the centre of a segment; the Pythagorean theorem gives its length. Together they describe the position and size of any line segment in the plane.

The midpoint sits on the same line through P1P_1 and P2P_2, so it shares the slope of that line. The perpendicular bisector through the midpoint has the negative reciprocal slope.

Report a bug

This field is required.