Saved

Press the star next to a tool's name to save it.

All my tools

Oblique Shock Calculator

Use this oblique shock calculator to solve the θ–β–M relation from the Mach number and the wave or deflection angle, with the property ratios and downstream Mach number.

Restored your last values ·

degrees
degrees

Enter the upstream Mach number and either the wave angle or the flow deflection angle. For a deflection angle you can choose the weak or strong solution. You get the angles, the pressure, density and temperature ratios, the downstream Mach number and the stagnation pressure ratio.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you know, fill in the boxes and press Calculate.

See full result

An oblique shock calculator finds the flow properties on both sides of an oblique shock wave, the slanted shock that forms when supersonic flow turns into a wedge or a corner. Enter the upstream Mach number and either the wave angle or the deflection angle, and it returns the ratios, the downstream Mach number and the pressure lost.

How to use the oblique shock calculator

  1. Enter the upstream Mach number M₁, above 1.
  2. Choose whether you know the wave angle β or the deflection angle θ, and enter it in degrees.
  3. For a deflection angle, choose the weak or strong shock.
  4. Leave γ blank for air, or enter another value, and press Calculate.

What an oblique shock is

An oblique shock is a shock wave inclined at an angle to the incoming flow. It forms when supersonic flow is turned by a wedge or a concave corner. The angle β is the wave angle between the shock and the upstream flow, and θ is the angle through which the flow is deflected. Wikipedia explains that the shock relations depend on the component of the flow normal to the shock, M₁ sin β [1].

The θ–β–M relation

The three angles and the Mach number are linked by the θ–β–M equation, tan θ = 2 cot β (M₁² sin²β − 1) ÷ [M₁² (γ + cos 2β) + 2] [1]. Given β, the calculator evaluates it directly. Given θ, it solves the equation for β numerically.

Ratios across the shock

With the normal Mach number M₁ sin β, Wikipedia gives the pressure ratio p₂ ÷ p₁ = 1 + 2γ ÷ (γ + 1) × (M₁² sin²β − 1), the density ratio ρ₂ ÷ ρ₁ = (γ + 1) M₁² sin²β ÷ [(γ − 1) M₁² sin²β + 2] and T₂ ÷ T₁ = (p₂ ÷ p₁)(ρ₁ ÷ ρ₂) [1].

The downstream Mach number

Wikipedia gives M₂ = 1 ÷ sin(β − θ) × √[(χ M₁² sin²β + 1) ÷ (γ M₁² sin²β − χ)], where χ = (γ − 1) ÷ 2 [1]. The square root is the normal Mach number after the shock, and dividing by sin(β − θ) gives the full downstream Mach number.

Stagnation pressure

A shock is not isentropic, so the total pressure drops. Applying the normal shock relation to the normal Mach number M₁ sin β, the stagnation pressure ratio p₀₂ ÷ p₀₁ is the density ratio raised to γ ÷ (γ − 1) times [(γ + 1) ÷ (2γ M₁² sin²β − (γ − 1))] raised to 1 ÷ (γ − 1) [2]. The calculator shows this ratio and the percentage of the total pressure lost, which is a useful measure of the cost of a shock.

Worked example

A worked example is M₁ = 5 and β = 20°, with γ = 1.4. The calculator returns θ = 10.665°, p₂ ÷ p₁ = 3.2452, ρ₂ ÷ ρ₁ = 2.2142 and T₂ ÷ T₁ = 1.4656, with M₂ = 3.9331 and p₀₂ ÷ p₀₁ = 0.8515.

Weak and strong shocks

For a given Mach number and deflection, the θ–β–M equation has two solutions for β: the smaller is the weak shock and the larger the strong shock. The flow behind a weak shock is supersonic and behind a strong shock subsonic, and Wikipedia says the weak shock is almost always seen experimentally [1]. For M₁ = 5 and θ = 10.664°, the calculator finds β = 19.999° (weak) and 87.273° (strong).

Detached shocks

Each Mach number has a maximum deflection angle. Wikipedia explains that if θ is larger than that maximum, the oblique shock can no longer stay attached to the corner and is replaced by a detached bow shock [1]. In deflection mode the calculator reports the maximum deflection for your Mach number alongside the weak and strong solutions, and it returns an error when the deflection you entered is too large.

The specific heat ratio

The calculator uses γ = 1.4, the value for an ideal diatomic gas such as air [1], so a blank γ box means 1.4. You can enter another ratio, such as 1.3 for a hotter gas, but it must be above 1. The model assumes a perfect gas with constant specific heats, so it does not describe the real-gas effects that appear at very high Mach numbers and temperatures.

When to use the calculator

Use it for compressible-flow coursework, for a quick look at the pressure and temperature jump on a wedge, or to see how much stagnation pressure an inlet shock costs. For flow that expands around a corner, use a Prandtl–Meyer expansion tool instead. Always keep in mind that real shapes, boundary layers and shock interactions need computational or experimental checks.

Reading the results

The first line gives both angles and the normal Mach number M₁ sin β, which must be above 1 for a shock to exist. The second line gives the three jumps across the shock, and the third the downstream Mach number and whether it is supersonic. The last line gives the stagnation pressure ratio. A larger wave angle gives a stronger shock, with a bigger pressure jump and a bigger loss of total pressure, so compare the weak and strong solutions to see the size of the penalty.

Checking the normal Mach number

You can check a result by hand from the normal Mach number. Take M₁ = 3 and β = 30° with γ = 1.4. The normal Mach number is M₁ sin β = 3 × 0.5 = 1.5. The pressure ratio is 1 + 2.8 ÷ 2.4 × (2.25 − 1) = 2.4583, and the density ratio is 2.4 × 2.25 ÷ (0.4 × 2.25 + 2) = 1.8621 [1]. The temperature ratio is 2.4583 ÷ 1.8621 = 1.3202. This is our own example. A shock that is weaker, with a smaller normal Mach number, always gives ratios closer to 1, so only the part of the speed across the shock counts.

Common mistakes

  • Using a wave angle below the Mach angle. The angle must exceed arcsin(1 ÷ M₁); the calculator flags it.
  • Mixing up β and θ. β is the shock angle and θ the turning angle of the flow.
  • Assuming the weak shock is the only solution. Strong shocks exist; choose the solution you want.
  • Forgetting that M₁ must exceed 1. Subsonic flow has no oblique shock.

What next

Use this often? Add Oblique Shoc to your Home screen.

Frequently asked questions

What is an oblique shock calculator?

A tool that solves the θ–β–M relation and finds the flow properties either side of an oblique shock wave.

What is the θ–β–M equation?

tan θ = 2 cot β (M₁² sin²β − 1) ÷ [M₁² (γ + cos 2β) + 2].

What is the difference between a weak and a strong shock?

A weak shock has the smaller wave angle and supersonic flow behind it. A strong shock has the larger angle and subsonic flow behind it.

What is a detached shock?

If the deflection exceeds the maximum for the Mach number, the shock leaves the corner and becomes a curved bow shock.

What value of gamma does the calculator use?

1.4, the value for air, unless you enter another.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Unit Converters