How do you calculate the gradient of a straight line from two points, and what does the sign and size of a gradient tell you?
Calculating the gradient of a straight line from two points using the gradient formula, and interpreting positive, negative, zero and undefined gradients.
A focused answer to the SQA National 5 Mathematics gradient content, covering the gradient formula for the slope between two points, interpreting positive, negative, zero and undefined gradients, and the link to steepness and direction.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
The SQA wants you to calculate the gradient of a straight line from the coordinates of two points using the gradient formula, and to interpret what the sign and size of a gradient mean: how steep the line is and whether it rises, falls, is level or vertical.
The gradient formula
The gradient between two points and is the vertical change divided by the horizontal change between them.
Reading the sign of a gradient
The sign of the gradient tells you the direction of the slope as you read the line from left to right.
For example, the line through and has gradient , so it falls; the line through and has gradient , so it is horizontal.
Steepness and size
The further the gradient is from zero, the steeper the line. A gradient of is steeper than a gradient of , and a gradient of is steeper than a gradient of . This is why gradient is used for road and ramp design: a road described as "1 in 5" has gradient .
When comparing a positive gradient with a negative one, compare their sizes ignoring the sign to judge steepness, but use the sign to judge direction. A line of gradient is steeper than one of gradient , even though is the smaller number, because its size is larger.
Working backwards from a gradient
Many questions give you the gradient and one point, then ask for the missing coordinate of a second point. You rearrange the gradient formula to do this. For a line of gradient through and , the relationship can be rearranged to , which lets you find any missing value.
Examples in context
Gradient describes any rate of steepness or change. A wheelchair ramp must not be too steep, so building regulations limit its gradient, often to about , meaning a rise of for every of horizontal run. On a distance-time graph the gradient is the speed, so a steeper line means faster motion; a horizontal section (zero gradient) means the object is stationary. The same formula underpins the equation of a straight line that follows in the Relationships area.
Try this
Q1. Find the gradient of the line through and . [2 marks]
- Cue. .
Q2. Find the gradient of the line through and . [2 marks]
- Cue. .
Q3. State the gradient of a horizontal line. [1 mark]
- Cue. .
Exam-style practice questions
Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
SQA National 5 20192 marksCalculate the gradient of the line joining and .Show worked answer →
Use the gradient formula (1 mark). Substitute the coordinates: (1 mark). Markers reward correct substitution into the formula and the simplified gradient . Taking the points in either order gives the same answer as long as and are kept consistent.
SQA National 5 20223 marksA road rises m over a horizontal distance of m. Calculate the gradient of the road, and explain what a gradient of zero would mean.Show worked answer →
Gradient (2 marks for the calculation and the value). A gradient of zero would mean no vertical change over the horizontal distance, so the road would be flat (level) (1 mark). Markers reward the gradient as rise over run and a correct interpretation of zero gradient.
Related dot points
- Simplifying and working with surds (simplifying, adding and subtracting, expanding brackets, rationalising the denominator) and applying the laws of indices including negative and fractional indices.
A focused answer to the SQA National 5 Mathematics surds and indices content, covering simplifying surds, adding and subtracting like surds, expanding brackets, rationalising the denominator, and the laws of indices including negative and fractional powers for exact non-calculator work.
- Writing numbers in scientific notation (standard form), converting between ordinary and scientific notation, and multiplying and dividing numbers written in scientific notation.
A focused answer to the SQA National 5 Mathematics scientific notation content, covering writing large and small numbers in standard form, converting back to ordinary numbers, and multiplying and dividing in scientific notation using the laws of indices.
- Expanding brackets (including the product of two brackets) and factorising algebraic expressions using a common factor, the difference of two squares, and trinomials with unitary and non-unitary leading coefficients.
A focused answer to the SQA National 5 Mathematics algebra content, covering expanding single and double brackets, and the three factorising methods examined: common factor, difference of two squares, and factorising trinomials with both unitary and non-unitary leading coefficients.
- Writing a quadratic expression of the form x squared plus bx plus c in the completed-square form (x plus p) squared plus q, and using it to identify the turning point of the parabola.
A focused answer to the SQA National 5 Mathematics completing-the-square content, covering how to write a quadratic in the form (x + p) squared plus q, the link to the turning point and minimum value of the parabola, and how the method is used in Paper 1 non-calculator work.
- Calculating the length of an arc and the area of a sector of a circle, and calculating the volume of standard solids including the prism, cylinder, pyramid, cone and sphere.
A focused answer to the SQA National 5 Mathematics measure content, covering the length of an arc and the area of a sector as fractions of a circle, and the volume formulae for the prism, cylinder, pyramid, cone and sphere.
Sources & how we know this
- SQA National 5 Mathematics Course Specification — SQA (2018)