Every run of pipe holds water, and sometimes that number matters more than the pipe itself - for expansion tanks, flushing, antifreeze charges, or just knowing how much will spill when you cut it. The volume is a cylinder with the bore for its circle.
Pipe Volume Calculator serves up that volume in every unit you are ever asked for, and the weight of the water inside it.