Gradient Calculator
Calculate the gradient (slope) of a straight line using two points.
The gradient tells us how steep a line is and the direction it moves. It is calculated using the formula: m = (y₂ − y₁) ÷ (x₂ − x₁). This calculator works for all valid points and correctly identifies vertical lines where the gradient is undefined.
Enter Coordinates
Result
How to Use
- Enter the x and y values for the first point (x₁, y₁).
- Enter the x and y values for the second point (x₂, y₂).
- Click the Calculate Gradient button.
- The gradient and step-by-step calculation will be displayed.
- If x₁ equals x₂, the calculator will show that the gradient is undefined.