<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,700;12..96,800&family=DM+Sans:wght@400;500;600;700&family=Jost:wght@300;400;500;600;700&family=Sora:wght@600;700;800&family=Syne:wght@600;700;800&display=optional">
Maths Middle school

How do you find the gradient of a straight line from two points?

Written and reviewed by Studoli tutors · Updated

Short answer

The gradient is the change in y divided by the change in x. For points (x₁, y₁) and (x₂, y₂), gradient m = (y₂ − y₁) / (x₂ − x₁). A positive gradient slopes upwards from left to right, a negative gradient slopes downwards.

Step by step

  1. Label the two points (x₁, y₁) and (x₂, y₂). It does not matter which is first, as long as you stay consistent.
  2. Subtract the y values: y₂ − y₁.
  3. Subtract the x values in the same order: x₂ − x₁.
  4. Divide the change in y by the change in x and simplify the fraction.

Worked example

Find the gradient of the line through (1, 3) and (4, 12)

  • Change in y: 12 − 3 = 9
  • Change in x: 4 − 1 = 3
  • Gradient = 9 / 3 = 3

Common mistakes

  • Putting the change in x on top. Remember: rise over run, y over x.
  • Subtracting in a different order on the top and bottom, which flips the sign.
  • Losing a minus sign when one of the coordinates is negative. Use brackets: 5 − (−2) = 7.

Useful for:GCSEBECEBEPCCheckpoint

A one-to-one lesson with a tutor is the quickest way to fill the gaps before a test or exam. Your first lesson is free.

Find a Maths tutor

Related notes

All Maths notes

Messages

Please log in to send messages.

Chat with us