MathIsimple
Math

Slope Calculator

Calculate the slope of a line between two points using the slope formula

100% FreeStep-by-Step Solutions
Slope Calculator
Enter coordinates of two points to calculate the slope
Try These Examples
Click on any example to automatically fill the calculator
Example 1

Points: (2, 3) and (5, 9)

x1: 2
y1: 3
x2: 5
y2: 9
Example 2

Points: (0, 0) and (4, 2)

x1: 0
y1: 0
x2: 4
y2: 2
Example 3

Horizontal line: (1, 5) and (7, 5)

x1: 1
y1: 5
x2: 7
y2: 5
Example 4

Vertical line: (3, 2) and (3, 8)

x1: 3
y1: 2
x2: 3
y2: 8
Slope Formula

The slope of a line between two points (x₁, y₁) and (x₂, y₂) is:

m=fracy2y1x2x1=fractextrisetextrunm = \\frac{y_2 - y_1}{x_2 - x_1} = \\frac{\\text{rise}}{\\text{run}}

The slope represents the rate of change: how much y changes for each unit change in x.

Special Cases

Positive slope: Line rises from left to right

Negative slope: Line falls from left to right

Zero slope: Horizontal line (y = constant)

Undefined slope: Vertical line (x = constant)