OverCalculator
  1. Home
  2. Math & Scientific
  3. Slope Calculator
Math & Scientific

Slope Calculator

Calculate the slope between two points on a line with our free online slope calculator. Learn about rise over run and linear equations.

Slope
The slope is
0.5000
Rise (yโ‚‚ โˆ’ yโ‚)
2
Run (xโ‚‚ โˆ’ xโ‚)
4

Slope = (2 โˆ’ 0) รท (4 โˆ’ 0).

Results update as you type.

Slope Calculator

Use this slope calculator to find the slope between two points on a line. Enter Xโ‚ coordinate, Yโ‚ coordinate, Xโ‚‚ coordinate, and Yโ‚‚ coordinate to get the slope, rise, and run.

How to use this calculator

  1. Enter the first point as Xโ‚ and Yโ‚.
  2. Enter the second point as Xโ‚‚ and Yโ‚‚.
  3. Read the slope as a decimal rounded to four places.
  4. Check the rise and run values to see the calculation parts.

If the x coordinates are the same, the calculator reports that slope is not defined because the line is vertical. For angle conversions used in geometry or construction, see the angle converter.

Formula

slope = (yโ‚‚ - yโ‚) / (xโ‚‚ - xโ‚)

Slope describes how much y changes for each change in x.

Worked example

For points (0, 0) and (4, 2), the rise is 2 and the run is 4.

slope=(2โˆ’0)รท(4โˆ’0)=0.5slope = (2 - 0) \div (4 - 0) = 0.5

That means y increases by 0.5 for every 1 unit increase in x.

Interpreting slope

Positive slope rises from left to right, negative slope falls, zero slope is horizontal, and undefined slope is vertical. In applied problems, slope may be connected to grade, speed, or rate of change. For broader data summaries, the statistics calculator can describe a set of values, while the percentage change calculator compares before and after amounts.

Frequently asked questions

How do I find slope from two points?
Subtract the first y coordinate from the second y coordinate, then divide by the second x coordinate minus the first x coordinate.
What does undefined slope mean?
Undefined slope means the two x coordinates are equal, so the line is vertical and the run is zero.
What inputs does this slope calculator use?
Enter X1, Y1, X2, and Y2 coordinates. The calculator returns the slope plus the rise and run.
Can slope be negative?
Yes. A negative slope means y decreases as x increases, so the line falls from left to right.

Related calculators

Slope Calculator updated at