The Gas Line Sizer app was created for a single purpose, to use basic information such as inlet pressure, outlet pressure and gas load to calculate the internal diameter needed. It uses the Low Pressure and High Pressure Equations provided by the International Association of Plumbing and Mechanical Officials to solve for diameter.
This tool is meant to provide insight into what size gas line will need to be installed to serve a particular load.