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

Normal Shock (M₁ → M₂)

M₂ (downstream)
P₂/P₁
T₂/T₁
ρ₂/ρ₁
Results
T/T₀
P/P₀
ρ/ρ₀
A/A*
q/P₀ (dyn. pressure)
V/a₀
Flow Field Visualization
Isentropic Characteristic Curves (M 0.1–5)
Theory & Key Formulas

$\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}$

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 \gt 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.

Frequently Asked Questions

The static temperature is the actual temperature of the flowing gas. The stagnation temperature is the temperature of a hypothetical state where the flow is adiabatically decelerated to zero velocity, representing the total energy (enthalpy) of the flow. The higher the Mach number, the greater the difference between the two.
In a normal shock wave, the supersonic flow is rapidly compressed and changes to subsonic flow. At this time, kinetic energy is converted into thermal energy, causing the Mach number to decrease after passing through the shock wave, while pressure, temperature, and density rise sharply. The smaller the specific heat ratio γ, the greater the change.
In the hypersonic regime, the specific heat ratio γ of air changes due to temperature rise, so the assumption of constant γ in this tool provides approximate values. Additionally, real gas effects (such as molecular dissociation) are not considered. Please use it as a reference.
These calculation results are applicable only when the flow inside the nozzle is ideal, with no friction or heat loss. In actual design, it is necessary to consider boundary layers and shock wave interactions, so please use this tool for initial studies or upper-limit performance evaluations.

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.

How to Use

  1. Set Mach number (M) using the slider range 0.1 to 5.0, representing flow regimes from subsonic through hypersonic
  2. Adjust gamma (γ), the heat capacity ratio, typically 1.40 for air at standard conditions or 1.67 for monoatomic gases like helium
  3. Read isentropic flow properties including stagnation temperature ratio, pressure ratio, and density ratio; normal shock relations auto-compute downstream conditions

Worked Example

Air flow at M=2.5 with γ=1.40 produces a stagnation pressure ratio of 0.0585 (downstream to upstream) across a normal shock, reducing dynamic pressure by ~94%. Simultaneously, static temperature jumps from 216 K at M=2.5 to 690 K post-shock. For a supersonic inlet operating at 35 kPa static pressure upstream, the shock raises it to 598 kPa, critical for combustor design margins in scramjet engines.

Practical Notes

  1. Normal shock tables assume perfect gas behavior; effects become nonlinear above M=4.0 due to vibrational excitation in real gases—use calorically perfect approximations only to M≈3.5 for engineering accuracy
  2. Gamma varies with temperature: use γ=1.40 for cold air flows below Mach 3, γ=1.30 for high-temperature scramjet vitiation (1500+ K)
  3. Isentropic relations require adiabatic, frictionless flow; real boundary layers and shock-boundary interactions reduce effectiveness factors by 5–15% in practice