Code tool

Pipe Slope Calculator

Convert signed elevation change and horizontal run or inclined length into slope percent, rise:run ratio and angle; also solve elevation or horizontal run from slope.

In-browser processingNo account requiredPrivacy details ↗

Positive elevation is rise; negative is fall. Geometry only: no installation, legal compliance, flow capacity or minimum slope recommendation. Inputs stay in this browser.

A QUICK WALKTHROUGH

How to use this tool

  1. Choose geometry, percent, ratio, angle or inverse horizontal run.
  2. Enter signed elevation or slope and choose whether distance is horizontal run or inclined length. Each length has its own unit.
  3. Calculate and copy or download all raw inputs, unit conversions, formulas and precision labels.

Model

p = 100 × rise / horizontal run; angle = atan2(rise, run); length² = run² + rise². Inverse run = 100 × rise / p.

Distance basis

Positive elevation is rise; negative is fall. Geometry only: no installation, legal compliance, flow capacity or minimum slope recommendation. Inputs stay in this browser.

Full precision report

All calculations and UTF-8 text exports happen locally.

GOOD TO KNOW

Common questions

What happens at zero run or zero slope?

A nonzero elevation with zero run is vertical and has a signed ±90° angle, with undefined percent. Zero elevation and zero run is indeterminate. In inverse mode, zero slope and zero elevation allow any nonnegative run; zero slope with nonzero elevation has no solution.