Toolzy

Slope Calculator

Calculate the slope, angle, and y-intercept of a line through two points.

Slope
2
Angle
63.4349°
Y-intercept
0

Enter two points to get the slope (rise over run), the angle in degrees, and the y-intercept of the line. Vertical lines are handled.

How to use

  1. Enter the x and y of the first point.
  2. Enter the x and y of the second point.
  3. Read the slope, angle, and y-intercept.

Frequently asked questions

How is slope calculated?
Slope equals the change in y divided by the change in x ((y2-y1)/(x2-x1)).
Why is the slope undefined?
When both points share the same x, the line is vertical and its slope and y-intercept are undefined.

Related tools