Pipe calculators / Gas, air & steam
Define the pipe. Follow the flow.
Pipe Fanno Flow Calculator
Solve subsonic constant-area ideal-gas Fanno outlet Mach and friction-limited sonic length.
Your pipe & operating inputs
Your result
Ready to calculateEnter your values and press Calculate. The result will open on the calculation page.
Published references · Clear assumptions · No sign-up
The method
Formula and calculation steps
F(M)=(1−M²)/(γM²)+(γ+1)/(2γ) ln[(γ+1)M²/(2+(γ−1)M²)]; F(Mout)=F(Min)−fD L/D.
Solve subsonic constant-area ideal-gas Fanno outlet Mach and friction-limited sonic length.
- Confirm the fluid state, geometry, flow regime and units.
- Enter actual dimensions and justified operating conditions.
- Submit the form, then interpret the result with the assumptions and limits below.
Adiabatic perfect gas, no heat exchange, constant Darcy factor. A pipe longer than the critical length is rejected for the specified inlet state; it is not silently capped at Mach 1.
Pipe Fanno Flow: assumptions and applications
Solve subsonic constant-area ideal-gas Fanno outlet Mach and friction-limited sonic length. Adiabatic perfect gas, no heat exchange, constant Darcy factor. A pipe longer than the critical length is rejected for the specified inlet state; it is not silently capped at Mach 1.
Use the actual measured bore rather than assuming a nominal pipe label equals its inside diameter. Schedule, lining, corrosion and deposits can change the effective flow area. Enter the applicable fluid properties at the operating temperature.
A flow rate, velocity, pressure difference and capacity describe different physical quantities. The stated model determines which additional measurements are needed. The calculated examples below vary one input while holding all other printed values fixed.
Continue with: Gas Pipe Flow Calculator · Air Pipe Flow Calculator · Compressed Air Pipe Flow Calculator · Nitrogen Pipe Flow Calculator
Check the numbers
Pipe Fanno Flow Calculator: calculated examples
These scenarios are computed with the same method as the form. They are not product recommendations, code design values or complete standards tables.
Worked example with stated inputs
Dimension units = Metric (m / mm); Actual inside diameter = 50 mm; Straight pipe length = 1 m; Subsonic inlet Mach number = 0.2 ; Specific heat ratio = 1.4 ; Darcy friction factor = 0.02 .
| Output | Computed result |
|---|---|
| Subsonic Fanno outlet Mach | 0.202396 Mach |
| Critical length for specified inlet | 36.333166 m |
| Outlet / inlet static temperature | 0.999809 |
| Outlet / inlet static pressure | 0.988068 |
How the stated input changes the result
| Scenario | Changed input / basis | Result |
|---|---|---|
| 0.5 m | Straight pipe length | 0.201187 Mach |
| 0.75 m | Straight pipe length | 0.201788 Mach |
| 1 m | Straight pipe length | 0.202396 Mach |
| 1.25 m | Straight pipe length | 0.203009 Mach |
| 1.5 m | Straight pipe length | 0.203628 Mach |
| 2 m | Straight pipe length | 0.204883 Mach |
Unchanged inputs use: Dimension units = Metric (m / mm); Actual inside diameter = 50 mm; Straight pipe length = 1 m; Subsonic inlet Mach number = 0.2 ; Specific heat ratio = 1.4 ; Darcy friction factor = 0.02 . Results retain the model limitations described above.
Common questions
Is Fanno flow the same as nozzle choking?
No. Fanno flow has constant area and wall friction with an adiabatic perfect gas. Isentropic nozzle choking uses a different geometry and energy model.
Why can the pipe exceed its calculated sonic length?
For the given inlet Mach, friction and bore, a longer pipe cannot retain that inlet state on this subsonic branch. A real system would need different boundary conditions; the solver reports an error.
How do I use this pipe fanno flow calculator?
Solve subsonic constant-area ideal-gas Fanno outlet Mach and friction-limited sonic length. F(M)=(1−M²)/(γM²)+(γ+1)/(2γ) ln[(γ+1)M²/(2+(γ−1)M²)]; F(Mout)=F(Min)−fD L/D.
Can I calculate in metric and imperial units?
The dimension selector converts the labelled length inputs. Flow and property inputs retain their explicitly printed units. Results include related units where meaningful; US gallons and Imperial gallons are different units.
Can I export this calculation to Excel?
Calculate first, then use Export CSV for results and inputs. This is a numeric text export, not an Excel formula workbook, desktop application or certified engineering report.
What do the starting values mean?
They are editable numerical examples. Actual bore, fluid state, roughness, geometry and boundary conditions must match the installation. A calculated result is not a pressure rating or code sizing approval.
Where are the formula sources?
The sources below show plain-text addresses. Equations, examples and tables are stored in these pages; the calculator does not fetch source websites or JSON data files during use.
Related calculators
Formula sources and references
References support the underlying methods and units. Chosen example inputs are not universal recommendations, supplier ratings, market prices or code limits.
- Penn State, John M. Cimbala: Fluid Mechanics Lesson 15H, Fanno Flowhttps://www.me.psu.edu/cimbala/me320/Lesson_Notes/Fluid_Mechanics_Lesson_15H.pdf
- MathWorks: Fanno Flow Gas Pipe Validationhttps://www.mathworks.com/help/simscape/ug/fanno-flow-gas-pipe-validation.html
- NIST Guide to the SI: conversion factorshttps://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors