What does slope mean?
Slope measures how much y changes for each unit increase in x. A positive value means the line rises from left to right; a negative value means it falls. A slope of 0.5 means y increases by 0.5 when x increases by 1. This calculator helps students check coordinate geometry, teachers demonstrate straight-line relationships, and anyone evaluate a constant rate of change from two measurements.
Formulas used
Run: Δx = x₂ − x₁ Rise: Δy = y₂ − y₁
Slope: m = Δy / Δx
Signed slope percentage: 100m% Angle: θ = arctan(m) × 180 / π
Y-intercept: b = y₁ − mx₁ Line equation: y = mx + b
The angle here is measured from the positive horizontal direction in the range −90° to +90° for a nonvertical line. A falling line has a negative angle. For physical gradients, run is the horizontal distance, not the length along the slope.
Special cases
If the y-coordinates are equal, the line is horizontal: m = 0 and y = y₁. If only the x-coordinates are equal, the line is vertical: x = x₁. Its slope and percentage are undefined because division by zero is not allowed; its angle to the horizontal is 90°. Two identical points do not define a unique line.
Displayed numbers are rounded to 12 significant digits; intermediate calculations use unrounded values. Results use numerical arithmetic, not symbolic algebra.