
Distance Between Two Points Calculator
Use our free distance between two points calculator to find the 2D Euclidean distance between (x1, y1) and (x2, y2) with step-by-step distance formula rules.
Open toolEnter First x coordinate, First y coordinate, Second x coordinate, and Second y coordinate into this midpoint calculator and midpoint formula calculator to find the exact center coordinates M = ((x1 + x2) / 2, (y1 + y2) / 2) of any 2D line segment. Test the preloaded (0, 0) to (3, 4) baseline returning (1.5, 2), or evaluate positive, negative, and decimal coordinates across +/-1,000,000,000 in your browser with up to 12 significant digits.
Enter the inputs, then select Calculate result.
Result will appear here
The Midpoint Calculator is a client-side analytic geometry utility that computes the arithmetic mean of two planar points P1(x1, y1) and P2(x2, y2) to locate the point halfway between them.
M = (x_m, y_m) = ((x1 + x2) / 2, (y1 + y2) / 2)
By Thales's proportionality theorem, the point M(x_m, y_m) that bisects segment P1P2 also bisects the horizontal interval [x1, x2] and vertical interval [y1, y2]. In batch10-tools.js, the workspace evaluates (n('x1') + n('x2')) / 2 and (n('y1') + n('y2')) / 2, formats each coordinate to up to 12 significant digits via toPrecision(12), and returns the ordered pair (x_m, y_m) locally in your browser.
Use these 10 verified endpoint pairs to check how the midpoint formula calculator averages positive, negative, decimal, and 1D number-line coordinates before running your own values.
| Endpoint 1 (x1, y1) | Endpoint 2 (x2, y2) | Coordinate Sums (x1 + x2, y1 + y2) | Midpoint Output M = (x_m, y_m) | Geometric Interpretation |
|---|---|---|---|---|
| (0, 0) (preloaded) | (3, 4) (preloaded) | (3, 4) | (1.5, 2) | Halfway point on a 3-4-5 right triangle hypotenuse |
| (2, 6) | (10, 14) | (12, 20) | (6, 10) | First-quadrant even integer sums |
| (-6, 8) | (2, -4) | (-4, 4) | (-2, 2) | Cross-quadrant segment from Quadrant II to IV |
| (-5, -9) | (5, 9) | (0, 0) | (0, 0) | Symmetric opposite points centered at origin |
| (-8, -3) | (-2, -11) | (-10, -14) | (-5, -7) | Both endpoints in Quadrant III |
| (-4, 5) | (10, 5) | (6, 10) | (3, 5) | Horizontal segment (y_m = 5 unchanged) |
| (7, -6) | (7, 8) | (14, 2) | (7, 1) | Vertical segment (x_m = 7 unchanged) |
| (1.25, -3.5) | (4.75, 1.5) | (6.0, -2.0) | (3, -1) | Decimal coordinates summing to even integers |
| (470, 0) | (806, 0) | (1276, 0) | (638, 0) | 1D number-line / interval midpoint (y1 = y2 = 0) |
| (4, -3) | (4, -3) | (8, -6) | (4, -3) | Coincident endpoints (midpoint equals the point itself) |
Follow these three steps in the workspace above to enter your endpoints and export the midpoint tuple.
Type your first endpoint into First x coordinate (#x1, default 0) and First y coordinate (#y1, default 0). Each field accepts finite numbers from -1000000000 to 1000000000.
Provide the opposite endpoint (x2, y2) in the bottom two fields (preloaded as 3 and 4), or keep both vertical inputs at 0 when averaging two 1D numbers.
Select Calculate result to display the ordered pair (x_m, y_m) immediately. Use Copy result or Download result.txt to save the center coordinates for geometry homework or CAD layouts.
These three worked examples illustrate how to calculate midpoint coordinates for 2D segments, negative quadrants, and 1D number-line intervals.
With First x coordinate = 0, First y coordinate = 0, Second x coordinate = 3, and Second y coordinate = 4, the coordinate averages are (0 + 3)/2 = 1.5 and (0 + 4)/2 = 2, returning (1.5, 2).

To find the center between P1(-6, 8) in Quadrant II and P2(2, -4) in Quadrant IV, add signed coordinates before dividing by 2: x_m = (-6 + 2)/2 = -2 and y_m = (8 + (-4))/2 = 2, giving (-2, 2).

To find the halfway value between two single numbers such as 470 and 806, enter 470 in First x coordinate, 806 in Second x coordinate, and 0 in both y-fields. The tool outputs (638, 0), showing (470 + 806)/2 = 638.

The output panel prints your midpoint as an ordered Cartesian pair (x_m, y_m) in the same linear grid unit as your inputs.
Equal Half-Distance Verification (d(P1, M) = d(M, P2)): the Euclidean distance from P1 to M must equal the distance from M to P2, and each half-segment equals half the total length 0.5 * d(P1, P2). For (0, 0) and (3, 4) with midpoint (1.5, 2), both half-lengths equal sqrt(1.5^2 + 2^2) = 2.5, which is half of 5 in the Distance Between Two Points Calculator.
Reverse Endpoint Formula (Finding a Missing Endpoint): if a geometry problem gives you one endpoint P1(x1, y1) and the midpoint M(x_m, y_m), double the midpoint coordinates and subtract the known endpoint to recover P2: x2 = 2*x_m - x1 and y2 = 2*y_m - y1.

Before copying the midpoint into surveying sheets, economics homework, or calculus assignments, check these domain boundaries.
Flat Cartesian Plane vs. Geographic Great-Circle Midpoints: averaging (x1+x2)/2 and (y1+y2)/2 finds the exact center on a flat 2D plane rather than a curved-Earth geographic midpoint. In microeconomics, the midpoint elasticity method uses the average quantity (Q1+Q2)/2 and average price (P1+P2)/2 as denominators; you can compute both averages simultaneously here by entering (Q1, P1) and (Q2, P2).
Chain your coordinate geometry workflow with our companion browser calculators: use the Distance Between Two Points Calculator to compute the straight-line length d between the same two endpoints, the Line Equation Calculator to find the slope and perpendicular bisector through M, or the Pythagorean Theorem Calculator and Vector Magnitude Calculator to evaluate right-triangle legs and 3D vectors.


Use our free distance between two points calculator to find the 2D Euclidean distance between (x1, y1) and (x2, y2) with step-by-step distance formula rules.
Open tool
Find the straight-line equation y = mx + b or vertical x = c through any two points (x1, y1) and (x2, y2) with our free browser line equation calculator.
Open tool
Calculate the hypotenuse of any right triangle from its two perpendicular legs with our free Pythagorean theorem calculator. Includes triples table and steps.
Open toolChoose another tool for your next calculation, conversion, or text task.

Calculate the Euclidean length of any 2D or 3D vector with our free vector magnitude calculator. Enter X, Y, and Z components for instant, exact results.
Open tool
Calculate the area of any rectangle or square from its width and height with our free rectangle area calculator. Includes room sizing table and examples.
Open tool
Use our free triangle area calculator and area of a triangle calculator to compute A = (b * h) / 2 from base and perpendicular height in your browser.
Open tool
Use this arc length calculator to find circular arc length from radius and central angle (θ/360 × 2πr) up to 12 digits with a lookup table and examples.
Open toolAnswers about using Midpoint Calculator and understanding its results.
Add the two x-coordinates together and divide by 2, then add the two y-coordinates together and divide by 2: M = ((x1 + x2) / 2, (y1 + y2) / 2). Be careful not to subtract the coordinates: subtraction (x2 - x1) is used in the distance and slope formulas, whereas the midpoint formula always adds (x1 + x2) before dividing by 2.
Multiply each midpoint coordinate by 2 and subtract the known endpoint coordinate: x2 = 2*x_m - x1 and y2 = 2*y_m - y1. For example, if endpoint P1 is (1, 3) and the midpoint M is (4, 7), the missing endpoint P2 is (2 * 4 - 1, 2 * 7 - 3) = (7, 11).
To find the 1D midpoint (arithmetic mean) between two single numbers a and b, enter a in First x coordinate, enter b in Second x coordinate, and leave both First y coordinate and Second y coordinate set to 0. For 470 and 806, the calculator returns (638, 0), where 638 is the exact halfway number (470 + 806) / 2.
Yes. If the sum of the two x-coordinates or y-coordinates is negative, the corresponding midpoint coordinate is negative (for instance, (-8 + (-2)) / 2 = -5). Whenever the sum of two integer coordinates is odd, dividing by 2 produces a .5 decimal (such as (0 + 3) / 2 = 1.5).
First run your two endpoints (x1, y1) and (x2, y2) here to get the midpoint M(x_m, y_m). Next, find the segment slope m = (y2 - y1) / (x2 - x1) in the Line Equation Calculator. The perpendicular bisector is the line passing through M(x_m, y_m) with negative reciprocal slope -1/m: y - y_m = -(1/m)*(x - x_m).
Choose another tool for your next calculation, conversion, or text task.