Slope Calculator

Free online Slope Calculator to find the slope between two points, determine slope type, and generate slope-intercept and point-slope line equations instantly.

853.9K usesUpdated · 2026-04-29Runs locally · zero upload

How to Use Slope Calculator

The Slope Calculator instantly finds the slope and line equation for any two points on a coordinate plane.

  1. Enter Point 1 — Type the x₁ and y₁ coordinates of the first point into the Slope Calculator.
  2. Enter Point 2 — Type the x₂ and y₂ coordinates of the second point.
  3. Read the Slope — The Slope Calculator displays the slope m, slope type, rise, run, and the angle of inclination.
  4. View Line Equations — The Slope Calculator outputs the slope-intercept form y = mx + b and the point-slope form y − y₁ = m(x − x₁) automatically.

The Slope Calculator updates results in real time as you type, so there is no button to click.

Formula & Theory — Slope Calculator

The Slope Calculator is built on the standard slope formula from coordinate geometry:

m = (y₂ - y₁) / (x₂ - x₁)
Symbol Meaning
m Slope (rate of change)
y₂ - y₁ Rise (vertical change)
x₂ - x₁ Run (horizontal change)
b y-intercept: b = y₁ - m·x₁

Once slope m is known, the Slope Calculator derives the y-intercept b and produces:

  • Slope-intercept form: y = mx + b
  • Point-slope form: y − y₁ = m(x − x₁)

The angle of inclination θ is calculated as:

θ = arctan(|m|)   (in degrees)

Special Cases

  • Zero slope (m = 0): horizontal line y = b — the Slope Calculator reports "Zero Slope."
  • Undefined slope (x₁ = x₂): vertical line x = x₁ — the Slope Calculator reports "Undefined Slope."

Use Cases for Slope Calculator

The Slope Calculator is useful in a variety of everyday and academic situations:

  • Algebra & Coordinate Geometry — Students use the Slope Calculator to check graphing homework, find equations of lines through two points, and verify parallel or perpendicular line relationships (parallel lines share slope; perpendicular lines have slopes m and -1/m).
  • Civil Engineering & Construction — Road grade, ramp inclination, and roof pitch are all slope measurements. The Slope Calculator converts two elevation-position readings into a usable grade percentage.
  • Data Analysis — The slope of a trend line in a scatter plot quantifies the relationship between variables. The Slope Calculator helps quickly estimate linear regression slope from two representative points.
  • Physics — Velocity-time graphs have slopes equal to acceleration, and position-time slopes give velocity. The Slope Calculator speeds up kinematic graph analysis.
  • Architecture — Staircases, accessibility ramps (ADA requires ≤ 1:12 slope), and drainage gradients all rely on slope calculations that the Slope Calculator handles instantly.

From classrooms to construction sites, the Slope Calculator eliminates manual arithmetic and reduces errors when working with coordinate data.

Frequently asked questions about Slope Calculator

What does the Slope Calculator compute?

The Slope Calculator computes the slope m = (y2-y1)/(x2-x1) between two coordinate points, identifies the slope type, and outputs both the slope-intercept form (y = mx + b) and the point-slope form of the line.

What happens when x1 equals x2 in the Slope Calculator?

When x1 = x2 the run is zero, making the slope undefined. The Slope Calculator detects this and reports a vertical line equation x = x1.

How does the Slope Calculator determine slope type?

The Slope Calculator classifies slope as positive (m > 0, line rises left to right), negative (m < 0, line falls), zero (m = 0, horizontal line), or undefined (vertical line).

What is the rise-over-run shown in the Slope Calculator?

Rise is the vertical change (y2 - y1) and run is the horizontal change (x2 - x1). The Slope Calculator displays both values alongside the computed slope.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.