Slope Calculator

Calculate slope, y-intercept, and equation of a line.

Calculation Type

Point 1

Point 2

📐 Common Slopes

Slope Formula

m = (y₂ - y₁) / (x₂ - x₁)
Rise: Change in y (vertical)
Run: Change in x (horizontal)
Slope: Rise over run (steepness)

Slope

1.333

positive

Angle

53.13°

from horizontal

Rise

4

vertical change

Run

3

horizontal change

Distance

5

between points

Midpoint

(3.5, 5)

center point

Parallel Slope

1.333

same slope

Perpendicular Slope

-0.75

negative reciprocal

Line Equations

Point-Slope Form:
y - 3 = 1.333(x - 2)
Slope-Intercept Form:
y = 1.333x + 0.333
Standard Form:
-1.333x + y = 0.333

Step-by-Step Solution

1Given two points: (2, 3) and (5, 7)
2Slope formula: m = (y₂ - y₁) / (x₂ - x₁)
3m = (7 - 3) / (5 - 2)
4m = 4 / 3 = 1.333
5Slope interpretation: Positive - rises 1.33 units for every 1 unit right

How it works

Slope measures how steep a line is — the rise (change in y) over the run (change in x) between two points. A positive slope rises left-to-right, negative falls, zero is flat, and a vertical line has undefined slope.

Slope of a line

m = (y₂ − y₁) ÷ (x₂ − x₁)
(x₁, y₁)
first point
(x₂, y₂)
second point
m
slope (rise over run)

Worked example

  • Points (1, 2) and (3, 8)
  1. Rise = 8 − 2 = 6
  2. Run = 3 − 1 = 2
  3. m = 6 ÷ 2

Slope m = 3.

Good to know

  • A vertical line has zero run, so its slope is undefined (division by zero).
  • Parallel lines share the same slope; perpendicular lines have slopes that multiply to −1.
  • In y = mx + b, the slope m is the coefficient of x and b is where the line crosses the y-axis.

Related Calculators

Frequently Asked Questions

How do I calculate slope between two points?

Slope m = (y₂ - y₁) / (x₂ - x₁) — rise over run. Between (1, 2) and (4, 11), the slope is (11 - 2) / (4 - 1) = 3.

What do negative, zero, and undefined slopes mean?

A negative slope falls from left to right, a positive slope rises, zero slope is a horizontal line, and a vertical line has undefined slope because the run (x₂ - x₁) is zero.

How do I get the equation of a line from the slope?

With slope m and a point (x₁, y₁), use point-slope form y - y₁ = m(x - x₁), then rearrange to slope-intercept form y = mx + b, where b is the y-intercept.

How does slope convert to percent grade or an angle?

Percent grade is slope x 100, and the incline angle is arctan(m). A 0.10 slope is a 10% grade (about 5.7°), while a 45° incline corresponds to a 100% grade.

What are the slopes of parallel and perpendicular lines?

Parallel lines share the same slope. Perpendicular lines have slopes that are negative reciprocals: a line with slope 2 is perpendicular to one with slope -1/2.