Slope Calculator

Calculate slope from two points online, then review the rise, run, decimal slope, and whether the line is horizontal, vertical, or increasing.

Calculate slope from two points

Enter two coordinate points to calculate slope, then review rise, run, line type, and whether the slope is defined.

Find the slope of the line through two points

Use this slope calculator when you need the slope between two points for algebra, coordinate geometry, homework checks, line analysis, or quick rise-over-run verification in the browser.

Enter two points to calculate slope.

Slope result

Review the slope first, then compare the decimal value, rise, run, and line type.

Ready

Enter two points to find the slope.

The result will show the slope, rise, run, and line type for the current points.

Slope uses the formula (y2 - y1) / (x2 - x1).

How to use the slope calculator

  1. Enter the first point as `x1` and `y1`.
  2. Enter the second point as `x2` and `y2`.
  3. Review the main result to see the slope as a simplified fraction or an undefined slope state.
  4. Use the supporting cards to compare the decimal slope, rise, run, and line type.
  5. Use Example to load sample points or Clear to reset all four coordinates.

Slope calculator examples

  • slope between two points

  • slope between (1,2) and (4,8)

  • rise over run

  • slope of a vertical line

  • slope of a horizontal line

What this slope calculator shows

This slope calculator finds the slope from two points and shows more than a single number. It returns the slope as a simplified fraction when possible, gives the decimal slope, and breaks the result into rise and run so you can see how the line changes from the first point to the second.

How slope from two points works

The slope formula is `(y2 - y1) / (x2 - x1)`. The top part is the rise, and the bottom part is the run. A positive slope means the line rises from left to right, a negative slope means it falls, a slope of `0` means the line is horizontal, and a vertical line has an undefined slope because the run is zero.

When to use a slope calculator

A slope calculator is useful for graphing homework, coordinate geometry problems, line comparisons, algebra checks, and any time you need to check whether two points create a rising, falling, horizontal, or vertical line. It is especially useful when you want both the exact slope fraction and the decimal value.

Slope calculator FAQs

How do you find slope from two points?

Use the slope formula `(y2 - y1) / (x2 - x1)`. Subtract the first `y` value from the second `y` value to get the rise, subtract the first `x` value from the second `x` value to get the run, then divide rise by run.

What is the slope of a horizontal line?

The slope of a horizontal line is `0` because the `y` value does not change, so the rise is zero even though the run is not zero.

What is the slope of a vertical line?

A vertical line has an undefined slope because the run is `0`, so the slope formula would require division by zero.

Why does the tool show rise and run?

Rise and run make the slope easier to understand. They show how much the line moves up or down and how much it moves left or right before the tool simplifies the final slope.

Can this slope calculator use decimal coordinates?

Yes. The tool accepts decimal coordinates and still simplifies the slope fraction when the line slope is defined.

Related tools