Slope Calculator

Slope Calculator: Slope, Equation and Percent Grade

Find the slope of a line from two points, or from rise and run. Get the fraction, decimal, angle, percent grade, line equation and intercepts, with a graph and the steps. Free, runs in your browser.

How to use the Slope Calculator

  1. Choose Two points to find the slope of a line, or Rise and run for a ramp, roof or road.
  2. Enter the numbers. The result updates as you type.
  3. Read the slope as a fraction and a decimal, then the angle, percent grade, equation and intercepts.
  4. Check the steps and the graph to see how the answer was found.

Frequently asked questions

What is the slope formula?

Slope m = (y2 – y1) / (x2 – x1). It is the change in y divided by the change in x, often called rise over run. For the points (2, 3) and (7, -9), m = (-9 – 3) / (7 – 2) = -12/5 = -2.4.

What does a positive, negative, zero or undefined slope mean?

A positive slope rises from left to right. A negative slope falls. A zero slope is a horizontal line. A vertical line has an undefined slope because the run is zero and you cannot divide by zero.

How do I find the equation of a line from two points?

Find the slope m, then find b = y1 – m x1. The line is y = mx + b. The calculator shows this equation, the point-slope form and both intercepts.

How do I turn slope into percent grade or an angle?

Percent grade is the slope times 100, and the angle of incline is the arctangent of the slope. A rise of 3 over a run of 12 is a slope of 0.25, a 25% grade, and an angle of about 14.04 degrees.

How do I find the slope of a ramp or roof?

Use the Rise and run mode. Measure how far the surface goes up (rise) over how far it goes along the ground (run), in the same unit, and enter both.

Do parallel and perpendicular lines have related slopes?

Parallel lines have equal slopes. Perpendicular lines have slopes that multiply to -1, so a line with slope 2 is perpendicular to a line with slope -1/2.

Everything runs in your browser. Nothing you enter is uploaded or stored by Nexatoolbox.