Math

Slope Calculator

Find rise, run, slope and the y-intercept of the line through two coordinate points.

Exact method explained belowEditable inputs
Geometry desk
Geometry desk

Match each dimension to the shape and keep units consistent.

See the method

Set the dimensions

Runs on your device

Your measurement

Your result

Let’s calculate.

Use the Calculate button to see your result.

Review the method below for assumptions and conventions.

How to use this tool

  1. Enter first point: x, first point: y, second point: x, second point: y.
  2. Select Calculate to view the result.
  3. Check the method and assumptions below before using the result.

Input reference and sample values

Use the units and choices shown for each field. Sample values are provided for practice, not as recommendations.

InputFormat and unitsSample
First point: xNumeric value.0
First point: yNumeric value.0
Second point: xNumeric value.3
Second point: yNumeric value.4

Result for these sample inputs

1.33333333
Rise
4
Run
3
Y intercept
0

Select Try the example in the form to load these values and calculate them again. This replaces the current form inputs. Compare the result with the method and worked explanation below.

The method, explained

Slope = (y₂ − y₁) ÷ (x₂ − x₁). For a nonvertical line, y-intercept = y₁ − slope × x₁.

A WORKED EXAMPLE

From (0, 0) to (3, 4), rise is 4, run is 3, slope is 4/3 and the y-intercept is 0.

What to keep in mind

A vertical line has undefined slope; identical points do not determine a unique line. Coordinates are numerical values on a Cartesian plane, not geographic bearings.

Common questions

Does reversing the points change the slope?

No. Both rise and run change sign, leaving their ratio unchanged.

What is the slope of a horizontal line?

Zero, provided the points have different x coordinates.

Methodology maintained by ClarityKit. How these tools are built and checked.