The volume of fluid in a pipe can be found given the inner diameter of the pipe and the length. To estimate pipe volume, use the following formula: volume = π × d 2 4 × h. Thus, the volume of a pipe is equal to pi times the pipe diameter d squared over 4, times the length of the pipe h.