Capt. Vela
Mach Number Calculator

Mach Number

Field: Aerospace

Written and maintained by the PhDino author · Last reviewed 21 September 2026 · Checked against 2 independent reference calculations · how PhDino checks its numbers

How fast something is moving relative to the local speed of sound, which itself depends on air temperature.

Mach number describes speed as a ratio to the local speed of sound, rather than as an absolute value — Mach 1 is "exactly the speed of sound right here, right now," which matters aerodynamically far more than absolute airspeed does, since the physics of airflow changes qualitatively as an aircraft approaches and exceeds the speed sound itself travels at.

The speed of sound isn't a universal constant — it depends on the medium's temperature (for a given gas), which is why the same physical airspeed corresponds to a different Mach number at different altitudes: the stratosphere is much colder than sea level, so the local speed of sound is lower there, and the same true airspeed represents a higher Mach number at altitude than it would at sea level.

Where it comes from

In 1887 Ernst Mach published, with Salcher, photographs of the disturbances a projectile sets off in the air, in the Annalen der Physik. The ratio of a body's speed to the speed of sound was later named in his honour by Jakob Ackeret, who coined the term "Mach number" in his postdoctoral thesis, after a 1928 doctorate on air forces at very high speeds.

Sources: Mach and Salcher (1887), Annalen der Physik · ETH Library, Jakob Ackeret (1898–1981)

Key formula

Speed of sound: a = √(γ × R × T)
Mach number = velocity ÷ speed of sound
No. 068 / 092Aerospace
Mach Number
Presented by Capt. Vela · Aerospace
No. 068 / 092Mach Number
Speed of sound: a = √(γ × R × T)
Mach number = velocity ÷ speed of sound
γ
ratio of specific heats for air (≈1.4)
R
specific gas constant for dry air (287.05 J/(kg·K))
T
absolute air temperature, in kelvin
Worked example
True Airspeed: 450 knots · Outside Air Temperature: 288.15 K
→ Local Speed of Sound: 661.5 knots
Checked: this exact example is one of the automated reference tests, its answer worked out independently of the calculator.
phdino.com/calc/mach-number

Variables

γ
ratio of specific heats for air (≈1.4)
R
specific gas constant for dry air (287.05 J/(kg·K))
T
absolute air temperature, in kelvin

Notes & limitations

  • This uses dry-air constants and doesn't account for humidity, which changes the effective gas constant slightly — a reasonable simplification for most purposes, since the effect on speed of sound is small compared to the temperature effect.
  • This computes true airspeed's Mach number directly from temperature — in real aviation, Mach number is more commonly derived instrument-side from a ratio of pressures (impact pressure to static pressure), which arrives at the same physical answer through a different, instrument-friendly measurement path.

Further reading

PhDino earns a commission on qualifying purchases made through this link, at no extra cost to you.

Skunk Works by Ben R. Rich & Leo Janos — A first-hand account of designing the U-2, SR-71, and F-117 — real aerospace engineering under pressure. (Bookshop.org UK, UK delivery only)

→ The full PhDino bookshelf on Bookshop.org (UK delivery only)

Educational tool — not a substitute for a licensed engineer or the official code text.