All tools · 📊 Math
📈 Slope Calculator
Enter two points (x₁, y₁) and (x₂, y₂) — we compute the slope m = (y₂ − y₁)/(x₂ − x₁), the y-intercept b, the line equation y = mx + b, the distance between the points, and the midpoint.
Loading tool…
Examples
Simple line
Input
(0,0) and (4,8)Output
m=2, b=0, y=2x · distance 8.94 · midpoint (2,4)Negative slope
Input
(0,5) and (3,-1)Output
m=-2, b=5, y=-2x+5Vertical line
Input
(2,1) and (2,7)Output
Slope undefined — vertical line x=2Frequently asked questions
What is the slope formula?
m = (y₂ − y₁) / (x₂ − x₁). Vertical lines (x₁ = x₂) have undefined slope.
How to find y-intercept from two points?
Once you know m, plug a point in: b = y − mx.
Distance formula?
√((x₂−x₁)² + (y₂−y₁)²). Pythagorean theorem applied to the right triangle the two points form.
About this tool
Slope Calculator runs entirely in your browser using standard Web APIs. No data is sent to any server. The source for this tool is in our public GitHub repository.
Related tools
- 📏 Distance Formula Calculator — Distance between two points in 2D or 3D. Includes midpoint and angle.
- 📊 Quadratic Equation Solver — Solve ax² + bx + c = 0 — real and complex roots.
- 📐 Triangle Calculator — Solve any triangle given 3 known parts (SSS, SAS, ASA, etc.).
Why this tool
vs typical free web-tool sites
| 1vw | Typical free site | |
|---|---|---|
| Price | Free | Free |
| Signup required | No | Often (for premium features) |
| Ads inside the tool | No | Yes (banner + video) |
| Data sent to server | No (browser-only) | Yes (inputs analyzed for ads) |
| Total tools | 96 | Often <20 or scattered across sites |
| Bookmarkable URL per tool | Yes | Mixed |
| Loads in under 1s | Yes (static) | Often slow (ad tracking) |
| Multilingual | EN / ES / PT / FR / DE | Usually EN only |
| Open source | Yes | No |