Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 11 (2026) Maths Standard (2026) Linear Relationships

Straight Line Graphs

20 practice questions 1 video lesson Theory + worked examples
Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Straight Line Graphs - Video - Graphing straight lines using a table of values Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A straight line graph shows a linear relationship between \(x\) and \(y\). This Year 11 Maths Standard page shows how to complete a table of values, plot and rule the line, test whether a point lies on the line, sketch a line from its intercepts, and find the equation \(y=mx+c\) from a table or a graph.

A linear relationship is one where \(y\) changes by the same amount every time \(x\) goes up by \(1\). Its graph is a straight line. Everyday examples are a taxi fare, a phone plan or a plumber's bill: a fixed starting charge plus the same extra amount for every kilometre, gigabyte or hour.

A table of values lists some \(x\) values and the matching \(y\) values. Each column gives a point \((x,\,y)\) to plot. A point lies on the line only if its coordinates make the equation true.

The \(y\)-intercept is where the line crosses the \(y\)-axis, so \(x=0\) there. The \(x\)-intercept is where it crosses the \(x\)-axis, so \(y=0\) there.

The equation \(y=mx+c\) is the gradient–intercept form. The number \(m\) is the gradient (how steep the line is: positive if it rises from left to right, negative if it falls) and \(c\) is the \(y\)-intercept. Equations can also be written with everything on one side, such as \(x+3y-9=0\). This is called the general form.

Graph of y = 2x + 1 from a table of valuesThe points (-2,-3), (-1,-1), (0,1), (1,3) and (2,5) from a table of values are plotted and a straight line is ruled through them. x y −3 −2 −1 1 2 3 −4 −2 2 4 6 O (2, 5) (−2, −3) (0, 1) y = 2x + 1
Table for \(y=2x+1\): the \(x\) values \(-2,-1,0,1,2\) give \(y\) values \(-3,-1,1,3,5\). Plot the points and rule one straight line through them.
Graph of 3x + 4y - 12 = 0 using interceptsThe line 3x + 4y - 12 = 0 crosses the y-axis at (0,3) and the x-axis at (4,0). The two intercepts are marked and the line is ruled through them. x y 1 2 3 4 5 1 2 3 4 O (0, 3) (4, 0) 3x + 4y − 12 = 0
For \(3x+4y-12=0\): \(x=0\) gives the \(y\)-intercept \((0,3)\) and \(y=0\) gives the \(x\)-intercept \((4,0)\). Two points are enough to rule the line.

Gradient–intercept form of a straight line:

\[y=mx+c \qquad m=\text{gradient},\quad c=y\text{-intercept}\]
y equals m x plus c, where m is the gradient and c is the y-intercept

Gradient between two points \((x_1,\,y_1)\) and \((x_2,\,y_2)\):

\[m=\dfrac{\text{rise}}{\text{run}}=\dfrac{y_2-y_1}{x_2-x_1}\]
m equals rise over run equals (y2 minus y1) over (x2 minus x1)

Intercepts:

\[y\text{-intercept: put } x=0 \qquad x\text{-intercept: put } y=0\]
for the y-intercept substitute x equals 0; for the x-intercept substitute y equals 0
Patterns in a table. When \(x\) goes up by \(1\) each time, the amount \(y\) changes by each time is the gradient \(m\). For example, if \(y\) goes \(4,\ 9,\ 14,\ 19\) then \(y\) goes up by \(5\) each step and \(m=5\). Keep adding (or subtracting) the same amount to fill gaps in the table.
Changing to \(y=mx+c\). Make \(y\) the subject: move the \(x\) term and the number to the other side, then divide every term by the number in front of \(y\).
\(3x+2y\)\(=\)\(8\)
\(2y\)\(=\)\(-3x+8\)
\(y\)\(=\)\(-\dfrac{3}{2}x+4\)
Calculator tips. Put negative numbers in brackets when you substitute, for example \(3\times(-1)-1\). Use the fraction key to keep answers such as \(-\dfrac{3}{2}\) exact. Most scientific calculators also have a Table mode: enter the rule, a start value, an end value and a step of \(1\), and it fills in a table of values for you.

How to draw a straight line graph from \(y=mx+c\)

  1. Choose three easy \(x\) values, such as \(-1\), \(0\) and \(1\).
  2. Substitute each one into the equation to complete a table of values.
  3. Plot the points \((x,\,y)\) and rule one straight line through them. If the points do not line up, check your working.
  4. Label the line with its equation.

How to sketch a line in general form

  1. Put \(x=0\) and solve to get the \(y\)-intercept.
  2. Put \(y=0\) and solve to get the \(x\)-intercept.
  3. Plot both intercepts and rule the line through them.

How to test whether a point is on a line

  1. Substitute the \(x\) and \(y\) values of the point into the equation.
  2. Compare: for general form, work out the left-hand side (LHS) and see if it equals \(0\). For \(y=mx+c\), see if the \(y\) you calculate matches the point.
  3. Conclude: if the equation is true the point is on the line; if not, it is not.

How to find the equation \(y=mx+c\)

  1. From the gradient and \(y\)-intercept: put them straight into \(y=mx+c\).
  2. From a table: the change in \(y\) when \(x\) goes up by \(1\) is \(m\). Substitute one point from the table into \(y=mx+c\) to find \(c\).
  3. From a graph or two points: find \(m=\dfrac{\text{rise}}{\text{run}}\) or use the gradient formula. Read \(c\) where the line crosses the \(y\)-axis, or substitute a point to find it.

How to match an equation to its graph

  1. Gradient sign: a positive \(m\) rises from left to right; a negative \(m\) falls.
  2. \(y\)-intercept: the line must cross the \(y\)-axis at \(c\) (above the origin if \(c\) is positive, below if negative).
  3. Check one more point, such as the \(x\)-intercept, if two graphs still look alike.
Example 1 — Completing a table
The table of values is for the line \(y=3x-1\). Find the values of \(p\) and \(a\).
\(x\)\(-1\)\(0\)\(1\)\(a\)
\(y\)\(p\)\(-1\)\(2\)\(8\)
Solution

When \(x=-1\), \(y=p\): substitute \(x=-1\).

\(p\)\(=\)\(3\times(-1)-1\)
\(\)\(=\)\(-3-1\)
\(\)\(=\)\(-4\)
p equals 3 times negative 1 minus 1 equals negative 4

When \(x=a\), \(y=8\): this time \(y\) is known, so substitute \(y=8\) and solve.

\(8\)\(=\)\(3a-1\)
\(3a\)\(=\)\(9\)
\(a\)\(=\)\(3\)
8 equals 3a minus 1, so 3a equals 9 and a equals 3

\(\therefore\ p=\mathbf{-4}\) and \(a=\mathbf{3}\). All four points lie on one straight line, which confirms the table:

Points from the table for y = 3x - 1The points (-1,-4), (0,-1), (1,2) and (3,8) lie on the straight line y = 3x - 1. x y −3 −2 −1 1 2 3 4 −4 2 4 6 8 O (−1, −4) (3, 8)
Example 2 — Intercepts and testing points
A line has the equation \(2x+5y-10=0\).
(i) Find the \(x\)- and \(y\)-intercepts and sketch the line.
(ii) Does the point \(A(-5,\,4)\) lie on the line? Does \(B(5,\,1)\)?
Solution

(i) For \(x=0\):

\(0+5y-10\)\(=\)\(0\)
\(5y\)\(=\)\(10\)
\(y\)\(=\)\(2\)
\(\therefore\)\(\)\((0,\,2)\)
when x equals 0, 5y equals 10 so y equals 2, the point (0, 2)

For \(y=0\):

\(2x+0-10\)\(=\)\(0\)
\(2x\)\(=\)\(10\)
\(x\)\(=\)\(5\)
\(\therefore\)\(\)\((5,\,0)\)
when y equals 0, 2x equals 10 so x equals 5, the point (5, 0)

(ii) Substitute each point into the left-hand side.

\(\text{For }A\quad \text{LHS}\)\(=\)\(2\times(-5)+5\times4-10\)
\(\)\(=\)\(-10+20-10\)
\(\)\(=\)\(0\)
\(\)\(\therefore\)\(\text{A is on the line}\)
for A, the left-hand side is 2 times negative 5 plus 5 times 4 minus 10 which equals 0, so A is on the line
\(\text{For }B\quad \text{LHS}\)\(=\)\(2\times5+5\times1-10\)
\(\)\(=\)\(10+5-10\)
\(\)\(=\)\(5\neq 0\)
\(\)\(\therefore\)\(\text{B is not on the line}\)
for B, the left-hand side is 2 times 5 plus 5 times 1 minus 10 which equals 5, not 0, so B is not on the line
The line 2x + 5y - 10 = 0 and two test pointsThe line 2x + 5y - 10 = 0 passes through its intercepts (0,2) and (5,0). The point A(-5,4) lies on the line. The point B(5,1) is above the line, not on it. x y −6 −4 −2 2 4 1 2 3 4 5 O (0, 2) (5, 0) A B

The graph agrees: \(A\) sits on the line and \(B\) is one unit above it.

Example 3 — Equation from a table
Find the linear equation that describes the pattern in the table. Write it in the form \(y=mx+c\).
\(x\)\(2\)\(3\)\(4\)\(5\)
\(y\)\(11\)\(8\)\(5\)\(2\)
Solution

\(x\) increases by \(1\) and \(y\) decreases by \(3\) each time \((11\to 8\to 5\to 2)\), so \(m=-3\).

Substitute the point \((2,\,11)\) to find \(c\):

\(y\)\(=\)\(-3x+c\)
\(11\)\(=\)\(-3\times2+c\)
\(11\)\(=\)\(-6+c\)
\(c\)\(=\)\(17\)
y equals negative 3 x plus c; 11 equals negative 3 times 2 plus c; c equals 17

\(\therefore\ \boldsymbol{y=-3x+17}\)

Check with another point from the table, \((5,\,2)\):

\(-3\times5+17\)\(=\)\(-15+17\)
\(\)\(=\)\(2\ \checkmark\)
negative 3 times 5 plus 17 equals 2, which matches the table

Notice the \(y\)-intercept \(17\) is not in the table, because the table does not start at \(x=0\). Working backwards one more step from \((2,\,11)\) gives \((1,\,14)\), then \((0,\,17)\).

Example 4 — Equation from a graph
The graph shows the cost \(C\) dollars of a plumber's visit that lasts \(h\) hours.
Cost of a plumber's visitA straight line graph of cost C dollars against time h hours. It starts at (0, 80) on the vertical axis and passes through (4, 360). h C 1 2 3 4 5 100 200 300 400 O (0, 80) (4, 360) Time (hours) Cost ($)
(i) Find the equation of the line in the form \(C=mh+c\).
(ii) Explain what the gradient and the vertical intercept mean.
Solution

(i) Read two points from the graph: \((0,\,80)\) and \((4,\,360)\).

Vertical intercept \(c=80\)

\(m\)\(=\)\(\dfrac{360-80}{4-0}\)
\(\)\(=\)\(\dfrac{280}{4}\)
\(\)\(=\)\(70\)
m equals (360 minus 80) over (4 minus 0) equals 280 over 4 equals 70

\(\therefore\ \boldsymbol{C=70h+80}\)

(ii) Gradient: the cost rises by \(\$70\) for each hour of work (the hourly rate).

Vertical intercept: \(\$80\) is charged before any work is done (the call-out fee).

Check: a \(4\)-hour job costs \(70\times4+80=\$360\), which matches the graph.

Common pitfalls

Use brackets for negative numbers. When \(x=-2\) in \(y=4x+3\), write \(4\times(-2)+3=-5\). Leaving out the brackets, on paper or on the calculator, is the most common source of wrong table values.
Know which intercept is which. For the \(y\)-intercept put \(x=0\); for the \(x\)-intercept put \(y=0\). Write each as a point: the \(y\)-intercept \(2\) is the point \((0,\,2)\), not \((2,\,0)\).
Watch the step in the table. The change in \(y\) is the gradient only when \(x\) goes up by \(1\). If \(x\) goes up by \(2\) each time, divide the change in \(y\) by \(2\).
Check the direction of the line. A negative gradient must give a line that falls from left to right. If your graph rises, recheck the sign of \(m\) and your plotted points.

Frequently asked questions

How do you draw a straight line graph from an equation?

Make a table of values: choose three \(x\) values such as \(-1\), \(0\) and \(1\), substitute each one to get \(y\), plot the points and rule one straight line through them. Two points are enough, but a third point is a useful check.

How do you check if a point lies on a line?

Substitute the coordinates of the point into the equation. If the equation is true (for example the left-hand side works out to \(0\) for a general-form equation), the point is on the line. If not, it is not on the line.

How do you find the x- and y-intercepts of a line?

Put \(x=0\) and solve for \(y\) to get the \(y\)-intercept. Put \(y=0\) and solve for \(x\) to get the \(x\)-intercept. For \(x+2y-8=0\) this gives \((0,\,4)\) and \((8,\,0)\).

How do you find the equation of a line from a table of values?

Look at how much \(y\) changes when \(x\) goes up by \(1\): that is the gradient \(m\). Then substitute any point from the table into \(y=mx+c\) and solve for \(c\).

What do m and c mean in y = mx + c?

\(m\) is the gradient, which tells you how steep the line is and whether it rises or falls. \(c\) is the \(y\)-intercept, where the line crosses the \(y\)-axis. Some exam papers write \(y=mx+b\); \(b\) means the same as \(c\).