In the case of a non-circular cross-section of a pipe, the same formula can be used to find the entry length with a little modification. A new parameter “hydraulic diameter” relates the flow in non-circular pipe to that of circular pipe flow. This is valid as long as the cross-sectional area shape is not too exaggerated. Hydraulic Diameter is defined as:
where  is the area of cross-section and  is the Perimeter of the wet part of the pipe