Skip to content

Pipe calculator

Add up a pipe run from its straight lengths, count the pipes and couplings to buy, and find the volume of water inside and the average slope.

Units

Straight lengths between bends, separated by semicolons, e.g. 4; 2.5; 6.

Inside, not outside: walls make the bore smaller than the nominal size.

Between the start and the end of the run, for the slope.

Result

—

    How the calculation works

    • Total length = sum of the straight lengths; volume = π × D² ÷ 4 × length, with D the inner diameter.
    • Slope = height difference ÷ total length × 100%.
    • Pipes: each length is cut from whole pipes, offcuts are reused for shorter lengths, and a coupling joins pipes within a length longer than one pipe.

    Example

    A 10 m run with an inner diameter of 0.1 m holds 0.07854 m³ — 78.54 litres of water. With 3 m pipes it takes 4 pipes and 3 couplings.

    Lengths of 2, 1, 2 and 1 m fit into 2 pipes. A 10 m run that falls 0.2 m has a slope of 2%.

    Frequently asked questions

    How do I calculate the volume of a pipe?

    Volume = π × inner diameter² ÷ 4 × length. Use the inner diameter: a pipe's nominal or outside size is larger than its bore.

    How is slope calculated?

    Slope in % = height difference ÷ length × 100. A drop of 2 cm over 1 m is a 2% slope. Required slopes for drains are set by local rules and the pipe manufacturer.

    Does the calculator size pipes for flow?

    No. Sizing for flow and pressure needs the flow rate, pipe roughness and fittings. The calculator covers geometry: lengths, volume and slope.

    Checked November 23, 2026 · Method 1.0.0

    Found an error? Tell us

    Please do not include personal or financial details.

    Embed this calculator on your site

    Free to use: paste the code into your page. The calculator runs on your site in a frame; keep the link to the source under it.

    Preview the widget