# Midpoint Calculator

URL: https://hifreetools.com/calculators/midpoint-calculator

> Find the exact midpoint between two points on a coordinate plane. Enter (x₁, y₁) and (x₂, y₂) to get the midpoint with each coordinate's step shown.

## Quick answer

The midpoint of two points (x₁, y₁) and (x₂, y₂) is M = ((x₁ + x₂)/2, (y₁ + y₂)/2). You average the two x-values to get the midpoint's x-coordinate and average the two y-values to get its y-coordinate. For example, the midpoint of (2, 3) and (8, 7) is (5, 5).

## Formula

- M = ((x₁ + x₂) ÷ 2, (y₁ + y₂) ÷ 2)
- d = √((x₂ − x₁)² + (y₂ − y₁)²)

The midpoint of a line segment is the point exactly halfway between its two endpoints. To find it, average the x-coordinates and average the y-coordinates separately: take x₁ + x₂ and divide by 2 for the midpoint's x-coordinate, then take y₁ + y₂ and divide by 2 for the midpoint's y-coordinate. The result M = ((x₁ + x₂)/2, (y₁ + y₂)/2) is always equidistant from both endpoints and lies directly on the segment connecting them. This calculator accepts negative and decimal coordinates and shows the arithmetic for each coordinate so you can follow the work.

## Inputs

- x₁ (-1000000000000 to 1000000000000); default 2
- y₁ (-1000000000000 to 1000000000000); default 3
- x₂ (-1000000000000 to 1000000000000); default 8
- y₂ (-1000000000000 to 1000000000000); default 7

## Worked examples (computed by the page's own function)

- x₁ = 2, y₁ = 3, x₂ = 8, y₂ = 7 → Midpoint (x, y) = 5, Midpoint y = 5, Distance between the points = 7.211103  (((2 + 8) ÷ 2, (3 + 7) ÷ 2) = (5, 5))
- x₁ = -4, y₁ = 2, x₂ = 6, y₂ = -8 → Midpoint (x, y) = 1, Midpoint y = -3, Distance between the points = 14.142136  (((-4 + 6) ÷ 2, (2 + -8) ÷ 2) = (1, -3))
- x₁ = 1.5, y₁ = 2.5, x₂ = 3.5, y₂ = 4.5 → Midpoint (x, y) = 2.5, Midpoint y = 3.5, Distance between the points = 2.828427  (((1.5 + 3.5) ÷ 2, (2.5 + 4.5) ÷ 2) = (2.5, 3.5))

## Verification

Checked against 12 reference cases (expected values computed independently). Reviewed 2026-10-27. Latest change 2026-10-27: Moved to the schema renderer with a sourced ledger; now also shows the distance between the two points.

## FAQ

**What is the midpoint formula?**
The midpoint formula is M = ((x₁ + x₂)/2, (y₁ + y₂)/2). You average the x-coordinates of the two endpoints and average their y-coordinates to get the point exactly halfway between them.

**How do I find the midpoint of two points by hand?**
Add the two x-coordinates and divide the sum by 2 to get the midpoint's x-value. Then add the two y-coordinates and divide by 2 for the midpoint's y-value. Write the answer as an ordered pair (x, y).

**Does the midpoint calculator work with negative numbers?**
Yes. Just enter negative coordinates as-is, for example -4. The formula adds the values keeping their signs, so the midpoint of (-4, 1) and (2, -5) is (-1, -2).

**Can I use decimals or fractions?**
Decimals work directly — for example (1.5, 2.5) and (4.5, 7.5) give a midpoint of (3, 5). For fractions, convert them to decimals first (½ = 0.5) before entering them.

**What is the difference between the midpoint and the distance between two points?**
The midpoint is the point halfway between two endpoints and uses addition: ((x₁ + x₂)/2, (y₁ + y₂)/2). The distance is how far apart they are and uses subtraction inside a square root: √((x₂ − x₁)² + (y₂ − y₁)²).

**How do I find an endpoint if I know the midpoint and one endpoint?**
Rearrange the formula: if M is the midpoint and A is the known endpoint, the other endpoint B = (2·Mₓ − Aₓ, 2·M_y − A_y). Double the midpoint's coordinates and subtract the known endpoint's coordinates.

**Is the midpoint always on the line segment?**
Yes. The midpoint always lies exactly on the segment joining the two endpoints and is equidistant from both, dividing the segment into two equal halves.


## Sources

- [Wolfram MathWorld — Midpoint](https://mathworld.wolfram.com/Midpoint.html)
- [Wolfram MathWorld — Distance](https://mathworld.wolfram.com/Distance.html)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Midpoint Calculator", https://hifreetools.com/calculators/midpoint-calculator
