Velocity from flow rate and pipe size
Flow velocity equals the volumetric flow rate divided by the cross-sectional area of the pipe. When flow rate is in gallons per minute and pipe diameter is in inches, a unit conversion factor is needed to arrive at velocity in feet per second.
Keeping velocity within recommended ranges prevents pipe erosion, water hammer, and excessive noise. Copper pipe is typically limited to 5 to 8 feet per second, while CPVC and PEX have their own limits specified by the manufacturer.
V = 0.4085 x Q / d^2
V is velocity in feet per second, Q is flow in gallons per minute, and d is the internal pipe diameter in inches.