NumberCals

Slope Calculator

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

About this calculator

The Slope Calculator on NumberCals is a free, mobile-friendly tool for anyone needing to calculate the slope, y-intercept, and equation of the line through two points. Enter your values in the form below and the result is computed instantly — no sign-up, no installation, no waiting.

Formula used

m = (y₂ − y₁) / (x₂ − x₁); y = mx + b

What you'll need

  • x₁ (e.g. 1)
  • y₁ (e.g. 2)
  • x₂ (e.g. 4)
  • y₂ (e.g. 11)

What you'll get

  • Slope (m)
  • y-intercept (b)
  • Angle with x-axis (°)
  • Line Equation
Formula
m = (y₂ − y₁) / (x₂ − x₁); y = mx + b

Frequently Asked Questions

What's a vertical line? +

If x₁ = x₂, slope is undefined (the line is vertical). The calculator returns an error in that case.

What's the angle? +

The angle the line makes with the positive x-axis, measured counter-clockwise. A slope of 1 = 45°.

Related Calculators