Engineering calculator reviewed for preliminary design use · Last updated: March 2026
Calculate Mach number Ma = v/a. Flow is treated as incompressible for Ma < 0.3, but compressibility effects must be considered above that. Use for nozzle design, orifice sizing, and high-velocity gas pipe evaluation.
What this calculator is used for
The Mach number is a critical parameter in gas flow analysis, expressing the ratio of flow velocity
to the local speed of sound. It determines whether compressible flow effects must be considered
in the analysis and design of gas piping systems, nozzles, and relief devices.
Typical engineering use cases
Assessing compressibility effects in gas piping systems
Evaluating high-velocity gas and steam systems for choking conditions
Checking relief valve discharge and vent piping design
Screening for potential sonic or supersonic flow conditions
Validating piping velocity limits in high-pressure gas systems
Governing equation and methodology
The Mach number is defined as:
M = v / a
Where a is the local speed of sound, determined from gas properties and temperature.
For an ideal gas, a = √(γRT/M), where γ is the heat capacity ratio.
Engineering assumptions and limitations
Ideal gas assumption
No shock or choking modeling
Practical design notes
Flows exceeding Mach 0.3 require compressible flow analysis. Choked flow may
occur near Mach 1 and must be evaluated separately.
Worked Example
Given:
Air at T = 300 K (k = 1.4, R = 287 J/(kg·K))
Gas velocity in line v = 100 m/s
Method: Speed of sound a = √(kRT) = √(1.4·287·300) ≈ 347 m/s. Ma = v/a = 100/347.
Result: Ma ≈ 0.29 — just below the 0.3 compressibility threshold.
Interpretation: At Ma 0.29 the flow is borderline: density change is ~4 %, so incompressible Darcy is acceptable but marginal. Any uprate in flow pushes you past Ma 0.3, where you must switch to compressible (isothermal/adiabatic) line equations — so size with headroom below the sonic limit.
Common Mistakes & Misuse
Putting temperature in °C into a = √(kRT/M) — the speed of sound needs absolute kelvin, and °C makes a meaningless.
Using the average pipe velocity when the limiting Mach occurs locally at a restriction (orifice, valve, reducer) where velocity is far higher.
Reusing air's k ≈ 1.4 and M = 29 for a different gas — for steam, CO₂ or hydrocarbons both k and M change a and the threshold velocity.
Treating Ma < 0.3 as a guarantee of negligible compressibility along a long line, where accumulated density change still matters even at low Mach.
Frequently Asked Questions
What Mach number indicates compressible flow?
Ma > 0.3 is the general threshold. Below Ma 0.3, density changes are less than 5% and incompressible flow equations are adequate. Above Ma 0.3, use compressible flow equations for pressure drop and sizing.
How is speed of sound calculated?
For an ideal gas: a = √(kRT/M), where k is the heat capacity ratio, R is the gas constant, T is absolute temperature, and M is molecular weight. Speed of sound increases with temperature and decreases with molecular weight.
For preliminary estimation and educational use only. Results may depend strongly on assumptions, input data, fluid or material properties, and the range of validity of the underlying equation. Verify critical calculations independently and follow the applicable code, specification, and formal engineering review process before using any result for design, procurement, fabrication, operation, or safety decisions.