Code tool

Pipe Volume Calculator

Calculate the contents of a straight pipe from its internal diameter and length.

In-browser processingNo account requiredPrivacy details ↗

Enter a positive finite internal diameter and length, each no greater than 1,000,000,000.

Results use floating-point arithmetic and display up to four decimal places; rounding does not improve accuracy.

Use the true internal bore, not nominal size. Water mass assumes 1 kg/L. Excludes fittings, valves, other system components and system losses; this is not a system volume, dosing, pressure-loss or installation recommendation.

V(L) = π × (d(mm) / 2)² × L(m) / 1000; kg = V × 1; L/m = V / L

Source: ToolFoundry

Enter values and calculate.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter values in the labelled units.
  2. Calculate and review the result and limitations.

Formula and units

V(L) = π × (d(mm) / 2)² × L(m) / 1000; kg = V × 1; L/m = V / L

Scope and limitations

Use the true internal bore, not nominal size. Water mass assumes 1 kg/L. Excludes fittings, valves, other system components and system losses; this is not a system volume, dosing, pressure-loss or installation recommendation.

Input and precision

Enter a positive finite internal diameter and length, each no greater than 1,000,000,000. Results use floating-point arithmetic and display up to four decimal places; rounding does not improve accuracy.

Source

Independent arithmetic implementation. ToolFoundry source interface reviewed on 6 October 2026.

GOOD TO KNOW

Common questions

Are my values uploaded?

Values stay in this browser; they are not uploaded or stored.