Free online tool

Slope Calculator

Enter the coordinates of two points to find the slope (gradient) of the line.

Instant calculation

Slope Calculator

Enter the coordinates of two points to find the slope (gradient) of the line.

Your numbers stay in this browser. Nothing is uploaded or saved.

Three clear steps

How to use this calculator

  1. 01

    Enter first point

    Type the x and y coordinates of the first point.

  2. 02

    Enter second point

    Type the x and y coordinates of the second point.

  3. 03

    See slope

    Calculate to see the slope and line equation.

The formula

How this calculation works

Rise over run. The slope represents the steepness and direction of a line.

Slope Calculator

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

(4−0)÷(3−0)=4÷3≈1.333

Check the method

Worked examples

Each example follows the same formula used by the calculator.

Slope of line through (0,0) and (3,4)?

(4−0)÷(3−0)=4÷3≈1.333≈ 1.333 (4/3)

Common questions

Questions about this calculation

What is the Slope Calculator?

The Slope Calculator helps you calculate the slope of a line passing through two points. Enter your values and select Calculate to get an instant result.

How is the result calculated?

Rise over run. The slope represents the steepness and direction of a line.

Can you show an example?

Example: Slope of line through (0,0) and (3,4)? — ≈ 1.333 (4/3).

Is my data saved when I use the Slope Calculator?

No. All calculations run locally in your browser. Your inputs and results are never uploaded, stored or shared with anyone.

Is the Slope Calculator free to use?

Yes. The Slope Calculator is completely free. No account, sign-up or payment is required. It works on mobile, tablet and desktop.