Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Advanced (2026) Linear Functions

Lengths And Midpoints Of Line Segments

20 practice questions 0 video lessons Theory + worked examples
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The length of a line segment is the distance between its endpoints, found with Pythagoras’ theorem or the distance formula, and its midpoint is found by averaging the coordinates. This Year 11 Mathematics Advanced page covers exact (surd) and rounded lengths, horizontal and vertical distances, perimeters, finding an endpoint from the midpoint, and finding an unknown coordinate from a given length or midpoint.

A line segment (or interval) \(AB\) is the part of a line between the two endpoints \(A\) and \(B\). Its length is the distance \(AB\) between the endpoints.

Going from \(A(x_1,y_1)\) to \(B(x_2,y_2)\), the horizontal change is the run \(x_2-x_1\) and the vertical change is the rise \(y_2-y_1\). The segment \(AB\) is the hypotenuse of a right-angled triangle with these two sides, so Pythagoras’ theorem gives \(AB^2=\text{run}^2+\text{rise}^2\). Written with coordinates, this is the distance formula.

If the two points have the same \(x\)-coordinate, the segment is vertical and its length is the difference of the \(y\)-coordinates. If they have the same \(y\)-coordinate, it is horizontal and its length is the difference of the \(x\)-coordinates.

The midpoint \(M\) of \(AB\) is the point halfway between \(A\) and \(B\). Its \(x\)-coordinate is the average of the two \(x\)-coordinates and its \(y\)-coordinate is the average of the two \(y\)-coordinates.

A length asked for exactly is left as a surd in simplest form, such as \(\sqrt{45}=3\sqrt{5}\). Otherwise round to the number of decimal places asked for, and give the units.

Distance between two points as a hypotenuseThe segment from A(1, 1) to B(5, 4) is the hypotenuse of a right-angled triangle with a horizontal run of 4 and a vertical rise of 3, so its length is 5. x y 1 2 3 4 5 6 1 2 3 4 5 A(1, 1) B(5, 4) run = 5 − 1 = 4 rise = 4 − 1 = 3 d = 5
The segment \(AB\) is the hypotenuse: \(AB^2=4^2+3^2=25\), so \(AB=5\) units.
The midpoint is halfway in both directionsThe segment from A(-2, 1) to B(4, 5) with midpoint M(1, 3). On the x-axis, 1 is 3 units from both -2 and 4; on the y-axis, 3 is 2 units from both 1 and 5. x y −2 1 4 1 3 5 A(−2, 1) B(4, 5) M(1, 3) 3 3 2 2
The midpoint is halfway across and halfway up: \((-2+4)\div 2=1\) and \((1+5)\div 2=3\), so \(M(1,3)\).

For the points \(A(x_1,y_1)\) and \(B(x_2,y_2)\):

\[d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\]
d equals the square root of x2 minus x1 squared plus y2 minus y1 squared
\[M=\left(\dfrac{x_1+x_2}{2},\,\dfrac{y_1+y_2}{2}\right)\]
M equals x1 plus x2 over 2, y1 plus y2 over 2

Without the square root, the formula gives the square of the length, which is useful when \(AB^2\) is asked for or when the length is known and a coordinate is unknown:

\[AB^2=(x_2-x_1)^2+(y_2-y_1)^2\]
AB squared equals x2 minus x1 squared plus y2 minus y1 squared
Horizontal and vertical segments. \((-3,2)\) and \((4,2)\) have the same \(y\)-coordinate, so the distance is \(4-(-3)=7\) units. \((1,-2)\) and \((1,5)\) have the same \(x\)-coordinate, so the distance is \(5-(-2)=7\) units.
Dividing a segment into four equal parts. Use the midpoint three times. For \(A(-2,-3)\) and \(E(6,5)\): the middle point \(C\) is the midpoint of \(AE\), \(C(2,1)\). Then \(B\) is the midpoint of \(AC\), \(B(0,-1)\), and \(D\) is the midpoint of \(CE\), \(D(4,3)\).
A midpoint written with unknowns. If the midpoint of \((1,-4)\) and \((7,10)\) is \((2a,\,b-1)\): the midpoint is \((4,3)\), so \(2a=4\) and \(b-1=3\), giving \(a=2\) and \(b=4\). Match the \(x\)-coordinates and the \(y\)-coordinates separately.

How to find the length of a segment

  1. Label the points \((x_1,y_1)\) and \((x_2,y_2)\). Either point can be first.
  2. Substitute into the distance formula, with brackets around negative numbers.
  3. Simplify: square, add, then take the square root. Simplify the surd for an exact answer, or round as asked, with units.

The same working can be set out as run and rise: run \(=x_2-x_1\), rise \(=y_2-y_1\), then \(d^2=\text{run}^2+\text{rise}^2\).

How to find a midpoint

  1. Add the two \(x\)-coordinates and halve.
  2. Add the two \(y\)-coordinates and halve.
  3. Write the answer as a point, \(M(x,y)\).

Working backwards

  1. Endpoint from the midpoint: write \(\dfrac{x_A+x_B}{2}=x_M\) and \(\dfrac{y_A+y_B}{2}=y_M\). Multiply each by \(2\) and solve (Example 3).
  2. Unknown coordinate from a length: substitute into the distance formula, square both sides and solve. A squared bracket equal to a positive number gives two answers, \(\pm\) (Example 4).
  3. Perimeter: find each side length and add. Keep surds or full calculator values until the final rounding.
Example 1 — Distance between two points
Find the distance between \(P(-1,4)\) and \(Q(3,-2)\):
(i) exactly, in simplest surd form
(ii) correct to 1 decimal place.
Solution

Let \(x_1=-1,\ y_1=4\) and \(x_2=3,\ y_2=-2\).

\(d\)\(=\)\(\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\)
\(\)\(=\)\(\sqrt{(3-(-1))^2+(-2-4)^2}\)
\(\)\(=\)\(\sqrt{4^2+(-6)^2}\)
\(\)\(=\)\(\sqrt{16+36}\)
\(\)\(=\)\(\sqrt{52}\)
d equals the square root of 4 squared plus negative 6 squared, which is the square root of 52
Distance from P(-1, 4) to Q(3, -2)P(-1, 4) and Q(3, -2) joined by a segment. The dashed right-angled triangle has a run of 4 and a rise of -6. x y P(−1, 4) Q(3, −2) run 4 rise −6

(i) \(52=4\times 13\), so \(\sqrt{52}=\sqrt{4}\times\sqrt{13}\).

\(\therefore\) \(PQ=\boldsymbol{2\sqrt{13}}\) units

(ii) \(\sqrt{52}=7.2111\ldots\)

\(\therefore\) \(PQ\approx\boldsymbol{7.2}\) units

Example 2 — Midpoint
Find the midpoint \(M\) of the interval joining \(A(-4,1)\) and \(B(3,6)\).
Solution

Average the \(x\)-coordinates and average the \(y\)-coordinates.

\(x\)\(=\)\(\dfrac{-4+3}{2}=-\dfrac{1}{2}\)
\(y\)\(=\)\(\dfrac{1+6}{2}=\dfrac{7}{2}\)
x equals negative 4 plus 3 over 2, which is negative one half; y equals 1 plus 6 over 2, which is 7 over 2
Midpoint of A(-4, 1) and B(3, 6)The segment from A(-4, 1) to B(3, 6) with its midpoint M(-1/2, 7/2) halfway along. x y −4 3 1 6 A(−4, 1) B(3, 6) M(−1/2, 7/2)

\(\therefore\) \(\boldsymbol{M\left(-\dfrac{1}{2},\dfrac{7}{2}\right)}\)

Check on the graph: \(M\) sits halfway along \(AB\), between \(x=-4\) and \(x=3\) and between \(y=1\) and \(y=6\).

Example 3 — Endpoint from the midpoint
\(M(2,-1)\) is the midpoint of the interval \(AB\), where \(A(-3,4)\). Find the coordinates of \(B\).
Solution

Let \(B(x_B,y_B)\). Write the midpoint formula for each coordinate and solve.

\(\dfrac{-3+x_B}{2}\)\(=\)\(2\)
\(-3+x_B\)\(=\)\(4\)
\(x_B\)\(=\)\(7\)
negative 3 plus x B over 2 equals 2, so x B equals 7
\(\dfrac{4+y_B}{2}\)\(=\)\(-1\)
\(4+y_B\)\(=\)\(-2\)
\(y_B\)\(=\)\(-6\)
4 plus y B over 2 equals negative 1, so y B equals negative 6

\(\therefore\) \(\boldsymbol{B(7,-6)}\)

Finding B from A and the midpoint MA(-3, 4), M(2, -1) and B(7, -6) lie on one segment. The step from A to M (5 right, 5 down) is repeated from M to reach B. x y A(−3, 4) M(2, −1) B(7, −6) +5 −5 +5 −5

Check: from \(A\) to \(M\) is \(5\) right and \(5\) down; the same step again from \(M\) lands on \(B(7,-6)\).

Example 4 — Unknown coordinate from a length
The point \(P(k,-1)\) is \(13\) units from \(Q(3,4)\). Find the two possible values of \(k\).
Solution

Substitute into the distance formula and square both sides.

\(\sqrt{(3-k)^2+(4-(-1))^2}\)\(=\)\(13\)
\((3-k)^2+25\)\(=\)\(169\)
\((3-k)^2\)\(=\)\(144\)
\(3-k\)\(=\)\(\pm 12\)
3 minus k squared plus 25 equals 169, so 3 minus k squared equals 144 and 3 minus k equals plus or minus 12

\(3-k=12\Rightarrow k=-9\);  \(3-k=-12\Rightarrow k=15\)

\(\therefore\) \(\boldsymbol{k=-9}\) or \(\boldsymbol{k=15}\)

Two points on y = -1 that are 13 units from QQ(3, 4) is joined to P(-9, -1) and to P(15, -1), both on the dashed line y = -1. Each segment is 13 units long. x y −9 3 15 4 Q(3, 4) P(−9, −1) P(15, −1) 13 13 y = −1

Both answers work: \(P\) can be \(13\) units to the left or to the right of \(Q\) along the line \(y=-1\). Check \(P(15,-1)\): \(\sqrt{12^2+5^2}=\sqrt{169}=13\).

Common pitfalls

Subtracting a negative. \(3-(-1)=4\), not \(2\). Put negative coordinates in brackets before you subtract.
Square the whole difference. \((-6)^2=36\). A squared difference is never negative, so a negative number under the square root is a sign of an error.
Add first, then take the root. \(\sqrt{16+36}=\sqrt{52}\), not \(4+6\). The square root does not split over a sum.
Midpoints add, distances subtract. The midpoint uses \(x_1+x_2\); the distance uses \(x_2-x_1\). Mixing them up is the most common slip in this topic.
Watch for two answers. When an unknown coordinate is squared, as in \((3-k)^2=144\), take \(\pm\) and give both values.
Round once, at the end. For a perimeter, add the exact side lengths (or full calculator values) and round the total, not each side.

Frequently asked questions

How do you find the distance between two points?

Subtract the \(x\)-coordinates and subtract the \(y\)-coordinates, square both differences, add them, and take the square root: \(d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\). This comes from Pythagoras’ theorem.

How do you find the midpoint of a line segment?

Add the two \(x\)-coordinates and halve, then add the two \(y\)-coordinates and halve. The midpoint of \((2,3)\) and \((6,9)\) is \((4,6)\).

How do you find an endpoint if you know the midpoint?

Write \(\dfrac{x_A+x_B}{2}=x_M\) and \(\dfrac{y_A+y_B}{2}=y_M\), multiply by \(2\) and solve. In effect, the endpoint is twice the midpoint minus the known endpoint, one coordinate at a time.

Does it matter which point is (x1, y1) in the distance formula?

No. Swapping the points only changes the sign of each difference, and the differences are squared, so the distance is the same. The midpoint is the same either way too.

How do you give an exact distance?

Leave the answer as a square root and simplify it by taking out the largest square factor: \(\sqrt{45}=\sqrt{9\times 5}=3\sqrt{5}\).