Math · Slope

Slope Calculator

Find slope from two coordinate points or from rise and run, with the angle and grade percentage shown.

Calculator inputs

Calculated in your browser.
Result

2

Slope (rise ÷ run)

Rise4 units
Run2 units
Angle63.434949°
Grade200%
Formulaslope = (y₂ − y₁) ÷ (x₂ − x₁); grade (%) = slope × 100; angle = arctan(slope)Coordinates or rise/run must use consistent units. This is a mathematical result, not a structural or code check.

Use the result with the units shown

Slope Calculator: what it calculates

Enter two points or a rise and run. The calculator returns the signed slope, measured rise and run, angle from the horizontal, and grade percentage.

Formula and inputs

Both coordinate axes must use consistent units. A vertical line has an undefined slope because its run is zero; a finite slope can also be expressed as a grade percentage.

Calculation modelm = (y₂ − y₁) ÷ (x₂ − x₁)slope = rise ÷ rungrade (%) = slope × 100angle = arctan(slope)

Worked example: points (1, 2) and (3, 6)

Rise6 − 2 = 4
Run3 − 1 = 2
Slope4 ÷ 2 = 2
Grade2 × 100 = 200%

A positive slope rises as x increases; a negative slope falls. The angle and grade are mathematical descriptions, not construction approvals.

Limits and assumptions

This tool does not verify roof, stair, drainage, road, accessibility, or structural requirements and does not apply a local code.

Slope Calculator FAQs

What does an undefined slope mean?

It means the run is zero, so the line is vertical and division by run is undefined.

How is grade percentage related to slope?

For a finite slope, grade percentage equals slope multiplied by 100. A slope of 0.5 is a 50% grade.

Is slope the same as an angle?

No. Slope is rise divided by run. The calculator derives an angle from the slope when a finite run is available.

Can I use slope to check a ramp or roof?

You can use it as a geometric input, but ramp, roof, and drainage rules include requirements this page does not evaluate.