Lines & Graphs

Midpoint Formula

The midpoint of (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is (x1+x22,y1+y22)\left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right). Add the two x-values and halve them, then do the same for the y-values.

M=(x1+x22,y1+y22)M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)

Try it with your numbers

Show every step

The formula is just an average done twice, once across and once up. Once that idea clicks, missing endpoints, perpendicular bisectors and circle centers all become short calculations.

How Do You Use the Midpoint Formula?

Work one coordinate at a time. Write down the two x-values, add them, divide by 2. Then repeat with the y-values. Your answer is a point, so it needs two numbers in parentheses.

Example 1. Find the midpoint of A(−6,4)A(-6, 4) and B(2,−9)B(2, -9).

xM=−6+22=−42=−2x_M = \frac{-6 + 2}{2} = \frac{-4}{2} = -2

yM=4+(−9)2=−52=−52y_M = \frac{4 + (-9)}{2} = \frac{-5}{2} = -\frac{5}{2}

The midpoint is (−2,−52)\left(-2, -\frac{5}{2}\right). A quick sanity test: −2-2 sits between −6-6 and 22, and −2.5-2.5 sits between −9-9 and 44. Any valid midpoint must pass that test.

The trap that costs the most points is subtracting instead of adding. Students carry the habit over from the slope and distance formulas, where subtraction is the first move. For a midpoint you want the sum. Sketching both points on the coordinate plane first gives you a visual target: the answer should land in the middle of the segment, not off to one side.

Labeling is free

Swapping which point you call (x1,y1)(x_1, y_1) changes nothing, because x1+x2=x2+x1x_1 + x_2 = x_2 + x_1. Pick whichever order keeps your signs easiest.

Where Does the Midpoint Formula Come From?

Start on a number line with two numbers aa and bb. The gap between them is b−ab - a, so halfway means walking half that gap from aa:

a+b−a2=2a+b−a2=a+b2a + \frac{b - a}{2} = \frac{2a + b - a}{2} = \frac{a + b}{2}

The midpoint is the average. That is also why, in an arithmetic sequence, every term is the average of the terms on either side of it: equal steps mean the middle value is the mean.

The plane adds nothing new. Along a straight segment, horizontal progress and vertical progress stay locked in proportion, so being halfway along the segment means being halfway in x and halfway in y. Each coordinate is a separate number-line problem, which is why the formula has two independent halves.

The same idea gives a more general tool. A point a fraction tt of the way from P1P_1 to P2P_2 is

(x1+t(x2−x1),  y1+t(y2−y1))\big(x_1 + t(x_2 - x_1),\; y_1 + t(y_2 - y_1)\big)

and t=12t = \frac{1}{2} gives the midpoint. Setting t=13t = \frac{1}{3} finds a point a third of the way along. Between (0,0)(0, 0) and (9,6)(9, 6) that point is (3,2)(3, 2).

Quick check

What number is exactly halfway between −8-8 and 33 on a number line?

Midpoint Formula With Fractions and Decimals

Fractions and decimals follow the same rules, but the parentheses matter more. The sum must be completed before dividing by 2. Writing 3+923 + \frac{9}{2} halves only the 9 and gives 7.57.5, while the correct average 3+92\frac{3 + 9}{2} is 66.

Sum first, then halve

The fraction bar acts like parentheses around the whole numerator. If you type this into a calculator, write (x1+x2)/2(x_1 + x_2) / 2.

Example 2. Find the midpoint of (14,23)\left(\frac{1}{4}, \frac{2}{3}\right) and (34,16)\left(\frac{3}{4}, \frac{1}{6}\right).

xM=14+342=12x_M = \frac{\frac{1}{4} + \frac{3}{4}}{2} = \frac{1}{2}

yM=23+162=46+162=562=512y_M = \frac{\frac{2}{3} + \frac{1}{6}}{2} = \frac{\frac{4}{6} + \frac{1}{6}}{2} = \frac{\frac{5}{6}}{2} = \frac{5}{12}

The midpoint is (12,512)\left(\frac{1}{2}, \frac{5}{12}\right). Dividing by 2 is the same as multiplying by 12\frac{1}{2}, which is why 56÷2\frac{5}{6} \div 2 becomes 512\frac{5}{12}.

For decimals, add first and halve at the end. For (2.4,−1.1)(2.4, -1.1) and (5.2,3.7)(5.2, 3.7) you get 7.62=3.8\frac{7.6}{2} = 3.8 and 2.62=1.3\frac{2.6}{2} = 1.3. Notice too that endpoints can sit in different quadrants while the midpoint lands in a third. A midpoint is not obliged to share a quadrant with either endpoint.

How Do You Find a Missing Endpoint From the Midpoint?

Reverse the averaging. If MM is the midpoint of AA and BB, then xM=xA+xB2x_M = \frac{x_A + x_B}{2}. Multiply both sides by 2 and subtract xAx_A:

xB=2xM−xAyB=2yM−yAx_B = 2x_M - x_A \qquad y_B = 2y_M - y_A

There is a cleaner way to see it. The jump from AA to MM is the same as the jump from MM to BB. Take the jump once to reach the midpoint, then take it again.

Example 3. M(3,−1)M(3, -1) is the midpoint of AB‾\overline{AB} and A=(−5,4)A = (-5, 4). Find BB.

xB=2(3)−(−5)=6+5=11x_B = 2(3) - (-5) = 6 + 5 = 11

yB=2(−1)−4=−2−4=−6y_B = 2(-1) - 4 = -2 - 4 = -6

So B=(11,−6)B = (11, -6). Check it with the jump method: from AA to MM the move is +8+8 across and −5-5 vertically. Repeat from MM: 3+8=113 + 8 = 11 and −1−5=−6-1 - 5 = -6. Both methods agree.

The most common slip here is subtracting in the wrong order, writing xA−2xMx_A - 2x_M. A good habit is to run the forward formula on your answer at the end. If it returns MM, you are done.

Quick check

The midpoint of AB‾\overline{AB} is (0,−3)(0, -3) and A=(4,−1)A = (4, -1). Find BB.

Midpoint Formula vs Distance Formula and Slope Formula

These three formulas use the same four numbers, which is exactly why they get mixed up. The easiest way to separate them is by what each one returns.

Midpoint Distance Slope
Returns a point a length a ratio
Core move add, then halve subtract, square, add, root subtract, then divide
Order of points does not matter does not matter must stay consistent

The distance formula measures the segment, and the midpoint formula locates its center. The slope formula describes the segment’s tilt. If your answer to a midpoint question is a single number, something went wrong, since a point always has two coordinates.

The formulas also work together. The midpoint splits a segment into two equal pieces, so the distance from either endpoint to the midpoint is exactly half the full distance. That fact is the best check you have, and the distance formula practice problems give you more chances to use it.

Try this: Take (1,2)(1, 2) and (7,10)(7, 10). Find the midpoint, then use the distance formula from each endpoint to that midpoint. Both distances should equal 55, which is half of the full length 1010.

How to Find a Perpendicular Bisector Using the Midpoint

A perpendicular bisector cuts a segment in half at a right angle. Building one takes two ingredients: the midpoint (where the line passes through) and the negative reciprocal of the segment’s slope (the direction). Every point on this line is equally far from both endpoints.

Example 4. Find the perpendicular bisector of A(−2,1)A(-2, 1) and B(6,5)B(6, 5).

  1. Midpoint: (−2+62,1+52)=(2,3)\left(\frac{-2 + 6}{2}, \frac{1 + 5}{2}\right) = (2, 3).
  2. Slope of AB‾\overline{AB}: 5−16−(−2)=48=12\frac{5 - 1}{6 - (-2)} = \frac{4}{8} = \frac{1}{2}.
  3. Perpendicular slope: −2-2, the negative reciprocal.
  4. Point-slope form through (2,3)(2, 3): y−3=−2(x−2)y - 3 = -2(x - 2), which simplifies to y=−2x+7y = -2x + 7.

Check with a test point. The point (0,7)(0, 7) lies on the line, and its squared distance to AA is 22+62=402^2 + 6^2 = 40. Its squared distance to BB is (−6)2+22=40(-6)^2 + 2^2 = 40. They match, as they must.

The rules behind this are covered in slopes of parallel and perpendicular lines, and the finishing step uses point-slope form. If a problem instead asks for the line through the two original points, that is a different task, handled in the equation of a line through two points.

Midpoint Formula in 3D, and When It Does Not Apply

In three dimensions, nothing changes except that there is a third average:

M=(x1+x22,y1+y22,z1+z22)M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}, \frac{z_1 + z_2}{2}\right)

For (1,2,3)(1, 2, 3) and (5,−2,9)(5, -2, 9) the midpoint is (3,0,6)(3, 0, 6).

Some special cases save work. On a horizontal or vertical line, one coordinate never changes, so only the other needs averaging. Between (3,5)(3, 5) and (9,5)(9, 5) the midpoint is (6,5)(6, 5). If the two points are identical, the midpoint is that same point.

The formula fails when the path between the points is not straight. It gives the midpoint of the straight chord, not the halfway point along a curve. On the unit circle, the endpoints (−1,0)(-1, 0) and (1,0)(1, 0) average to (0,0)(0, 0), which is the center and not on the circle. The point halfway along the upper arc is (0,1)(0, 1). Over very long distances on Earth, a flat average also drifts from the true halfway point on the globe.

Real-World Uses of the Midpoint Formula

The center of a circle is the midpoint of any diameter. If a diameter runs from (−3,4)(-3, 4) to (5,−2)(5, -2), the center is (1,1)(1, 1). This is often the first step in writing a circle’s equation from two points.

Parallelograms give a second use: the diagonals bisect each other, so both diagonals share one midpoint. Suppose A(0,0)A(0, 0), B(4,1)B(4, 1) and C(7,5)C(7, 5) are three vertices, with AA and CC opposite. The midpoint of AC‾\overline{AC} is (72,52)\left(\frac{7}{2}, \frac{5}{2}\right). That must also be the midpoint of BD‾\overline{BD}, so

D=(7−4,  5−1)=(3,4)D = (7 - 4,\; 5 - 1) = (3, 4)

Check: the side from AA to BB moves (4,1)(4, 1), and the side from DD to CC moves (7−3,5−4)=(4,1)(7 - 3, 5 - 4) = (4, 1). The sides are parallel and equal, as a parallelogram requires.

Outside the classroom, the same arithmetic centers a shape in a graphics program, finds a fair meeting point between two addresses on a grid map, and sets the middle of a scale or a tolerance range. Anywhere you need the exact center of something with two ends, you are averaging.

Quick check

A circle has a diameter with endpoints (−3,4)(-3, 4) and (5,−2)(5, -2). Where is its center?

How Do You Check a Midpoint Answer?

You rarely need to redo the work. Three fast checks catch almost every error:

  • Between test: each midpoint coordinate must lie between the two endpoint values for that coordinate.
  • Doubling test: twice the midpoint must equal the sum of the endpoints, coordinate by coordinate.
  • Equal jump test: the move from the first point to the midpoint must match the move from the midpoint to the second.

Try the doubling test on Example 1. The midpoint (−2,−52)\left(-2, -\frac{5}{2}\right) doubles to (−4,−5)(-4, -5). The endpoints sum to (−6+2,4+(−9))=(−4,−5)(-6 + 2, 4 + (-9)) = (-4, -5). They match.

The between test is the quickest and catches sign errors. A midpoint of (5,−1)(5, -1) for the endpoints (−6,4)(-6, 4) and (2,−9)(2, -9) fails it at once, because 55 is larger than both x-values. When you want more repetition with immediate feedback, the midpoint formula practice problems cover every type on this page.

Practice problems

0 of 5 solved

  1. Find the midpoint of (2,6)(2, 6) and (8,10)(8, 10).

  2. Find the midpoint of (−4,7)(-4, 7) and (6,−3)(6, -3).

  3. Find the midpoint of (−32,5)\left(-\frac{3}{2}, 5\right) and (72,−2)\left(\frac{7}{2}, -2\right).

  4. M(−1,4)M(-1, 4) is the midpoint of AB‾\overline{AB} and AA is (5,−2)(5, -2). Find BB.

  5. The midpoint of (x,4)(x, 4) and (9,y)(9, y) is (2,−1)(2, -1). Find xx and yy.

Common questions

What is the midpoint formula?

The midpoint of (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is (x1+x22,y1+y22)\left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right). It averages the x-coordinates and the y-coordinates separately.

How do you find the midpoint of two points with negative coordinates?

Use the same formula, but wrap each negative in parentheses when you add, such as 4+(−9)4 + (-9). Then halve the sum. The answer can be negative or a fraction, and that is fine.

How do you find the other endpoint when you know the midpoint?

Double each midpoint coordinate and subtract the known endpoint's matching coordinate: x2=2xM−x1x_2 = 2x_M - x_1 and y2=2yM−y1y_2 = 2y_M - y_1. This simply reverses the averaging.

What is the difference between the midpoint formula and the distance formula?

The midpoint formula returns a point, (x,y)(x, y), and uses addition. The distance formula returns a single length and uses subtraction, squares and a square root.

Does the midpoint formula work in 3D?

Yes. Average the z-coordinates too: (x1+x22,y1+y22,z1+z22)\left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}, \frac{z_1+z_2}{2}\right). Each coordinate is its own average.

Does the order of the points matter in the midpoint formula?

No. Addition is commutative, so swapping which point is called (x1,y1)(x_1, y_1) gives the same midpoint.

Up next