Gradient calculator from two points
Free TutorAura tool · no sign-up · Updated
Enter two points and the calculator finds the gradient of the straight line through them:
The gradient (called the slope in the US) tells you how steep the line is: how much goes up for each 1 that goes across.
Worked examples
- and : .
- and : (the line slopes down).
- and : (a horizontal line).
Positive, negative, zero and undefined
- Positive gradient: the line goes up from left to right.
- Negative gradient: it goes down.
- Zero: horizontal, like .
- Undefined: vertical, like (change in is 0, and you can't divide by 0).
The bigger the number (ignoring the sign), the steeper the line.
Parallel and perpendicular lines
Parallel lines have the same gradient. Perpendicular lines have gradients that multiply to : if one is 2, the other is (the negative reciprocal). The equation of a line calculator gives the perpendicular gradient too.
Gradients in real life
On a distance-time graph the gradient is the speed; on a velocity-time graph it's the acceleration. A road sign showing a 10% gradient means it rises 10 m for every 100 m across. In each case the gradient is a rate: how fast one quantity changes as the other increases.
Common mistakes
- Putting change in on top.
- Subtracting the coordinates in a different order on top and bottom (always with ).
- Reading a graph's scale wrongly: count the units, not the squares.
Practise with our straight-line graphs questions.
Exam tips
- From a graph, pick two points far apart where the line crosses grid corners exactly.
- Draw the right-angled triangle on the graph and label the rise and run.
- Give gradients as fractions or decimals as the question asks; is better than 0.667 when exact.
Gradient as a rate of change
Gradients describe how fast something changes. On a graph of the cost of a taxi ride against distance, the gradient is the cost per mile. If a plant is 12 cm tall after 2 weeks and 30 cm after 8 weeks, its average growth rate is cm per week. Always include the units of the gradient: "units of per unit of ".
For curved graphs, the gradient changes from point to point. To estimate it at a point, draw a tangent (a straight line touching the curve there) and find the gradient of the tangent.
Frequently asked questions
How do you find the gradient between two points?
Divide the change in y by the change in x: (y₂ − y₁) ÷ (x₂ − x₁).
What is the gradient of a horizontal line?
Zero, because y doesn't change.
Is gradient the same as slope?
Yes. Gradient is the usual word in the UK; slope is used in the US, including on the SAT.
Is anything I type sent to a server?
No. The calculation runs in your browser and nothing is stored.
Sources
- GCSE mathematics: subject content and assessment objectives. Department for Education.
- Cambridge IGCSE Mathematics 0580 syllabus. Cambridge International.
Keep reading
Straight line graphs (y = mx + c) questions and answers
8 GCSE and IGCSE questions with worked answers, checked as you type.
Equation of a line calculator: y = mx + c
y = mx + c from two points, or a point and the gradient, with the working.
Midpoint calculator with working
The midpoint of two points, averaging each coordinate, with the working shown.
Linear functions and straight-line graphs
Interpret gradient (slope) and intercept, find equations of lines, and use parallel and perpendicular lines.