Type a math problem or upload a photo, screenshot, handwritten question...
error msg
  • Algebra
  • Calculus
  • Trigonometry
  • Matrix
  • Differential
  • Integral
  • Trigonometry
  • Letters

Slope Examples

About the Slope Calculator

A free slope calculator to find the slope, distance, and equation of a line by entering two points. It can also determine the slope directly from the equation of a line.

Frequently Asked Questions

How do I use the slope calculator?

Enter two points to calculate the slope, distance, and the equation of the line (in the form y = mx + b) with a step-by-step solution. For example, entering the points (-1, 1) and (-2, -3) yields a slope of 4, a distance of √17, and the line equation y = 4x + 5.

How is the slope calculated?

1. Two-point method: Given any two points (x1, y1) and (x2, y2) on a line, the slope k is calculated as k = (y2 - y1) / (x2 - x1), provided that the x-coordinates are not equal.

2. Function method: If the equation of a line is written in the standard form y = kx + b, the coefficient k (the value preceding x) is the slope. For instance, the slope of the line y = 2x + 1 is 2.

3. Angle method: If the angle α that a line makes with the positive x-axis is known, the slope k is given by k = tan α. For example, a line with an inclination angle of 60° has a slope of √3.

What is the formula for slope?

The formula for calculating the slope is k = (y₂ - y₁) / (x₂ - x₁), which represents the ratio of the difference in the y-coordinates to the difference in the x-coordinates between any two points on a line.

How many degrees does slope 2 equal?

The slope angle is arctan(2), which is approximately 63.43 degrees.

Select method
Select the method you prefer to be personalized for you.
I'm not sure