# Gradient of a straight line

> Edexcel International GCSE Further Pure Mathematics · 4PM1
> Source: https://www.owlsprep.com/study/edexcel-igcse-further-pure-math-s8-gradient-of-a-straight-line/

This guide covers calculating the gradient of a straight line joining two coordinate points for Edexcel IGCSE Further Pure Math S8. It includes exam-specific worked examples and common error avoidance tips.

**Prerequisites:** [Rectangular Cartesian coordinate system](https://www.owlsprep.com/study/edexcel-igcse-further-pure-math-s8-rectangular-cartesian-coordinates/); Arithmetic with negative numbers and fractions

## Learning objectives

- Recall the gradient formula for a straight line joining two points
- Calculate gradient correctly accounting for negative coordinate values
- Apply the gradient formula to solve structured exam-style questions with unknown constants

## The Gradient Formula for Two Points

**Gradient of a line between two points** — The gradient $m$ of a straight line passing through two distinct points $(x_1, y_1)$ and $(x_2, y_2)$ is equal to the change in y-coordinates (rise) divided by the change in x-coordinates (run) between the two points.

*Notation:* $m = \frac{y_2 - y_1}{x_2 - x_1}$

*Example:* For points (1, 2) and (3, 6), $m = \frac{6 - 2}{3 - 1} = 2$.

This formula is not provided on your 4PM1 formula sheet, so you must memorize it. A positive gradient means the line slopes upwards from left to right, while a negative gradient means it slopes downwards.

> **Undefined gradient**
>
> If two points have the same x-coordinate, the line is vertical and gradient is undefined (division by zero, no numerical value).

**Worked example:** Find the gradient of the line passing through the points (2, 7) and (5, 13).

1. Label the coordinates: let $(x_1, y_1) = (2,7)$ and $(x_2, y_2) = (5,13)$
2. $$m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{13 - 7}{5 - 2}$$
3. Simplify the numerator and denominator: 13 - 7 = 6, 5 - 2 = 3
4. $$m = \frac{6}{3} = 2$$
5. Final answer: gradient = 2

> **Exam tip:** Always label your points clearly before substituting into the formula to avoid mixing up x and y values.

## Calculating Gradient with Negative Coordinates

Most exam questions include negative coordinate values, which are a common source of arithmetic errors. When subtracting a negative number, rewrite the expression as addition to avoid mistakes.

**Worked example:** Calculate the gradient of the straight line joining (-3, 4) and (2, -6).

1. Label the points: $(x_1, y_1) = (-3, 4)$, $(x_2, y_2) = (2, -6)$
2. $$m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{-6 - 4}{2 - (-3)}$$
3. Simplify: numerator = -6 - 4 = -10, denominator = 2 + 3 = 5
4. $$m = \frac{-10}{5} = -2$$
5. Final answer: gradient = -2

> **warning**
>
> Never flip the order of subtraction for only the numerator or denominator, as this will give you the wrong sign for the gradient.

**Check your understanding**

Test your understanding with this quick check:

1. What is the gradient of the line through (-1, -2) and (4, 3)?

   - 1
   - -1
   - 5/3
   - 3/5

   *Why:* Correct: $\frac{3 - (-2)}{4 - (-1)} = \frac{5}{5} = 1$. If you got a different answer, check your arithmetic with negative values.

## Gradient Calculations with Unknown Constants

Gradient questions are often part of longer 4PM1 exam questions that include unknown constants. You will need to rearrange the gradient formula to solve for the unknown value.

**Worked example:** A straight line passes through points A (2k, 3) and B (k, 5), where k is a constant. If the gradient of the line is -1/2, find the value of k.

1. Substitute the given values into the gradient formula: $m = -1/2$, $(x_1, y_1) = (2k, 3)$, $(x_2, y_2) = (k,5)$
2. $$-\frac{1}{2} = \frac{5 - 3}{k - 2k}$$
3. Simplify the right hand side: numerator = 2, denominator = -k
4. $$-\frac{1}{2} = \frac{2}{-k} = -\frac{2}{k}$$
5. Cancel the negative sign on both sides, then cross multiply: $\frac{1}{2} = \frac{2}{k}$ → $k = 4$
6. Verify: gradient between (8, 3) and (4,5) is $\frac{5-3}{4-8} = -1/2$, which matches the given value.

> **Exam tip:** Always substitute your final answer back into the original problem to verify it is correct, especially when constants are involved.

*Calculator:* allowed

## Common pitfalls

- **Wrong:** Mixing up the order of x and y values, e.g. calculating $\frac{x_2 - x_1}{y_2 - y_1}$
  - Why it fails: This inverts the gradient and gives an incorrect value even if arithmetic is correct.
  - Correct: Always remember gradient is rise over run: change in y over change in x.
- **Wrong:** Incorrect arithmetic when subtracting negative numbers, e.g. $2 - (-3) = -1$
  - Why it fails: Failing to recognize that subtracting a negative is equivalent to addition leads to wrong sign in the final gradient.
  - Correct: Rewrite all subtractions of negative values as addition before simplifying: $2 - (-3) = 2 + 3 = 5$.
- **Wrong:** Using inconsistent order of points, e.g. $\frac{y_2 - y_1}{x_1 - x_2}$
  - Why it fails: This flips the sign of the gradient incorrectly.
  - Correct: Subtract coordinates from the same point consistently: if you use $y_2 - y_1$ for the numerator, use $x_2 - x_1$ for the denominator.
- **Wrong:** Attempting to calculate gradient for two points with the same x-coordinate (vertical line)
  - Why it fails: Division by zero is undefined, so this calculation is impossible.
  - Correct: State that a vertical line has an undefined gradient, and do not attempt to compute a numerical value.

## Cheatsheet

| Concept | Formula/Value | Key Exam Note |
| --- | --- | --- |
| Gradient between $(x_1,y_1)$ and $(x_2,y_2)$ | $m = \frac{y_2 - y_1}{x_2 - x_1}$ | Memorize this formula: not provided on formula sheet |
| Positive gradient | $m > 0$ | Line slopes upwards left to right |
| Negative gradient | $m < 0$ | Line slopes downwards left to right |
| Zero gradient | $m = 0$ | Horizontal line (all y values equal) |
| Undefined gradient | $x_1 = x_2$ | Vertical line (no numerical gradient) |

## What's next

Now that you have mastered calculating the gradient of a straight line between two points, you are ready to progress to the next subtopics in the Rectangular Cartesian coordinates unit. The gradient formula is a foundational skill that you will use to derive the equations of straight lines, identify parallel and perpendicular lines, and solve more complex coordinate geometry problems in your Edexcel IGCSE Further Pure Math exam. Make sure you memorize the formula thoroughly as it is not provided in the exam, and practice applying it to questions with negative coordinates and unknown constants to avoid common arithmetic errors.

---

From [OwlsPrep](https://www.owlsprep.com) — free study guides for A-Level, IB, AP and IGCSE, written against the official syllabus. Canonical page: https://www.owlsprep.com/study/edexcel-igcse-further-pure-math-s8-gradient-of-a-straight-line/
