Science Academy
☰✕

Gradient of a Line Calculator

📈 Coordinates & graphs. Use the Gradient of a line formula to find gradient m, y₂, y₁, x₂, x₁: pick the value you want, type the others, and the answer updates as you go.

m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
Gradient m2

Pick the ○ next to the value you want to find, fill in the others, and it solves as you type.

What each letter means

QuantityUnit
Gradient mno unit
y₂no unit
y₁no unit
x₂no unit
x₁no unit

Worked example

Find the gradient m when y₂ = 9, y₁ = 3, x₂ = 4, x₁ = 1.

Using m = (y2 - y1)/(x2 - x1): Gradient m = 2.

Frequently asked questions

What is the formula for Gradient of a line?

m = (y2 - y1)/(x2 - x1).

What do the letters stand for, and what units are used?

Gradient m, y₂, y₁, x₂, x₁.

How do you calculate gradient m?

Put the values into m = (y2 - y1)/(x2 - x1). For example, with y₂ = 9, y₁ = 3, x₂ = 4, x₁ = 1, gradient m = 2.

Can I solve for a different value?

Yes. In the calculator above, pick the circle next to any value (gradient m, y₂, y₁, x₂, x₁) and fill in the others: it rearranges the formula for you.

All maths formulas in the Maths Formulas