Midpoint of Two Points (2D)
Find the midpoint of the segment between two 2D points.
Result
How it is calculated
For points (x1, y1) and (x2, y2) the tool averages each coordinate separately: Mx = (x1 + x2) / 2 and My = (y1 + y2) / 2. It also gives the segment length √((x2 − x1)² + (y2 − y1)²). All four coordinates are required; any real number is accepted, including negatives and decimals. The tool is unit-free, so the length comes back in whatever unit your coordinates use. Everything is rounded to two decimals. The calculation is for flat Cartesian coordinates; for latitude and longitude over long distances, a straight average is only a rough approximation of the geographic midpoint.
Worked example
Take A = (−2, 3) and B = (6, 9). Mx = (−2 + 6) / 2 = 4 / 2 = 2. My = (3 + 9) / 2 = 12 / 2 = 6. The midpoint is (2.00, 6.00). For the length: the x-difference is 6 − (−2) = 8 and the y-difference is 9 − 3 = 6, so √(8² + 6²) = √100 = 10.00. The midpoint is 5 units from each end.
Common mistakes
- Adding the coordinates but forgetting to divide by 2, which gives the sum point (4, 12) rather than the midpoint.
- Mixing up the pairs, for example typing (x1, x2) in the first row and (y1, y2) in the second.
- Losing a minus sign, or subtracting incorrectly when a coordinate is negative: 6 − (−2) is 8, not 4.
- Reading the length result as the distance from the origin; it is the distance between the two points entered.
About this calculator
The midpoint of a line segment is the average of its endpoints' coordinates: M = ((x₁+x₂)/2, (y₁+y₂)/2). The calculator also reports the straight-line distance between the two points using the Pythagorean-derived distance formula, √[(x₂−x₁)² + (y₂−y₁)²].
Geometry students use the midpoint formula to find the center of a segment or bisect it for constructions like perpendicular bisectors, while GIS analysts, game developers, and CAD designers use the exact same math to find the center point between two coordinates on a map, in a 2D game world, or on a drawing.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)