Midpoint Calculator
The midpoint of (0, 0) and (4, 6) is (2, 3). This midpoint calculator finds the point that sits exactly halfway between two points on a 2D coordinate plane. Enter the x and y coordinates of both points, and the tool averages the two x values and averages the two y values to return the midpoint coordinates. The midpoint formula, M = ((x1 + x2) / 2, (y1 + y2) / 2), shows up throughout geometry coursework, coordinate proofs, and any layout task where you need to locate the center of a line segment, such as finding the center of a rectangle from its diagonal corners or checking that a graphed segment is split evenly. Results are calculated instantly and rounded to 4 decimal places, so the calculator handles whole numbers, negative values, and decimals the same way.
Quick answer
The midpoint is the point that sits exactly halfway between two points on a coordinate plane.
What this tells you
- •The midpoint is the point that sits exactly halfway between two points on a coordinate plane.
- •You find its x value by averaging the two x-coordinates: (x1 + x2) / 2.
- •You find its y value by averaging the two y-coordinates: (y1 + y2) / 2.
- •The midpoint always lies on the straight line segment connecting the two points, at its exact center.
- •Negative coordinates work the same way. Adding a negative value simply lowers the sum before it is divided by 2.
- •Results are rounded to 4 decimal places, so long or repeating decimals display as a clean, readable number.
How to Use
- 1Enter the x and y coordinates of the first point (x1, y1). These can be positive, negative, or decimal values.
- 2Enter the x and y coordinates of the second point (x2, y2) using the same format.
- 3Double-check that you have not swapped an x value with a y value, since the calculator treats each field separately.
- 4Click Calculate to get the midpoint between the two points, shown as an (x, y) coordinate pair.
- 5Use the midpoint x and y values shown separately if you only need one coordinate, such as the center height of a vertical segment.
How It Works
Formula
M = ((x1 + x2) / 2, (y1 + y2) / 2)The midpoint formula averages each coordinate separately. Here, (x1, y1) is the first point and (x2, y2) is the second point. Add the two x values and divide by 2 to get the midpoint's x-coordinate, then add the two y values and divide by 2 to get the midpoint's y-coordinate. The resulting pair, M, is the point that lies exactly halfway along the straight line segment connecting the two original points, both in horizontal distance and vertical distance. This works because averaging two numbers always returns the value exactly between them, so walking from x1 to x2 reaches the midpoint x value after covering half that distance. The formula assumes a flat 2D Cartesian plane where each unit represents an equal step in both directions, and it does not require the two points to be entered in any particular order, since addition is commutative and (x1 + x2) always equals (x2 + x1).
Calculation note: values are processed in the order shown above, using the current input units.
Worked Examples
Midpoint of (0, 0) and (4, 6)
Average the x values: (0 + 4) / 2 = 2. Average the y values: (0 + 6) / 2 = 3. The midpoint is (2, 3), which is the exact center of the line segment connecting the two points.
Midpoint of (2, 3) and (8, 7)
Average the x values: (2 + 8) / 2 = 5. Average the y values: (3 + 7) / 2 = 5. The midpoint is (5, 5), a useful check when confirming a graphed line segment's center by hand.
Midpoint with negative coordinates: (-2, -4) and (2, 4)
Average the x values: (-2 + 2) / 2 = 0. Average the y values: (-4 + 4) / 2 = 0. The midpoint lands on the origin, which shows how a negative coordinate cancels out a positive one instead of making the sum smaller in the wrong direction.
Finding the center of a rectangle's diagonal
A rectangle with corners at (0, 0) and (12, 8) has a diagonal running between those two corners. Average the x values: (0 + 12) / 2 = 6. Average the y values: (0 + 8) / 2 = 4. The midpoint (6, 4) is the exact center of the rectangle, and the same method locates the center of any parallelogram from two opposite corners.
Midpoint with decimal coordinates
Average the x values: (1.23456 + 1.23457) / 2 = 1.234565, which rounds to 1.2346 at 4 decimal places. Average the y values: (1.5 + 2.7) / 2 = 2.1. This example shows how the calculator rounds a long decimal result to a clean, readable value without changing the underlying math.
Example Midpoints
Common point pairs and the midpoint between them, including negative coordinates and a rectangle diagonal.
| Point 1 | Point 2 | Midpoint |
|---|---|---|
| (0, 0) | (4, 6) | (2, 3) |
| (2, 3) | (8, 7) | (5, 5) |
| (-2, -4) | (2, 4) | (0, 0) |
| (1, 1) | (5, 9) | (3, 5) |
| (0, 0) | (12, 8) | (6, 4) |
| (-3, 5) | (7, -1) | (2, 2) |
Where the midpoint formula shows up
Geometry courses use the midpoint formula constantly, mostly to locate the exact center of a segment for proofs, perpendicular bisector constructions, or symmetry checks. If a triangle's median needs to hit the middle of the opposite side, the midpoint formula gives that exact point before the connecting line gets drawn.
Outside the classroom, the same math shows up in flat 2D design work. Game developers and UI designers place an object exactly between two markers on a canvas using this formula, since screen and canvas coordinates behave like a Cartesian plane. Drafters and builders use it to find the center of a wall segment, a diagonal brace, or a rectangular room from its two opposite corners.
The formula also supports quick sanity checks on graphed data. If two data points on a chart sit at (10, 20) and (50, 80), the midpoint (30, 50) confirms whether a trend line or a third labeled point lands where it should, which catches a transcription error before it carries into a larger report.
One limit worth remembering: the midpoint formula assumes a flat plane where each axis unit is equal in every direction. It is not the formula used to find the midpoint between two GPS coordinates on the curved surface of the Earth, which needs a calculation that accounts for latitude and longitude. For flat coordinate work such as diagrams, graphs, and 2D layouts, the formula shown here is exact.
Common mistakes
- Subtracting the coordinates instead of averaging them. The midpoint formula adds the values and divides by 2, so use (x1 + x2) / 2, not x2 - x1.
- Mixing the distance formula with the midpoint formula. The midpoint averages the coordinates, while the distance formula squares the differences, so they give different answers.
- Sign errors with negative coordinates. When a coordinate is negative, adding it lowers the sum, so (-2 + 2) / 2 = 0, not 2.
- Swapping an x value with a y value. Entering y1 into the x1 field shifts both coordinates of the result, so keep the horizontal and vertical values in their matching fields.
- Forgetting to divide by 2. Adding (x1 + x2) gives the sum of the two x values, not the midpoint x value, so the division step is required every time.
- Rounding the input coordinates before calculating. Round only the final midpoint, since rounding x1 or y1 first can shift the result by a small but real amount, especially with repeating decimals.
Embed this calculator on your site
Drop this single line where you want the calculator to appear. It is responsive, mobile-friendly, resizes automatically, and is free to use with attribution.
<script src="https://calctide.com/embed.js" data-tool="midpoint-calculator" async></script>Preview the embed at /embed/midpoint-calculator/.