Midpoint formula showing a line segment with two endpoints and its midpoint on a coordinate plane.

What Is the Midpoint Formula? How to Find the Midpoint of a Line Segment Step by Step

Quick answer first

The midpoint formula gives the coordinates of the point that sits exactly halfway between two endpoints on a coordinate plane. If the endpoints are ((x_1, y_1)) and ((x_2, y_2)), the midpoint (M) is:

[
M = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right)
]

In plain words, you add the two x-coordinates and divide by 2, then add the two y-coordinates and divide by 2. The result is one ordered pair: the midpoint of the straight line segment that joins the two points.

This guide explains what the midpoint of a straight line actually means, derives the formula in plain language, walks through five fully worked examples (including negatives, fractions, and decimals), shows how to recover a missing endpoint, and lists common mistakes with quick fixes. You will also find a practice set with answers and eight frequently asked questions near the end.

What Is the Midpoint of a Line Segment?

A midpoint is the single point on a line segment that lies at equal distance from both endpoints. It bisects the segment into two equal halves, so the ratio of the two pieces is always (1:1). If you measure the length from endpoint A to the midpoint and from the midpoint to endpoint B, those two lengths match exactly.

Line segment AB divided into two equal halves by midpoint M.

A few details matter before you reach for the formula:

  • The midpoint belongs to a line segment, not to an endless line or a ray. A line stretches forever in both directions, so it has no center; a ray extends in one direction only, so it has no center either.
  • The midpoint is unique: every segment has exactly one midpoint, never two.
  • The midpoint does not depend on how the segment slopes. It works for horizontal segments, vertical segments, and slanted segments alike.
  • You can locate a midpoint by inspection when numbers are simple, by measuring on a number line, with a compass and straightedge, or with the coordinate formula you will meet shortly.

The formal geometric definition describes the midpoint as the point equidistant from both endpoints and the centroid of the segment; the formal definition of a midpoint on Wikipedia also covers its role in circles, triangles, and ellipses. If you want to review the basic building blocks of coordinate geometry first, it helps to understand what a vertex of a figure is before labeling endpoints and midpoints.

Reading coordinates on the plane

A point on the Cartesian plane comes as an ordered pair ((x, y)). The first number measures horizontal position along the x-axis; the second measures vertical position along the y-axis. The midpoint formula keeps these two coordinates separate: it averages the x-values together and the y-values together, so you never add an x-coordinate to a y-coordinate.

Midpoint on a number line

Before working in two dimensions, practice the same idea on a one-dimensional number line. The point halfway between two numbers (a) and (b) equals their average: ((a + b)/2). For example, the midpoint of 5 and 9 is ((5 + 9)/2 = 14/2 = 7).

The two-dimensional formula uses exactly this average idea twice: once for the horizontal coordinates and once for the vertical coordinates. That is the whole secret behind the formula to find midpoint.

What Is the Midpoint Formula?

The formula to find midpoint of the segment joining (A(x_1, y_1)) and (B(x_2, y_2)) is:

[
M(x_m, y_m) = \left(\frac{x_1 + x_2}{2},\ \frac{y_1 + y_2}{2}\right)
]

Read it in three parts:

  1. (x_m = \dfrac{x_1 + x_2}{2}) — the midpoint’s horizontal coordinate is the average of the two endpoint x-coordinates.
  2. (y_m = \dfrac{y_1 + y_2}{2}) — the midpoint’s vertical coordinate is the average of the two endpoint y-coordinates.
  3. ((x_m, y_m)) — write the two results together as one ordered pair.

The order of the endpoints does not matter. Adding (x_1 + x_2) gives the same result as (x_2 + x_1), so labeling one point “first” and the other “second” is only bookkeeping. The Khan Academy derivation of the midpoint formula makes this same point by building the average from the number-line idea before extending it to the plane.

Coordinate plane illustrating how the midpoint formula averages the x-coordinates and y-coordinates of two endpoints.

Why averaging works

Picture two x-coordinates on a horizontal axis, say 3 and 7. The number exactly halfway between them is 5, because ((3 + 7)/2 = 5). The midpoint of a slanted segment does the same thing horizontally and vertically. Horizontally, the midpoint stays halfway between the two x-values; vertically, it stays halfway between the two y-values. The point that satisfies both conditions sits on the segment and is equidistant from both ends.

Some students memorize the symbols; stronger students remember the idea: the midpoint is just the mean (average) of the coordinates. That intuition also makes reverse problems easy, which this guide covers later.

Notation cheatsheet

SymbolMeaning
(A(x_1, y_1))First endpoint; (x_1) its horizontal value, (y_1) its vertical value
(B(x_2, y_2))Second endpoint; (x_2) and (y_2) its coordinates
(M(x_m, y_m))Midpoint; (x_m) and (y_m) are its computed coordinates
(\frac{x_1 + x_2}{2})Average of the x-coordinates
(\frac{y_1 + y_2}{2})Average of the y-coordinates

How Do I Find the Midpoint of a Line Segment? Step by Step

Follow these five steps for any two endpoints on the plane. The same routine works for integers, fractions, decimals, and negative numbers.

  1. Label the endpoints. Write them as ((x_1, y_1)) and ((x_2, y_2)). The order you assign does not matter.
  2. Average the x-coordinates. Add (x_1) and (x_2), then divide the sum by 2. This gives (x_m).
  3. Average the y-coordinates. Add (y_1) and (y_2), then divide by 2. This gives (y_m).
  4. Combine the results. Write (M = (x_m, y_m)).
  5. Check with a sketch. Plot the two endpoints and the midpoint; the midpoint should sit visually between them.

A quick simple worked example on Math is Fun shows the same routine applied to points on a grid, so you can compare its layout with the examples below.

Example 1: Two positive integer endpoints

Find the midpoint of the segment joining ((2, 2)) and ((8, 6)).

  • Average the x-values: ((2 + 8)/2 = 10/2 = 5)
  • Average the y-values: ((2 + 6)/2 = 8/2 = 4)
  • Midpoint: (M = (5, 4))

You can verify this by inspection: 5 lies halfway between 2 and 8, and 4 lies halfway between 2 and 6. Simple integer pairs like this often reveal the answer before you write the formula.

Worked midpoint example showing A(2, 2), B(8, 6), and midpoint M(5, 4) on a coordinate grid.

Example 2: A horizontal segment counted by inspection

Find the midpoint of the segment from (A(-3, 2)) to (B(1, 2)). Both points share the same y-coordinate, so the segment runs horizontally.

  • Average the x-values: ((-3 + 1)/2 = -2/2 = -1)
  • Average the y-values: ((2 + 2)/2 = 4/2 = 2)
  • Midpoint: (M = (-1, 2))

The segment spans four horizontal units, so two units from either endpoint lands on (-1). Counting units on the grid confirms the formula.

Example 3: A fractional or decimal answer

Find the midpoint of the segment joining ((1, 5)) and ((6, 0)).

  • Average the x-values: ((1 + 6)/2 = 7/2 = 3.5)
  • Average the y-values: ((5 + 0)/2 = 5/2 = 2.5)
  • Midpoint: (M = (3.5, 2.5))

The midpoint does not have to land on an integer grid intersection. When the sum of two coordinates is odd, leave the answer as a fraction when precision matters, or use a short terminating decimal when the context allows. A free fraction calculator can convert between halves, quarters, and decimals if arithmetic slows you down.

Example 4: Negative coordinates

Find the midpoint of the segment joining ((-2, 7)) and ((4, 10)).

  • Average the x-values: ((-2 + 4)/2 = 2/2 = 1)
  • Average the y-values: ((7 + 10)/2 = 17/2 = 8.5)
  • Midpoint: (M = (1, 8.5))

Negative numbers only look intimidating. Add them with your usual sign rules, divide by 2, and plot the result. The midpoint of two points on opposite sides of an axis can even land on an axis: the segment from ((-4, 3)) to ((4, 3)) has midpoint ((0, 3)).

Example 5: A slanted segment with a fraction in the result

Find the midpoint of the segment from (A(-3, -3)) to (B(1, 4)).

  • Average the x-values: ((-3 + 1)/2 = -2/2 = -1)
  • Average the y-values: ((-3 + 4)/2 = 1/2)
  • Midpoint: (M = (-1, \tfrac{1}{2}))

Plot the two points and the midpoint on grid paper; the point ((-1, 0.5)) should sit exactly on the segment between them.

Worked examples at a glance

Endpoint AEndpoint B(x_m)(y_m)Midpoint M
(2, 2)(8, 6)(2 + 8)/2 = 5(2 + 6)/2 = 4(5, 4)
(-3, 2)(1, 2)(-3 + 1)/2 = -1(2 + 2)/2 = 2(-1, 2)
(1, 5)(6, 0)(1 + 6)/2 = 3.5(5 + 0)/2 = 2.5(3.5, 2.5)
(-2, 7)(4, 10)(-2 + 4)/2 = 1(7 + 10)/2 = 8.5(1, 8.5)
(-3, -3)(1, 4)(-3 + 1)/2 = -1(-3 + 4)/2 = 0.5(-1, 0.5)

Other textbooks present the same five-step procedure from a slightly different angle, including examples with decimal coordinates; comparing two explanations of the same routine helps lock the method in.

The Formula to Find Midpoint: Neighboring Formulas and Ideas

The midpoint formula belongs to a small family of coordinate-geometry formulas. Knowing how they differ prevents mix-ups on homework and tests.

Midpoint formula versus distance formula

Beginners often swap addition and subtraction between two formulas. The midpoint formula adds coordinates and divides by 2 to locate a point. The distance formula subtracts coordinates, squares and sums them, and takes a square root to find a length.

FeatureMidpoint formulaDistance formula
OutputOne point ((x_m, y_m))One length (d)
Operation on coordinatesAdd each pair, divide by 2Subtract each pair, square, add, square root
Formula(M = \left(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}\right))(d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2})
Question it answers“Where is the middle?”“How far apart are they?”

The OpenStax treatment of the midpoint and distance formulas keeps both formulas side by side and shows how each grows from plotting points on a rectangular coordinate system.

Section formula: the midpoint as a special case

The section formula finds a point that divides a segment in any ratio (m:n). For internal division, the point is:

[
P = \left(\frac{m x_2 + n x_1}{m + n},\ \frac{m y_2 + n y_1}{m + n}\right)
]

When the ratio is (1:1), this formula collapses into the midpoint formula. That derivation appears in detail in the section-formula derivation on GeeksforGeeks, which also connects the result to similar triangles.

Related average-based formulas

The midpoint’s “average of two values” logic resembles other formulas built on means. The standard deviation formula also starts by averaging values, although it spreads them into squared deviations rather than coordinates. Treat the midpoint as your first average-based coordinate formula, and later formulas feel familiar.

Constructing a midpoint without coordinates

Before calculators, geometers found a midpoint with a compass and straightedge. Draw equal-radius arcs from both endpoints; the arcs intersect above and below the segment. Draw the line through those two intersections; it is the perpendicular bisector, and its crossing with the segment is the midpoint. The Midpoint Theorem and construction notes on Math Open Reference describe this visual method alongside the coordinate theorem.

Finding a Missing Endpoint When You Know the Midpoint

Some questions hand you one endpoint and the midpoint, then ask for the other endpoint. Instead of averaging twice, you reverse the formula. If (M(x_m, y_m)) is the midpoint of (A(x_1, y_1)) and (B(x_2, y_2)), solve for the unknown coordinates:

[
x_2 = 2x_m – x_1 \qquad y_2 = 2y_m – y_1
]

In words, double the midpoint’s coordinates and subtract the known endpoint’s coordinates. The same result follows geometrically: the vector from the known endpoint to the midpoint repeats once more from the midpoint to the missing endpoint.

Worked reverse example

Point (A) has coordinates ((4, 8)), and midpoint (M) has coordinates ((6, 9)). Find point (B).

  • (x_2 = 2(6) – 4 = 12 – 4 = 8)
  • (y_2 = 2(9) – 8 = 18 – 8 = 10)
  • Missing endpoint: (B = (8, 10))

Check the result by averaging: (((4 + 8)/2, (8 + 10)/2) = (6, 9)), which matches the given midpoint.

Coordinate graph showing how to find missing endpoint B when endpoint A and midpoint M are known.

Reverse example with negative values

Point (A) is ((-9, 4)) and midpoint (M) is ((-6, -1)). Find (B).

  • (x_2 = 2(-6) – (-9) = -12 + 9 = -3)
  • (y_2 = 2(-1) – 4 = -2 – 4 = -6)
  • Missing endpoint: (B = (-3, -6))

LibreTexts missing-endpoint examples show this same equation-solving approach with applied scenarios such as meeting a friend halfway between two locations.

When to use which method

  • Use the averaging formula when you know both endpoints and need the midpoint.
  • Use the doubled-and-subtracted formula when you know one endpoint and the midpoint and need the other endpoint.
  • When the problem gives only a midpoint and a partial coordinate (such as an unknown (h)), set up one equation for the missing coordinate and solve it, just as you would any linear equation.

Where the Midpoint Formula Shows Up in Real Life

The midpoint of a straight line sounds abstract, but the idea of “the exact middle” appears across everyday work and technical fields.

  • Circles and design. The center of a circle is the midpoint of any diameter. If you know the two ends of a diameter, the midpoint formula gives the center directly. The Cuemath methods for finding a midpoint include this circle application alongside grid-based methods.
  • Maps and navigation. Meeting a friend halfway between two towns, splitting a delivery route, or finding a service center that balances two populations all reduce to a midpoint calculation on map coordinates.
  • Graphics and layout. Graphic designers, game developers, and presentation tools use midpoints to center objects, align frames, and rotate elements around their middle point.
  • Sports and fields. Coaches divide courts and pitches into halves; the midpoint of a sideline segment marks rest positions and symmetry lines.
  • Data and measurement. When two readings bracket a target value, their average midpoint estimates the balanced condition. Coordinate data analysis, such as a linear regression equation, also relies on balanced central values as it builds lines through scattered points.

For the circle example, suppose a diameter runs from ((-6, 5)) to ((2, -3)). Apply the formula: x-coordinate ((-6 + 2)/2 = -2), y-coordinate ((5 + (-3))/2 = 1). The center lands at ((-2, 1)), exactly where the two halves of the diameter balance.

Circle diagram showing the center at the midpoint of a diameter with two endpoints.

Midpoints Inside Triangles and Other Shapes

Coordinate geometry uses midpoints repeatedly when it studies shapes. In a triangle, a median joins a vertex to the midpoint of the opposite side. The three medians cross at the centroid, the balancing point of the triangle.

Useful shape connections include:

  • The segment joining the midpoints of two sides of a triangle (a midsegment) stays parallel to the third side and measures half its length.
  • The center of a circle equals the midpoint of every diameter.
  • The perpendicular bisector of any segment passes through its midpoint at a right angle.
  • In special triangles such as an isosceles triangle, the median, altitude, and perpendicular bisector from the apex coincide, which makes midpoint calculations especially useful for symmetry proofs.

These properties explain why the midpoint formula appears in proofs about circumcenters, centroids, and perpendicular bisectors even when the question never says “find the middle point.”

Common Mistakes and How to Fix Them

Most errors on midpoint problems come from mixing coordinates or misreading signs, not from hard math. Work through this checklist before you submit an answer.

Mistake students makeWhy it failsQuick fix
Adding an x-value to a y-valueThe formula averages matching coordinates onlyKeep x with x, and y with y, in two separate averages
Dividing by 4 instead of 2Two coordinates contribute to each averageOne sum of two numbers divided by 2
Using the formula when one endpoint is missingAveraging requires both endpointsUse (x_2 = 2x_m – x_1) for reverse problems
Forgetting minus signs with negatives((-3 + 5)/2) equals 1, not -4Write signs clearly; plot the result on a grid
Assuming the midpoint must have integer coordinatesOdd sums produce halves and decimalsLeave fractions or short decimals as required
Reversing the distance formula subtractionDistance subtracts; midpoint addsAsk: “Where is the point?” (add) or “How far?” (subtract)

Two habits prevent most of these slips. First, label (x_1, y_1, x_2, y_2) before substituting anything. Second, sketch the segment whenever coordinates are unusual; a quick plot catches a sign error that algebra alone might hide.

Quick Practice Set (With Answers)

Try these six problems on paper before checking the key.

  1. Find the midpoint of the segment joining ((2, 8)) and ((6, 12)).
  2. Find the midpoint of ((4, 10)) and ((7, 5)).
  3. Find the midpoint of ((-6, 4)) and ((4, 2)).
  4. Find the midpoint of ((0.5, 3)) and ((4, 2.5)).
  5. One endpoint is ((3, 4)); the midpoint is ((6, 2)). Find the other endpoint.
  6. The diameter of a circle has endpoints ((-1, -4)) and ((5, -4)). Find the center.

Answer key

  1. (M = ((2+6)/2, (8+12)/2) = (4, 10))
  2. (M = ((4+7)/2, (10+5)/2) = (5.5, 7.5))
  3. (M = ((-6+4)/2, (4+2)/2) = (-1, 3))
  4. (M = ((0.5+4)/2, (3+2.5)/2) = (2.25, 2.75))
  5. (B = (2(6)-3,\ 2(2)-4) = (9, 0))
  6. Center (= ((-1+5)/2, (-4-4)/2) = (2, -4))

Revisit any problem that trips you up; the examples above repeat the same arithmetic, so practice builds speed quickly.

Frequently Asked Questions About the Midpoint Formula

1. What is the midpoint formula in simple terms?

The midpoint formula averages the two x-coordinates and averages the two y-coordinates of the endpoints. For points (x₁, y₁) and (x₂, y₂), the midpoint is ((x₁ + x₂)/2, (y₁ + y₂)/2). It gives the point exactly halfway along the straight line segment between them.

2. How do I find the midpoint of a line segment when a coordinate is negative?

Treat the negative number like any other value when you add. For endpoints (−2, 7) and (4, 10), the x-average is (−2 + 4)/2 = 1 and the y-average is (7 + 10)/2 = 8.5, so the midpoint is (1, 8.5). Plot the result to confirm it sits between the endpoints.

3. Can a midpoint be a fraction or a decimal?

Yes. When two coordinates add to an odd number, the midpoint lands on a fraction, such as (3.5, 2.5). Coordinates ending in halves, quarters, or decimals are normal midpoint outputs; the midpoint only equals integers when the paired sums divide evenly by 2.

4. How do I find the other endpoint when I know the midpoint?

Double the midpoint’s coordinates and subtract the known endpoint’s coordinates: x₂ = 2xₘ − x₁ and y₂ = 2yₘ − y₁. For a known endpoint (4, 8) and midpoint (6, 9), the missing endpoint is (8, 10).

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

The midpoint formula locates a point using averages of the coordinates. The distance formula measures a length using differences of the coordinates, squares, and a square root. Use the midpoint formula for “where is the middle?” and the distance formula for “how far apart are the points?”

6. Does every line segment have a midpoint?

Yes. Every finite line segment has exactly one midpoint, because exactly one point bisects it into two equal lengths. Infinite lines and rays do not have midpoints because they have no finite center.

7. Where do people use the midpoint formula outside math class?

Designers use it to center objects, navigators use it to find halfway points between locations, engineers use it to locate the center of a circle from a diameter, and data analysts use the same averaging idea to balance measurements. Game engines and graphics software also compute midpoints to rotate and align shapes.

8. Can I use the midpoint formula for three or more points?

The standard midpoint formula works for exactly two endpoints. For three vertices of a triangle, use the centroid formula instead: average the three x-coordinates and average the three y-coordinates separately. That extension reflects the same “balanced center” idea but requires three values in each average.

Conclusion

The midpoint formula looks algebraic at first glance, but it reduces to one natural idea: find the average of the x-values and the average of the y-values. Label the two endpoints, average each coordinate pair, write the ordered pair, and check the sketch. Use the reversed version when the problem asks for a missing endpoint, and keep the distance formula separate whenever a question asks for length rather than location.

Master the routine with the worked examples above, drill the practice set, and return to the mistake checklist before tests. For more step-by-step walkthroughs, browse the mathematics category guides on this site, where related coordinate-geometry topics build on the same plotting, averaging, and reasoning habits.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *