National 5 Maths: Straight Line

Course content

  • Use the formula \(y-b=m(x-a)\) or equivalent to find the equation of a straight line, given two points or one point and the gradient of the line.
  • Identify gradient and \(y\)-intercept from various forms of the equation of a straight line.

Key ideas

  • Gradient is an essential part of this topic. Many schools combine the two topics.
  • The equation of any vertical line is in the form \(x=a\small.\) The \(y\)-axis has equation \(x=0\small.\)
  • The equation of any horizontal line is in the form \(y=b\small.\) The \(x\)-axis has equation \(y=0\small.\)
  • Any straight line (unless it's horizontal or vertical) has an equation in the form \(y=mx+c,\) where \(m\) is the gradient and \(c\) is the \(y\)-intercept.
  • If we know the gradient \(m\) and any point \((a,b)\) on the line, then we can obtain the equation of the line using the formula \(y-b=m(x-a)\). This is not on the formula sheet.

Textbook page references


Recommended revision course


A great resource to prepare for your N5 Maths exams. Get £10 discount with code 'Maths.scot'. Learn more 

Example 1 (non-calculator)

The point \((2,-3)\) lies on a straight line with gradient \(-4\small.\) Calculate the \(y\)-intercept of this line.

Example 2 (non-calculator)

The point \((-3,4)\) lies on a straight line whose \(y\)-intercept is \(-11\small.\) Find the gradient of this line and state its equation.

Example 3 (non-calculator)

Find the equation of the straight line with gradient \(2\) through the point \((3,-1)\small.\)

Example 4 (non-calculator)

Find the equation of the straight line with gradient \(\frac{3}{4}\) through the point \((-2,5)\small.\) Give your answer in its simplest form.

Recommended student books

Zeta Maths: National 5+ practice book 
Leckie: National 5 Maths textbook 

Example 5 (non-calculator)

Find the equation of the straight line through \((1,7)\) and \((-1,3)\small.\)

Example 6 (non-calculator)

Find the equation of the straight line through \((-2,5)\) and \((2,-1)\small.\)

Example 7 (non-calculator)

A straight line has equation \(3x-7y-4=0\). Find:
(a)  the gradient
(b)  the point of intersection with the \(y\)-axis
(c)  the point of intersection with the \(x\)-axis.

Recommended revision guides

How to Pass National 5 Maths 
BrightRED N5 Maths Study Guide 

Example 8 (non-calculator)

SQA National 5 Maths 2014 P1 Q11

(a)  A straight line has equation \(4x+3y=12.\) Find the gradient of this line.
(b)  Find the coordinates of the point where this line crosses the \(x\)-axis.

Example 9 (non-calculator)

SQA National 5 Maths 2015 P1 Q8

Find the equation of the line joining the points \((-2,5)\) and \((3,15)\small.\) Give the equation in its simplest form.

Example 10 (calculator)

SQA National 5 Maths 2017 P2 Q11

A straight line has equation \(3x-5y-10=0.\) Find the gradient of this line.

Books for Maths teachers

Jo Boaler: Mathematical Mindsets 
Craig Barton: Tips for Teachers 

Example 11 (calculator)

SQA National 5 Maths 2018 P2 Q14

A straight line has equation \(2x-5y=20.\) Find the coordinates of the point where this line crosses the \(y\)-axis.

Example 12 (calculator)

SQA National 5 Maths 2021 P2 Q9

A straight line has equation \(3x+4y-8=0.\)
(a)  Find the gradient of the line.
(b)  State the coordinates of the point where the line crosses the \(y\)-axis.

Example 13 (non-calculator)

SQA National 5 Maths 2022 P1 Q6

Find the equation of the line passing through the points \((-3,-1)\) and \((-5,7)\small.\) Give the equation in its simplest form.

Need a Nat 5 Maths tutor?

Just use this handy little widget and our partner Bark.com will help you find one.

Maths.scot worksheet

Straight line worksheet
Answer sheet
• See all National 5 Maths worksheets

Past paper questions

All past paper questions by topic
Finding the equation:
2013 Specimen P1 Q6 (with best fit)
2014 P1 Q6 (with line of best fit)
2015 Paper 1 Q8
2016 Paper 1 Q5 (with best fit)
2017 Paper 1 Q6
2018 Paper 1 Q7
2019 P1 Q6 (with line of best fit)
2021 Paper 1 Q10
2022 Paper 1 Q6
2023 P1 Q7 (with line of best fit)
Finding information from an equation:
2014 Paper 1 Q11
2017 Paper 2 Q11
2018 Paper 2 Q14
2021 Paper 2 Q9

Other great resources

Videos - Maths180.com
Videos - Larbert High School
1. Horizontal and vertical lines
2. Calculating a gradient
3. Equation of a straight line
Videos - Mr Graham Maths
1. Introduction to gradient
2. Introduction to equations
3. Finding an equation
PowerPoint - MathsRevision.com
Revision notes - BBC Bitesize
Test yourself - BBC Bitesize
Notes - Maths4Scotland
Videos - Mr Thomas Maths
Practice questions - Maths Hunter
Essential Skills worksheet
Equation joining 2 points (Answers)
Worksheet - Airdrie Academy
Exercises - Larkhall Academy
Pages 2-3 Ex 1-2

⇦ Nat 5 topic list  ⇧ Top of this page