Math

Slope Calculator

Gradient, angle, distance and the line equation.

Enter your values

Enter the x₁ you are working with.

Enter the y₁ you are working with.

Enter the x₂ you are working with.

Enter the y₂ you are working with.

Results update instantly as you type — no submit needed. Your values are remembered on this device, and the shareable link reopens the calculator with exactly these numbers.

Results
Slope (m)
1.5
Equation
y = 1.5x + 0
Angle of incline
56.31°
Distance between points
10.816654
Percent grade
150%

Working

  1. 1m = (12 − 3) ÷ (8 − 2) = 1.5

Quick answer

Slope is rise over run: m = (y₂ − y₁) ÷ (x₂ − x₁).

m = (y₂ − y₁) ÷ (x₂ − x₁)

At a glance

What it doesGradient, angle, distance and the line equation.
CategoryMath
Inputs neededx₁, y₁, x₂, y₂
Main outputSlope (m)
Formulam = (y₂ − y₁) ÷ (x₂ − x₁)
CostFree — no sign-up, no download

How to use the Slope Calculator

  1. 1Enter the coordinates of the first point.
  2. 2Enter the second point.
  3. 3Read the slope and line equation.

Inputs explained

x₁
Enter the x₁ you are working with.
y₁
Enter the y₁ you are working with.
x₂
Enter the x₂ you are working with.
y₂
Enter the y₂ you are working with.

Worked example

Using the values the calculator loads with:

Inputs

  • x₁2
  • y₁3
  • x₂8
  • y₂12

Results

  • Slope (m)1.5
  • Equationy = 1.5x + 0
  • Angle of incline56.31°
  • Distance between points10.816654
  • Percent grade150%
  1. m = (12 − 3) ÷ (8 − 2) = 1.5

Frequently asked questions

What is a negative slope?

The line falls left to right — y decreases as x increases.

What does percent grade mean?

Slope expressed as a percentage, used for roads and ramps. A 5% grade rises 5 feet over 100 feet of run.

What do I need to enter into the Slope Calculator?

Just 4 values: x₁, y₁, x₂, y₂. Every field starts with a realistic example, so you can change one number at a time and watch the result update instantly.

How does the Slope Calculator work out the answer?

Slope is rise over run: m = (y₂ − y₁) ÷ (x₂ − x₁). It applies the formula m = (y₂ − y₁) ÷ (x₂ − x₁) and shows the working so you can check each step by hand.

Is the Slope Calculator free, and do I need an account?

It is completely free with no sign-up, no download and no usage limit. Everything is calculated in your browser, so the numbers you type never leave your device.

Results are estimates for general information. For medical, legal, structural or financial decisions, confirm with a qualified professional.