Gradient of a straight line: rise over run

About this lesson: Gradient of a straight line: rise over run

In short

The gradient of a straight line tells how steep it is. It is the change in y divided by the change in x between any two points on the line. Moving from (1, 2) to (3, 8), y rises by 6 while x runs 2, so the gradient is 3.

What you'll explore

How steep?: Gradient measures the slope
The gradient of a straight line tells how steep it is. It is the change in y divided by the change in x between any two points on the line. Moving from (1, 2) to (3, 8), y rises by 6 while x runs 2, so the gradient is 3.
The formula: m = (y₂ − y₁) / (x₂ − x₁)
For two points (x₁, y₁) and (x₂, y₂) the gradient m is the difference of the y-coordinates over the difference of the x-coordinates, taken in the same order. A line that falls from left to right has a negative gradient.
Four kinds of slope: Positive, negative, zero, undefined
A line rising to the right has a positive gradient; a line falling to the right has a negative gradient. A horizontal line has gradient 0. A vertical line has no gradient, because the run is 0.
What the gradient means: A rate of change
The gradient tells how fast y changes when x changes. On a distance–time graph it is the speed. On a cost graph it is the price per unit. A bigger gradient means a faster change.
Check yourself: Gradient
Change in y over change in x.

Also in this lesson

  • The gradient in detail
  • Common mistakes

Key words

Gradient
The change in y divided by the change in x along a line.
Rise
The vertical change between two points.
Run
The horizontal change between two points.
Coordinates
The pair (x, y) that fixes a point on the plane.
Positive gradient
The line rises from left to right.
Negative gradient
The line falls from left to right.

Sources

  • NIE Sri Lanka, Mathematics syllabus and Teachers' Guide, Grade 10 (competency level 20.1).

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 5 short steps and a 30-question quiz. Free to try. Written and checked by Shalo Lab. Last updated 20 November 2026.

The line y = mx + c: gradient and intercept →

All lessons in Unit 21 · Graphs · O/L Maths · Grade 10

O/L Maths past papers 2016–2025: analysis and 10 model papers with answers

මේ පිටුව සිංහලෙන් කියවන්න