Quelpr

CSEC Mathematics · relations, functions and graphs

Length and Midpoint of a Line Segment

Calculate the exact length and the midpoint coordinates of any straight line segment using coordinates and Pythagoras' Theorem.
14 min Syllabus: calculate the length and midpoint coordinates of a line segment

Before you start

A point on a Cartesian plane is written as (x,y), where x represents the horizontal position and y represents the vertical position. A line segment is the straight path connecting two specific endpoints.

Builds on: Equation of a Straight Line

1. The Midpoint of a Line Segment

The midpoint is the exact centre of a line segment, halfway between the two endpoints. Because it sits halfway, its x-coordinate is the mean (average) of the two x-coordinates, and its y-coordinate is the mean of the two y-coordinates.

For two endpoints A(x1​,y1​) and B(x2​,y2​), the midpoint M is:

M=(2x1​+x2​​,2y1​+y2​​)

Notice the plus sign inside the formula: you add the coordinates together, then divide by 2. Pay close attention when dealing with negative numbers, remembering that adding a negative is the same as subtraction.

A line segment connecting point A(2, -3) and point B(8, 5) with midpoint M(5, 1) highlighted at the centre.246810-4-22460xyA(2, -3)B(8, 5)M(5, 1)

Worked example

A line segment connects point A(2,−3) to point B(8,5). Determine the coordinates of the midpoint, M, of line segment AB.

  1. Identify the coordinates: (x1​,y1​)=(2,−3) and (x2​,y2​)=(8,5).
  2. Apply the midpoint formula: M=(22+8​,2−3+5​).
  3. Simplify the numerators: M=(210​,22​).
  4. Divide by 2 to get the final coordinates: M=(5,1).

Answer: The midpoint is (5,1).

Quick check

Determine the coordinates of the midpoint of the line segment joining C(−4,1) and D(2,7).

2. The Length of a Line Segment

The length of a line segment is the straight-line distance between its two endpoints. If you sketch a horizontal run from the first point and a vertical rise to the second point, you form a right-angled triangle.

Using Pythagoras' Theorem (a2+b2=c2):

  • The horizontal distance is (x2​−x1​).
  • The vertical distance is (y2​−y1​).

This gives the distance formula for the length of line segment AB:

AB=√(x2​−x1​)2+(y2​−y1​)2​

Always square the differences before adding them. Remember that squaring any real number (positive or negative) always results in a positive value: (−6)2=36, never −36.

Right-angled triangle formed between points J(-2, 1) and K(4, 9), showing horizontal run of 6 units and vertical rise of 8 units.-4-22462468100xyJ(-2, 1)K(4, 9)

Worked example

Calculate the length of the line segment connecting the points J(−2,1) and K(4,9).

  1. Label the coordinates: (x1​,y1​)=(−2,1) and (x2​,y2​)=(4,9).
  2. Find the horizontal change: x2​−x1​=4−(−2)=4+2=6.
  3. Find the vertical change: y2​−y1​=9−1=8.
  4. Substitute into the distance formula: JK=√62+82​.
  5. Calculate the squares and sum them: JK=√36+64​=√100.
  6. Take the square root: JK=10 units.

Answer: JK=10 units

Quick check

Calculate the length of the line segment joining the points P(1,2) and Q(4,6).

units

3. Finding a Missing Endpoint

In CSEC exam questions, you may be given one endpoint and the midpoint, and asked to determine the other endpoint.

To solve this, set up two separate simple linear equations—one for the x-coordinates and one for the y-coordinates—using the midpoint formula:

2x1​+x2​​=xM​and2y1​+y2​​=yM​

Multiply both sides by 2 to clear the fraction, then solve for the unknown coordinate.

Worked example

P(3,7) is one endpoint of a line segment PQ, and M(5,4) is its midpoint. Determine the coordinates of endpoint Q.

  1. Let the unknown endpoint be Q(x,y).
  2. Set up the equation for the x-coordinate: 23+x​=5.
  3. Multiply both sides by 2: 3+x=10, so x=10−3=7.
  4. Set up the equation for the y-coordinate: 27+y​=4.
  5. Multiply both sides by 2: 7+y=8, so y=8−7=1.
  6. Combine into coordinate form: (7,1).

Answer: The coordinates of Q are (7,1).

Quick check

The midpoint of line segment AB is M(3,2). If endpoint A is (1,−2), what are the coordinates of endpoint B?

Common mistakes

  • Subtracting coordinates when calculating the midpoint: do not confuse the midpoint formula (2x1​+x2​​,2y1​+y2​​) with the gradient or distance formula. Midpoint uses addition.
  • Making sign errors when squaring negative values: (−5)2=+25, not −25. Distance components are always positive once squared.
  • Omitting coordinate brackets: writing an answer as '5, 1' instead of '(5, 1)' can cost you marks on CSEC papers.

In the exam

  • Write out the formula and show substitution clearly before computing. This guarantees method marks (M1) even if an arithmetic slip occurs.
  • Always state coordinates as an ordered pair inside round brackets separated by a comma: (x,y).
  • If the square root for a length does not simplify to a whole number, leave it in exact surd form (such as √40) until instructed to give a decimal to a specified number of decimal places.

Key terms

Line Segment
A straight path connecting two distinct points, having a measurable, fixed length.
Midpoint
The point on a line segment that is equidistant from both endpoints, dividing the segment into two equal parts.
Distance Formula
An application of Pythagoras' Theorem used to find the length between two points: d=√(x2​−x1​)2+(y2​−y1​)2​.

Practice

Easier to harder. Use paper for your working.

Practice 1

Points E(−5,8) and F(3,−2) are the endpoints of line segment EF. Determine the coordinates of the midpoint of EF.

Practice 2

Line segment RS has endpoints R(2,−1) and S(7,11). Calculate the length of RS.

units

Practice 3

The midpoint of a line segment CD is M(1,5). If point C has coordinates (−3,2), determine the coordinates of point D.

Now try real past-paper questions

3 Paper 2 questions on this topic. Quelpr marks your working point by point, like an examiner.

  • Mathematics Q4 4(b)(ii) · 2 marksP(6, -1) and Q(2, 7) are the end points of a line segment PQ. Determine the coordinates of the midpoint of PQ
  • Mathematics Q4 4(b)(ii) · 2 marksA (-1, 4) and B (3, 2) are the end points of a line segment AB. Determine the coordinates of the midpoint of AB.
  • Mathematics Q5 5(b)(iv) · 2 marksThe line l passes through the points S (6, 6) and T (0, -2). Determine the length of the line segment, TS.

Finished the lesson?

0 of 6 checks right on this device.

Read more

  • Mathematics for CSEC, pp. 170, 425
  • CXC Study Guide - Mathematics for CSEC, p. 122
  • Collins - Concise Revision Course for CSEC Mathematics, pp. 351, 352
  • CSEC Maths Study Guide - Maths Crash Course, p. 191
  • algebra-and-trigonometry-2e_-_WEB, p. 178