Gradient Calculator

Gradient Calculator

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

  1. Enter the x and y values for the first point (x₁, y₁).
  2. Enter the x and y values for the second point (x₂, y₂).
  3. Click the Calculate Gradient button.
  4. The gradient and step-by-step calculation will be displayed.
  5. If x₁ equals x₂, the calculator will show that the gradient is undefined.