Midpoint Calculator

: Find the midpoint of two points with the midpoint formula, a missing endpoint, the distance and the point dividing a segment in a ratio, worked exactly
Points
z is optional: leave it empty for 2D, and y too for a number line.
Whole numbers, decimals, negatives or fractions such as 3/4.
Exact: decimals and fractions are kept as fractions while calculating, so midpoints, endpoints and division points are exact. A distance that is not a whole square root is shown as a root and rounded; ≈ marks a rounded figure.
Result
Midpoint
(3, 5)
Halfway between the two points.
Distance between the points
2√13 ≈ 7.211103
√((x₂ - x₁)² + (y₂ - y₁)²) = √(4² + 6²) = √52.
Distance from each end to the midpoint
√13 ≈ 3.605551
Half the distance between the points.
Slope of the segment
3/2 = 1.5
(y₂ - y₁) / (x₂ - x₁) = 6 / 4.
Perpendicular bisector
y = -(2/3)x + 7
Through the midpoint (3, 5) with slope -2/3, the negative reciprocal of 3/2. Standard form: 2x + 3y = 21.
Working
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2) = ((1 + 5) / 2, (2 + 8) / 2) = (6 / 2, 10 / 2) = (3, 5) d = √((x₂ - x₁)² + (y₂ - y₁)²) = √(4² + 6²) = √52 = 2√13 ≈ 7.211103

A midpoint calculator that finds the point halfway between two points with the midpoint formula, on a number line, in 2D or in 3D. It also works backwards to a missing endpoint when you know one end and the midpoint, and finds the point that divides a segment in a ratio such as 2:3. Each answer comes with the distance, and in 2D the slope of the segment and its perpendicular bisector, with the working written out in your numbers.

  1. Pick what to find beside Find the: Midpoint, Missing endpoint, or Point dividing in a ratio.
  2. Type the coordinates. Leave z₁ and z₂ empty for points in a plane, and y too for two numbers on a number line. Whole numbers, decimals, negatives and fractions such as 3/4 all work.
  3. Read the answer at the top, then the distance, the slope and the perpendicular bisector. Working adds the coordinates, halves them, and shows each step.
  4. Copy all or Download keeps every row. If one point has a z and the other does not, the empty field is marked with what to do.

The midpoint, distance and perpendicular bisector of the segment from (1, 2) to (5, 8).

Input
x₁: 1
y₁: 2
x₂: 5
y₂: 8
Output
Midpoint: (3, 5)
Distance between the points: 2√13 ≈ 7.211103
Distance from each end to the midpoint: √13 ≈ 3.605551
Slope of the segment: 3/2 = 1.5
Perpendicular bisector: y = -(2/3)x + 7

Working:
M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)
  = ((1 + 5) / 2, (2 + 8) / 2)
  = (6 / 2, 10 / 2)
  = (3, 5)
d = √((x₂ - x₁)² + (y₂ - y₁)²) = √(4² + 6²) = √52 = 2√13 ≈ 7.211103

What is the midpoint formula?

M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2): the average of the x values and the average of the y values. In 3D add (z₁ + z₂) / 2 as the third coordinate. For (1, 2) and (5, 8) it gives (3, 5).

How do you find the midpoint of a line segment?

Take the two endpoints, add their x coordinates and divide by 2, then add their y coordinates and divide by 2. The two results are the midpoint's coordinates. From (-4, 3) to (2, -6) that is (-4 + 2) / 2 and (3 + (-6)) / 2, so (-1, -1.5).

How do you find an endpoint from the midpoint?

Double the midpoint and subtract the end you know, one coordinate at a time: x₂ = 2xₘ - x₁, y₂ = 2yₘ - y₁. With one end at (2, 3) and the midpoint at (5, 7), the other end is (2 × 5 - 2, 2 × 7 - 3) = (8, 11).

Is the midpoint the same as the average?

Yes, coordinate by coordinate. The midpoint's x is the average of the two x values and its y the average of the two y values. On a number line it is simply the average of the two numbers: -3 and 8 average to 2.5.

What are the distance and midpoint formulas?

Distance: d = √((x₂ - x₁)² + (y₂ - y₁)²), the length of the segment. Midpoint: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2), the point halfway along it. For (1, 2) and (5, 8) they give 2√13 ≈ 7.211103 and (3, 5).

Runs entirely in your browser. Nothing is uploaded.