Skip to main content
🔬 Advanced

Midpoint Calculator

Find the midpoint between two points in 2D space. Enter coordinates (x₁,y₁) and (x₂,y₂). Use this free math calculator for instant results. No signup.

★★★★★ 4.8/5 · 📊 0 calculations · 🔒 Private & free

What Is the Midpoint of a Line Segment?

The midpoint of a line segment is the point that lies exactly halfway between the two endpoints. It divides the segment into two equal halves, each of the same length. The midpoint is equidistant from both endpoints along the straight line connecting them.

The Midpoint Formula for two points (x₁, y₁) and (x₂, y₂) in a 2D coordinate plane is:

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

This formula simply averages the x-coordinates and averages the y-coordinates of the two endpoints. It extends naturally to 3D:

M₃D = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2)

And to n dimensions: each coordinate of the midpoint is the arithmetic mean of the corresponding coordinates of the two endpoints.

Example: Find the midpoint of the segment connecting A(2, 4) and B(8, 10):

Midpoint Formula: Worked Examples

Practice problems covering different scenarios — positive, negative, and fractional coordinates.

Point A (x₁, y₁)Point B (x₂, y₂)Midpoint MVerification
(0, 0)(6, 8)(3, 4)Distance A→M = Distance M→B ✓
(−3, 5)(7, −1)(2, 2)((−3+7)/2, (5−1)/2) = (2,2) ✓
(1, 1)(1, 9)(1, 5)Vertical segment; x-coord unchanged ✓
(2, 3)(8, 3)(5, 3)Horizontal segment; y-coord unchanged ✓
(−5, −4)(3, 6)(−1, 1)Both coords in opposing quadrants ✓
(1.5, 2.5)(4.5, 6.5)(3, 4.5)Fractional coordinates OK ✓

Key observations:

Finding a Missing Endpoint Using the Midpoint

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

B = (2·Mx − x₁, 2·My − y₁)

This comes from solving the midpoint equations: (x₁ + x₂)/2 = Mx → x₂ = 2Mx − x₁.

Known Endpoint AKnown Midpoint MMissing Endpoint BCheck
(2, 4)(5, 7)(2×5−2, 2×7−4) = (8, 10)M(2,4)to(8,10) = (5,7) ✓
(0, 0)(3, 4)(6, 8)M(0,0)to(6,8) = (3,4) ✓
(−1, 3)(2, 1)(5, −1)M(−1,3)to(5,−1) = (2,1) ✓
(7, −2)(4, 3)(1, 8)M(7,−2)to(1,8) = (4,3) ✓

This technique is useful in geometry when you need to find a reflected point, construct a perpendicular bisector, or locate a point that creates a specific segment midpoint.

Distance Formula and How It Relates to Midpoint

The midpoint and distance formulas are closely related — both are derived from the Pythagorean theorem applied to coordinate geometry. The Distance Formula gives the length of the segment between two points:

d = √[(x₂ − x₁)² + (y₂ − y₁)²]

The midpoint divides this distance exactly in half, so the distance from either endpoint to the midpoint is d/2.

SegmentMidpoint MTotal Distance dHalf-Distance d/2
A(0,0) to B(6,8)(3, 4)√(36+64) = 105
A(1,1) to B(4,5)(2.5, 3)√(9+16) = 52.5
A(−2,3) to B(6,−3)(2, 0)√(64+36) = 105
A(0,0) to B(3,4)(1.5, 2)√(9+16) = 52.5

Verify a midpoint calculation: compute d(A, M) and d(M, B) — they should be equal and each equal d(A, B)/2. This is a reliable way to check your midpoint arithmetic.

The Perpendicular Bisector: A Key Application

The perpendicular bisector of a line segment passes through the midpoint and is perpendicular (at 90°) to the segment. It is one of the most important constructions in Euclidean geometry.

To find the perpendicular bisector of segment AB:

  1. Find the midpoint M = ((x₁+x₂)/2, (y₁+y₂)/2)
  2. Find the slope of AB: m = (y₂−y₁) / (x₂−x₁)
  3. The perpendicular bisector has slope: m⊥ = −1/m (negative reciprocal)
  4. Write the equation through M with slope m⊥: y − My = m⊥(x − Mx)

Example: Find the perpendicular bisector of A(2, 1) and B(6, 5):

  1. M = (4, 3)
  2. Slope of AB: (5−1)/(6−2) = 4/4 = 1
  3. Perpendicular slope: −1/1 = −1
  4. Equation: y − 3 = −1(x − 4) → y = −x + 7

Properties of the perpendicular bisector:

Midpoint Theorem in Triangle Geometry

The Midpoint Theorem (also called the Triangle Midsegment Theorem) states: the segment connecting the midpoints of two sides of a triangle is parallel to the third side and exactly half its length.

If M is the midpoint of AB and N is the midpoint of AC in triangle ABC, then:

This theorem has important applications in:

Triangle VerticesMidpoints of SidesMidsegment Length
A(0,0), B(6,0), C(3,6)M_AB=(3,0), M_AC=(1.5,3), M_BC=(4.5,3)M_AC to M_BC = 3 = AB/2 = 6/2 ✓
A(0,0), B(8,0), C(4,6)M_AB=(4,0), M_BC=(6,3), M_AC=(2,3)M_BC to M_AC = 4 = AB/2 ✓

Real-World Applications of the Midpoint

The midpoint formula appears in a surprising variety of practical applications beyond pure mathematics:

Midpoint in 3D Space

Extending the midpoint concept to three dimensions is straightforward: add a z-coordinate and average it the same way.

Formula: M₃D = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2)

Point A (x,y,z)Point B (x,y,z)Midpoint M
(1, 2, 3)(5, 8, 11)(3, 5, 7)
(0, 0, 0)(4, 6, 8)(2, 3, 4)
(−2, 4, −6)(8, −2, 10)(3, 1, 2)
(1, 1, 1)(7, 5, 9)(4, 3, 5)

3D midpoints appear in computer-aided design (CAD), 3D modeling and animation, structural engineering, and any application involving 3D coordinate geometry. The same averaging principle scales to any number of dimensions.

Frequently Asked Questions

How do I find a missing endpoint if I know the midpoint?

If midpoint M = (Mx, My) and one endpoint A = (x₁, y₁), solve for B: x₂ = 2×Mx − x₁ and y₂ = 2×My − y₁. Example: M = (5, 7) and A = (2, 4): x₂ = 2×5−2 = 8; y₂ = 2×7−4 = 10. So B = (8, 10). Verify: midpoint of (2,4) to (8,10) = ((2+8)/2, (4+10)/2) = (5, 7). ✓

Is the midpoint always inside the segment?

Yes, by definition. The midpoint lies exactly between the two endpoints at distance d/2 from each, where d is the total length of the segment. It is always on the line segment itself, not just on the line through the endpoints. You cannot have a midpoint outside the segment — that would violate the definition of "mid" (middle).

Can you find the midpoint of more than two points?

The midpoint formula applies to exactly two points. For three or more points, you calculate the centroid: average all x-coordinates and all y-coordinates separately. For n points: centroid = (Σxᵢ/n, Σyᵢ/n). The centroid of a triangle's vertices equals the intersection of its three medians and is also the center of mass if each vertex has equal weight.

What is the midpoint formula in 3D?

M₃D = ((x₁+x₂)/2, (y₁+y₂)/2, (z₁+z₂)/2). Simply average each coordinate pair. Example: midpoint of A(1,2,3) and B(7,8,9): M = ((1+7)/2, (2+8)/2, (3+9)/2) = (4, 5, 6). The same averaging principle extends to any number of dimensions — in n-dimensional space, each of the n coordinate pairs is averaged independently.

How does the midpoint relate to the median of a triangle?

A median of a triangle connects a vertex to the midpoint of the opposite side. Every triangle has exactly three medians. The midpoint formula lets you calculate where each median is drawn. All three medians intersect at the triangle's centroid G, which is located 2/3 of the way from each vertex to the opposite midpoint: G = ((x₁+x₂+x₃)/3, (y₁+y₂+y₃)/3).

Why is the midpoint formula just an average?

Averaging the coordinates is correct because we're finding the point halfway along each axis independently. On the x-axis, halfway between x₁ and x₂ is (x₁+x₂)/2 — the arithmetic mean of the two x-values. Same for y. Since the Cartesian coordinate system has orthogonal (perpendicular) axes, these two averages can be computed independently, giving the midpoint as the pair of averages.

What is the perpendicular bisector of a segment?

The perpendicular bisector of a segment passes through the midpoint and is perpendicular (90°) to the segment. Every point on the perpendicular bisector is equidistant from both endpoints. To find it: (1) compute the midpoint M, (2) find the slope of the original segment, (3) take the negative reciprocal for the perpendicular slope, (4) write the line equation through M with this new slope.

What is the difference between midpoint and bisector?

The midpoint is a specific point — the single point halfway along a segment. A bisector is a line, ray, or segment that passes through the midpoint and divides the segment into two equal halves. An angle bisector divides an angle into two equal angles. The perpendicular bisector of a segment is a line that passes through the segment's midpoint at right angles.

How do I find the midpoint on a number line?

On a number line (1D), the midpoint of points a and b is simply (a+b)/2. Example: midpoint of 3 and 9 = (3+9)/2 = 6. The midpoint of −4 and 8 = (−4+8)/2 = 4/2 = 2. This is the same as the arithmetic mean of two numbers — the midpoint formula in 2D or 3D is just extending this average to each coordinate independently.

Can the midpoint have coordinates that aren't whole numbers?

Yes — midpoints often have fractional or decimal coordinates even when the endpoints have integer coordinates. Example: midpoint of (1, 2) and (4, 3) = (2.5, 2.5). This is geometrically valid and correct. In some contexts (like working with a grid or lattice), you might need to work with fractional midpoints; in others (pixel coordinates), you round to the nearest integer.

Midpoint in Data Analysis and Statistics

Beyond coordinate geometry, the midpoint concept appears in statistics and data analysis in several important ways:

The bisection method example: to find where f(x) = x² − 2 crosses zero (i.e., √2):

  1. Start with interval [1, 2]; midpoint = 1.5; f(1.5) = 0.25 > 0, so root is in [1, 1.5]
  2. Midpoint = 1.25; f(1.25) = −0.4375 < 0, so root is in [1.25, 1.5]
  3. Midpoint = 1.375; f(1.375) ≈ −0.109 < 0, so root is in [1.375, 1.5]
  4. Continue: converges to √2 ≈ 1.41421 with each midpoint halving the error

This elegant algorithm requires only the midpoint formula, repeated. It's guaranteed to converge and is one of the most robust numerical methods in computing.

Midpoint on a Map: Geographic Midpoints

Finding the geographic midpoint between two locations uses a more complex version of the midpoint formula that accounts for the Earth's curvature. For small distances (under a few hundred kilometers), simple averaging of latitude and longitude coordinates works well. For large distances across the globe, you must use the spherical midpoint formula, which accounts for the fact that longitude lines converge toward the poles.

Simple approximation (works for distances under 500 km):

Example: midpoint between Madrid (40.42°N, 3.70°W) and Barcelona (41.38°N, 2.18°E):

Geographic midpoints are used in logistics (finding optimal warehouse locations between two customer centers), meeting planning (finding a fair midpoint between two parties' offices), and geographic information systems (GIS) for calculating centroids of service areas. Real-world geographic midpoint calculators must also account for timezone differences, driving distances vs. straight-line distances, and terrain, but the mathematical foundation is the same averaging principle.

City ACity BApprox. MidpointMidpoint City
New York (40.7°N, 74.0°W)Los Angeles (34.1°N, 118.2°W)(37.4°N, 96.1°W)Near Dodge City, KS
London (51.5°N, 0.1°W)Paris (48.9°N, 2.4°E)(50.2°N, 1.1°E)Near Amiens, France
Tokyo (35.7°N, 139.7°E)Sydney (33.9°S, 151.2°E)(0.9°N, 145.5°E)Pacific Ocean

For travel planning: finding the geographic midpoint between two cities helps identify equidistant meeting locations. If two colleagues are traveling from New York and Chicago, the midpoint (approximately near Cleveland, OH at 41.5°N, 81.7°W) suggests meeting somewhere in northern Ohio, Pennsylvania, or near Cleveland — roughly equal driving or flying time from both origins. Note that geographic midpoint and travel midpoint are different concepts: the geographic midpoint minimizes total straight-line distance, while the optimal travel midpoint minimizes total travel time (which depends on roads, traffic, and transport modes). For planning purposes, calculate both and choose based on your priorities. Our coordinate midpoint formula handles the geographic version perfectly; travel time midpoints require routing APIs like Google Maps or OpenStreetMap. Our basic 2D midpoint formula handles this well for cities in the same time zone and within a few hundred kilometers of each other.

},{"@type":"Question","name":"Is the midpoint always inside the segment?","acceptedAnswer":{"@type":"Answer","text":"Yes, by definition. The midpoint lies exactly between the two endpoints and is always part of the line segment connecting them."}},{"@type":"Question","name":"Can you find the midpoint of more than two points?","acceptedAnswer":{"@type":"Answer","text":"The midpoint is defined for exactly two points. For more points, you'd calculate the centroid: average all x-coordinates and all y-coordinates. For n points: centroid = (Σxᵢ/n, Σyᵢ/n)."}}]}