Mathematics calculator

Midpoint Calculator

Find the coordinate halfway between two points by averaging matching x- and y-coordinates.

Calculator inputs

Enter your values

Coordinate geometry
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

Two coordinate points connected by a segment with its midpoint marked halfway
Average the two x-values together and the two y-values together.

What Is the Midpoint of a Line Segment?

A midpoint is the point halfway along a line segment. In a two-dimensional coordinate plane, you find it by averaging the two x-coordinates and averaging the two y-coordinates separately.

This midpoint calculator returns the ordered pair and its separate x and y values. It accepts negative, zero and decimal coordinates. Use it to locate the center of a segment on a grid, position a point between two drawing coordinates or check a coordinate geometry solution. It does not calculate distance, slope, three-dimensional coordinates or a route between geographic locations.

How to Find a Midpoint from Two Coordinates

  1. Enter First point x₁ and First point y₁ for one endpoint. Keep x first and y second.
  2. Enter Second point x₂ and Second point y₂ for the other endpoint in the same coordinate system.
  3. Select Calculate. The page averages the x-values and y-values separately.
  4. Read the midpoint as an ordered pair (x, y). Verify it by checking that the change from the first endpoint to the midpoint equals the change from the midpoint to the second endpoint.

If coordinates represent lengths, use matching units for corresponding entries. The calculator has no unit converter or geographic projection. Coordinates on a drawing or screen may use a different direction for the y-axis, but the averaging rule still works as long as both endpoints use that same system.

Midpoint Formula for x and y

Midpoint x-coordinate xₘ = (x₁ + x₂) ÷ 2

Midpoint y-coordinate yₘ = (y₁ + y₂) ÷ 2

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

Average matching coordinates; do not add all four numbers and divide by four. An equivalent form is xₘ = x₁ + (x₂ − x₁)/2, with the same relationship for y. Each coordinate moves halfway from the first endpoint to the second.

The OpenStax coordinate geometry chapter derives the midpoint formula. Reversing the endpoints leaves both coordinate sums unchanged, so it gives the same midpoint.

Endpoint Coordinates and Midpoint Results

First point x₁, y₁
Horizontal and vertical coordinates of the first endpoint, entered as separate numbers.
Second point x₂, y₂
Coordinates of the second endpoint in the same coordinate system.
Midpoint M
The main ordered-pair result. Its first number is xₘ and its second is yₘ.
Midpoint x-coordinate
Average of x₁ and x₂, shown separately for checking or copying.
Midpoint y-coordinate
Average of y₁ and y₂. Coordinates inherit the input scale; the page does not attach or convert a physical unit.

Midpoint Calculation Example

Illustrative example. Let A = (−6, 3) and B = (10, −5). Enter −6 and 3 for the first point, then 10 and −5 for the second.

The x-coordinate is (−6 + 10) ÷ 2 = 2. The y-coordinate is (3 − 5) ÷ 2 = −1. The midpoint is therefore M = (2, −1).

From A to M, the coordinate change is (+8, −4). From M to B, it is also (+8, −4). Equal changes on both halves confirm that M lies halfway along the segment.

Calculation check. These illustrative values were checked independently against the formula and the calculator response. Keep intermediate precision when repeating the steps.

Midpoint Calculation Example
CoordinateAverage
xₘ(−6 + 10) ÷ 2 = 2
yₘ(3 + (−5)) ÷ 2 = −1
Midpoint M(2, −1)

Midpoint, Distance and Missing Endpoint

The same two points can answer different geometry questions. This calculator finds the center, while the distance formula measures segment length. If you know one endpoint and the midpoint, rearrange the midpoint relationship to recover the other endpoint.

Midpoint, Distance and Missing Endpoint
QuestionRelationship
Find the midpointAverage matching endpoint coordinates
Find the distance√((x₂ − x₁)² + (y₂ − y₁)²)
Find a missing endpointx₂ = 2xₘ − x₁; y₂ = 2yₘ − y₁

How to Check and Use the Midpoint

The midpoint lies on the segment and is equally far from its endpoints. If one coordinate is unchanged between the endpoints, that coordinate also stays unchanged at the midpoint. If both endpoints are identical, their midpoint is that same point.

For a quick check, the midpoint x-value must lie between the two endpoint x-values, and the y-value must lie between the endpoint y-values. Opposite coordinates of equal size average to zero, so the midpoint of (−a, −b) and (a, b) is the origin.

The equal coordinate changes on each half of the segment provide a stronger check than simply looking inside a bounding rectangle. For example, both horizontal half-changes and both vertical half-changes should match when measured in the same direction.

A coordinate midpoint is not a driving halfway point or necessarily a halfway point on Earth’s surface. Latitude/longitude, a curved path or a map projection can require another method. The result also does not give segment length or gradient. Those are separate questions even when they use the same endpoints.

Common Midpoint Mistakes

  • Pairing x₁ with y₂ instead of averaging x with x and y with y.
  • Dropping a minus sign when adding negative coordinates.
  • Dividing the total of all four entries by four.
  • Entering a known midpoint as the second endpoint. Use an endpoint calculator if one endpoint is missing.
  • Mixing coordinate systems, scales or geographic positions with a flat coordinate problem.

Frequently Asked Questions

Can midpoint coordinates be negative or zero?

Yes. Any of the four endpoint coordinates can be negative, zero or decimal. A midpoint may also lie on an axis or at the origin.

Does reversing the endpoints change the midpoint?

No. Adding the same two x-values and the same two y-values in the opposite order gives identical averages.

What if both endpoints are the same point?

The midpoint is that point. Both coordinate averages equal their original values.

Does the midpoint have to be one of the endpoints?

Only when both endpoints coincide. Otherwise it lies halfway along the segment between them.

Can this calculator find a missing endpoint?

This form needs both endpoints. If you know the midpoint and one endpoint, use x₂ = 2xₘ − x₁ and y₂ = 2yₘ − y₁, or the related endpoint calculator.

Does this find the halfway point of a journey?

It finds a flat coordinate midpoint, not a midpoint along a road or a curved path. Travel routes and geographic coordinates can require different methods.

How do I handle fractions in the coordinate fields?

The fields accept numeric values rather than expressions such as 1/2. Enter a terminating decimal such as 0.5, or convert a fraction separately and retain enough precision.

Why can the result contain more decimals than my inputs?

Averaging can introduce another decimal place. The endpoint does not force a fixed decimal rounding step; keep only the precision appropriate to your original coordinates when reporting it.

Sources and References