Mach Number Calculator (Speed & Temperature)

Stephanie Ben-Joseph headshot Stephanie Ben-Joseph

Introduction: Mach number is a ratio, and the denominator moves

This Mach number calculator divides air-relative speed by the local speed of sound. That sounds like a trivial division, and the trap is entirely in the denominator: the speed of sound is not a constant, it depends on the temperature of the air the object is actually moving through, and in the atmosphere that varies by more than 15% between the ground on a warm day and the tropopause. The same true airspeed of 250 m/s is Mach 0.73 at sea level on a mild day and Mach 0.85 at 11 km. Nothing about the aircraft changed.

That is why a Mach calculation based only on temperature in Celsius can be inconvenient. What a pilot or a student usually has is an altitude. This page therefore takes either: type the outside air temperature if you know it, or give an altitude and let the International Standard Atmosphere supply the temperature.

This Mach tool also offers both speed-of-sound models in common use and displays the effect of that choice. The linear approximation is tuned around 0 °C and drifts as you move away from it; the ideal-gas form is the dry-air model used by the calculator at any positive absolute temperature. At the tropopause the two disagree by about 2 m/s, which is 0.7% — small, but the wrong side of small if you are near a critical Mach number.

How to use the Mach number calculator

  1. Enter the speed relative to the air, in whichever unit you have it. Metres per second, kilometres per hour, miles per hour and knots are all accepted and converted internally. Use true airspeed, not ground speed: wind changes the ground speed and not the Mach number.
  2. Give a temperature or an altitude. Temperature mode takes Celsius, Fahrenheit or Kelvin. Altitude mode applies the International Standard Atmosphere lapse rate of 6.5 K per kilometre up to 11 km and the constant −56.5 °C stratospheric temperature above it, and tells you the temperature it derived.
  3. Choose the speed-of-sound model. The ideal-gas form is the default and is the appropriate choice for this calculator's dry-air model. The linear approximation is available for comparison with textbook shortcuts and other calculators.
  4. Read the regime, not just the number. The Mach result names the flow regime and, more usefully, tells you how far you are from the next boundary in both Mach and in your own speed units.

The Mach number formulas, and where they differ

This Mach calculator starts with the definition of Mach number as speed divided by the local speed of sound:

M=va

For the calculator's ideal-gas dry-air model, the speed of sound follows from the adiabatic bulk modulus and depends on absolute temperature rather than on pressure or density independently:

a=γRT γ=1.4 R=287.05 J/(kg·K)

with T in kelvin. The familiar near-surface shortcut used by the linear option is:

a331.3+0.606T (T in °C)

For this calculator's constants, the linear expression is a close near-0 °C approximation to the square-root relationship. It increasingly over-predicts the speed of sound, and therefore under-predicts Mach, as temperatures move away from the range where the shortcut is most accurate.

In this Mach calculator's altitude mode, temperature comes from the International Standard Atmosphere as a piecewise linear profile:

T= { 288.150.0065hh ≤ 11,000 m 216.6511,000 m < h ≤ 20,000 m

Plain-text formula: speedOfSound = sqrt(1.4 * 287.05 * tempKelvin) for the ideal-gas model, or 331.3 + 0.606 * tempCelsius for the linear one; mach = speedMetresPerSecond / speedOfSound; and in altitude mode tempKelvin = altitude <= 11000 ? 288.15 - 0.0065 * altitude : 216.65.

Worked example: 250 m/s at 15 °C, and the same speed at altitude

This Mach number example begins with an aircraft moving at 250 m/s through air at 15 °C:

  1. Ideal gas: a = √(1.4 × 287.05 × 288.15) = 340.29 m/s.
  2. Mach: 250 ÷ 340.29 = M 0.735, comfortably subsonic.
  3. The linear approximation gives a = 331.3 + 0.606 × 15 = 340.39 m/s and M 0.7345 — a difference of 0.0002 in Mach, which is negligible this close to 0 °C.

Now use altitude mode for the same 250 m/s at 11,000 m, a typical airliner cruise altitude. The standard atmosphere puts the temperature at 288.15 − 0.0065 × 11,000 = 216.65 K, or −56.5 °C. The speed of sound falls to 295.07 m/s and the same true airspeed becomes M 0.847 — transonic, in the regime where wave drag rises sharply. The aircraft did not speed up; the air got colder.

Here the Mach calculator's two models genuinely part company. The linear approximation gives 297.06 m/s at −56.5 °C, which is 1.99 m/s or 0.68% too high, and therefore a Mach number of 0.841 instead of 0.847. Six thousandths of a Mach is irrelevant in a classroom and is not irrelevant when the critical Mach number of the wing is 0.85.

Speed of sound in dry air by temperature, both models
Temperature (°C) Ideal gas (m/s) Linear 331.3 + 0.606T (m/s) Error of the linear form
−56.5 (tropopause)295.07297.06+1.99 (+0.68%)
−50299.46301.00+1.54 (+0.51%)
−20318.96319.18+0.22 (+0.07%)
0331.32331.30−0.02 (−0.01%)
15340.29340.39+0.10 (+0.03%)
30349.04349.48+0.44 (+0.13%)

The Mach-model difference is smallest near the temperatures for which the linear approximation is intended and grows in both directions. For weather-range temperatures it often has little practical effect; at high altitude, it can be relevant near a critical Mach number.

How to read the Mach flow regime

The Mach result is also classified into conventional flow-regime labels:

These Mach boundaries are conventions, not physics. Nothing changes discontinuously at exactly M 0.8; the transonic label marks the region where a body moving below the speed of sound can still have supersonic flow somewhere over it, which for a typical wing begins somewhere in the 0.7 to 0.8 range and depends entirely on the shape.

Mach number assumptions and limitations

This Mach calculator assumes dry air only. Humidity raises the speed of sound slightly, because water vapour is lighter than the nitrogen and oxygen it displaces. The effect is a few tenths of a percent at most in ordinary conditions, which is smaller than the difference between the two models offered here.

Temperature is the only atmospheric input. For the calculator's ideal-gas model, speed of sound depends only on temperature, so altitude enters only through temperature. The standard atmosphere is a model rather than a forecast, and a real day can differ from ISA by 15 K at cruise altitude.

Air-relative speed, not ground speed. This Mach calculation is defined against the air the object is moving through. A 100 knot tailwind changes ground speed by 100 knots and Mach number not at all.

Not valid for real-gas hypersonics. Above roughly M 5, temperatures behind shocks become high enough for vibrational excitation, dissociation and ionisation, at which point γ is no longer 1.4 and the ideal-gas speed of sound stops being the right quantity.

Local, not free-stream. The temperature entered is treated as the ambient temperature of the undisturbed air. Air near a surface, behind a shock, or in an exhaust plume is at a very different temperature and a very different local Mach number.

The regime boundaries are labels. They are conventional ranges for describing flow behaviour, not design limits, and the critical Mach number of any particular airframe is a property of that airframe.

Common questions about Mach number

What does Mach 1 mean?

For this Mach calculator, Mach 1 means the entered air-relative speed equals the local speed of sound. Since that speed depends on air temperature, Mach 1 is about 340 metres per second at 15 degrees Celsius near sea level and about 295 metres per second at the standard-atmosphere tropopause temperature of minus 56.5 degrees Celsius.

Why does temperature affect Mach number so much?

This calculator uses a speed of sound proportional to the square root of absolute temperature, then divides air-relative speed by that value. Colder air has a lower speed of sound, so an aircraft at unchanged true airspeed has a higher Mach number at a colder altitude.

Should I use true airspeed or ground speed?

Use true airspeed: speed relative to the surrounding air. Ground speed includes wind, while the Mach number calculated here does not; a tailwind can increase ground speed without changing Mach. Convert indicated airspeed to true airspeed before entering it.

Which speed-of-sound model should I choose?

Choose the ideal-gas model for the calculator's dry-air calculation unless you need to match a source using the linear approximation. The linear form 331.3 + 0.606T is a near-0 °C shortcut and increasingly overestimates the speed of sound away from that range. At the standard tropopause temperature, its difference from the ideal-gas result is about two metres per second.

Can I enter an altitude instead of a temperature?

Yes. In altitude mode, this calculator applies its International Standard Atmosphere temperature profile: 288.15 K at sea level, decreasing by 6.5 kelvin per kilometre to 11 kilometres, then remaining at 216.65 K through 20 kilometres. Check the displayed derived temperature when actual outside-air temperature is available, because real conditions can depart from ISA.

Sources and constants. The ideal-gas speed of sound uses a ratio of specific heats of 1.4 and a specific gas constant for dry air of 287.05 J/(kg·K), giving a = √(γRT) with temperature in kelvin; these are the standard values for dry air treated as a perfect diatomic gas. The linear approximation a = 331.3 + 0.606T with T in degrees Celsius is the conventional near-surface shortcut. The International Standard Atmosphere temperature profile is 288.15 K at sea level with a lapse rate of 6.5 K per kilometre to the tropopause at 11,000 m, then constant at 216.65 K to 20,000 m. Unit conversions are exact: 1 knot = 1,852 m/h, 1 mile = 1,609.344 m. The flow-regime boundaries at Mach 0.8, 1.2 and 5 are descriptive conventions rather than physical thresholds, and the critical Mach number of any particular airframe is a property of that airframe. Humidity, real-gas effects above about Mach 5, and any departure of the actual atmosphere from the standard profile are outside this model.

Inputs

Use true airspeed, not ground speed. Must be at or above zero.

Local outside-air temperature where the object is moving.

Used only in altitude mode. Metres, 0 to 20,000, following the International Standard Atmosphere.

Enter speed and temperature.

Arcade Mini-Game: Mach Number Calculator (Speed & Temperature) Calibration Run

Catch the five facts that make a Mach calculation correct and dodge the four assumptions that quietly break one.

Score: 0 Timer: 30s Best: 0

Start the game, then use your pointer or arrow keys to catch useful inputs and avoid bad assumptions.