Slope Calculator

Gradient, angle and line equation from two points.

Slope (m)
2
Angle
63.4349°
y-intercept
-1
Equation
y = 2x − 1
Rise / run
8 / 4
Show the working
  1. 1m = (11 − 3) ÷ (6 − 2) = 2
  2. 2b = 3 − 2 × 2 = -1
Formula
m = (y₂ − y₁) ÷ (x₂ − x₁)

How it works

Gradient, angle and the line equation through two points.

Example

Through (2, 3) and (6, 11) the slope is 2 and the line is y = 2x − 1.

About the Slope Calculator

Gradient, angle and line equation from two points. It sits in the Geometry section of NWS Calc, a free collection of calculators that run entirely in your browser. There is no signup, no paywall and no tracking — open the page, enter your numbers, get an answer.

Frequently asked questions

Is the Slope Calculator free to use?
Yes. Every calculator on NWS Calc is completely free, with no signup, no usage limits and no ads.
Does my data leave my device?
No. The Slope Calculator runs entirely in your browser using JavaScript. Nothing you type is uploaded, logged or stored on a server.
Can I use the Slope Calculator on my phone?
Yes. The page is fully responsive and works in any modern mobile or desktop browser — there is nothing to install.
What else is in Geometry?
Area, perimeter, volume and surface area for every common shape. You can browse the full Geometry category for related calculators.

Related calculators