Midpoint Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free midpoint calculator. Find the midpoint between two points (x₁, y₁) and (x₂, y₂), with the formula, the segment's length and its slope.

Distance
0
Slope
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the midpoint calculator

  1. Enter the first point's coordinates, x₁ and y₁.
  2. Enter the second point's coordinates, x₂ and y₂.
  3. Read the results. The midpoint calculator shows the midpoint, the distance between the two points (the length of the segment), and the segment's slope. The explanation shows the formula with your numbers.

Negative numbers and decimals work. Everything is calculated in your browser.

What is a midpoint?

The midpoint of a line segment is the point exactly halfway between its two endpoints. It's the same distance from both ends, and it divides the segment into two equal halves.

The midpoint formula

For points (x₁, y₁) and (x₂, y₂):

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

In words: average the x-coordinates and average the y-coordinates.

For the points (1, 2) and (7, 10):

  • x: (1 + 7) ÷ 2 = 4
  • y: (2 + 10) ÷ 2 = 6
  • Midpoint = (4, 6)

The midpoint calculator does this instantly, and also shows that the segment is 10 units long with a slope of 4/3 ≈ 1.333.

Distance and slope

The midpoint calculator also gives two related values:

  • Distance (length of the segment): d = √((x₂ − x₁)² + (y₂ − y₁)²), from the Pythagorean theorem. Our distance formula calculator covers this in detail, including 3D points.
  • Slope: m = (y₂ − y₁) ÷ (x₂ − x₁). It's undefined for vertical lines (when x₁ = x₂). See the slope calculator for the full line equation.

Finding an endpoint from the midpoint

If you know the midpoint M and one endpoint A, you can find the other endpoint B by reversing the formula:

x₂ = 2 × Mx − x₁ and y₂ = 2 × My − y₁

If the midpoint is (4, 6) and one end is (1, 2): x₂ = 8 − 1 = 7 and y₂ = 12 − 2 = 10, so the other end is (7, 10).

Midpoints in three dimensions

The same idea works in 3D: average each coordinate.

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

The midpoint of (0, 0, 0) and (4, 6, 8) is (2, 3, 4).

Why the formula works

The midpoint is halfway along the segment, so it's halfway between the two x-values and halfway between the two y-values. The average of two numbers is exactly the number halfway between them. Geometrically, if you draw a right triangle with the segment as its hypotenuse, the midpoint of the hypotenuse lines up with the midpoints of the horizontal and vertical sides.

Where midpoints are used

Geometry

  • Perpendicular bisectors: the line through the midpoint at right angles to the segment. Every point on it is the same distance from both endpoints.
  • Triangles: the line from a vertex to the midpoint of the opposite side is a median. The three medians meet at the centroid, the triangle's centre of mass.
  • Circles: the midpoint of a diameter is the circle's centre.
  • Parallelograms: the diagonals bisect each other, so they share a midpoint.

Maps and navigation

For short distances on a flat map, averaging coordinates gives a rough halfway point, useful for choosing a meeting place. For long distances on Earth, latitude and longitude don't behave like flat x and y coordinates, so the true halfway point on the Earth's surface needs spherical geometry (great-circle calculations).

Design and graphics

Designers use midpoints to centre elements: the centre of a box from (x₁, y₁) to (x₂, y₂) is its midpoint. In computer graphics, midpoint algorithms are used to draw lines and circles pixel by pixel.

Statistics

The midpoint of a class interval (for example, 20 to 30 → 25) is used to estimate the mean of grouped data.

Everyday life

Halfway between two prices, two times, two heights or two scores is simply their average, which is a one-dimensional midpoint. Our average calculator handles more than two values.

Common mistakes

  • Subtracting instead of adding: the midpoint uses (x₁ + x₂) ÷ 2, not (x₂ − x₁) ÷ 2. The difference is half the horizontal distance, not the midpoint.
  • Mixing up x and y values.
  • Sign errors with negative numbers: (−3 + 5) ÷ 2 = 1, not 4.
  • Using flat-map averages for long distances on Earth.

A worked example

Priya is designing a poster on a grid where the top-left corner is (0, 0). A photo spans from (40, 120) to (360, 400), and she wants to place a caption badge exactly at the photo's centre.

In the midpoint calculator: x = (40 + 360) ÷ 2 = 200, y = (120 + 400) ÷ 2 = 260. The centre is (200, 260). The diagonal of the photo is √(320² + 280²) ≈ 425.2 units long, with a slope of 0.875.

Who uses a midpoint calculator

Students and teachers use it for coordinate geometry. Designers use it to centre and align elements. Engineers, surveyors and CAD users use it for drawings and layouts. Programmers use it in graphics and game development.

Need more customers from Google?

This tool is free and runs in your browser. If your business also needs more leads or sales, Google Ads is where people search with their wallet out. DeepRit manages Google Ads for small and mid-size businesses, and only Google Ads. We check your account before we ever get on a call, then fix the structure, the keywords, the tracking and the ads, with month-to-month terms and no long contract. Book a free audit call.

Practice problems with answers

Point A Point B Midpoint
(0, 0) (10, 6) (5, 3)
(−4, 2) (6, 8) (1, 5)
(3, −5) (−7, 1) (−2, −2)
(1.5, 2.5) (4.5, 6.5) (3, 4.5)
(−8, −3) (−2, −9) (−5, −6)

Work them out by hand, then check with the midpoint calculator.

Dividing a segment in other ratios

The midpoint divides a segment in the ratio 1:1. The section formula generalises this: the point that divides the segment from A(x₁, y₁) to B(x₂, y₂) in the ratio m:n is:

P = ((n × x₁ + m × x₂) ÷ (m + n), (n × y₁ + m × y₂) ÷ (m + n))

With m = n = 1, it becomes the midpoint formula. For example, the point one third of the way from (0, 0) to (9, 6), a ratio of 1:2, is ((2 × 0 + 1 × 9) ÷ 3, (2 × 0 + 1 × 6) ÷ 3) = (3, 2).

Perpendicular bisector equation

To find the perpendicular bisector of the segment from (1, 2) to (7, 10):

  1. Midpoint: (4, 6), from the midpoint calculator.
  2. Slope of the segment: (10 − 2) ÷ (7 − 1) = 4/3.
  3. Perpendicular slope: the negative reciprocal, −3/4.
  4. Equation: y − 6 = −3/4 (x − 4), or y = −0.75x + 9.

Every point on this line is the same distance from (1, 2) and (7, 10). Perpendicular bisectors are used to find the centre of a circle through three points: it's where the perpendicular bisectors of two chords meet.

Midpoint of a time or date range

The midpoint idea works for any values on a number line. The midpoint between 9:00 and 17:00 is 13:00; the midpoint between two dates is halfway between them in days. Our date calculator counts the days, and you can halve the count to find the middle date.

Midpoints in navigation and meeting places

Finding a fair place to meet halfway between two towns is a common real-world use of midpoints. On a small scale, averaging map coordinates works well. Over longer distances, roads rarely run straight, so the midpoint in travel time can be very different from the geographic midpoint. Many map apps can suggest a place halfway by driving time, which is more useful for planning a meeting.

Midpoints in data and statistics

In statistics, midpoints appear when data is grouped into ranges. For example, if survey answers are grouped as ages 20–29, 30–39 and 40–49, the class midpoints are 24.5, 34.5 and 44.5 (for whole-number ages). To estimate the mean of grouped data, multiply each midpoint by the number of responses in that group, add them up and divide by the total. The estimate assumes values are spread evenly within each group, which is usually close enough for a quick summary.

Midpoints in graphics and animation

In computer graphics, midpoints are used to subdivide lines and curves. Repeatedly finding midpoints of the control points of a curve (de Casteljau's algorithm) is how many drawing programs draw smooth Bézier curves. Animators also use midpoints to place in-between frames halfway between two key positions. The same simple averaging the midpoint calculator does is the building block of these techniques.

Sources and further reading

Frequently asked questions

What is the midpoint formula?

M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2): average the x-coordinates and the y-coordinates.

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

(5, 7).

How do I find an endpoint if I know the midpoint?

Double the midpoint and subtract the known endpoint: x₂ = 2Mx − x₁, y₂ = 2My − y₁.

Does the midpoint formula work with negative coordinates?

Yes. Add the coordinates (including their signs) and divide by 2.

What is the midpoint in 3D?

Average all three coordinates: ((x₁ + x₂)/2, (y₁ + y₂)/2, (z₁ + z₂)/2).

Is the midpoint calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep