Skip to content

Slope Calculator

Math
0.0(0)

Calculates the slope (gradient) of a line given two points.

How To Use

How to use this calculator

Start with your values, or try a preset.

Step 1

Enter X Coordinate of Point 1, Y Coordinate of Point 1, X Coordinate of Point 2, and Y Coordinate of Point 2 in the units shown.

Step 2

Read Slope in the results panel. Results update as you change the inputs.

Step 3

Choose a preset to load an example, then adjust the values for your situation.

Worked Examples

Example calculations

See the inputs and their calculated results.

Example 1

X Coordinate of Point 1: 1; Y Coordinate of Point 1: 2; X Coordinate of Point 2: 3; Y Coordinate of Point 2: 4

Slope: 1

Example 2

X Coordinate of Point 1: 0; Y Coordinate of Point 1: 0; X Coordinate of Point 2: 2; Y Coordinate of Point 2: 4

Slope: 2

Horizontal Line

X Coordinate of Point 1: 1; Y Coordinate of Point 1: 2; X Coordinate of Point 2: 3; Y Coordinate of Point 2: 2

Slope: 0

Explore the topic

Explore More Math & Statistics Calculators

Use calculators for algebra, geometry, trigonometry, probability, statistics, averages, z-scores, tests, and graphing tasks.

Explore tools
People Also Calculate

Related Calculators

Continue with another tool on a related topic.