Pipe Volume Calculator

Internal volume of a cylindrical pipe from ID and length.

Calculator

No signup required. Results are indicative—verify for your standards.

Volume: 0.3927 m³ · 392.7 L · 103.7 US gal

Formula

For a circular pipe, internal volume V = π × (ID/2)² × L, where ID is inner diameter and L is length. Use consistent units (e.g. metres for SI).

Example calculation

Pipe with ID 100 mm and length 50 m: radius = 0.05 m, V = π × 0.05² × 50 ≈ 0.393 m³ (≈ 393 L).

Engineering notes

Use inner diameter, not nominal pipe size (NPS). For thick-walled pipe, account for wall thickness. For partially filled lines, use segment formulas.

When to use this calculator

  • Hydrostatic test planning — calculate water fill volume before pressure testing a pipeline
  • Chemical dosing — determine residence time and chemical inventory in a process line
  • Flushing and commissioning — estimate flushing volumes and flush cycle durations
  • Insulation and heating — calculate fluid inventory to size heat tracing or steam jacketing
  • Material take-off — confirm total pipe volumes for process simulation or DCS tuning

Frequently asked questions

Should I use inner diameter (ID) or nominal pipe size (NPS)?
Always use the actual inner diameter, not the nominal pipe size. NPS is a nominal designation — a 4-inch NPS pipe does not have a 4-inch bore. The actual ID depends on the schedule (wall thickness). For example, 4" NPS Schedule 40 has an OD of 114.3 mm and an ID of 102.3 mm. Check the pipe datasheet or ASME B36.10 for actual dimensions.
How do I convert pipe volume from m³ to litres or gallons?
1 m³ = 1,000 litres. 1 m³ = 264.17 US gallons. Simply multiply the result in m³ by 1000 to get litres, or by 264.17 for US gallons. This calculator shows the conversion automatically.
What if I need the volume of an annular (double-wall) pipe?
For jacketed or double-wall pipe, calculate the volume of the outer pipe bore using its ID, then subtract the volume of the inner pipe using its OD. The difference is the annular volume (the jacket space). Run the calculator twice with the respective diameters and subtract the results.
How is pipe volume used in hydrostatic testing?
Before hydrostatic testing, the pipeline must be fully filled with water. The pipe volume calculator gives the total water volume needed. Add 5–10% for headers, instruments, and vents. This helps you size the test pump, estimate fill time, and arrange for water disposal or recycling after the test.