AI Tools Free

Midpoint Calculator

Enter 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.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate result.

Your result
Enter your details

Result will appear here

How to Calculate Midpoint & Core Midpoint Formula

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.

2D Cartesian coordinate diagram showing endpoints P1(x1, y1) and P2(x2, y2) with midpoint M((x1+x2)/2, (y1+y2)/2) bisecting both horizontal and vertical projections.
The midpoint M((x1 + x2)/2, (y1 + y2)/2) bisects both the horizontal projection [x1, x2] and vertical projection [y1, y2].

2D Midpoint Formula Calculator Quick Reference Table

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)

Step-by-Step Guide to Using the Midpoint Calculator

Follow these three steps in the workspace above to enter your endpoints and export the midpoint tuple.

Enter Point 1 Coordinates (x1, y1)

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.

Input and settings
Input fields for First x coordinate and First y coordinate preloaded with 0 and 0.
Step 1: Enter the first endpoint (x1, y1) in First x coordinate and First y coordinate.

Enter Point 2 Coordinates (x2, y2)

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.

Tool result
Input fields for Second x coordinate set to 3 and Second y coordinate set to 4.
Step 2: Supply the second endpoint (x2, y2), or set both y-fields to 0 for 1D numbers.

Click Calculate Result and Save

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.

Review the details
Result panel displaying the midpoint (1.5, 2) with Copy and Download action buttons.
Step 3: Read the ordered pair (x_m, y_m) and copy or download result.txt.

Practical Worked Examples to Calculate Midpoint Coordinates

These three worked examples illustrate how to calculate midpoint coordinates for 2D segments, negative quadrants, and 1D number-line intervals.

Preloaded Origin-to-Point Segment: (0, 0) and (3, 4)

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).

Plot of segment from (0, 0) to (3, 4) bisected at midpoint M = (1.5, 2).
Worked Case 1: Origin (0, 0) to (3, 4) bisected at exact midpoint M = (1.5, 2).

Cross-Quadrant Negative Coordinates: (-6, 8) and (2, -4)

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).

Segment connecting (-6, 8) and (2, -4) across axes with midpoint (-2, 2).
Worked Case 2: Cross-quadrant endpoints (-6, 8) and (2, -4) average to M = (-2, 2).

1D Number-Line & Class Interval Midpoint: 470 and 806

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.

1D number line showing endpoints 470 and 806 and their arithmetic mean 638.
Worked Case 3: Setting y1 = y2 = 0 computes the 1D number-line midpoint (638, 0) for 470 and 806.

How to Read and Verify the Midpoint Formula Calculator Output

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.

Diagram showing equal half-distances d(P1, M) = d(M, P2) = 2.5 and the reverse endpoint vector step.
Every midpoint satisfies d(P1, M) = d(M, P2) and solves the reverse endpoint equation P2 = 2M - P1.

Scope Limits, Coordinate Rules & Related Midpoint Formula Calculators

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.

Workflow diagram linking the Midpoint Calculator with the Distance Between Two Points, Line Equation, Pythagorean Theorem, and Vector Magnitude calculators.
Combine the Midpoint Calculator with the Distance Between Two Points, Line Equation, and Pythagorean Theorem tools.

Frequently Asked Questions About Midpoint Calculator

Answers about using Midpoint Calculator and understanding its results.

How do you calculate the midpoint of a line segment between two points?

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.

How do you find the other endpoint when given one endpoint and the midpoint?

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).

How can I find the midpoint between two single numbers like 470 and 806?

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.

Can midpoint coordinates be negative or decimals?

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).

How do I find the perpendicular bisector of a segment using this midpoint calculator?

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).

Calculate result with your input

Choose another tool for your next calculation, conversion, or text task.

Calculate result