What is Slope?
The Slope Calculator finds the slope (gradient) of a line passing through two points. Slope measures the steepness and direction of a line — it's the ratio of vertical change (rise) to horizontal change (run).
Slope is fundamental in algebra, geometry, calculus, physics, and engineering. It represents rate of change: speed (distance vs time), price trend (value vs time), grade of a road (elevation vs distance), and more.
A positive slope means the line goes up from left to right. A negative slope means it goes down. Zero slope is a horizontal line. Undefined (infinite) slope is a vertical line.
Formula
Slope = m = (y₂ − y₁) / (x₂ − x₁) = rise / run
Slope-intercept form: y = mx + b where m = slope, b = y-intercept
Distance = √((x₂−x₁)² + (y₂−y₁)²) Angle = arctan(m) in degrees
Example — (1,2) and (4,8): m = (8−2)/(4−1) = 6/3 = 2 y = 2x + b → 2 = 2(1) + b → b = 0 Line equation: y = 2x Distance = √(9+36) = √45 = 6.71
How to use this Slope Calculator?
1. Enter coordinates of Point 1 (x₁, y₁). 2. Enter coordinates of Point 2 (x₂, y₂). 3. See slope, angle, distance, and y-intercept.