01 / Midpoint
Average the coordinates
M = ((x₁ + x₂)/2, (y₁ + y₂)/2). Add the two x values and halve, then do the same for y.
Free tool
Type two points and get the midpoint, the distance between them as an exact root like 4√5 and as a decimal, the slope and the perpendicular bisector, with the formula, your numbers put in and a graph that draws the right triangle. It also does three dimensions, finds a missing endpoint from the midpoint, and finds the point a third of the way along.
What to find
Point 1
Known endpoint
Point 2
Midpoint
Ratio, from point 1 to point 2
Use whole numbers, decimals like 2.5 or fractions like 1/2. Negative numbers are fine.
Type one end of the segment and the midpoint to get the other end.
A ratio of 1:2 puts the point one third of the way from point 1 to point 2.
Worked out in your browser. Nothing is sent anywhere.
The maths
01 / Midpoint
M = ((x₁ + x₂)/2, (y₁ + y₂)/2). Add the two x values and halve, then do the same for y.
02 / Distance
d = √((x₂ − x₁)² + (y₂ − y₁)²). The two gaps are the legs of a right triangle and d is its longest side.
03 / Exact
√80 is shown as 4√5, with the decimal beside it, and fractions stay fractions.
Guide
The midpoint formula finds the point exactly halfway between two points: add the two x values and halve them, then do the same with the y values. The distance formula gives the length of the segment between them, using Pythagoras. This calculator does both for any two points, gives the distance as an exact root and as a decimal, and shows each step with your numbers put in. It also finds the slope, the perpendicular bisector, the midpoint and distance in three dimensions, a missing endpoint, and the point that splits a segment in a ratio.
| What | Formula |
|---|---|
| Midpoint in 2D | M = ((x₁ + x₂)/2, (y₁ + y₂)/2) |
| Midpoint in 3D | M = ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2) |
| Distance in 2D | d = √((x₂ − x₁)² + (y₂ − y₁)²) |
| Distance in 3D | d = √((x₂ − x₁)² + (y₂ − y₁)² + (z₂ − z₁)²) |
| Missing endpoint | x₂ = 2 × Mx − x₁, y₂ = 2 × My − y₁ |
| Point at ratio m : n | ((n × x₁ + m × x₂)/(m + n), (n × y₁ + m × y₂)/(m + n)) |
The perpendicular bisector is the line that crosses the segment at its midpoint at a right angle. Its slope is the negative reciprocal of the segment's slope. For (2, 3) and (6, 11) the slope is 2, so the bisector has slope −1/2. It goes through (4, 7), so b = 7 − (−1/2)(4) = 9 and the line is y = −x/2 + 9. If the segment is flat, the bisector is a vertical line x = the midpoint's x. If the segment is vertical, the bisector is a flat line.
For the equation of the whole line, with both intercepts, use the slope calculator. For a right triangle with a known side, try the triangle calculator, and to work with fractions use the fraction calculator.
Questions
M = ((x₁ + x₂)/2, (y₁ + y₂)/2). It averages the x values and the y values of the two endpoints.
d = √((x₂ − x₁)² + (y₂ − y₁)²). It is the Pythagorean theorem applied to the horizontal and vertical gaps.
No. The midpoint and the distance are the same either way round.
Read the coordinates of both ends, then average the x values and average the y values. The graph here marks the midpoint in green.
Double the midpoint and subtract the known end, one coordinate at a time. Use Find an endpoint to see the steps.
Yes. Type 1/2 or 0.5. The working is exact, so 1/3 stays 1/3 instead of 0.3333.
Use Split in a ratio with 1 and 2. The point is one third of the way from point 1.
Most distances are not whole numbers. A root like 4√5 is exact, and the calculator shows its decimal next to it.
No. Everything is worked out in your browser.