A pipe is a compromise written in millimetres: too thin and the fixtures run dry at the far end; too fat and you pay for copper or plastic that does nothing but fill. The right size juggles flow, pressure, velocity and the fixture demand.
Pipe Size Calculator turns a flow rate - or a total fixture-unit count - into a required internal diameter, then suggests the nominal pipe size for your material at a chosen velocity, complete with a friction-loss check.
It is a planning aid for residential, commercial and supply piping. Final sizing follows local code.