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- 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
Midpoint Calculator
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.
How to find the midpoint of two points
- Pick what to find beside
Find the:Midpoint,Missing endpoint, orPoint dividing in a ratio. - 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/4all work. - Read the answer at the top, then the distance, the slope and the perpendicular bisector.
Workingadds the coordinates, halves them, and shows each step. Copy allorDownloadkeeps every row. If one point has a z and the other does not, the empty field is marked with what to do.
Example
The midpoint, distance and perpendicular bisector of the segment from (1, 2) to (5, 8).
x₁: 1
y₁: 2
x₂: 5
y₂: 8Midpoint: (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.211103Details
- The midpoint formula: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2). Add the two x values and halve the sum, then do the same with the y values. For (1, 2) and (5, 8) the sums are 6 and 10, so the midpoint is (3, 5). Negative coordinates work the same way: (-4, 3) and (2, -6) have the midpoint (-1, -1.5). In geometry this is the midpoint of a line segment, the one point on it that is equally far from both ends.
- In 3D the formula gains a third coordinate: M = ((x₁ + x₂) / 2, (y₁ + y₂) / 2, (z₁ + z₂) / 2). The midpoint of (1, 2, 3) and (4, 6, -1) is (2.5, 4, 1). On a number line there is only x, and the midpoint of two numbers is their average: halfway between -3 and 8 is 2.5.
- The distance and midpoint formulas use the same two points in different ways. The midpoint adds the coordinates and halves them; the distance subtracts them, squares the differences, adds the squares and takes the square root: d = √((x₂ - x₁)² + (y₂ - y₁)²). From (1, 2) to (5, 8) that is √(4² + 6²) = √52, written in simplest form as 2√13 ≈ 7.211103. Each half of the segment is √13 ≈ 3.605551.
- Finding an endpoint from the midpoint turns the formula around. If M is the midpoint of A and B, then B = 2M - A for each coordinate, sometimes called the endpoint formula: x₂ = 2xₘ - x₁ and y₂ = 2yₘ - y₁. With the end (2, 3) and the midpoint (5, 7), the other end is (8, 11). Taking the midpoint of (2, 3) and that point gives (5, 7) back, and the segment is 10 long.
- A point dividing a segment in a ratio m : n, measured from the first point, comes from the section formula: P = (n·A + m·B) / (m + n). For (1, 2) to (11, 7) in the ratio 2:3 that is (5, 4), 2√5 ≈ 4.472136 from the first point and 3√5 ≈ 6.708204 from the second. The ratio 1:1 gives the midpoint, (6, 4.5). The external division point, (m·B - n·A) / (m - n), lies on the same line outside the segment; for 2:3 it is (-19, -8).
- The perpendicular bisector is the line through the midpoint at right angles to the segment; every point on it is the same distance from both ends. Its slope is the negative reciprocal of the segment's slope, so for (1, 2) and (5, 8), with a slope of 3/2 = 1.5, the bisector is y = -(2/3)x + 7. A horizontal segment has a vertical bisector: from (1, 4) to (7, 4) it is x = 4.
Limits
- Points in a straight-line coordinate system only. It does not find the geographic midpoint between two places or addresses (latitude and longitude on a globe), the midpoint rule for integrals (a Riemann sum), the midpoint method for price elasticity in economics, astrology midpoints, the midpoint of a salary range or the date halfway between two dates.
- It does not plot the points on a graph. The slope and perpendicular bisector are given for 2D points only.
- Numbers have at most 30 digits. Midpoints and division points are exact fractions; distances that are not whole square roots are shown as a root and rounded, marked ≈. Both points need the same coordinates filled in: "z₁ is filled in but z₂ is empty. Enter z₂, or clear z₁ for 2D points."
FAQ
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.