What is the formula for figuring out how many gallons of water are in a pipe by the foot? Posted on April 16, 2024April 16, 2024 by engineerLeave a comment 0.61 * d2, where d is the diameter of the pipe in inches.