Sonzaschool
Back

O-Level · Form 1

Mathematics

Find the gradient/slope of a line

about 3 minutes to read

Discussions
Topics in this sectionUse basic coordinate geometry, trigonometry, and vectors skills in daily life5 topics

Finding the Gradient (Slope) of a Line

What is Gradient?

The gradient (also called slope) of a line tells us how steep the line is. It shows the ratio of the vertical change to the horizontal change between any two points on the line.

A positive gradient means the line goes upward from left to right. A negative gradient means the line goes downward from left to right. A horizontal line has a gradient of zero, while a vertical line has an undefined gradient.

The Formula

For two points on a line with coordinates A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2), the gradient mm is:

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}

This formula compares the change in y (vertical change) to the change in x (horizontal change).

Steps to Find the Gradient

  1. Identify two points on the line and label them as (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2).
  2. Subtract the first y-coordinate from the second: y2−y1y_2 - y_1.
  3. Subtract the first x-coordinate from the second: x2−x1x_2 - x_1.
  4. Divide the result of step 2 by the result of step 3.

Worked Example

Line through P(2,3) and Q(6,11) with rise and run right triangle

Problem: A straight line passes through points P(2,3)P(2, 3) and Q(6,11)Q(6, 11). Find the gradient of this line.

Solution:

Let P(2,3)P(2, 3) be the first point so x1=2x_1 = 2, y1=3y_1 = 3.

Let Q(6,11)Q(6, 11) be the second point so x2=6x_2 = 6, y2=11y_2 = 11.

Now apply the formula:

m=y2−y1x2−x1=11−36−2=84=2m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{11 - 3}{6 - 2} = \frac{8}{4} = 2

Therefore, the gradient of the line is 2. This means for every 1 unit the line moves to the right, it rises by 2 units.

Important Notes

  • The order of points does not matter; you will get the same result if you swap them, as long as you keep the subtraction consistent.
  • If the gradient is a fraction, leave it as a fraction (e.g., 34\frac{3}{4}) rather than converting to decimals.
  • When x2=x1x_2 = x_1, you are dividing by zero, which means the line is vertical and its gradient is undefined.

Real-life application

In Tanzania, gradient is used in construction and road building. For example, when engineers design roads in places like Dodoma or along the highway from Dar es Salaam to Morogoro, they must calculate the gradient of slopes to ensure vehicles can travel safely. A road that is too steep (high positive gradient) may be dangerous for trucks and buses, especially during the rainy season when roads can become slippery.

Question

What is the slope of the line passing through the points (2,3)(2, 3) and (6,7)(6, 7)?

Sign in to submit your answer and have it count toward your mastery.

Sign in to practice

Tutor

Stuck? Ask me anything about this topic.

Sign in to ask the Sonza AI Tutor about this question.

Sign in to ask

Discussions

No questions yet

Sign in to ask
Loading discussions…