Slope Calculator

Calculate slope between two points.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter two points to get the slope, the angle from horizontal in degrees, the grade as a percentage and the rise-to-run ratio.

How to use

1
Step 1
Enter x₁ and y₁ for the first point.
2
Step 2
Enter x₂ and y₂ for the second point.
3
Step 3
Press Calculate to see slope, angle, grade and ratio.

How it works

Slope is rise over run. The angle is the arctangent of the slope, and the grade is the slope written as a percentage. A vertical line has an undefined slope.

m = (y₂ − y₁) ÷ (x₂ − x₁)      angle = arctan(|m|)      grade = |m| × 100%

Worked example

Rise 1 over run 10

Input
(0, 0) and (10, 1)
Output
Slope 0.1; angle 5.71°; grade 10%; ratio 1 : 10
Walkthrough
1 ÷ 10 = 0.1, and arctan(0.1) = 5.71°.

Limitations

  • Vertical lines have no defined slope.

Questions

What is a 1:10 slope in degrees?
5.71°. A 1:5 slope is 11.31°, and a 1:12 ramp is 4.76°.
How do I convert slope to degrees?
Take the arctangent of the slope: angle = arctan(rise ÷ run).
How do I convert slope to percent grade?
Multiply the slope by 100. A slope of 0.1 is a 10% grade.

Features

  • Slope, angle, grade and ratio
  • Graph of the line
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Derivative as a concept

    Khan Academy

    Calculus entry point for derivative-related tools.

    Watch on YouTube
  • Vectors | Essence of linear algebra

    3Blue1Brown

    Linear algebra intuition for matrix and vector tools.

    Watch on YouTube
  • Cylinder

    Math is Fun

    Labeled net for volume and total surface area.

  • Geometry Index

    Math is Fun

    Shape and formula index for geometry calculators.