The nominal size is a name, not a measurement. The calculator uses the real inside diameter of Schedule 40 steel or PVC.
Measure the hole inside the pipe, not the outside.
Leave it at 1 for a single run. Use more for identical parallel pipes.
Water is 1. Only the weight changes with the liquid, not the volume.
Volume in the pipe
64.9 L
17.16 US gal
One length of 30 m pipe, 2 in Schedule 40, holds 64.9 L (17.2 US gal) and the liquid weighs about 64.8 kg.
Pipe Volume Calculator by Ivorytool, free tools that run in your browser.