OhMyCalc

Slope Calculator

Calculate the slope, y-intercept, equation of a line, and angle given two points. Enter coordinates for instant results.

How to Use the Slope Calculator

  1. Enter the required dimensions (length, width, radius, height, etc.).
  2. The area, volume, or other geometric value is computed instantly.
  3. Review the result along with the formula used.
  4. Adjust dimensions to compare different scenarios.

Casi d'Uso

Formula

Slope: m = (y₂ − y₁) / (x₂ − x₁). Y-intercept: b = y₁ − m × x₁. Line: y = mx + b. Angle: θ = atan(m).

Domande Frequenti

How do you calculate the slope of a line?
Divide the change in y by the change in x: m = (y₂ − y₁) / (x₂ − x₁).
What is the y-intercept?
The y-intercept b is where the line crosses the y-axis. It equals b = y₁ − m × x₁.
What does a slope of zero mean?
A slope of zero means the line is horizontal — there is no rise between the two points.
What if x₁ equals x₂?
When x₁ = x₂, the line is vertical and the slope is undefined (division by zero).