Mach Number Calculator

Enter a velocity and the local air temperature to get the Mach number (M = v / a), the speed of sound at that temperature, and the resulting flow regime.

Quick Facts

Mach number formula
M = v / a
Dimensionless ratio of speed to the local speed of sound.
Speed of sound in air
a = √(γRT)
γ = 1.4, R = 287.05 J/(kg·K), T in kelvin — about 343 m/s (1,235 km/h) at 20°C.
Flow regimes
Subsonic < 0.8 < Transonic < 1.2 < Supersonic < 5 < Hypersonic
Boundaries are approximate; shock waves begin forming in the transonic range.

Your Results

Calculated
Mach Number
-
M = v / a (dimensionless)
Speed of Sound
-
a = √(γRT) at your air temperature
Velocity (SI)
-
Your input velocity converted to m/s
Flow Regime
-
Subsonic, transonic, supersonic, or hypersonic

Ready

Enter a velocity and air temperature, then press Calculate.

Formula and Method for Mach Number

Mach number is the ratio of a flow's (or an object's) speed to the local speed of sound: M = v / a. It is named after physicist Ernst Mach and is dimensionless — a Mach number of 1 always means "moving at the local speed of sound," regardless of what units v and a are measured in, as long as they match. The speed of sound itself is not fixed: in air it depends almost entirely on temperature, so the same true airspeed corresponds to a different Mach number on a hot day than on a cold one, or at altitude versus sea level.

How the calculation works

For an ideal gas such as air, the local speed of sound is a = √(γRT), where γ (gamma) is the ratio of specific heats (1.4 for diatomic air), R is the specific gas constant for dry air (287.05 J/(kg·K)), and T is the absolute temperature in kelvin. This calculator converts your entered temperature to kelvin, computes a from that formula, converts your entered velocity to meters per second, and then divides: M = v / a. At 15°C (59°F, standard sea-level temperature), a works out to about 340 m/s (1,225 km/h, 761 mph) — the commonly cited "speed of sound."

Common mistakes

  • Treating Mach 1 as a fixed speed: because a depends on temperature, Mach 1 at cruising altitude (around -56.5°C) is roughly 660 mph, noticeably slower than the ~761 mph figure at sea level.
  • Mixing velocity and speed-of-sound units: since M = v/a is a ratio, both values must effectively be in the same units — this calculator handles the conversion for you internally, but double-check your chosen unit matches what you intended to enter.
  • Confusing Mach number with true or indicated airspeed: Mach number is relative to the local speed of sound, not a ground speed or fixed velocity scale, so the same Mach number represents different real speeds at different altitudes and temperatures.

Real-world applications

  • Aircraft design and flight operations use Mach number to define critical thresholds — transonic buffet, the sound barrier, and supersonic drag rise — because aerodynamic behavior changes fundamentally near Mach 1.
  • Wind tunnel testing matches Mach number (not just raw airspeed) between scale models and full-size vehicles so compressibility effects scale correctly.
  • Rocket and reentry vehicle design tracks Mach number through ascent and descent, since aerodynamic heating and shock-wave behavior scale with it, especially in the hypersonic regime (M > 5).
  • Meteorology and ballistics use local speed of sound calculations to convert between true airspeed and Mach number as temperature varies with altitude.

Frequently Asked Questions

What is the formula for Mach number?
Mach number is the ratio of an object's speed to the local speed of sound: M = v / a. It is dimensionless, so v and a just need to be in the same units. A Mach number of 1 means the object is moving exactly as fast as sound in that medium.
How is the speed of sound calculated for air?
For an ideal gas such as air, the speed of sound is a = √(γRT), where γ is the ratio of specific heats (1.4 for air), R is the specific gas constant for air (287.05 J/(kg·K)), and T is the absolute temperature in kelvin. Because it depends on temperature, the speed of sound — and therefore Mach number for a fixed airspeed — changes with altitude and weather.
What do subsonic, transonic, supersonic, and hypersonic mean?
These describe flow regimes by Mach number: subsonic is M less than about 0.8, transonic spans roughly 0.8 to 1.2 where shock waves start to form, supersonic is M from about 1.2 up to 5, and hypersonic is M above 5, where aerodynamic heating becomes dominant.
Why isn't Mach number just a fixed speed like 767 mph?
Because the speed of sound depends on air temperature, not altitude or pressure directly. At sea level and 15°C, Mach 1 is about 761 mph (1,225 km/h), but at cruising altitude where the air is much colder, Mach 1 corresponds to a slower true airspeed, often cited near 660 mph (1,062 km/h) at -56.5°C.