The square root of 4 times the flow rate is the equation for pipe diameter. The diameter is the square root of 1000 times 4 divided by 40 or 56 inches.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.