Ad — 728×90

Slope Calculator

Calculate the slope (gradient) of a line from two points.

Results

Slope (m)2
Angle (degrees)63.43
Distance6.708
y-intercept (b)0
Ad — 300×250

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.

Frequently asked questions

What does a slope of 2 mean?
For every 1 unit you move right (run), you move 2 units up (rise). The line is moderately steep upward.
What is a zero slope?
A horizontal line. y doesn't change as x changes. Example: y = 5 is a horizontal line at height 5.
What is an undefined slope?
A vertical line where x₁ = x₂. You can't divide by zero (x₂−x₁ = 0). Example: x = 3 is a vertical line.
Ad — 728×90