Normal Shock Relations Calculator
Introduction
A normal shock is one of the most important idealized events in compressible flow. It represents a very thin wave standing perpendicular to the direction of motion, and when a supersonic stream passes through it, the flow slows abruptly to a lower Mach number while pressure, temperature, and density all increase. Engineers use normal shock relations when studying nozzles, diffusers, inlets, wind tunnels, and high-speed ducts because the jump conditions provide a quick way to estimate how much the flow changes once a shock appears.
This calculator is designed for that exact task. Enter the upstream Mach number M₁ and the heat capacity ratio γ, and it computes the downstream Mach number M₂ together with the static pressure ratio p₂/p₁, density ratio ρ₂/ρ₁, temperature ratio T₂/T₁, and stagnation pressure ratio p₀₂/p₀₁. The calculation assumes a calorically perfect gas, so γ is treated as constant across the shock. For air at ordinary high-speed analysis conditions, γ = 1.4 is the common default.
The result is useful because it tells you not only whether the downstream flow is subsonic, but also how severe the shock is. A weak shock, with upstream Mach number only slightly above 1, causes modest property changes. A stronger shock, produced by a larger upstream Mach number, creates a much larger pressure rise and a larger loss in stagnation pressure. That stagnation pressure loss is especially important in propulsion and inlet design because it represents an irreversible loss of useful flow energy.
How to Use
Start by entering the upstream Mach number M₁. This value must be greater than 1 for a normal shock to exist in the form described by these equations. If the incoming flow is sonic or subsonic, the standard normal shock relations do not apply. In practical terms, M₁ tells the calculator how fast the flow is moving relative to the local speed of sound before it crosses the shock.
Next, enter the heat capacity ratio γ. This is the ratio of specific heats, often written as cp/cv. For dry air, a value of 1.4 is usually appropriate in introductory gas dynamics problems. Other gases can have different values, so if you are analyzing helium, combustion products, or another working fluid, use the value that matches your assumptions.
After you click Calculate, the results area reports five quantities. M₂ is the downstream Mach number after the shock. p₂/p₁ is the static pressure increase across the shock. ρ₂/ρ₁ is the density increase. T₂/T₁ is the static temperature increase. Finally, p₀₂/p₀₁ is the stagnation pressure ratio, which is always less than 1 for a real normal shock in this idealized model because entropy increases across the shock.
The calculator is unit-friendly because it works with nondimensional ratios. You do not need to enter pressure, temperature, or density in any specific units. Instead, the equations return ratios, so the interpretation is straightforward: if p₂/p₁ = 4.5, then the downstream static pressure is 4.5 times the upstream static pressure, regardless of whether you measure pressure in pascals, psi, or another consistent unit.
Formula
The normal shock relations used here come from one-dimensional conservation of mass, momentum, and energy for a perfect gas. The upstream state is labeled with subscript 1 and the downstream state with subscript 2. For a given upstream Mach number and heat capacity ratio, the downstream Mach number is found from the standard relation below.
The static pressure ratio is:
The density ratio is:
Once pressure and density ratios are known, the temperature ratio follows directly from the ideal-gas relation:
The calculator also reports the stagnation pressure ratio. Unlike stagnation temperature, which remains constant for an adiabatic shock in a perfect gas, stagnation pressure decreases because the shock is irreversible. That is why p₀₂/p₀₁ is a measure of total-pressure loss.
Example
Suppose air with γ = 1.4 approaches a normal shock at M₁ = 2.0. When you enter those values, the calculator returns a downstream Mach number of about M₂ = 0.577. That means the flow leaves the shock subsonic, which is exactly what normal shock theory predicts for a supersonic upstream state.
The same example gives a pressure ratio of about p₂/p₁ = 4.500, a density ratio of about ρ₂/ρ₁ = 2.667, and a temperature ratio of about T₂/T₁ = 1.687. In plain language, the static pressure becomes 4.5 times larger, the density becomes about 2.67 times larger, and the static temperature rises by nearly 69 percent. The stagnation pressure ratio is less than 1, showing that some total pressure has been lost even though the process is adiabatic.
This example is a good reminder that a shock is not just a speed change. It is a coupled thermodynamic and fluid-dynamic event. The flow slows down, but it also becomes hotter, denser, and much higher in static pressure. If you are sizing a diffuser or estimating inlet losses, those changes matter just as much as the Mach number reduction.
Limitations and Assumptions
This calculator uses the classic normal shock equations for a one-dimensional, steady, adiabatic, calorically perfect gas. That means γ is assumed constant, chemical reactions are ignored, and the shock is assumed to be exactly normal to the flow. These assumptions are standard in textbook gas dynamics and are very useful for preliminary design and learning, but they are still simplifications.
In real systems, shocks may be oblique rather than normal, boundary layers may interact with the shock, and high temperatures may cause γ to vary. In hypersonic applications or flows with strong heating, dissociation and other real-gas effects can become important. Under those conditions, the values from this calculator should be treated as idealized estimates rather than final design data.
Another practical limitation is that the equations only apply when the upstream Mach number is greater than 1. If the entered value is too close to 1, the shock becomes very weak and the property jumps become small. If the value is extremely large, the equations still produce a mathematical answer, but the perfect-gas assumption may become less realistic depending on the fluid and temperature range involved.
Even with those limits, the calculator is a fast and reliable way to understand the basic behavior of normal shocks. It is especially helpful for checking homework, validating hand calculations, and building intuition about how upstream Mach number influences downstream conditions and total-pressure loss.
