Midpoint Calculator

Midpoint(4, 7)
Distance between the points7.21
Slope of the line through them1.5
How this was calculated
  1. Average the x-coordinates: (2 + 6) ÷ 2 = 4.
  2. Average the y-coordinates: (4 + 10) ÷ 2 = 7. Together: the midpoint is (4, 7).
  3. The points sit 7.21 units apart (√((4)² + (6)²)), and the midpoint is exactly half of that from each end.
  4. As a check, the line through the points rises with slope 1.5, and the midpoint lies on it, halfway along.

A midpoint calculator finds the point exactly halfway between two coordinates on a plane. It averages the coordinates using the formula ((x1 + x2)/2, (y1 + y2)/2), giving you a single ordered pair that sits equidistant from both endpoints — exactly half the pair's distance from either end. The result works with whole numbers, decimals, and negatives alike: the midpoint of (2, 4) and (6, 10) is (4, 7), the midpoint of (-3, 5) and (3, -1) is (0, 2) (on the y-axis, because the x coordinates cancel), and the midpoint of (1.5, 2.5) and (4.5, 8.5) is (3, 5.5), showing that midpoints need not be whole numbers.

This averaging method is the accepted standard because it is simple, exact, and generalizes reliably. The same idea extends to 3D by adding a z term, and the formula underpins work in surveying, graphics, and geometry proofs. This page shows the formula, step-by-step workings, worked examples, and sources so you can verify every result yourself.

Worked examples

Two positive points

Primary result: (4, 7) — the average of the x's and the average of the y's. (2 · 4 · 6 · 10)

Midpoint(4, 7)
Distance between the points7.21
Slope of the line through them1.5

Points in opposite quadrants

Primary result: (0, 2) — the negatives cancel in x, leaving the midpoint on the y-axis. (-3 · 5 · 3 · -1)

Midpoint(0, 2)
Distance between the points8.49
Slope of the line through them-1

Half-unit coordinates

Primary result: (3, 5.5) — midpoints need not be whole numbers. (1.5 · 2.5 · 4.5 · 8.5)

Midpoint(3, 5.5)
Distance between the points6.71
Slope of the line through them2

The midpoint formula

The midpoint formula takes the average of the x-coordinates and the average of the y-coordinates. Written out, the midpoint of two points (x1, y1) and (x2, y2) is ((x1 + x2)/2, (y1 + y2)/2). Averaging is the right operation here because a midpoint must sit exactly halfway between the endpoints along each axis. When you add two coordinates and divide by two, you land on the value that splits the distance evenly. The midpoint is equidistant from both endpoints: each verified midpoint sits exactly half the pair's distance from either end.

A quick example shows the formula at work. Take the points (2, 4) and (6, 10). The x-coordinates average to (2 + 6)/2 = 4, and the y-coordinates average to (4 + 10)/2 = 7, giving a midpoint of (4, 7). The original points are 7.21 apart with slope 1.5, and the midpoint sits at half that distance from either end. A midpoint calculator applies this same averaging step behind the scenes, so you get the result without doing the arithmetic by hand. The same logic holds even when the numbers are not clean integers. The midpoint of (1.5, 2.5) and (4.5, 8.5) is (3, 5.5), confirming that midpoints need not be whole numbers.

Negative coordinates work the same way, and the averaging can produce a useful zero. The midpoint of (-3, 5) and (3, -1) is (0, 2). The x-coordinates cancel because -3 and 3 sum to zero, so the midpoint lands on the y-axis. This is not a special case or a trick — it is simply what happens when two coordinates are symmetric around zero. The averaging formula handles positive numbers, negative numbers, and decimals without any adjustment.

The same averaging idea extends beyond two dimensions. In three dimensions, you add a z term and compute (x1 + x2)/2, (y1 + y2)/2, (z1 + z2)/2. The principle stays the same: average each coordinate separately. This makes the formula useful in surveying, graphics, and geometry proofs, where finding the center of a line segment is a common step. Whether the coordinates are large, small, positive, negative, or fractional, the operation does not change.

Worked examples

The midpoint formula averages the coordinates of both endpoints: ((x1 + x2)/2, (y1 + y2)/2). To show how a midpoint calculator handles different inputs, the three pairs below cover a standard case, a pair with negative coordinates, and a pair with decimal values.

The first pair, (2, 4) and (6, 10), produces a midpoint of (4, 7). The two points sit 7.21 units apart, and the line connecting them has a slope of 1.5. The second pair, (-3, 5) and (3, -1), has a midpoint of (0, 2). Because the x coordinates are opposites, they cancel during averaging, so the midpoint lands on the y-axis. The third pair, (1.5, 2.5) and (4.5, 8.5), yields a midpoint of (3, 5.5). This confirms that midpoints need not be whole numbers, even when both endpoints use decimals.

Each verified midpoint is equidistant from both endpoints, sitting exactly half the pair's distance from either end. The same averaging idea extends beyond two dimensions by adding a z term for 3D coordinates. The concept also applies to line segments in surveying, graphics, and geometry proofs, where finding the center point of a segment is a common step.

First pointSecond pointMidpointDistanceSlope
(2, 4)(6, 10)(4, 7)7.211.5
(-3, 5)(3, -1)(0, 2)——
(1.5, 2.5)(4.5, 8.5)(3, 5.5)——

Checking with distance

A reliable midpoint calculator does more than just average coordinates. Because the midpoint is equidistant from both endpoints, you can always check your result by measuring the distance from the midpoint to either end. Each midpoint sits exactly half the pair's distance from either end, which gives you a built-in error check. If the two distances do not match, something went wrong in the calculation.

Take the verified example of (2, 4) and (6, 10). These points are 7.21 apart, so the midpoint of (4, 7) should be half that distance — roughly 3.61 — from each endpoint. You can measure from (4, 7) back to (2, 4) and then from (4, 7) to (6, 10). Both legs come out equal, which confirms the midpoint formula ((x1 + x2)/2, (y1 + y2)/2) produced the correct result. The slope of 1.5 stays consistent across both halves as well, reinforcing that the point truly sits in the middle.

The same check holds even when the coordinates involve negatives or decimals. The midpoint of (-3, 5) and (3, -1) is (0, 2), a point that lands on the y-axis because the x coordinates cancel each other out. Measuring from (0, 2) to either endpoint yields the same distance, confirming the midpoint is equidistant from both ends. The same applies to (1.5, 2.5) and (4.5, 8.5), whose midpoint of (3, 5.5) proves that midpoints need not be whole numbers. In every case, the distance from the midpoint to either endpoint comes out to exactly half the total distance between the two original points.

This distance check is not limited to two dimensions. The same averaging idea extends to 3D by adding a z term, and the equidistant property still applies — the midpoint remains half the total distance from each endpoint. Whether you are working through geometry proofs, plotting points in graphics, or measuring line segments in surveying, confirming that both halves match gives you confidence that your midpoint calculator returned the right answer.

Quick check: Divide the total distance between the two endpoints by 2. If the distance from your midpoint to either end does not equal that value, recheck your calculation.

Midpoints with negative coordinates

Negative coordinates do not change how a midpoint calculator works. The formula still averages the coordinates: ((x1 + x2)/2, (y1 + y2)/2). What changes is sign discipline — you must respect the signs of each coordinate when you add them, or the average will be wrong. A negative x value is not the same as a positive one, and dropping a sign is the most common error people make when working with points that cross the axes.

Consider the points (-3, 5) and (3, -1). The x coordinates are -3 and 3, which sum to 0, so the x coordinate of the midpoint is 0. The y coordinates are 5 and -1, which sum to 4, giving a y midpoint of 2. The verified midpoint of (-3, 5) and (3, -1) is (0, 2) — on the y-axis, because the x coordinates cancel. This is a useful illustration of what happens when endpoints sit on opposite sides of an axis: the midpoint can land directly on that axis rather than between the two points in the usual way. The result is still equidistant from both endpoints, just as with any other pair of points.

The same care applies to decimals and mixed signs. The verified midpoint of (1.5, 2.5) and (4.5, 8.5) is (3, 5.5) — midpoints need not be whole numbers. When negative decimals appear, keep the sign attached to the number through every step of the addition. For example, a point at (-2.5, 6) paired with one at (4.5, -2) gives an x average of 1 and a y average of 2, for a midpoint of (1, 2). The arithmetic is no different from the positive case; the signs simply need to travel with their values.

This sign discipline matters in the same applications where midpoint calculations appear in practice. The same averaging idea extends to 3D by adding a z term, and to line segments in surveying, graphics and geometry proofs. In surveying, coordinates routinely run negative when a site spans both sides of a benchmark. In computer graphics, objects often cross the origin of a coordinate system. In each case, the midpoint is still the average of the endpoints, and the midpoint is equidistant from both endpoints — each verified midpoint sits exactly half the pair's distance from either end. Getting a sign wrong shifts the midpoint off that equal footing, which is why careful sign handling is the single most important habit when negative coordinates are involved.

Finding an endpoint instead

A common exam variation flips the standard question: instead of finding the midpoint from two endpoints, you are given the midpoint and one endpoint, then asked to find the other endpoint. The same averaging principle that powers a midpoint calculator still applies — you simply rearrange the formula to solve for the missing point.

The midpoint averages the coordinates of the two endpoints: ((x1 + x2)/2, (y1 + y2)/2). To find a missing endpoint, rearrange this relationship so that endpoint = 2 × midpoint − known endpoint. You apply this separately to the x-coordinate and the y-coordinate. For example, if the midpoint is (4, 7) and one endpoint is (2, 4), the missing endpoint is (2 × 4 − 2, 2 × 7 − 4), which gives (6, 10). You can confirm the result by checking that the midpoint of (2, 4) and (6, 10) is indeed (4, 7).

This method works with negative coordinates and decimal values just as well. If your midpoint is (0, 2) and one endpoint is (-3, 5), the other endpoint is (2 × 0 − (-3), 2 × 2 − 5), which simplifies to (3, -1). The midpoint of (-3, 5) and (3, -1) is (0, 2) — on the y-axis, because the x coordinates cancel. Similarly, if the midpoint is (3, 5.5) and one endpoint is (1.5, 2.5), the missing endpoint is (2 × 3 − 1.5, 2 × 5.5 − 2.5), which gives (4.5, 8.5). Midpoints need not be whole numbers, and neither do endpoints.

The midpoint is equidistant from both endpoints: each verified midpoint sits exactly half the pair's distance from either end. This gives you a built-in check. In the first example, the points (2, 4) and (6, 10) are 7.21 apart with slope 1.5, so the midpoint (4, 7) should sit half that distance — roughly 3.61 — from each endpoint. If your calculated endpoint does not produce this symmetry, recheck the arithmetic. The same averaging idea extends to 3D by adding a z term, and to line segments in surveying, graphics and geometry proofs, where the endpoint formula generalizes in the same way.

Formula: endpoint = 2 × midpoint − known endpoint. Apply it to the x-coordinate and y-coordinate separately.

Where midpoints are used

In geometry, the midpoint marks the exact center of a line segment, and it plays a central role in bisectors and medians. A segment bisector is any line, ray, or segment that passes through the midpoint, dividing the original segment into two equal parts. Triangles rely on medians, which connect each vertex to the midpoint of the opposite side. Because the midpoint is equidistant from both endpoints, each verified midpoint sits exactly half the pair's distance from either end, making it a reliable anchor for constructing perpendicular bisectors and proving triangle congruence.

Mapping and computer-aided design depend on center points for placing labels, symbols, and reference markers. When a CAD program draws a line between two points, the midpoint function lets a designer snap new elements to the center of that line without measuring manually. The midpoint averages the coordinates: ((x1 + x2)/2, (y1 + y2)/2). The midpoint of (2, 4) and (6, 10) is (4, 7); the points are 7.21 apart with slope 1.5. The midpoint of (-3, 5) and (3, -1) is (0, 2), which lands on the y-axis because the x coordinates cancel. Midpoints need not be whole numbers, either: the midpoint of (1.5, 2.5) and (4.5, 8.5) is (3, 5.5). A midpoint calculator handles these decimal inputs just as cleanly as integer pairs.

Data work uses the same averaging idea for positions in two or more dimensions. Analysts average coordinate pairs to find a representative center for clusters of points, such as the mean location of store deliveries or sensor readings. The same averaging idea extends to 3D by adding a z term, which puts the midpoint formula to work in surveying, graphics, and geometry proofs. Surveyors use it to mark the center of a measured boundary, graphics engines use it to position camera views between two reference points, and students use it in proofs that require a point exactly halfway along a segment.

Across these fields, the value of finding a midpoint comes down to balance. Whether the task is splitting a segment in a geometry proof, snapping a feature in CAD, or averaging positions in a dataset, the midpoint gives a single point that represents the center fairly. A midpoint calculator removes the arithmetic step so the focus stays on the design, the proof, or the analysis at hand.

FAQs

What is the midpoint of (2, 4) and (6, 10)?

The midpoint is (4, 7). To get this, average the x coordinates (4) and the y coordinates (7). You add the x values and divide by 2, then do the same for the y values. This gives you the point exactly in the middle of the two original coordinates.

How do you find the midpoint formula?

The midpoint formula is ((x1 + x2)/2, (y1 + y2)/2). You add each pair of coordinates and halve the sum. For the x values, add x1 and x2, then divide by 2. Do the same for the y values. The result is the coordinate pair sitting directly between your two endpoints.

Can a midpoint have decimal coordinates?

Yes, a midpoint can have decimal coordinates. For example, (1.5, 2.5) and (4.5, 8.5) meet at (3, 5.5). When you add two coordinates and divide by 2, the result is not always a whole number. Decimals appear naturally whenever the sum of a coordinate pair is odd.

How do I find the missing endpoint from a midpoint?

To find the missing endpoint, double the midpoint and subtract the known endpoint coordinate-wise. For each axis, take the midpoint value, multiply it by 2, then subtract the known endpoint value on that same axis. This reverses the averaging process and gives you the missing coordinate.

Is the midpoint always inside the segment?

Yes, by construction the midpoint lies on the segment, exactly half the total distance (3.60 of 7.21 in the first case) from either end. Because it is the average of the two endpoints, it always falls between them. It never sits outside the segment it belongs to.

What is the midpoint of a line crossing the origin?

It can be the origin itself when the endpoints are reflections, like (-3, 5) and (3, -1) meeting at (0, 2) — on an axis, in this case. The midpoint still follows the same averaging rule, so it lands on an axis when the coordinates align that way.

Sources

Related calculators

Distance Between Two Points Calculator
The straight-line distance between two coordinate points, with the midpoint, the horizontal and vertical gaps, and the slope of the line through them.
Slope Calculator
Slope, angle, distance and midpoint between two points, plus the full equation of the line through them — the whole coordinate-geometry answer in one go.
Vector Dot Product Calculator
The dot product of two 3D vectors, their magnitudes and the angle between them — and what the sign of the result tells you.
Pythagorean Theorem Calculator
Find the hypotenuse from two legs, or a missing leg from the hypotenuse — with area and perimeter of the triangle thrown in.