Example 1: A Simple 2D Midpoint
Suppose the endpoints are:
and
Use the 2D midpoint formula:
Substitute the coordinates:
Simplify each coordinate:
So the midpoint is:
The point \((2, 6)\) is halfway between \((-4, 2)\) and \((8, 10)\).
Use this Midpoint Calculator to enter values, adjust options, and review results in a compact responsive workspace.
Results are calculated automatically as you enter data.
▼ See explanations and tips below ▼
A midpoint is the point exactly halfway between two endpoints of a line segment. If point \(A\) and point \(B\) are the ends of a segment, the midpoint \(M\) divides that segment into two equal parts: \(AM\) and \(MB\).
In coordinate geometry, a point is described by coordinates. In two dimensions, a point has an \(x\)-coordinate and a \(y\)-coordinate, such as \((-4, 2)\). In three dimensions, it also has a \(z\)-coordinate, such as \((-3, 5, 1)\).
The key idea is simple: the midpoint is found by averaging matching coordinates. The midpoint’s \(x\)-coordinate is halfway between the two endpoint \(x\)-coordinates, the midpoint’s \(y\)-coordinate is halfway between the endpoint \(y\)-coordinates, and in 3D the midpoint’s \(z\)-coordinate is halfway between the endpoint \(z\)-coordinates.
This makes the midpoint useful whenever you need the center point of a segment, the center of a diameter, a halfway location in a coordinate model, or a simple way to divide a straight segment evenly.
Midpoints connect arithmetic with geometry. Instead of estimating the center of a segment by looking at a graph, you can calculate it exactly from the endpoint coordinates.
Students use the midpoint formula in coordinate geometry, algebra, analytic geometry, and calculus. It is also useful in applied settings where coordinates represent positions on a drawing, grid, screen, map-like plane, model, or 3D coordinate system.
Common uses include:
The midpoint is not just “somewhere between” two points. It is the exact point that is equally far from both endpoints along the segment.
The midpoint formula works because each coordinate of the midpoint must lie halfway between the corresponding coordinates of the endpoints.
For a 2D segment with endpoints:
and
the midpoint is:
The formula adds the two \(x\)-coordinates and divides by \(2\), then does the same for the two \(y\)-coordinates.
In 3D, the same idea extends to the \(z\)-coordinate. For endpoints:
and
the midpoint is:
Where:
The vector from \(A\) to \(B\) is found by subtracting the coordinates of \(A\) from the coordinates of \(B\).
In 2D:
In 3D:
The distance between the endpoints is the length of that vector. In 2D:
In 3D:
The midpoint tells you where the halfway point is. The vector tells you the direction and coordinate change from \(A\) to \(B\). The distance tells you how long the segment is.
Suppose the endpoints are:
and
Use the 2D midpoint formula:
Substitute the coordinates:
Simplify each coordinate:
So the midpoint is:
The point \((2, 6)\) is halfway between \((-4, 2)\) and \((8, 10)\).
Suppose the endpoints are:
and
Use the 3D midpoint formula:
Simplify:
So the midpoint is:
This point is halfway between the endpoints in all three coordinate directions: \(x\), \(y\), and \(z\).
The vector from \(A\) to \(B\) is:
The distance between the endpoints is:
Suppose the endpoints are:
and
The midpoint is:
So the midpoint is:
As decimals, this is:
Fractional midpoint coordinates are normal. They happen whenever the average of a coordinate pair is not a whole number.
If both endpoints are the same point, the midpoint is the same point.
For example:
and
Then:
The vector from \(A\) to \(B\) is \((0, 0)\), and the distance is \(0\). This makes sense because the segment has no length when both endpoints are identical.
The midpoint result is a coordinate point. It is not a distance, slope, area, or angle. It tells you the location of the point exactly halfway between the two endpoints.
In 2D, the result has the form:
In 3D, the result has the form:
Each coordinate should be interpreted in the same coordinate system and unit scale as the inputs. If your input coordinates represent meters, the midpoint coordinates represent meters. If the coordinates are unitless grid values, the midpoint is also expressed in those same unitless grid values.
The decimal midpoint is useful when the exact midpoint includes halves or decimal values. A midpoint such as:
may also be written as:
The vector from \(A\) to \(B\) shows the coordinate change from the first endpoint to the second endpoint. For example, a vector of \((10, -6, 8)\) means you move \(10\) units in the positive \(x\) direction, \(6\) units in the negative \(y\) direction, and \(8\) units in the positive \(z\) direction.
The distance value is the length of the segment between the endpoints. It is useful for understanding how far apart the endpoints are, but it is not the midpoint itself.
The coordinate preview is a visual aid. It can help you see the endpoints, the segment, and the midpoint, but the numeric result comes from the coordinate formulas.
Mistake 1: Averaging all numbers together instead of matching coordinates.
The midpoint formula averages corresponding coordinates separately. Do not combine every coordinate into one large average. Average the two \(x\)-values, then the two \(y\)-values, and in 3D the two \(z\)-values.
Mistake 2: Confusing midpoint with distance.
The midpoint is a location. Distance is a length. A midpoint result looks like a point, such as \((2, 6)\). A distance result is a single number, such as \(14.1421\).
Mistake 3: Subtracting coordinates instead of adding them.
Subtraction is used for vectors and distance. Addition is used for the midpoint. For the midpoint, add matching coordinates and divide by \(2\).
Mistake 4: Mixing up \(x\), \(y\), and \(z\) fields.
Coordinate order matters. In \((x, y, z)\), the first number is \(x\), the second is \(y\), and the third is \(z\). Swapping coordinates can move the midpoint to a different location.
Mistake 5: Using 2D mode for a 3D problem.
If the points have \(z\)-coordinates, use 3D mode. Otherwise, the midpoint will be calculated only from the \(x\)- and \(y\)-coordinates.
Mistake 6: Expecting blank fields to stop the calculation.
Blank, malformed, non-finite, or unsupported exceptionally long coordinate entries are treated as \(0\). If a result looks unexpectedly centered near the origin, check whether any coordinate field was left empty or outside the calculator's supported decimal range.
Mistake 7: Using latitude and longitude as if they were flat Cartesian coordinates.
The midpoint formula here is for Cartesian coordinates in a flat 2D plane or a 3D coordinate system. Geographic latitude and longitude describe positions on Earth and require different methods for accurate geographic midpoints.
Mistake 8: Assuming the graph uses a fixed physical scale.
A coordinate preview may scale automatically to fit the points on screen. Use the numeric coordinates for the exact midpoint.
Use the midpoint formula when you have two endpoints and need the point halfway between them in a Cartesian coordinate system.
It is especially useful for:
The formula is best used when the segment is straight and the coordinates belong to the same Cartesian system.
The midpoint formula is exact for Cartesian coordinates, but it does not apply to every kind of coordinate system.
Keep these limitations in mind:
For homework, diagrams, and ordinary coordinate geometry, the midpoint formula is usually enough. For engineering, surveying, navigation, official records, mapping, or safety-related work, check that the coordinate system is appropriate and verify results with the required professional tools or standards.
Yes, but the average is taken coordinate by coordinate. In 2D, average the two \(x\)-coordinates and average the two \(y\)-coordinates. In 3D, also average the two \(z\)-coordinates.
The midpoint does not change if you swap point \(A\) and point \(B\), because addition gives the same coordinate sums either way. The distance also stays the same. The vector from \(A\) to \(B\), however, changes direction if the points are swapped.
A midpoint has a fractional or decimal coordinate when the average of a coordinate pair is not a whole number. For example, the average of \(-2\) and \(3\) is \(\frac{1}{2}\), which is \(0.5\).
No. The midpoint is a coordinate location halfway between the endpoints. The distance is the length of the segment connecting the endpoints.
Not for an accurate geographic midpoint. Latitude and longitude are coordinates on Earth, not ordinary flat Cartesian coordinates. For geographic midpoint work, use a method designed for spherical or ellipsoidal Earth coordinates.
The midpoint is the same as the endpoint. The vector components are all \(0\), and the distance between the two points is \(0\).
Books