Slope Calculator (Rise Over Run & Equation $y = mx + b$)
Calculate line slope $m$, rise over run, angle of inclination, and point-slope equations.
TL;DR: Slope Calculator computes the gradient/slope $m = (y_2 - y_1) / (x_2 - x_1)$ between two points, generating the slope-intercept equation $y = mx + b$.
What Is Slope and What Is the Slope Formula ($m$)?
Slope ($m$) measures the steepness and direction of a line, defined as vertical change (rise) divided by horizontal change (run): m = (y₂ - y₁) / (x₂ - x₁). A positive slope rises from left to right, a negative slope falls, a zero slope is horizontal, and an undefined slope is vertical.
How to Use the Slope Calculator
Our Slope Calculator performs high-precision mathematical operations directly in your browser with zero latency and complete client-side privacy.
- Enter coordinates for Point 1 $(x_1, y_1)$ and Point 2 $(x_2, y_2)$.
- Click 'Calculate Slope' to compute gradient $m$.
- Review the calculated Rise $(\Delta y)$ and Run $(\Delta x)$ values.
- View the Slope-Intercept form $y = mx + b$ and Standard Form $Ax + By = C$.
- Inspect the angle of inclination $\theta = \arctan(m)$ in degrees.
Mathematical Formula & Equations
Calculates line slope $m$, inclination angle $\theta$, distance, and line equation $y = mx + b$.
Calculation Example
Slope between $(1, 2)$ and $(5, 10)$: $$m = \frac{10 - 2}{5 - 1} = \frac{8}{4} = 2 \quad (\text{Line equation: } y = 2x)$$
100% Client-Side Privacy & Data Security
All calculations, amortization schedules, variables, and sensitive numerical datasets execute 100% locally in your web browser memory. Your financial, medical, and personal values are never transmitted, logged, or uploaded to any external server.
Frequently Asked Questions
- The slope formula is `m = (y₂ - y₁) / (x₂ - x₁) = Δy / Δx` (Rise over Run).
- An undefined slope occurs when `x₂ = x₁` (division by zero), representing a perfectly vertical line with equation `x = constant`.
- Parallel lines have identical slopes (`m₁ = m₂`). Perpendicular lines have negative reciprocal slopes (`m₁ × m₂ = -1`, so `m₂ = -1 / m₁`).
- Substitute slope $m$ and point $(x_1, y_1)$ into `b = y₁ - m(x₁)`.
- Multiply slope $m$ by 100: `Grade % = m × 100`. For example, a slope of 0.05 equals a 5% road grade.
- A horizontal line has a slope of 0 (zero vertical rise). A vertical line has an undefined (infinite) slope because division by zero run `(x₂ - x₁ = 0)` occurs.
Cite This Calculator
Need to reference this online calculator in a financial proposal, academic paper, blog post, or classroom curriculum? Copy a citation below.
Embed This Tool
Add the live Slope Calculator to your own website with this snippet — it loads the real, working calculator in an iframe.
<iframe src="https://nexlove.org/embed/slope-calculator.html" width="100%" height="600" style="border:1px solid #e2e8f0;border-radius:12px" title="Slope Calculator — NexLove.org" loading="lazy"></iframe>