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 .
- 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 and , the midpoint is:
The x-component on its own:
And the y-component:
Worked examples
Example 1: midpoint of (0, 0) and (10, 10)
The endpoints are the origin and the point :
Example 2: midpoint of (2, 3) and (8, 7)
Example 3: midpoint of (-4, -2) and (4, 6)
Negative coordinates work the same way — the averages are unchanged:
Example 4: midpoint of two identical points
If , the midpoint coincides with both:
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 and gives the same midpoint.
Can I use the midpoint formula for 3D points?
Yes. For points and , the midpoint is .
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.
How is the midpoint related to the slope of a line?
The midpoint sits on the same line through and , so it shares the slope of that line. The perpendicular bisector through the midpoint has the negative reciprocal slope.