Straight-Line Graphs (y = mx + c)

GCSE Maths ยท Algebra

Straight-line graphs

A straight line has the equation y = mx + c, where:

  • m = the gradient (steepness / slope) of the line;
  • c = the y-intercept (where the line crosses the y-axis).

Gradient

The gradient tells you how steep the line is and in which direction it slopes.

gradient = change in y รท change in x  =  rise รท run
  • A positive gradient slopes up (left to right); a negative gradient slopes down.
  • A larger number = steeper line.

Between two points (xโ‚, yโ‚) and (xโ‚‚, yโ‚‚):

m = (yโ‚‚ โˆ’ yโ‚) รท (xโ‚‚ โˆ’ xโ‚)

The y-intercept

This is the value of c โ€” where the line cuts the y-axis (when x = 0). In y = 3x โˆ’ 2, the line crosses the y-axis at โˆ’2.

Reading an equation

For y = 4x + 1: gradient m = 4, y-intercept c = 1.

Rearrange first if needed: 2y = 6x + 8 โ†’ divide by 2 โ†’ y = 3x + 4 (m = 3, c = 4).

Parallel and perpendicular lines

  • Parallel lines have the same gradient (m).
  • Perpendicular lines have gradients whose product is โˆ’1 (the negative reciprocal). If one gradient is 2, the perpendicular gradient is โˆ’ยฝ.

Plotting a line

1. Mark the y-intercept (c) on the y-axis.

2. Use the gradient (rise/run) to find another point.

3. Join them with a straight line.

Or make a small table of values: pick x-values, work out y, plot the points.

Finding the equation of a line

Given a gradient and a point, substitute into y = mx + c to find c. E.g. gradient 2 through (1, 5): 5 = 2(1) + c โ†’ c = 3 โ†’ y = 2x + 3.

Worked example

Find the gradient of the line through (2, 1) and (6, 9).

m = (9 โˆ’ 1) รท (6 โˆ’ 2) = 8 รท 4 = 2

โœ“

Common mistakes

  • Reading m and c from an equation that isn't in y = mx + c form (rearrange first).
  • Getting the gradient formula upside down โ€” it's change in y over change in x.
  • Forgetting perpendicular gradients are negative reciprocals (product โˆ’1).

Exam tips

  • Always rearrange to y = mx + c before reading off gradient and intercept.
  • For "parallel", copy the gradient; for "perpendicular", use the negative reciprocal.
  • Label at least two clear points when finding a gradient from a graph.

Key facts to remember

  • y = mx + c: m = gradient (rise รท run), c = y-intercept.
  • Gradient between points = (yโ‚‚ โˆ’ yโ‚) รท (xโ‚‚ โˆ’ xโ‚).
  • Parallel = same gradient; perpendicular = gradients multiply to โˆ’1 (negative reciprocal).
Test yourself on Algebra

5 quick GCSE Maths questions, marked instantly, so you know what stuck. Free account, no card needed.

Start the free quiz โ†’
Don't understand a part?

Sign in and ask our AI tutor to explain any passage in plain English.

Try AI explanations โ†’

More on Algebra

Solving Linear Equations Expanding and Factorising Sequences and the nth Term Quadratic Equations Simultaneous Equations Sequences: nth Term, Quadratic & Geometric Algebraic Fractions & Proof Functions & Graph Transformations Iteration & Inequalities

โ† All GCSE Maths notes