Oblique Shock Calculator

Reference worksheet reminding you to verify Mach number, angle units, branch choice, formulas, and assumptions before relying on an oblique-shock estimate
Use this worksheet-style reminder to double-check Mach number, deflection angle units, solution branch, and gas assumptions before relying on an oblique-shock estimate.

Plain-text formula: tan(theta) = 2 * cot(beta) * (Mach^2 * sin(beta)^2 - 1) / (Mach^2 * (gamma + cos(2 * beta)) + 2); angles are entered and displayed in degrees.

Introduction to attached oblique shocks and this theta-beta-Mach calculator

This oblique shock calculator is built for the classic compressible-flow case in which a supersonic stream meets a wedge or compression corner and forms an attached shock. Instead of turning smoothly, the flow generates a thin discontinuity that leaves the corner at an angle β. Across that shock, the flow turns by the deflection angle θ, the Mach number drops, and the static pressure, density, and temperature all rise. Unlike a normal shock, an oblique shock does not eliminate the velocity component parallel to the shock, so the downstream flow can remain supersonic after a modest turn.

This page focuses on the engineering case that appears most often in textbooks, quick design checks, and inlet-precompression studies: an attached oblique shock in a perfect gas. You enter the upstream Mach number, the wall-turn angle, the heat capacity ratio, and the weak or strong branch. The calculator then solves for shock angle, downstream Mach number, and the usual property ratios in one place. If your chosen turn is too aggressive for the given upstream conditions, the page also reports that no attached solution exists and estimates the largest attached deflection the model supports.

That combination of geometry and thermodynamics is what makes oblique-shock calculations so useful. Supersonic inlets, missile forebodies, test wedges, and compression ramps all depend on predictable flow turning. In early design work, you often need a fast answer to two linked questions: what shock geometry will appear, and how severe will the compression be after the turn? A compact solver like this one is helpful because it moves directly from the wedge angle you can draw to the state change you can interpret physically.

The calculator is also a practical study tool. By changing one variable at a time, you can see how the same flow turn behaves very differently at Mach 1.8, Mach 3, or Mach 5, and how the weak and strong branches separate as the normal component of the incoming velocity increases. That pattern matters because real design choices are often less about isolated numbers and more about trends: shallower shocks usually mean gentler compression, while larger normal Mach numbers mean stronger losses and a bigger chance of pushing the flow toward subsonic conditions.

How to Use the oblique shock calculator for M₁, θ, γ, and branch selection

To use the oblique shock calculator well, think of the three numeric inputs as a description of the incoming flow and the wall turn you are asking the gas to follow. Start with the upstream Mach number M1. Because attached oblique shocks are a supersonic phenomenon, this value must be greater than 1. Next enter the deflection angle θ in degrees. This is the amount by which the wedge face or compression corner turns the stream. Finally, enter the heat capacity ratio γ. For dry air in many standard high-speed-aerodynamics problems, γ=1.4 is the usual starting point.

The branch selector tells the solver which attached root of the theta-beta-Mach relation to return. The weak solution uses the smaller shock angle and is the branch most commonly observed in external aerodynamic flows because it usually preserves a larger downstream Mach number. The strong solution uses a steeper shock angle and often drives the downstream flow subsonic. Both branches satisfy the turning requirement when an attached solution exists, so comparing them is a useful way to see how much the shock geometry alone changes the downstream state.

After you click Compute Shock, the results area reports the shock angle β, the upstream normal Mach number, the downstream Mach number, and the pressure, density, and temperature ratios across the shock. If the page reports that no attached solution exists, that does not mean the flow turn is impossible in reality. It means the simple attached-wedge model has reached its limit. Beyond that limit, the shock detaches from the corner and stands off from the body, so a detached-shock picture is needed instead of the attached theta-beta-Mach relation.

A simple reading habit makes the output easier to interpret. First, look at β and decide whether the shock is relatively shallow or close to normal. Second, inspect M2 to see whether the downstream flow stays supersonic. Third, inspect the property ratios to judge how aggressive the compression is. Those three checks usually tell you whether a proposed wedge angle is mild, efficient, and comfortably attached, or whether it is moving into a regime where losses rise rapidly.

One more practical note is worth keeping in mind while using the form. The page accepts angles in degrees because that is how engineers usually describe wedge and ramp geometry, but the script converts them internally to radians for the trigonometric calculations. As a result, the most common user mistake is not a unit mismatch in the code; it is entering a physically unrealistic deflection angle for a given Mach number. If you see the detachment warning, the model is helping you by showing that the chosen corner is too sharp for an attached solution under the stated conditions.

Formula for the theta-beta-Mach relation and downstream property ratios

The oblique shock calculator is driven by the theta-beta-Mach relation, the standard perfect-gas equation that ties flow turn, shock geometry, Mach number, and heat capacity ratio together. For a perfect gas, upstream Mach number M1, wedge angle θ, shock angle β, and heat capacity ratio γ are linked by the implicit relation below:

tan θ = 2 cot β ( M 1 2 sin 2 β - 1 ) M 1 2 sin 2 β ( γ + cos 2 β ) + 2

That equation is implicit in β, so there is usually no neat closed-form solution to write down and plug through by hand. Instead, the script searches numerically between the Mach angle and ninety degrees, then returns the root associated with the requested branch. This matters because the same upstream state and flow turn can admit two attached shock angles: a weak branch with smaller β and a strong branch with larger β. In ordinary external flows, the weak branch is usually the one the gas actually selects.

Once the shock angle is known, the remaining calculations become easier because an oblique shock can be treated as a normal shock acting only on the velocity component perpendicular to the shock. The upstream normal Mach number is Mn1=M1sinβ. That quantity controls the compression strength. A larger normal component means a stronger pressure rise and a bigger drop in downstream Mach number, which is why two cases with the same upstream Mach number can behave very differently if they use very different shock angles.

Applying the normal-shock relations to that normal component gives the downstream normal Mach number:

Mn₂² = [1 + ((γ - 1) / 2)Mn₁²] / [γMn₁² - ((γ - 1) / 2)]

The downstream Mach number is then M2=Mn2/sin(β-θ). Static pressure, density, and temperature follow from the normal-shock formulas using Mn1. For example, the pressure ratio across the shock is

p 2 p 1 = 1 + 2 γ γ + 1 ( M n1 2 - 1 )

The physical picture is more important than the algebra alone. If the shock angle increases, the normal component of the incoming velocity increases, so the shock behaves more like a normal shock. Pressure rises faster, temperature rises faster, and the downstream Mach number falls more aggressively. That is why the strong branch is so punishing compared with the weak branch, and why small increases in wedge angle can produce large changes in flow behavior when the solution approaches the maximum attached deflection.

The calculator also estimates that maximum attached deflection for the selected upstream Mach number and gas. That number is useful because it marks the edge of what the attached relation can handle. Near the maximum, the weak and strong branches converge and the valid shock-angle window narrows. In other words, the formulas are not only producing a result; they are also telling you how much geometric margin remains before the attached-shock model breaks down.

Reading the oblique shock outputs like an engineer

The result panel on this oblique shock calculator is easiest to understand if you treat each output as one part of a physical story rather than as a disconnected list of numbers. The shock angle β describes how steeply the wave stands ahead of the corner. The normal Mach number Mn1 tells you how much of the incoming kinetic energy is aimed into the shock. The downstream Mach number M2 tells you whether the flow still has strong supersonic character after turning. The property ratios then show how large the compression really is in static terms.

For quick engineering judgment, the pressure ratio p2p1 is often the first number people notice, because it gives an immediate sense of how forcefully the flow has been compressed. The density ratio and temperature ratio add context. If the pressure ratio jumps but density rises only moderately, the temperature ratio must account for the rest. That matters in inlet work and heating estimates, where static temperature changes affect both material limits and downstream component performance.

The estimated maximum attached deflection is also worth reading every time, even when a solution exists. Suppose the page returns a clean weak-shock answer for your chosen angle. If that angle is still very close to the maximum attached value, the design may be sensitive to small variations in Mach number, gas properties, wall tolerance, or boundary-layer effects that the ideal model does not include. A design that sits comfortably below the maximum attached deflection usually has more practical margin than one that merely produces an attached mathematical solution.

Finally, remember that all displayed ratios are dimensionless and that the page reports angles in degrees for convenience. You do not need to supply pressure units, temperature units, or length scales because the attached oblique-shock relations depend on geometry and nondimensional flow state rather than on an absolute size. That makes the calculator especially good for preliminary comparisons: the same formula can describe a laboratory wedge, an inlet ramp, or a vehicle forebody as long as the local flow can be approximated by the same idealized assumptions.

Worked Example: M₁ = 3 flow turning 10° in air

A concrete oblique shock example shows how the calculator outputs fit together more clearly than the general formulas alone. Consider an upstream Mach number M1=3 turning through θ=10° in air with γ=1.4. If you choose the weak branch, the calculator finds a shock angle near 27.4°. That is larger than the wedge angle because the shock has to stand ahead of the corner and create a nonzero normal velocity component before the flow can be turned through the required deflection.

From that shock angle, the upstream normal Mach number comes out to about 1.38. That is the quantity that actually controls the strength of the shock. Passing it through the normal-shock relations gives a downstream Mach number of roughly 2.50, a pressure ratio p₂/p₁ ≈ 2.05, a density ratio ρ₂/ρ₁ ≈ 1.66, and a temperature ratio T₂/T₁ ≈ 1.24. The important physical reading is that the flow has compressed noticeably but remains comfortably supersonic after the turn.

If you repeat the same case on the strong branch, the shock angle moves much closer to ninety degrees and the compression becomes far harsher. That side-by-side comparison is exactly why the branch selector is useful. It shows that the branch choice is not a minor detail; it changes how much of the incoming velocity acts normally to the shock, which in turn changes the downstream Mach number and the size of the property jumps. In external aerodynamic practice, the weak branch is usually preferred because it delivers the required turn with lower losses.

Approximate weak-branch trends for air with M1=3 and γ=1.4
θ (deg) β (deg) M₂ p₂/p₁ T₂/T₁
5 23.1 2.75 1.45 1.11
10 27.4 2.50 2.05 1.24
15 32.2 2.25 2.82 1.39
20 37.8 1.99 3.77 1.56

The trend in the table is the part worth remembering. As the deflection angle increases, the shock angle rises, the normal component of Mach number rises, the pressure jump becomes stronger, and the downstream Mach number falls. This is why designers often prefer several milder compression turns rather than one very aggressive one. The calculator makes that tradeoff easy to explore quickly, case by case, without losing sight of the underlying flow physics.

Limitations and Assumptions of the attached oblique shock model

This oblique shock calculator intentionally solves an idealized attached-shock problem, so its assumptions should be read as part of the answer rather than as fine print. The model assumes a perfect gas with constant γ. That is a very useful approximation for many classroom, laboratory, and preliminary-design problems, but it is not exact for high-enthalpy flows, strong real-gas effects, chemical reactions, dissociation, or cases where specific heats change substantially with temperature. In hypersonic or very high-temperature applications, treat the result as a first estimate rather than as a final design value.

The page also assumes a two-dimensional attached oblique shock. It does not include detached bow shocks, three-dimensional conical shocks, wall curvature, viscous effects, boundary-layer interaction, shock-induced separation, or unsteady motion. Real hardware can depart from the ideal model surprisingly fast, especially near the detachment limit or inside supersonic inlets where multiple shocks and boundary layers interact. When the calculator reports that no attached solution exists, it is telling you that the simple wedge picture has broken down, not that the real flow has somehow stopped obeying physics.

Another practical limitation is that the tool reports static property ratios across the shock, not a full accounting of every quantity an inlet or vehicle designer might want. Total-pressure losses, downstream area matching, multi-ramp interactions, and recovery efficiency often matter just as much as the static changes shown here. Those questions call for a broader compressible-flow analysis or a more detailed inlet model. Even so, attached oblique-shock calculations remain one of the most transparent first checks you can perform because they tie the shape you choose directly to the compression you should expect.

In short, this page is best used as a fast, transparent first-pass solver for attached-shock behavior and as a way to build intuition about the relationship between wedge angle, shock angle, and downstream state. It is excellent for comparison, screening, and education. It is not a substitute for a full aerodynamic design workflow when geometry, viscous losses, tolerances, or high-temperature gas effects become important.

Engineering applications of attached oblique shocks

Attached oblique shocks are central to supersonic inlet design because staged compression is usually gentler than allowing a single normal shock to do all the slowing. One ramp can increase static pressure while preserving much of the flow's supersonic character, and several ramps can build that effect in sequence before the air reaches a compressor or diffuser. This calculator is therefore useful whenever you want a first-pass estimate of how much one wedge, ramp, or corner contributes to an overall compression system.

External aerodynamics provides another common application. Fins, forebodies, sharp leading edges, and test wedges in wind tunnels all generate oblique shocks when the local flow is supersonic. In ducts and nozzles, internal oblique shocks can also appear when geometry or back-pressure conditions force the flow to compress. In each setting, a reliable estimate of shock angle and downstream Mach number helps you think about pressure loading, drag trends, heating, and whether the geometry is gentle enough to remain attached under the expected operating conditions.

Sharing your oblique shock results

The copy feature on this oblique shock calculator is designed for quick comparison and documentation. After you evaluate a case, use the Copy Result button to place the main outputs on your clipboard. That is convenient when you want to compare several wedge angles, paste values into notes, or send a quick design check to a teammate. Because everything runs in your browser, the page also works well as a lightweight study tool: change one variable at a time, compare weak and strong branches, and watch how the maximum attached deflection shifts with Mach number and gas properties.

Enter attached oblique shock inputs

Enter the upstream Mach number, the flow deflection angle in degrees, and the heat capacity ratio γ. Then choose the weak or strong solution branch and compute the attached oblique-shock properties. Angles are displayed in degrees even though the script converts them internally to radians for the trigonometric calculations.

Oblique shock results

Enter M₁, θ, and γ to evaluate the shock.

Status messages appear here after you compute or copy a result.

Shock Angle Tuner Mini-Game

This oblique shock mini-game turns the same theta-beta-Mach logic into a short reaction-and-tuning challenge. Each incoming pulse represents a new supersonic flow case. Your job is to rotate the shock angle β quickly enough that the pulse turns cleanly through the requested wedge angle before it reaches the corner. The rule is the same as in the calculator: weak-shock rounds use the smaller shock angle, strong-shock rounds use the steeper one, and cases near detachment leave very little margin for error.

The game does not change the calculator math, but it gives you a fast visual feel for why oblique shocks can be forgiving or unforgiving depending on the geometry. When the pulse attaches, you score points and build a streak. When your chosen β is too far from the physically correct answer, the flow detaches and you lose integrity. Best score is saved on this device so you can come back and try to beat your previous run.

Score0
Time75.0
Streak0
Integrity❤❤❤
Wave0
Best0
β selected0.0°
Progress0%

Shock Angle Tuner

Tune β so each incoming supersonic pulse stays attached to the wedge. Drag on the canvas, tap near the shock, or use the left and right arrow keys to rotate the shock before the pulse reaches the corner.

Runs last about 75 seconds. Accurate weak-shock matches build streaks, strong-shock missions pay bonus points, and near-detachment cases tighten the tolerance dramatically.

Mission: Press start to begin. The game uses the same attached oblique-shock solver as the calculator on this page.

Tip: the weak branch uses the smaller β, while the strong branch drives β closer to ninety degrees and usually produces a harsher compression.

Embed this calculator

Copy and paste the HTML below to add the Oblique Shock Calculator | Theta-Beta-Mach Relations, M₂, and Property Ratios to your website.