Skip to main content
EnglandMathsSyllabus dot point

How do you find the gradient, intercept and equation of a straight line, and identify parallel and perpendicular lines?

Use the equation y=mx+cy = mx + c to find the gradient and intercept; find the equation of a line through given points; and identify parallel and perpendicular lines (perpendicular at Higher tier).

A focused answer to the OCR GCSE Mathematics algebra content on straight line graphs, covering gradient and intercept, the equation of a line through points, and parallel and perpendicular lines.

Generated by Claude Opus 4.810 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The equation y = mx + c
  3. Gradient between two points
  4. Finding the equation of a line
  5. Parallel and perpendicular lines

What this dot point is asking

OCR references A9 and A10 cover straight line graphs: using y=mx+cy = mx + c to read the gradient and intercept, finding the equation of a line through given points, and identifying parallel and (at Higher tier) perpendicular lines. The straight line is the simplest graph and the gateway to coordinate geometry, real-life linear graphs and the graphical solution of simultaneous equations. It is tested on every tier and frequently on the non-calculator paper.

The equation y = mx + c

Every non-vertical straight line can be written in this form.

So y=3x−2y = 3x - 2 has gradient 33 and crosses the yy-axis at −2-2. To plot it, mark (0,−2)(0, -2) and step up 33 for every 11 across. If an equation is given as 2y=4x+62y = 4x + 6, rearrange to y=2x+3y = 2x + 3 before reading off mm and cc. A line written as x+y=5x + y = 5 also needs rearranging, to y=−x+5y = -x + 5, which has gradient −1-1 and intercept 55.

A horizontal line has the form y=ky = k (gradient 00, no xx term), and a vertical line has the form x=kx = k (an undefined gradient, so it cannot be written as y=mx+cy = mx + c). Recognising these special cases stops you trying to force a vertical line into the standard form. The gradient itself is a rate: in a real-life graph it might be a cost per item or a speed, so reading mm correctly is the key to interpreting context, which OCR rewards under AO3.

Gradient between two points

The gradient measures steepness as a ratio.

For (2,3)(2, 3) and (6,11)(6, 11), the gradient is 11−36−2=84=2\dfrac{11 - 3}{6 - 2} = \dfrac{8}{4} = 2. The order of subtraction must be consistent: subtract the coordinates in the same order on top and bottom, or the sign of the gradient flips.

Finding the equation of a line

Two pieces of information fix a line: a gradient and a point, or two points.

Parallel and perpendicular lines

Gradients reveal how two lines relate.

Parallel lines never meet and have equal gradients, so any line parallel to y=4x−1y = 4x - 1 has gradient 44; only the intercept changes. Perpendicular lines cross at a right angle, and their gradients are negative reciprocals: their product is −1-1. So a line perpendicular to one with gradient 22 has gradient −12-\tfrac{1}{2}, and a line perpendicular to gradient −34-\tfrac{3}{4} has gradient 43\tfrac{4}{3}. To find the negative reciprocal, flip the fraction and change the sign; for a whole-number gradient mm, the perpendicular gradient is −1m-\tfrac{1}{m}. Perpendicular lines are a Higher-tier focus and a frequent multi-mark question.

A typical Higher question gives you a line and a point and asks for the perpendicular (or parallel) line through that point. The method is always the same: decide the new gradient from the parallel or perpendicular rule, then substitute the point into y=mx+cy = mx + c to find the intercept. Coordinate geometry questions may also ask for the midpoint of a line segment, found by averaging the coordinates, or the length of a segment, found with Pythagoras on the horizontal and vertical differences, so straight-line work links directly to the geometry strand.

Exam-style practice questions

Practice questions written in the style of OCR exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

OCR 20193 marksA straight line passes through the points (1,5)(1, 5) and (4,14)(4, 14). Find the equation of the line. (Higher, Paper 4, calculator.)
Show worked answer →

Find the gradient: m=14−54−1=93=3m = \dfrac{14 - 5}{4 - 1} = \dfrac{9}{3} = 3.

Use y=mx+cy = mx + c with one point, say (1,5)(1, 5): 5=3(1)+c5 = 3(1) + c, so c=2c = 2.

The equation is y=3x+2y = 3x + 2.

Markers award a mark for the gradient, a mark for finding cc, and a mark for the full equation. Checking the other point: 3(4)+2=143(4) + 2 = 14, which matches. Subtracting the coordinates in the wrong order (giving a negative gradient) is the usual slip.

OCR 20213 marksA line LL has equation y=2x−5y = 2x - 5. Find the equation of the line perpendicular to LL that passes through the point (4,1)(4, 1). (Higher, Paper 5, non-calculator.)
Show worked answer →

The gradient of LL is 22. Perpendicular gradients are negative reciprocals, so the new gradient is −12-\dfrac{1}{2}.

Use y=mx+cy = mx + c with (4,1)(4, 1): 1=−12(4)+c1 = -\dfrac{1}{2}(4) + c, so 1=−2+c1 = -2 + c, giving c=3c = 3.

The equation is y=−12x+3y = -\dfrac{1}{2}x + 3.

Markers give a mark for the perpendicular gradient −12-\tfrac{1}{2}, a mark for finding cc, and a mark for the equation. Using the same gradient (parallel instead of perpendicular) is the standard error.

Related dot points

Sources & how we know this