Midpoint Calculator
Enter the x and y coordinates of two endpoints to instantly calculate the midpoint of the segment they form. The midpoint is the point exactly halfway between the two endpoints. This calculator also computes the full distance between the points as a bonus result.
Advertisement
Calculator
See your Midpoint Calculator results
Enter your email to unlock results — free forever.
No spam, ever. Unsubscribe at any time.
Advertisement
Formula
M = ((x₁+x₂)/2, (y₁+y₂)/2)
The midpoint M of a segment with endpoints (x₁, y₁) and (x₂, y₂) is found by averaging each coordinate pair independently. The x-coordinate of M is (x₁+x₂)/2 — the arithmetic mean of the two x-values. The y-coordinate of M is (y₁+y₂)/2 — the arithmetic mean of the two y-values. This works because each axis is independent: dividing the horizontal span in half and the vertical span in half simultaneously gives the point equidistant from both endpoints along the straight-line segment.
How to use the Midpoint Calculator
- 1
Enter your x₁ (first point)
- 2
Enter your y₁ (first point)
- 3
Enter your x₂ (second point)
- 4
Enter your y₂ (second point)
- 5
Read your results instantly
Results update in real time as you type.
Advertisement
Why averaging gives the midpoint
The midpoint formula works by applying a simple arithmetic principle to geometry: the average of two values is the number exactly halfway between them on a number line. For the x-axis alone, the midpoint of the interval from x₁ to x₂ is (x₁+x₂)/2 — the same as the average. The y-axis works identically. Because the two axes are perpendicular and independent, you can apply this averaging separately to each coordinate, and the resulting point (the average x, average y) is guaranteed to be equidistant from both endpoints in two-dimensional space.
You can verify this by checking that the distances from the midpoint to each endpoint are equal. If M = ((x₁+x₂)/2, (y₁+y₂)/2), then the distance from (x₁, y₁) to M equals the distance from M to (x₂, y₂), both equal to half the total distance between the original endpoints.
Midpoints in geometry proofs
Midpoints are fundamental tools in coordinate geometry proofs. The midsegment theorem states that the segment connecting the midpoints of two sides of a triangle is parallel to the third side and exactly half as long. Proving this requires calculating two midpoints and then verifying the slope and length conditions.
To prove a quadrilateral is a parallelogram using coordinates, compute the midpoints of both diagonals. If the midpoints are the same point, the diagonals bisect each other, which is both necessary and sufficient for a parallelogram. This approach is often faster than calculating slopes and distances for all four sides.
Midpoints also play a role in the perpendicular bisector construction: the perpendicular bisector of a segment passes through the midpoint and is perpendicular to the segment, making midpoint calculation the first step in that construction.
Advertisement
Real-world midpoint applications
Finding the midpoint of a line segment has many practical uses beyond pure mathematics. In construction and carpentry, a worker finding the center of a board or beam is computing the midpoint of its two ends. Interior designers finding the visual center of a wall for artwork placement are doing the same thing.
In computer graphics, midpoint calculations are used in the Bresenham midpoint algorithm for drawing circles and lines efficiently on pixel grids. In network topology, the midpoint between two nodes can indicate where to place a relay or repeater to minimize signal loss.
Geographic midpoints — the spot equidistant between two cities or landmarks — use a generalized version of the midpoint formula applied to spherical coordinates. The same principle applies: average the positions to find the center, then correct for the curvature of the Earth.
Tips & Insights
The midpoint does not depend on direction
You can swap the labels — call (x₂, y₂) the first point and (x₁, y₁) the second — and you will get the exact same midpoint. Addition is commutative, so (x₁+x₂)/2 = (x₂+x₁)/2. This means you never need to worry about which point to enter first.
Check your work with symmetry
After computing the midpoint M, verify by calculating the distance from M to each original endpoint. Both distances should be equal and each should be exactly half the total distance between the two points. If they differ, recheck your arithmetic.
Use midpoints to find missing endpoints
If you know one endpoint and the midpoint, you can find the missing endpoint by rearranging the formula: x₂ = 2·Mₓ − x₁. For example, if one endpoint is (1, 2) and the midpoint is (4, 5), the other endpoint is (2·4−1, 2·5−2) = (7, 8).
Worked Examples
Midpoint of a classroom segment
Midpoint X = (2+8)/2 = 5. Midpoint Y = (3+7)/2 = 5. Midpoint = (5, 5). Distance = √(36+16) = √52 ≈ 7.211.
Segment crossing the origin
Midpoint X = 0, Midpoint Y = 0. The midpoint is the origin (0, 0), confirming the segment is symmetric about the origin.
Advertisement
Frequently Asked Questions
Is the midpoint always inside the segment?
Yes, by definition. The midpoint lies on the segment between the two endpoints — it is never outside the interval between them.
How do I find the midpoint in three dimensions?
Average all three coordinate pairs: M = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2). The logic is identical to the 2D case, extended to the third axis.
What is the section formula?
The section formula generalizes the midpoint. If a point divides a segment in the ratio m:n, its coordinates are ((m·x₂ + n·x₁)/(m+n), (m·y₂ + n·y₁)/(m+n)). Setting m=n=1 recovers the midpoint formula.
Can I find the midpoint of a curve?
The midpoint formula applies to straight line segments only. For a curve, 'midpoint' is ambiguous — you would need to specify whether you mean the point at equal arc length from both ends or the geometric center of the bounding box.
How is the midpoint used in bisecting an angle?
Angle bisection uses a different construction (arc intersections with a compass), not the coordinate midpoint formula. However, if you know the angle's two rays as coordinate vectors, you can find the bisector direction by averaging unit vectors along each ray.
Advertisement