IGCSE Mathematics 0580 · Topic 3.2

IGCSE Mathematics: Straight Line Graphs Practice Questions

Every straight line can be written as y = mx + c, where m is the gradient and c is the y-intercept. The gradient between two points is the change in y divided by the change in x.

Cambridge IGCSE Mathematics (0580) · Topic 3.2: Straight Line Graphs

Topic 3.2 of Cambridge IGCSE Mathematics 0580 appears on both papers and feeds directly into perpendicular lines and graphical solutions. Nearly every lost mark comes from a sign error in the gradient calculation. The questions below make the subtraction explicit.

What you need to know for Straight Line Graphs

IGCSE Mathematics Straight Line Graphs questions and answers

4 exam-style questions written to the 0580 syllabus. Try each one on paper first, then open the worked answer to check your method against the marks.

Question 1[3 marks]

Find the gradient of the line passing through the points (1, 4) and (5, 16).

Show the worked answer
Answer: 3
  1. Use m = (y2 minus y1) divided by (x2 minus x1).
  2. Change in y = 16 minus 4 = 12.
  3. Change in x = 5 minus 1 = 4.
  4. m = 12 divided by 4 = 3. The gradient is positive, which is consistent with y increasing as x increases.
How the marks are awarded. 1 mark for using the gradient formula. 1 mark for a change in y of 12 and a change in x of 4. 1 mark for m = 3.
Where students lose the mark. Subtracting the coordinates in opposite orders on the top and the bottom, which gives minus 3. Keep the same point first in both subtractions.
Question 2[4 marks]

Find the equation of the straight line passing through the points (2, 5) and (6, 13).

Show the worked answer
Answer: y = 2x + 1
  1. Find the gradient: m = (13 minus 5) divided by (6 minus 2) = 8 divided by 4 = 2.
  2. Write the partial equation: y = 2x + c.
  3. Substitute one of the points to find c. Using (2, 5): 5 = 2 x 2 + c, so 5 = 4 + c and c = 1.
  4. The equation is y = 2x + 1. Check with the other point: 2 x 6 + 1 = 13, which matches.
How the marks are awarded. 1 mark for a gradient of 2. 1 mark for substituting a point into y = mx + c. 1 mark for c = 1. 1 mark for the complete equation.
Where students lose the mark. Stopping after finding the gradient. The question asks for the equation, so c must be found and the full equation written.
Question 3[4 marks]

A is the point (minus 3, 7) and B is the point (5, 1). Find the midpoint of AB and the length of AB.

Show the worked answer
Answer: Midpoint (1, 4), length 10.
  1. Midpoint x coordinate: (minus 3 + 5) divided by 2 = 2 divided by 2 = 1.
  2. Midpoint y coordinate: (7 + 1) divided by 2 = 8 divided by 2 = 4. The midpoint is (1, 4).
  3. For the length, find the horizontal and vertical differences: 5 minus (minus 3) = 8, and 1 minus 7 = minus 6.
  4. Apply Pythagoras: length is the square root of (82 + 62) = the square root of (64 + 36) = the square root of 100 = 10.
How the marks are awarded. 1 mark for the midpoint x coordinate. 1 mark for the midpoint y coordinate. 1 mark for a correct Pythagoras method with both differences. 1 mark for a length of 10.
Where students lose the mark. Subtracting minus 3 from 5 incorrectly and using 2 as the horizontal difference. Subtracting a negative adds, so the difference is 8.
Question 4[3 marks]

Rearrange 2y minus 6x = 8 into the form y = mx + c, then write down the gradient and the y-intercept.

Show the worked answer
Answer: y = 3x + 4, gradient 3, y-intercept 4.
  1. Add 6x to both sides to isolate the y term: 2y = 6x + 8.
  2. Divide every term on both sides by 2: y = 3x + 4.
  3. The equation is now in the form y = mx + c, so the gradient m is the coefficient of x, which is 3.
  4. The y-intercept c is the constant term, 4, meaning the line crosses the y-axis at (0, 4).
How the marks are awarded. 1 mark for rearranging to 2y = 6x + 8. 1 mark for y = 3x + 4. 1 mark for stating the gradient as 3 and the intercept as 4.
Where students lose the mark. Reading the gradient as minus 6 from the original equation. Nothing can be read off until the equation is rearranged into y = mx + c form.

Common mistakes in this topic

Exam tips

Practise 20 more questions like this, free

vStudyWise marks every answer instantly, tracks the topics you keep dropping marks on and turns them into a weekly study plan.

Straight Line Graphs FAQs

How do I find the gradient between two points?

Subtract the y coordinates and divide by the difference in the x coordinates, taking the points in the same order for both subtractions. A positive result means the line rises from left to right and a negative result means it falls.

How do I find the equation of a line through two points?

Calculate the gradient first, then write y equals that gradient times x plus c. Substitute the coordinates of either point to find c, and write out the full equation. Check by substituting the other point, which should also satisfy it.

How do I find the midpoint and length of a line segment?

For the midpoint, average the x coordinates and average the y coordinates. For the length, find the horizontal and vertical differences between the points and apply Pythagoras, taking the square root of the sum of their squares.

Why must I rearrange before reading the gradient?

The gradient is only the coefficient of x when the equation is in the form y equals mx plus c, with a single y on the left. In a form such as 2y minus 6x equals 8, the coefficients have not yet been divided through, so reading them directly gives the wrong values.

Continue through the IGCSE Mathematics syllabus

Related IGCSE Mathematics topics

See all 41 IGCSE Mathematics practice topics ›

Written to the published Cambridge IGCSE Mathematics (0580) syllabus. Check your school entry code and syllabus year, because Core and Extended candidates are assessed on different content. Last reviewed 2026-08-12.