everydaycalc
Maths

Slope Calculator

Use the free slope calculator. Enter x1, y1, x2, y2 to get a result, with a formula and worked example.

How to calculate slope

This tool calculates slope from X1, Y1, X2, Y2. Enter each quantity in its labelled field, then use the formula below to check the calculation.

Formula

(y2 − y1) ÷ (x2 − x1)

Worked example

X1
0
Y1
0
X2
2
Y2
6

Applying the formula to these values gives 3 .

What should I check?

Calculate powers, roots, logarithms, ratios, slopes and trigonometric functions. Trigonometric angles are entered in degrees.

Use the reset button to restore this example. Your inputs are processed in this browser and are not included in a shared calculator link. See our methodology and limitations.