Mach Number Calculator Back
Aerodynamics / Compressible Flow

Mach Number Calculator

Set Mach number and heat capacity ratio γ to instantly compute isentropic flow relations and normal shock conditions. Visualizes subsonic through hypersonic regimes with live characteristic curves.

Input Parameters

Supersonic
T/T₀
P/P₀
ρ/ρ₀
A/A*
q/P₀ (dyn. pressure)
V/a₀

Normal Shock (M₁ → M₂)

M₂ (downstream)
P₂/P₁
T₂/T₁
ρ₂/ρ₁
Isentropic
$\frac{T}{T_0}=\left(1+\frac{\gamma-1}{2}M^2\right)^{-1}$
$\frac{P}{P_0}=\left(\frac{T}{T_0}\right)^{\gamma/(\gamma-1)}$
Normal Shock
$M_2^2=\frac{M_1^2+\frac{2}{\gamma-1}}{\frac{2\gamma}{\gamma-1}M_1^2-1}$
Flow Field Visualization
Isentropic Characteristic Curves (M 0.1–5)

What is Mach Number & Shock Waves?

🧑‍🎓
What exactly is the Mach number? I know it's about speed, but why is it such a big deal in aerodynamics?
🎓
Basically, it's the ratio of an object's speed to the speed of sound in the surrounding air, $M = V / a$. The big deal is that when you approach or exceed Mach 1, the physics of airflow changes completely. For instance, in this simulator, slide the Mach number from 0.5 to 1.5 and watch how the temperature and pressure ratios change dramatically—that's the compressibility effect kicking in.
🧑‍🎓
Wait, really? So what's the "heat capacity ratio" (γ) slider for? And what's an "isentropic flow"?
🎓
Great question. The γ (gamma) is a property of the gas, like air. It's about how the gas stores energy. Isentropic means a reversible, adiabatic process—no heat transfer and no friction. It's a great model for smooth flow outside of shocks. Try setting γ to 1.4 (for air) and move the Mach slider. You'll see the isentropic relations predict how temperature and pressure drop as air accelerates in a nozzle.
🧑‍🎓
Okay, so the isentropic part is for smooth flow. But what happens when I push the Mach number above 1? The simulator shows a "Normal Shock" section. What's that?
🎓
That's the fascinating part! A normal shock is an extremely thin, abrupt discontinuity where flow instantly goes from supersonic to subsonic. It's not isentropic—there's a huge entropy increase and a sudden jump in pressure and temperature. For example, on a supersonic jet's wing, you might see a shock. In the simulator, set M₁ above 1 and see how M₂ after the shock is always subsonic, and how pressure and temperature spike instantly.

Physical Model & Key Equations

The core isentropic flow relations describe how thermodynamic properties change for a gas undergoing acceleration or deceleration without shocks or heat transfer. They are derived from conservation laws and the assumption of constant entropy.

$$ \frac{T}{T_0}=\left(1+\frac{\gamma-1}{2}M^2\right)^{-1}\quad \text{and}\quad \frac{P}{P_0}=\left(\frac{T}{T_0}\right)^{\gamma/(\gamma-1)}$$

Here, $T$ and $P$ are static temperature and pressure, $T_0$ and $P_0$ are the stagnation (or total) values where the flow is brought to rest isentropically, $M$ is the Mach number, and $\gamma$ is the heat capacity ratio. These equations show that as $M$ increases, both $T/T_0$ and $P/P_0$ decrease.

The normal shock relations govern the abrupt transition from supersonic to subsonic flow. They are derived from conservation of mass, momentum, and energy across an infinitesimally thin shock wave.

$$ M_2^2=\frac{M_1^2+\frac{2}{\gamma-1}}{\frac{2\gamma}{\gamma-1}M_1^2-1} $$

Here, $M_1$ is the upstream (supersonic) Mach number and $M_2$ is the downstream (subsonic) Mach number. This equation shows that for any $M_1 > 1$, the resulting $M_2$ will be less than 1. Associated equations (not shown here) dictate the large increases in pressure, temperature, and density across the shock.

Real-World Applications

Jet Engine & Turbofan Inlets: The inlet must slow down supersonic cruise air to subsonic speeds for the compressor. This is managed through a series of oblique and normal shocks. Engineers use these exact equations to design inlet ramps and ensure stable, efficient compression without causing "engine unstart."

Supersonic Aircraft Design: Aircraft like the Concorde or modern fighters experience complex shock patterns over their wings and fuselage. Analyzing isentropic flow and shock interactions is critical for predicting drag (wave drag), lift, and aerodynamic heating at high Mach numbers.

Rocket Nozzles & Spacecraft Re-entry: In a rocket's converging-diverging nozzle, flow accelerates isentropically to supersonic speeds. During atmospheric re-entry, a strong bow shock forms in front of the spacecraft, creating a plasma layer. The normal shock relations help model the intense heating and pressure loads on the heat shield.

Wind Tunnel Testing & Calibration: Supersonic wind tunnels use a nozzle to accelerate gas isentropically to the desired test Mach number. Schlieren photography visualizes shocks forming around scale models. The equations are fundamental for interpreting test data and relating model conditions to real flight.

Common Misconceptions and Points to Note

When starting with this tool, there are several points where beginners, especially those new to CAE, often stumble. First is the point that "stagnation properties are not the values at a location where the flow is stopped". $T_0$ and $P_0$ are hypothetical reference values answering the question: "what would happen if we decelerated the flow to a stop adiabatically and isentropically?". For example, while the velocity is indeed zero at the stagnation point on an airplane's nose, the "stagnation pressure" used in locations with flow, such as inside an engine intake, refers to the total pressure measured by a sensor—the flow itself has not actually stopped.

Next is the handling of the specific heat ratio $\gamma$. The tool fixes it at 1.4 for air, but in practice, this can be a major pitfall. In flows involving combustion gases, such as in rocket nozzles or downstream of turbines in jet engines, $\gamma$ can drop to around 1.3 or even 1.2. Using the wrong value here will cause significant errors in calculating temperature or pressure ratios, leading to incorrect performance predictions. Always confirm first: "What fluid am I dealing with?"

Finally, maintain an awareness that "normal shock waves are rare in reality". The normal shock wave you learn with this tool is the simplest model. What actually occurs around a supersonic vehicle is a complex combination of oblique shock waves and expansion waves. Phenomena close to a normal shock are primarily seen in extreme cases, like when a supersonic flow impinges directly on a flat wall. While it's ideal for learning the fundamentals, understanding its limitations is the first step toward practical application.

Related Engineering Fields

The calculation logic of this tool is applied in various advanced fields beyond aerospace. One example is "internal combustion engines". In an automotive engine's supercharger (turbocharger), the flow from the compressor outlet to the intake manifold is subsonic to transonic. The design for pressure recovery here uses isentropic relations as a foundation. In particular, the throttling at the throttle valve can be viewed as a type of nozzle flow.

Another is "safety design in chemical plants". When high-pressure gas discharges into the atmosphere from a ruptured pipe, choked flow (where Mach 1 is reached at the exit) occurs. Accurately estimating the mass flow rate in this situation requires calculating $A/A^*$ (the critical area ratio). This is fundamental to safety engineering, used to determine gas leak rates and establish evacuation zones.

Furthermore, there are applications in the field of "MEMS (Micro-Electro-Mechanical Systems)". For instance, in analytical devices using micro gas channels, it's necessary to determine the limits where continuum compressible flow theory applies, based on the relationship between channel dimensions and the molecular mean free path. Even at low Mach numbers, it serves as a crucial fundamental parameter for understanding phenomena unique to the micro-scale.

For Further Learning

Once you're comfortable with the basics using this tool, we recommend moving to the next step: "a systematic understanding of one-dimensional flow". Specifically, learn about Fanno flow (which adds the effect of "friction" to isentropic flow) and Rayleigh flow (which adds the effect of "heating/cooling"). Together with isentropic flow, these are often called the "three fundamental one-dimensional compressible flows" and are directly relevant to the design of components like jet engine combustors (heating) or long exhaust pipes (friction).

Regarding the mathematical background, most of the relational expressions used in the tool are "derived from the algebra of conservation laws". For your next learning stage, try writing the differential forms of the mass, momentum, and energy conservation equations, then integrating them under simple assumptions (adiabatic, no friction, etc.) to see for yourself how the tool's formulas emerge. Experiencing this process will significantly enhance your ability to adapt—you'll understand which parts need modification when assumptions change (e.g., when specific heat varies with temperature).

Ultimately, the goal is to reframe these one-dimensional models as "parts of a flow field". In CAE simulation (CFD), this knowledge is utilized to set boundary conditions at nozzle inlets/exits or to provide initial estimates for shock wave locations. Once you've honed your parameter intuition with the tool, try running a simple 2D nozzle CFD analysis and explore where the isentropic relations and shock conditions manifest in the results. This is an excellent way to connect theory and practice.