Slope Calculator

Compute slope, angle, and distance using points and slope

๐Ÿ“

Slope Calculator

Calculate slope (gradient), angle of incline, and distance. Enter two points or one point with slope (or angle) and distance.

By definition, the slope or gradient of a line describes its steepness, incline, or grade.

Where
  • m โ€” slope
  • ฮธ โ€” angle of incline
m =
y2 โˆ’ y1
x2 โˆ’ x1
= tan(ฮธ)
Slope diagram showing ฮ”x, ฮ”y, ฮธ and distance d

๐Ÿงฎ If the 2 Points are Known

๐Ÿ“Š Result

ฮ”X 1
ฮ”Y 1
Slope (m) 1
Angle (ฮธ) 45ยฐ
Distance (d) 1.4142
Line equation y = x
y-intercept (when x=0) 0
x-intercept (when y=0) 0

๐Ÿ“ If 1 Point and the Slope are Known

Length from the known point to the new point

ยฐ

Provide either slope m or angle ฮธ

๐Ÿงพ Result

Given slope (m) 0.75
Angle (ฮธ) 36.87ยฐ
Xโ‚‚ = 5
Yโ‚‚ = 4
ฮ”X = 4
ฮ”Y = 3
ฮธ = 36.869897645844ยฐ
Equation of the line:
y = 0.75x + 0.25
When x=0, y = 0.25
When y=0, x = -0.3333333333333333
OR
Xโ‚‚ = -3
Yโ‚‚ = -2
ฮ”X = -4
ฮ”Y = -3
ฮธ = 216.869897645844ยฐ
Equation of the line:
y = 0.75x + 0.25
When x=0, y = 0.25
When y=0, x = -0.3333333333333333

Understanding Slope

Slope, sometimes referred to as gradient in mathematics, measures the steepness and direction of a line, usually denoted by m. The larger |m| is, the steeper the line.

  • A line increases (upwards left-to-right) when m > 0
  • A line decreases when m < 0
  • A horizontal line has m = 0
  • A vertical line has undefined slope

Slope is often described as "rise over run" and represented as m = (yโ‚‚ โˆ’ yโ‚) / (xโ‚‚ โˆ’ xโ‚) = tan(ฮธ). The distance between two points is computed using the Pythagorean theorem.

Formulas
m = (yโ‚‚ โˆ’ yโ‚) / (xโ‚‚ โˆ’ xโ‚)
ฮธ = arctan(m)
d = โˆš((xโ‚‚ โˆ’ xโ‚)ยฒ + (yโ‚‚ โˆ’ yโ‚)ยฒ)