Slope CalculatorFormule

## How to Calculate Slope

### Formula

**m = (y₂ - y₁) / (x₂ - x₁)**

The slope represents the rate of change — how much y changes for each unit increase in x.

### Line Equation

Once you have the slope (m) and y-intercept (b), the line equation is: **y = mx + b**

Where b = y₁ - m × x₁

Exemple Résolu

Find the slope of the line through points (1, 2) and (4, 8).

  1. Slope = (8 - 2) / (4 - 1) = 6 / 3 = 2
  2. Y-intercept: b = 2 - 2 × 1 = 0
  3. Line equation: y = 2x
  4. Distance = √((4-1)² + (8-2)²) = √(9 + 36) = √45 ≈ 6.7082