Slope calculator
Find the slope and y-intercept of the line through two points.
Related tools
All Geometry tools →Need Slope (m), y-intercept (b)? The Slope calculator derives it from x₁, y₁, x₂, y₂ in one step. For instance, with x₁ = 1, y₁ = 2, x₂ = 4 and y₂ = 10 it returns Slope (m) = 2.667 and y-intercept (b) = -0.667.
How to use it
- Enter your values: x₁, y₁, x₂, y₂.
- Read the result instantly: Slope (m), y-intercept (b).
Frequently asked questions
How does the Slope calculator work?
It takes x₁, y₁, x₂ and y₂ and derives Slope (m) and y-intercept (b) from them. The calculation is live as you type, so the result updates on every change.
Which values does the calculator ask for?
4 values: x₁, y₁, x₂ and y₂. Nothing else is required — no account, no file upload.
What does a typical calculation look like?
With x₁ = 1, y₁ = 2, x₂ = 4 and y₂ = 10, the calculator returns Slope (m) = 2.667 and y-intercept (b) = -0.667. Those figures come from running this exact tool, so you can reproduce them by entering the same values.
How much does the result change with different inputs?
It moves a lot. Using x₁ = 2, y₁ = 4, x₂ = 8 and y₂ = 20 instead, y-intercept (b) goes from -0.667 to -1.333 — which is why it is worth testing a few scenarios rather than trusting a single figure.
What does it give for smaller values?
Scaled down to x₁ = 1, y₁ = 1, x₂ = 2 and y₂ = 5, Slope (m) comes out at 4. The relationship is worth checking at both ends before you rely on a single result.
When would I actually use this?
Homework and site work alike: how much paint a wall takes, how much water a tank holds, whether a corner is square — and, on the coordinate side, the slope between two points, the distance across a plan, the midpoint of a span.
What is the most common mistake?
Mixing units inside one shape. Entering a length in centimetres and a width in metres gives an area wrong by a factor of a hundred, and the result looks perfectly plausible.
What is the difference between the Slope calculator and the Point-Slope Form Calculator?
This one returns Slope (m) and y-intercept (b); the Point-Slope Form Calculator returns Result. That is the whole difference — open the one whose figure you need.
Is there a tool for the next step?
Slope-Intercept Form Calculator is the closest one after this: Reduce any line — from two points, a point and slope, or standard form — to y = mx + b.
Where do the figures come from, and how current are they?
The formulas are the classical ones and the results are exact to the precision shown — geometry does not change with the year or the country, so nothing here needs updating.