Oblique Shock Calculator - Turn Angle and Downstream Mach

Enter the upstream Mach and wave angle; this oblique shock calculator returns the deflection angle, downstream Mach, and the pressure, density, and stagnation ratios.

Oblique Shock Calculator

Mach number of the supersonic flow upstream of the shock. Must be greater than 1.

Specific heat ratio cp/cv of the gas. Use 1.4 for air at room temperature.

Angle between the shock wave and the upstream flow direction, in degrees. Must lie between the Mach angle and 90 degrees.

Results

Upstream normal Mach (Mₓ)
0
Deflection angle (θ) 0°
Downstream Mach (M₂) 0
Downstream normal Mach (Mᵧ) 0
Static pressure ratio (p₂/p₁) 0
Density ratio (ρ₂/ρ₁) 0
Static temperature ratio (T₂/T₁) 0
Stagnation pressure ratio (p₀₂/p₀₁) 0

What Is an Oblique Shock?

An oblique shock calculator turns a measured upstream Mach number and shock wave angle into the post-shock flow properties across a compression corner. An oblique shock is a compression shock inclined at an angle to the upstream flow, formed when supersonic flow meets a turning surface such as a wedge or compression ramp. It turns the flow by the deflection angle theta and raises static pressure, density, and temperature while reducing stagnation pressure through a small entropy jump.

  • Aerodynamics coursework: Solve textbook and homework problems for compressible flow and gas dynamics without redoing the theta-beta-M algebra.
  • Inlet and diffuser sizing: Estimate the pressure rise and downstream Mach from an inlet ramp on a supersonic engine.
  • Wind-tunnel and CFD checks: Compare measured shock stand-off and turn angles against a quick solver before running CFD.
  • Concept and trade studies: Run parametric sweeps over wave angle and Mach to size wedges, ramps, and supersonic nozzles.

The shock is an abrupt jump in flow properties, thin enough to treat as a discontinuity line where mass, momentum, and energy are conserved but entropy rises.

Because the shock is inclined, only the velocity component normal to the shock sees the discontinuity, which is why the solver reports Mx and My alongside M1 and M2.

An attached oblique shock is the canonical pressure-drag source on a supersonic wedge, so the same wedge area plus the post-shock static pressure feeds directly into the Drag Equation Calculator for the wave-drag contribution.

How the Oblique Shock Calculator Works

The calculator takes three inputs and applies the oblique shock equations in sequence. Each output uses the upstream conditions together with the wave angle beta, the deflection angle theta, and the specific heat ratio gamma.

tan(θ) = 2 cot(β) · (M₁² sin²(β) - 1) / (M₁² (γ + cos 2β) + 2)
  • M₁: Upstream Mach number ahead of the shock, supplied by the user.
  • β (beta): Shock wave angle measured from the upstream flow to the shock line, supplied by the user.
  • γ (gamma): Specific heat ratio cp/cv of the gas, 1.4 for air at room temperature.
  • θ (theta): Deflection angle the flow turns through as it crosses the shock.
  • Mₓ: Normal-component upstream Mach M₁ sin(β), the value used for the normal shock relations.
  • Mᵧ: Normal-component downstream Mach M₂ sin(β - θ).

Once theta is known, the downstream Mach M2 follows from M2n divided by sin(beta - theta), where M2n is the normal-shock downstream Mach evaluated at Mx.

The pressure, density, and temperature ratios use the standard normal shock relations evaluated at Mx, and the stagnation pressure ratio uses the Rayleigh-Pitot product at Mx and gamma.

Worked example: Mach 5 with a 20 degree wave angle in air

M₁ = 5, β = 20°, γ = 1.4.

Mₓ = 5 sin(20°) = 1.7101. Theta-beta-M gives θ = 10.665°. Then p₂/p₁ = 3.245, ρ₂/ρ₁ = 2.214, T₂/T₁ = 1.466, p₀₂/p₀₁ ≈ 0.852.

Deflection angle 10.665°, pressure ratio 3.245, density ratio 2.214, temperature ratio 1.466, stagnation pressure ratio 0.852.

A 10.67 degree wedge raises static pressure 3.2 times upstream and loses about 15 percent of stagnation pressure.

According to NASA Glenn Research Center, Oblique Shocks, an oblique shock is a shock wave inclined to the upstream flow, the deflection angle comes from resolving the flow parallel and perpendicular to the shock, and for any (M1, theta) pair two roots exist where the supersonic "weak shock" branch is the one that forms in nature while the subsonic "strong shock" branch only appears under special conditions.

Stagnation pressure is conserved along a streamline in isentropic flow, so the same idea behind the Bernoulli Equation Calculator explains why the oblique shock stagnation pressure ratio drops in the loss term.

Key Concepts Behind the Oblique Shock

Four ideas do almost all the work in this oblique shock calculator. Once you can name them and point to where each appears in the equations, every shock problem becomes the same template.

Normal-component Mach number

Only the velocity component perpendicular to the shock crosses a discontinuity, so M1 sin(beta) drives the pressure, density, and temperature jumps. The oblique shock reduces to a normal shock for that single component.

Theta-beta-M relation

The single equation that links upstream Mach, wave angle, and deflection angle for a perfect gas. It is the curve every theta-beta-M chart is drawn from.

Weak vs strong solution

For one M1 and theta there are two wave angles that satisfy the theta-beta-M relation. The weak solution has the smaller beta, the smaller entropy rise, and the smaller stagnation pressure loss, and is the branch seen on real attached wedges. The strong solution has the larger beta, a much larger entropy rise, and approaches a normal shock at beta = 90 degrees. Downstream Mach M2 can be supersonic or subsonic on either branch depending on M1 and beta.

Detachment condition

For a given M1 and gamma there is a maximum deflection angle theta_max. Past that, the shock cannot stay attached to the corner and bows into a curved detached shock with a normal shock segment at its leading edge.

These four ideas frame the engineering decisions: weak vs strong picks the right branch, the detachment condition tells you when an attached shock can no longer hold, and the normal-component view links every oblique shock to the simpler normal shock relations.

Mass, momentum, and energy are conserved across the shock plane, so the same conservation law behind the Conservation of Momentum Calculator pins down the post-shock normal Mach and the deflection angle once M1, beta, and gamma are known.

How to Use the Oblique Shock Calculator

The default example loads at Mach 5 with a 20 degree wave angle in air, the same setup as the worked example.

  1. 1 Enter the upstream Mach number M₁: Type the Mach number ahead of the shock; must be greater than 1, usually between 1.2 and 10.
  2. 2 Enter the shock wave angle β: Angle between the shock line and the upstream flow in degrees, larger than arcsin(1/M₁) and smaller than 90.
  3. 3 Set the specific heat ratio γ: Use 1.4 for air, 1.3 for CO2, 1.66 for helium, or 1.667 for monatomic gases like argon.
  4. 4 Read the deflection angle θ: First row of the results, equal to the wedge or ramp angle for an attached shock.
  5. 5 Inspect the Mach numbers and ratios: Remaining rows list Mx, M2, My, p₂/p₁, ρ₂/ρ₁, T₂/T₁, and p₀₂/p₀₁ for sizing.
  6. 6 Reset for the next case: Press Reset to restore the Mach 5, beta 20 default, then change one input at a time to study sensitivity.

An aerospace student sizes a 15 degree compression ramp on the inlet of a supersonic air-breathing engine. With M1 = 4, beta = 27 degrees, gamma = 1.4, the student reads theta about 15 degrees, downstream Mach about 2.93, and pressure ratio about 3.68.

When you need the actual static pressures upstream and downstream of the shock, plug the ratio from this calculator together with p1 from the Gas Laws Calculator so the ideal gas law converts the ratios into engineering units.

Benefits of Using This Oblique Shock Calculator

The calculator collapses the oblique shock table, the normal shock relations, and the theta-beta-M chart into one result panel.

  • Skip the iterative solve: Returns theta from the theta-beta-M relation in one step instead of graphing or iterating the curve.
  • Stay consistent across ratios: Pressure, density, temperature, and stagnation pressure ratios come from the same Mx so the readouts agree.
  • Switch gases without re-deriving: Change gamma between 1.3 and 1.66 to move between air, combustion products, and noble gases.
  • Quick CFD and textbook cross-check: Compare a CFD case, a wind-tunnel schlieren, or a homework answer against a fast solver.
  • Stay inside the valid shock range: The solver flags any wave angle at or below the Mach angle mu = arcsin(1/M1), so you catch an invalid input before reading a wrong deflection angle.
  • Set downstream conditions fast: Pair the density ratio with an upstream density from a separate tool to get the absolute downstream density for sizing.

The calculator is most useful as a first-pass tool for sizing supersonic inlets, ramps, and wedges and as a teaching aid for theta-beta-M homework. For high-fidelity design, pair it with a CFD case or the textbook chart.

To convert the density ratio into an absolute downstream density, multiply the upstream density from the Air Density Calculator by rho2 over rho1 to size ducts, inlets, and engine faces downstream of the shock.

Factors That Affect Oblique Shock Results

The oblique shock relations are exact for a steady, planar, adiabatic shock in a perfect gas with constant gamma. Real flows move a few percent away from that ideal case.

Upstream Mach number

Higher M1 increases theta_max and pushes the Mach angle toward zero; going from M1 = 2 to M1 = 5 more than doubles the deflection angle a given beta can produce.

Specific heat ratio gamma

Lower gamma raises theta_max and gives slightly higher pressure and temperature ratios for the same M1 and beta. Air at 1.4 sits between CO2 at 1.3 and helium at 1.66.

Wave angle beta

Beta trades turn angle against shock strength. Larger beta moves the solution toward the normal shock limit; smaller beta moves it toward the Mach angle where no shock forms.

Boundary layer interaction

A thick incoming boundary layer can weaken the shock or trigger separation that pushes the shock off the corner. The oblique shock relations assume an inviscid free stream.

Real gas effects

Above about Mach 5 in air, vibrational excitation drops gamma below 1.4. The calculator uses constant gamma, so high-enthalpy flows need a separate gamma model.

  • The relations assume a perfect gas with constant cp, cv, and gamma; high-temperature air or dissociated flows need a variable gamma model.
  • The theta-beta-M equation is single-valued for any (M1, beta) pair above the Mach angle, so this calculator takes beta as input and returns theta directly; an inverse solver that takes theta would need to pick between weak and strong roots.

For high-Mach or viscous flows, treat the readouts as a baseline and apply a CFD or real-gas correction.

According to Anderson, Modern Compressible Flow (4th edition), the theta-beta-M relation tan(theta) = 2 cot(beta) (M1^2 sin^2(beta) - 1) / (M1^2 (gamma + cos 2 beta) + 2) ties upstream Mach, shock wave angle, and deflection angle for a perfect gas and is the equation every oblique shock solver, chart, and simulator must satisfy.

According to NACA Report 1135, the oblique shock equations and theta-beta-M chart used to size supersonic inlets, ramps, and wedges were assembled in NACA-1135 in 1951 and remain the canonical reference for the tabulated pressure, density, temperature, and Mach ratios across an oblique shock.

Once the static pressure jump is known, plug the downstream density and viscosity into the Reynolds Number Calculator to check whether the adverse pressure gradient across the shock stays inside the boundary layer or separates it.

Oblique shock calculator diagram showing a supersonic flow entering a wedge at Mach 5 with the input shock wave angle and computed deflection angle labeled
Oblique shock calculator diagram showing a supersonic flow entering a wedge at Mach 5 with the input shock wave angle and computed deflection angle labeled

Frequently Asked Questions

Q: What is an oblique shock wave?

A: An oblique shock is a compression shock inclined at an angle to the upstream flow. It forms when supersonic flow meets a turning surface such as a wedge or compression corner, then turns the flow by the deflection angle theta while raising static pressure, temperature, and density.

Q: What inputs does this oblique shock calculator need?

A: Enter the upstream Mach number M1, the shock wave angle beta in degrees, and the specific heat ratio gamma of the gas. The default gamma is 1.4 for air. The calculator returns the deflection angle, downstream Mach, and the pressure, temperature, density, and stagnation pressure ratios.

Q: How is the deflection angle theta related to Mach and wave angle?

A: The theta-beta-M relation states tan(theta) = 2 cot(beta) (M1^2 sin^2(beta) - 1) divided by M1^2 (gamma + cos 2 beta) + 2. This single equation connects M1, beta, and theta for a perfect gas and is what the calculator solves each time you change an input.

Q: What is the Mach angle and why does beta have to be above it?

A: The Mach angle mu equals arcsin(1/M1) and is the smallest angle a disturbance from a pointed body can make with the flow. A real oblique shock needs M1 sin(beta) greater than 1, so beta must exceed the Mach angle.

Q: What is the difference between the weak and strong oblique shock solutions?

A: For a given M1 and theta the theta-beta-M relation has two wave-angle roots. The weak root has the smaller beta, the smaller entropy rise, and the smaller stagnation pressure loss, and it is the branch that forms on attached wedges in practice. The strong root has the larger beta and the larger entropy rise, and it approaches a normal shock as beta nears 90 degrees. Downstream Mach M2 can be supersonic or subsonic on either root depending on M1 and beta.

Q: When does an oblique shock detach from a wedge?

A: Detachment happens when the required deflection angle equals the maximum theta_max for that M1 and gamma. Beyond that wedge angle the shock can no longer stay attached and bows out into a curved detached shock with a normal shock segment at its leading edge.