ThisCalculator

Everyday

Midpoint Formula Calculator & How to Find the Midpoint

Updated · Standard formula, shown below

Midpoint x 5.00
Midpoint y
5.00
Result
Distance between points
7.21 units
Result
Point A x
2
You entered

This midpoint calculator works out the exact middle point between two coordinates on a 2D plane. You enter the x and y values of point A and point B, and you get the midpoint coordinates (xm, ym) instantly, along with the formula and a step-by-step example. It is a free, no-sign-up tool that handles positive, negative, and decimal coordinates.

Formula

The midpoint of two points A(x₁, y₁) and B(x₂, y₂) is found by averaging the x-coordinates and averaging the y-coordinates:

M = ( (x₁ + x₂) / 2 , (y₁ + y₂) / 2 )

Where:

  • x₁, y₁ – coordinates of the first point (A)
  • x₂, y₂ – coordinates of the second point (B)
  • M – the midpoint, with its own x and y coordinates

The result is a point that lies exactly halfway along the straight line segment connecting A and B. It is the same distance from both endpoints.

Worked Example

Using the default values from the calculator above: A = (2, 3) and B = (8, 7).

  1. Average the x-coordinates: (2 + 8) / 2 = 10 / 2 = 5
  2. Average the y-coordinates: (3 + 7) / 2 = 10 / 2 = 5
  3. Midpoint M = (5, 5)

The calculator also shows the distance between A and B: √((8−2)² + (7−3)²) = √(36 + 16) = √52 ≈ 7.21 units. The midpoint (5, 5) is indeed 3.605 units from each endpoint, confirming it is the halfway point.

Why the Midpoint Formula Works

The midpoint is simply the average of the two endpoints. Because a straight line has constant slope, the point that is halfway in the x-direction is also halfway in the y-direction. Averaging each coordinate separately gives the point that is equidistant from both endpoints along the line.

This works for any two points in a Cartesian plane, including points in different quadrants, points with negative coordinates, and points with fractional or decimal coordinates. The formula is derived from the section formula in coordinate geometry, where the ratio is 1:1.

When to Use the Midpoint Formula

The midpoint formula is used in many practical and academic contexts:

  • Geometry: finding the center of a line segment, the center of a rectangle (midpoint of a diagonal), or the center of a circle given two endpoints of a diameter.
  • Computer graphics: interpolating positions between two points for animation or drawing.
  • Navigation and mapping: finding a meeting point halfway between two locations on a straight path.
  • Physics: locating the center of mass of two equal-mass objects.
  • Data analysis: finding the median class midpoint in statistics.

Whenever you need the point that splits a segment into two equal parts, the midpoint formula is the tool.

Common Mistakes and How to Avoid Them

  • Forgetting to divide by 2: The most common error is adding the coordinates but not dividing. Remember, you are averaging, so divide each sum by 2.
  • Mixing up x and y: Keep the x-coordinates together and the y-coordinates together. A common slip is using x₁ + y₁ instead of x₁ + x₂.
  • Sign errors with negatives: When coordinates are negative, be careful with subtraction. For example, (−2 + 4)/2 = 2/2 = 1, not −1.
  • Using the distance formula instead: The midpoint is not the distance. Distance gives a single number; midpoint gives a coordinate pair.
  • Rounding too early: If your coordinates have many decimals, keep full precision until the final step to avoid accuracy loss.

Limits of the Midpoint Formula

The midpoint formula applies to Euclidean geometry on a flat plane. It does not account for:

  • Curved surfaces: On a sphere (like Earth), the halfway point along a great circle is not the simple average of latitude/longitude. For global navigation, use the haversine formula or a geodesic midpoint.
  • Three or more dimensions: The formula extends naturally to 3D by adding a z-coordinate average: ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2). The calculator here handles 2D only.
  • Weighted midpoints: If you need a point that is not exactly halfway (e.g., 30% of the way), you need the section formula, not the midpoint formula.

For straight-line distances on a map (as the crow flies), the midpoint works well for short distances where Earth’s curvature is negligible.

How to Read the Result

The output gives you two numbers: the x-coordinate and the y-coordinate of the midpoint. Together they form an ordered pair (xm, ym). You can plot this point on a graph to visually confirm it lies on the line segment between A and B.

The calculator also provides the distance between the two original points. This is useful for verifying that the midpoint is equidistant: the distance from A to M should equal the distance from M to B, which is half the total distance.

Frequently Asked Questions

What is the midpoint formula in 3D?

For three dimensions, add the z-coordinates as well: M = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2). The logic is identical – average each dimension independently.

Can the midpoint be a decimal or fraction?

Yes. If the sum of the coordinates is odd, the midpoint will have a .5 or other fractional value. For example, the midpoint of (1, 2) and (2, 5) is (1.5, 3.5). This is perfectly valid.

What is the difference between midpoint and average?

They are the same concept. The midpoint of two points is the average of their x-coordinates and the average of their y-coordinates. The term “average” is more general; “midpoint” specifically refers to the geometric point halfway between two locations.

How do I find the midpoint without a calculator?

Add the two x-coordinates, divide by 2, then add the two y-coordinates, divide by 2. Write the results as an ordered pair. For example, for (4, 6) and (10, 2): x = (4+10)/2 = 7, y = (6+2)/2 = 4, so the midpoint is (7, 4).

What if the two points are the same?

If both points are identical, the midpoint is that same point. The formula still works: (x+x)/2 = x, (y+y)/2 = y.

Does the midpoint formula work for negative coordinates?

Yes. Negative coordinates are handled exactly the same way. For example, the midpoint of (−4, −2) and (2, 6) is ((−4+2)/2, (−2+6)/2) = (−1, 2).

Related

Formula used
in x1 | Point A x | - | 2 | 0
in y1 | Point A y | - | 3 | 0
in x2 | Point B x | - | 8 | 0
in y2 | Point B y | - | 7 | 0
out xm | Midpoint x | - | (x1 + x2) / 2 | 2
out ym | Midpoint y | - | (y1 + y2) / 2 | 2
out dist | Distance between points | units | sqrt((x2 - x1)^2 + (y2 - y1)^2) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.