Back to blog Download PDF
27 February 2026

How to Master Straight-Line Graphs (y = mx + c): A Step-by-Step GCSE Maths Guide

Straight-line graphs, or linear graphs, are a fundamental part of the GCSE Maths curriculum across all UK exam boards (AQA, Edexcel, OCR). Understanding the equation y = mx + c is crucial for success in coordinate geometry. This guide breaks down the topic into simple, manageable steps for both teachers and Year 10–11 students.

What Does y = mx + c Actually Mean?

Every straight line on a coordinate grid can be represented by this equation. It tells you everything you need to know to draw the line or identify its equation from a graph.

y and x are the coordinates of any point on the line.

m is the gradient (or slope). It tells you how steep the line is.

  • c is the y-intercept. This is where the line crosses the y-axis (where x = 0).

Think of it as a recipe: the gradient (m) tells you the direction and steepness, and the intercept (c) tells you where to start.

Step 1: Understanding the Gradient (m)

The gradient is calculated as the change in y divided by the change in x between any two points on the line.

m = change in ychange in x = up/down/left/right

Positive Gradient (m > 0): The line slopes upwards from left to right.

Negative Gradient (m < 0): The line slopes downwards from left to right.

Zero Gradient (m = 0): A horizontal line (y = a constant).

  • Undefined Gradient: A vertical line (x = a constant).
flowchart TD
    A["Calculate Gradient"] --> B["m positive or negative?"]
    B -->|Positive| C["Line slopes UP, Left to Right"]
    B -->|Negative| D["Line slopes DOWN, Left to Right"]
    B -->|Zero| E["Horizontal Line"]

How to calculate it from two points: If you have points A(x₁, y₁) and B(x₂, y₂), use the formula:
m = y2 - y1x2 - x1

  1. Example: Find the gradient of the line passing through (1,
  2. 3) and (4, 9).
    m = 9 - 34 - 1 = 63 = 2
    The gradient is 2. For every 1 unit you move right, you move 2 units up.

Step 2: Identifying the y-intercept (c)

This is the easiest part! The y-intercept (c) is simply the y-coordinate where the line crosses the y-axis.

On a graph, look for where the line cuts the y-axis (the vertical axis). That y-value is c.

  • In the equation y = 4x - 7, the y-intercept is -7. The line crosses the y-axis at (0, -7).

Step 3: Putting It All Together – Sketching a Line from y = mx + c

Let's sketch the line y = 2x + 1.

Identify c: c = 1. Mark a point on the y-axis at (0, 1).

Identify m: m = 2. This means gradient = 2 = 21.

From your intercept point (0,1): Move 1 unit to the right and 2 units up. Mark this new point (1, 3).

Repeat this process to find more points if needed.

  1. Use a ruler to draw a straight line through the points.
flowchart LR
    A["Start: Equation y = mx + c"] --> B["Plot y-intercept c on y-axis"]
    B --> C["Use gradient m as fraction, e.g. 2 = 2/1, -3 = -3/1"]
    C --> D["From intercept, move, RIGHT by bottom number, UP/DOWN by top number"]
    D --> E["Plot new point and draw line"]

Step 4: Finding the Equation from a Graph

This is a common exam question. Follow these steps:

Find c: Look at where the line crosses the y-axis.

Find m: Pick two clear points on the line. Use the gradient formula ( m = change in ychange in x ).

  1. Substitute m and c into y = mx + c.

Example: A line crosses the y-axis at (0, -2) and passes through (3, 4).
c = -2
m = 4 - -23 - 0 = 63 = 2
Equation: y = 2x - 2

Special Cases to Remember

Horizontal Lines: The equation is y = k, where k is a constant. The gradient is 0. Example: y = 5.

Vertical Lines: The equation is x = k, where k is a constant. The gradient is undefined. Example: x = -3. (This is not in the y = mx + c form!).

  • Through the Origin: If the line passes through (0,0), then c = 0. The equation is simply y = mx.

Common GCSE Exam Questions & Tips

Parallel Lines: Parallel lines have the same gradient (m). If you know a line is parallel to y = 3x + 8, its gradient is also 3.

Finding Intercepts: To find where a line crosses the x-axis, set y = 0 in the equation and solve for x.

Plotting Accurately: Always use a sharp pencil and a ruler for full marks in drawing questions.

  1. Negative Gradients: Be careful with arithmetic. A gradient of -2 can be thought of as -21 (1 right, 2 down) or 2-1 (1 left, 2 up).

Practice Makes Perfect

The key to mastering straight-line graphs is practice. Start by identifying m and c from equations, then move on to sketching. Finally, tackle problems where you have to find the equation from a graph or two points. Remember this simple summary:

> m for move (the gradient)
> c for cross (the y-intercept)

By breaking down every problem into these core steps, you'll be able to tackle any straight-line graph question that comes up in your GCSE Maths exam. Good luck!

  1. Further Practice: Look for past paper questions on coordinate geometry from your exam board's website. Focus on questions labelled 'straight line' or 'linear graph'.