Math

Slope Calculator

Live

Calculate slope, rise, run, line equation, distance, and midpoint from two coordinate points.

About Slope Calculator

Calculate slope, rise, run, line equation, distance, and midpoint from two coordinate points. Enter first point x₁, first point y₁, second point x₂, second point y₂ in a purpose-built workspace that keeps related controls together and makes units explicit. Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint. The result panel reports slope, rise, run, line equation, point distance with copy-ready values and supporting context. When both x-coordinates are equal, the line is vertical and its slope and y-intercept are undefined. Processing stays in your browser and the entered values are not sent to UtilityPages.

Set up Slope Calculator

Workspace

Visual model

Adjust the values below to turn the calculation into a visual, interpretable result.

Complete the fields to prepare a result.

Enter the first point x₁ used in the calculation.

Enter the first point y₁ used in the calculation.

Enter the second point x₂ used in the calculation.

Enter the second point y₂ used in the calculation.

Slope Calculator results

Enter the values above, then calculate slope to see the result.

Slope Calculator method

Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint.

How it works

Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint. When both x-coordinates are equal, the line is vertical and its slope and y-intercept are undefined.

Examples

Slope Calculator example

Example input
{
    "x1": 2,
    "y1": 3,
    "x2": 8,
    "y2": 15
}
Expected result
{
    "slope": 2,
    "rise": 12,
    "run": 6,
    "equation": "y = 2x − 1",
    "distance": 13.416407865,
    "midpoint": "(5, 9)"
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the Slope Calculator work?

Slope is change in y divided by change in x. The same point pair determines the y-intercept, Euclidean distance, and coordinate midpoint.

What information should I enter in the Slope Calculator?

Enter first point x₁, first point y₁, second point x₂, second point y₂. Use values from the same scenario and keep measurement units consistent with the labels shown.

What results does the Slope Calculator provide?

The result workspace reports slope, rise, run, line equation. Supporting values are included so the primary result can be checked and interpreted.

How exact is the Slope Calculator?

When both x-coordinates are equal, the line is vertical and its slope and y-intercept are undefined.