Calculators & Converters

Slope Calculator

Find the slope, y-intercept, angle and line equation through two points.

In the browser

Formula: m = (y₂ − y₁)/(x₂ − x₁)

About this tool

Find the slope, y-intercept, angle and line equation through two points.

m = (y₂ − y₁) ÷ (x₂ − x₁), b = y₁ − m·x₁, and the angle is atan(m). The line is y = m·x + b.

Formula: m = (y₂ − y₁)/(x₂ − x₁)

Example: x₁ = 1, y₁ = 2, x₂ = 4, y₂ = 8 → Slope (m) = 2, y-intercept (b) = 0.

If x₁ = x₂ the line is vertical and has no defined slope.

Quick steps

  1. Enter your values — every field shows its unit.
  2. Press Calculate (or Try an example to see how it works).
  3. Read the results and copy them if you need them elsewhere.

The calculation runs in your browser. Nothing you type is sent to 1CLIK.

FAQ

How does the Slope Calculator work?

m = (y₂ − y₁) ÷ (x₂ − x₁), b = y₁ − m·x₁, and the angle is atan(m). The line is y = m·x + b.

What should I keep in mind?

If x₁ = x₂ the line is vertical and has no defined slope.

Is my data sent anywhere?

No. The numbers stay on your device; the page only shows the result.

A useful next step

Site policies: Privacy · Terms