Enter two points to find the slope (gradient) of the line through them, its angle, the distance between the points and the line’s equation.
How to Use this Slope Calculator – Step-by-Step Guide
- Step 1: Enter the first point. x₁ and y₁.
- Step 2: Enter the second point. x₂ and y₂.
- Step 3: Read slope and equation. Plus angle, distance and midpoint.
Formulas
- m = (y₂ − y₁) ÷ (x₂ − x₁)
- y = mx + c, c = y₁ − m x₁
- Distance = √(Δx² + Δy²)
Worked example
With the values already filled in the calculator above:
- x₁: 1
- y₁: 2
- x₂: 4
- y₂: 8
The calculator shows Slope (m): 2.
It also works out:
- Equation: y = 2x + 0
- Angle with x-axis: 63.4349°
- Distance: 6.7082
- Midpoint: (2.5, 5)
- Grade: 200%
Frequently asked questions
What is grade?
Slope as a percentage, used for roads and ramps.

