F

Slope Calculator

Find the slope of a line through two points (x₁,y₁) and (x₂,y₂), plus rise, run, and often slope-intercept form y = mx + b.

Slope from two points

Slope & line equation

2

y = 2x + 0

Steps

  1. Points: (1, 2) and (4, 8).
  2. Slope m = (y₂ − y₁) / (x₂ − x₁) = (8 − 2) / (4 − 1) = 2.
  3. y-intercept b = y₁ − m·x₁ = 2 − 2×1 = 0.
  4. Equation: y = 2x + 0.

How it works

The calculator subtracts coordinates in consistent order so rise and run match the direction from point 1 to point 2. It may also compute b from one point and m.

Formula

m = (y₂ − y₁) ÷ (x₂ − x₁); vertical line: undefined slope

How to use Slope Calculator

  1. Enter coordinates for two distinct points.
  2. Calculate slope m = rise over run.
  3. Read the line equation if the tool provides it.
  4. Note undefined slope when the line is vertical (x₁ = x₂).

Worked examples

Concrete numbers and cases you can check against the tool above.

Points (2, 3) and (10, 11)

Rise 8, run 8 → slope 1 → line y = x + 1 after solving for b.

When to use Slope Calculator

Slope drives rate-of-change problems in algebra and physics. Getting m wrong flips line direction or breaks parallel/perpendicular checks.

Common use cases

  • Find pitch of a roof line from two plan coordinates.
  • Check if two lines are parallel (equal slopes).
  • Convert a graphed segment to an equation for homework.

Inputs and outputs

  • Decimal or fractional coordinates
  • Two-dimensional Cartesian points

Privacy

This tool runs entirely in your browser. Your data never leaves your device — nothing is uploaded to our servers.

Frequently asked questions

What is slope of a horizontal line?
Zero — y does not change as x increases.
Can I enter the same point twice?
Two identical points do not define a unique line; the tool should reject or warn.
Does order of points matter for slope sign?
Swapping points negates rise and run together, so m stays the same.

Related tools

More free utilities you may need next — also listed in Calculators & Converters and the All Tools directory.

View full category →