Skip to main content

Midpoint Calculator

The midpoint of a plane segment is the average of the endpoints. Type x1, y1, x2, and y2. Distance and slope of the same segment live on other math pages.

Rated 4.7 out of 5 based on 318 reviews

Results

How to find a midpoint

  1. Enter the first endpoint as x1 and y1. The default first point is the origin.
  2. Enter the second endpoint as x2 and y2. The default second point is (4, 6).
  3. Read midpoint x and midpoint y. The default pair averages to (2, 3).
  4. Use the distance page for the length of the same segment. Use the slope page for rise over run.

Segment midpoint

Average of two plane endpoints

Formula((x1 + x2) / 2, (y1 + y2) / 2)
Default example(0, 0) and (4, 6) give (2, 3)
Dimension2D Cartesian. No z.
Related lengthEuclidean distance is a different page
Related slopem = (y2 - y1) / (x2 - x1) is a different page
UnitsWhatever you typed. The page does not convert units.

What a midpoint is

The midpoint sits halfway along the straight segment that joins two points. Each coordinate is the arithmetic mean of the matching endpoint coordinates. The default (0, 0) and (4, 6) give (2, 3). A 3D midpoint is not on this form.

How this page computes the midpoint

Midpoint x = (x1 + x2) / 2. Midpoint y = (y1 + y2) / 2. Every field must be a finite number. The page does not require x2 to be larger than x1. Coincident points still return that same point as the midpoint.

Midpoint, distance, and slope

Length of the same segment is Euclidean distance on the distance between two points page. Rise over run of the same two points is the slope calculator. A vertical segment still has a midpoint even when slope is undefined. Great-circle distance between latitudes is a different job on the haversine page.

Use cases

A geometry homework check, the center of a bounding box edge, or a CAD sketch where you already have two corners. Map scale conversion is not this page.

Limits

Plane only. No 3D. No unit conversion. IEEE floating point applies. CZNull does not receive the numbers.

Midpoint questions

What is the formula?
((x1 + x2) / 2, (y1 + y2) / 2). The default (0, 0) and (4, 6) give (2, 3).
Does this page also print distance?
No. Use the distance between two points calculator for the segment length.
Can I get the slope here?
No. Use the slope calculator with the same four numbers.
What if the points are the same?
The midpoint is that point. The formula still holds.
Is there a z coordinate?
No. This form is 2D.
Are the numbers uploaded?
No. The averages run in this tab.