Slope
Calculator

Calculate slope, y-intercept, line equation, distance, and midpoint from two points with an interactive graph.

Point 1

Point 2

Results

Slope (m)

1 (1)

Angle

45°

Grade

100%

Y-Intercept (b)

1

Equation

y = x + 1

Distance

5.6569

Midpoint

(3, 4)

Parallel Line

y = x

Perpendicular Line

y = -x + 7

Line Graph

0246246MP1 (1, 2)P2 (5, 6)

Learn more

How does slope connect to the equation of a line?

Was this useful?

Frequently Asked Questions

Slope is calculated as the rise divided by the run: the difference in y-values divided by the difference in x-values between two points. For points (x1, y1) and (x2, y2), slope equals (y2 minus y1) divided by (x2 minus x1).

A negative slope means the line descends from left to right, indicating that as the x-value increases, the y-value decreases. A slope of zero is a horizontal line, and an undefined slope is a vertical line.

Slope-intercept form is written as y equals mx plus b, where m is the slope and b is the y-intercept (where the line crosses the y-axis). This form makes it easy to graph a line or identify its slope and intercept at a glance.

Slope Calculator - Line Equation from Two Points | ToolsCanvas