Sonic (Critical) Velocity & Choked Flow
Sonic velocity, critical pressure ratio and choked mass flux for a gas, plus a Mach-number check.
Overview
What it calculates
This calculator returns the speed of sound in a gas, Vs = sqrt(k Z R T / MW), and the critical pressure ratio (2/(k+1))^(k/(k-1)) below which flow through a restriction chokes. It then evaluates the choked mass flux at throat conditions and the choked mass flow through a round opening of the diameter you enter. Enter a line velocity and it also reports the Mach number.
When to use it
Use it to check whether a restriction, blowdown path or let-down is running at critical flow, to find the upper limit on flow through an opening, or to see how close a high-velocity gas line is to sonic. For relief valve sizing, which needs discharge coefficients and code methods, use PSV Sizing, Vapor/Gas (Critical & Subcritical).
Inputs that matter most
Sonic velocity depends on temperature and molecular weight, rising with sqrt(T/MW). Pressure enters only through Z. The worked example, 0.65 SG gas at 100°F (38°C) and 1,000 psia (6.9 MPa) with k = 1.27 and Z = 0.86, gives about 1,270 ft/s (387 m/s) and a critical ratio of 0.551. Choked mass flux, unlike sonic velocity, is directly proportional to upstream absolute pressure, so doubling P1 doubles the choked flow. The ratio of specific heats sets the critical ratio. Ideal Gas Heat Capacity & Specific Heat Ratio gives an ideal-gas k, which is a starting point.
Reading the results
If the downstream pressure is below P1 times the critical ratio, the flow through the restriction is choked, and lowering downstream pressure further adds no flow. The choked flow output assumes the full area of the entered diameter acts as an ideal nozzle with P1 and T1 as stagnation conditions. Real orifices, valves and relief devices pass less. A warning appears when the checked velocity exceeds Mach 0.6, which is already high for a steady process line.
Limits and common mistakes
The relations are ideal-gas isentropic, with one Z applied at both inlet and throat. Enter k and Z for the actual gas state. The page does not model friction-limited choking at the end of a long pipe run. Use absolute pressure throughout.
Equations
Source: Standard Gas Processing Engineering Practice
| Symbol | Meaning | Units (US / SI) |
|---|---|---|
| Sonic velocity | ft/s / m/s | |
| Ratio of specific heats | - | |
| Compressibility factor | - | |
| Temperature | °F / °C | |
| Molecular weight | lb/lbmol / kg/kmol |
Source: Standard Gas Processing Engineering Practice
| Symbol | Meaning | Units (US / SI) |
|---|---|---|
| Critical pressure ratio | - | |
| Ratio of specific heats | - |
Inputs
| Input | Symbol | Default | Typical range or options |
|---|---|---|---|
| Gas specific gravity | 0.65 | ||
| Ratio of specific heats (k) | 1.27 | ||
| Pressure | 1,000 psia (6,895 kPaa) | ||
| Temperature | 100 °F (37.78 °C) | ||
| Z-factor basis | Enter directly | Enter directly Compute (Dranchuk-Abou-Kassem) | |
| Z | 0.86 | ||
| Line diameter | 4.026 in (102.3 mm) | ||
| Actual line velocity to check | 0 ft/s (0 m/s) |
Outputs
- Sonic velocity ()
- Critical pressure ratio Pc/P1 ()
- Choked mass flux ()
- Choked mass flow through the given diameter
- Mach number at the checked velocity
Assumptions and limitations
Assumptions
- Choked mass flux is evaluated at throat (critical) conditions: Tc = T1·2/(k+1), Pc = P1·(Pc/P1).
Limitations
- Ideal-gas isentropic relations; real-gas deviations beyond the entered Z are not modeled.
Worked example
0.65 SG gas at 100°F, 1000 psia, k=1.27, Z=0.86
Inputs
| Gas specific gravity | 0.65 |
|---|---|
| Ratio of specific heats (k) | 1.27 |
| Pressure | 1,000 psia (6,895 kPaa) |
| Temperature | 100 °F (37.78 °C) |
| Z-factor basis | Enter directly |
| Z | 0.86 |
| Line diameter | 4.026 in (102.3 mm) |
| Actual line velocity to check | 0 ft/s (0 m/s) |
Expected results
| Sonic velocity | 1,271 ft/s (387.3 m/s) |
|---|---|
| Critical pressure ratio Pc/P1 | 0.5512 |
The prompt’s stated check value (Vs ≈ 1390 ft/s) is ~9% above the formula-consistent value (≈ 1270.6 ft/s) for these inputs. Independently cross-checked: the same sonicVelocityGas formula reproduces the well-known reference speed of sound in methane at STP (≈430 m/s) to within 0.2%.
The calculator's test suite checks that the solver reproduces these results.
References
- Standard Gas Processing Engineering Practice
Guides that use this calculator
Fluid failures
- Choked Sonic Flow: Gas chokes below P2/P1 of about 0.53 (US and SI units).
Distress signals
- Separator Blowby: Size downstream relief for full gas blowby (US and SI units).
- Compressor Stonewall: Sound runs about 1,370 ft/s in MW 18 gas at 100°F (US units). Sound runs about 416 m/s in MW 18 gas at 38°C (SI units).
Page last updated 2026-10-28.