Skip to content

Slope Calculator

Slope, line equation, angle and distance from two points.

Point 1

Point 2

The line

FormEquation

Points along the line

xy

Slope (m)

—

Details

Rise over run—
Angle of inclination—
Perpendicular slope—
y-intercept—

The two points

Distance—
Midpoint—

—

Direction and steepness of the line

Slope is rise over run: the change in y divided by the change in x. A vertical line has an undefined slope because the run is zero, and a horizontal line has a slope of exactly zero. The perpendicular slope is the negative reciprocal.

Quick Tool Overview

The Slope Calculator finds the gradient between two points and everything that normally follows in the same question: the line in slope-intercept and standard form, the angle of inclination, the distance between the points, their midpoint and the perpendicular slope.

What it does
Calculates slope and the full line description from two points
You give it
The x and y coordinates of two points
You get back
Slope, line equation, angle, distance, midpoint
Best for
Coordinate geometry homework and gradient checks
Calculators Free, unlimited use No sign-up Runs in your browser

About the Slope Calculator

Enter two points and get the slope between them, together with everything that normally follows in the same question: the line in slope-intercept and standard form, the angle it makes with the horizontal, the distance between the points and their midpoint.

Slope is rise over run — the change in y divided by the change in x — and its sign and size tell you the direction and steepness of the line. Two cases are worth watching for: a vertical line has an undefined slope because the run is zero, and a horizontal line has a slope of exactly zero. The perpendicular slope, which is the negative reciprocal, is shown as well, since it is what the next part of the question usually asks for.

Key features of the Slope Calculator

More than just the slope

Line equation, angle, distance, midpoint and perpendicular slope, because the next part of the question usually wants them.

Slope as a fraction

Rise over run is shown in lowest terms as well as as a decimal.

Vertical lines handled

An undefined slope is reported as undefined, with the reason, rather than as an error or infinity.

Two equation forms

Slope-intercept and standard form, since different courses ask for different ones.

The substitution shown

The formula appears with your coordinates in place, ready to copy into working.

How to use the Slope Calculator

  1. 1

    Enter the first point

    Its x and y coordinates.

  2. 2

    Enter the second point

    Any second point on the same line.

  3. 3

    Read the slope

    Rise over run as a decimal and a fraction, with the substitution shown.

  4. 4

    Use the extras

    Line equation, angle, distance, midpoint and the perpendicular slope are all calculated too.

Frequently asked questions

Slope m equals (y₂ − y₁) divided by (x₂ − x₁) — the change in y over the change in x, often remembered as rise over run.

Reviews of the Slope Calculator

What people who use the Slope Calculator think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Slope Calculator. It takes half a minute and no account.

Write the first review

More calculators