Midpoint Calculator
Find the midpoint between two points, plus the segment length, slope and the equation of its perpendicular bisector.
Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.
What the Midpoint Calculator does
This midpoint calculator will find the midpoint between two points, plus the segment length, slope and the equation of its perpendicular bisector. Fill in all 4 fields and the result updates as you type — there is no Calculate button to press and no page reload. It is most often used for finding the centre of a circle from the ends of a diameter. A related tool on this site is the hexagon calculator.
How to use it
- Enter the coordinates of your first point.
- Enter the coordinates of the second point.
- Read the midpoint, written both as separate coordinates and as an ordered pair.
- The segment length, slope and perpendicular bisector are computed from the same two points.
How it works
The midpoint is simply the average of the two x-coordinates paired with the average of the two y-coordinates. There is no square root and no special case — averaging works for negatives, decimals and coordinates in any order, which is why swapping the two points changes nothing about the answer. If a formula you have been given involves subtraction, you are looking at the distance formula instead.
The perpendicular bisector is the line through the midpoint at right angles to the segment, and every point on it is equidistant from your two original points. Its slope is the negative reciprocal of the segment's slope: multiply the two slopes together and you get −1. The two degenerate cases need care — a vertical segment has an undefined slope but a perfectly ordinary horizontal bisector, and this page handles both explicitly rather than dividing by zero.
In coordinate geometry the midpoint turns up constantly: finding the centre of a circle from the endpoints of a diameter, locating the centroid of a triangle, checking whether a quadrilateral is a parallelogram by testing whether its diagonals share a midpoint. It is also the basis for bisection in numerical methods, where repeatedly halving an interval is the slowest but most reliable way to find a root.
When to use it
- Finding the centre of a circle from the ends of a diameter.
- Locating the midpoint of a line segment in a geometry problem.
- Writing the equation of a perpendicular bisector.
- Checking whether two diagonals bisect each other.
Common mistakes to avoid
- Subtracting the coordinates instead of adding them, which gives the displacement rather than the midpoint.
- Dividing only one coordinate by two. Both the x and the y averages need halving.
- Taking the reciprocal without the minus sign when finding a perpendicular slope.
Frequently asked questions
Does the order of the two points matter?
No. Addition is commutative, so (x₁+x₂)/2 is the same whichever point you call the first. That is a useful check: if swapping your points changes your answer, you have used the distance formula by mistake.
How do I find the midpoint in three dimensions?
Average the third coordinate as well: the midpoint of (x₁,y₁,z₁) and (x₂,y₂,z₂) is ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2). The pattern extends to any number of dimensions.
What is the perpendicular bisector for?
It is the set of all points equally distant from your two endpoints, which makes it the tool for locating circle centres, constructing a triangle's circumcentre, and drawing the boundary between two sites in a Voronoi diagram.