Skip to content
Formulaxis

Fluid mechanics

Mach number: calculation from speed and the speed of sound

Calculate the Mach number by comparing a speed relative to the fluid with the local speed of sound. Both speeds are converted to consistent units before division. The speed of sound must match the medium and its state; the calculation does not derive it from altitude or temperature, but the page provides reference values for air at different temperatures.

Created on , Revised on v2.0

Method and validation

Mach number: calculation from speed and the speed of sound

Initial example : 170 m/s.

Initial example : 340 m/s.

Initial values are examples.

Results

Mach number Ma
0.5dimensionless

The speed of sound must be strictly positive and supplied for the fluid and conditions being studied.

Applied formulas

Ma=va
Ma=(170 ms)(340 ms)=0.5

Values are substituted in SI units and results are shown in the selected units.

Estimated reading time : 7 min · 1369 words

Calculation details

The steps below use the inputs and units selected in the calculator.

01 · Mach number

FORMULA

Ma=va

NUMERICAL SUBSTITUTION

Ma=(170 ms)(340 ms)

RESULT

Ma=0.5

Ratio to the local speed of sound

The Mach number is a dimensionless ratio between a relative flow velocity and the propagation speed of small acoustic disturbances in the same medium. It places that velocity relative to the local sonic reference. A value below unity indicates subsonic speed, a value equal to unity sonic speed, and a value above unity supersonic speed. These markers alone do not describe all the details of flow around an object. Local velocity may differ from the reference velocity, and the transonic regime covers a region around unity. In air, Mach number is also used to assess when compressibility becomes significant: below about 0,3, flow is often treated as incompressible.

Formulas and symbols

Enter the speed relative to the medium and the speed of sound in that same medium. The selected units are converted; a must be strictly positive.

Ma=vaUnitless ratio: Ma=1 when the relative speed reaches the local speed of sound.

  • v: speed relative to the medium, default displayed unit: m/s.
  • a: local speed of sound, default displayed unit: m/s.
  • Ma: Mach number, dimensionless.
  • T: absolute air temperature in kelvin, used to estimate a≈1,4×287,05×T before entering the speed of sound.

Guidance for interpreting results

Quantity or conditionInterpretation
Mach below 1Speed below the local speed of sound
Mach equal to 1Sonic speed
Mach above 1Supersonic speed; the transonic regime remains a region around 1
Zero relative speedM=0
Speed twice local sound speedM=2

NASA Glenn Research Center — Mach Number.

Speed of sound in air by temperature

Air temperatureSpeed of sound (dry air)
−56,5 °C (about 11 km, standard atmosphere)295 m/s, equivalent to 1 062 km/h
−20 °C319 m/s, equivalent to 1 148 km/h
0 °C331 m/s, equivalent to 1 193 km/h
15 °C340 m/s, equivalent to 1 225 km/h
20 °C343 m/s, equivalent to 1 236 km/h
30 °C349 m/s, equivalent to 1 257 km/h
Relationship useda = √(γ R T), T in kelvin, γ=1,4 and R=287,05 J/(kg·K)

Values calculated using the ideal-gas model shown in the last row. Speeds in m/s and km/h are rounded separately from the unrounded result; multiplying the displayed m/s value by 3,6 can therefore give a slight difference. The model assumes dry air with constant γ. OpenStax — University Physics Volume 1, §17.2: speed of sound in an ideal gas ; NASA Glenn Research Center — Mach Number.

Mach number: indicative markers for flow regimes

Mach numberRegime
M < 0,3Flow often treated as incompressible
0,3≤M<0,8Subsonic: compressibility must be taken into account
0,8≤M≤1,2Transonic: local subsonic and supersonic regions
1,2<M≤5Supersonic: shock waves
M > 5Hypersonic: substantial heating; thermochemical effects possible depending on conditions

These intervals are common reference ranges for aerodynamic flows. The threshold M≈0,3 is used to assess density variations caused by speed. The transonic range depends on geometry and local velocities; the boundaries 0,8 and 1,2 are not universal thresholds. Thermochemical effects also depend on temperature and flow conditions. FAA — Aviation Maintenance Technician Handbook, General, p. 5-47: subsonic, transonic and supersonic regimes ; Embry-Riddle Aeronautical University — Types of Fluid Flows: compressibility and the Mach 0,3 reference ; NASA Glenn Research Center — Mach Number.

Worked examples

Example 1: 170 m/s in a medium where sound travels at 340 m/s

The Mach number is 0,5.

Example 2: 680 m/s for a sound speed of 340 m/s

The Mach number is 2.

Example 3: Sonic reference after conversion

Convert before division: v=1 224 km/h=1 224/3.6=340 m/s; assumed a=340 m/s gives M=1.

Example 4: Airliner at 900 km/h at cruising altitude

At about 11 km altitude, the air is at −56,5 °C and the speed of sound is close to 295 m/s (see the table). The speed of 900 km/h is converted to metres per second before division: the result indicates high-subsonic flight, close to the transonic regime. Using 340 m/s, a value close to sea level, would give 0,74 and underestimate the Mach number.

v=900 km/h=900/3,6=250 m/s ; a=295 m/s : M=250/295≈0,85.

Example 5: Car at 108 km/h in mild weather

At 15 °C, the speed of sound in air is about 340 m/s. A speed of 108 km/h equals 30 m/s, so the Mach number is well below 0,3: air compressibility effects are negligible for this flow, and here Mach serves only to indicate an order of magnitude.

v=108 km/h=108/3,6=30 m/s ; a=340 m/s : M=30/340≈0,088.

Assumptions and limitations

The speed of sound must be strictly positive and supplied for the fluid and conditions being studied. The calculation determines neither thermodynamic properties, altitude, shock waves nor compressibility corrections. The entered speed is relative to the fluid. A reference Mach number does not automatically provide local values around an object or in a nozzle. The table’s speeds of sound apply to dry air treated as an ideal gas (γ=1,4); they apply neither to another gas nor to air whose composition or state differs substantially from dry air.

Common mistakes

Using the sea-level speed of sound for an aircraft at altitude: the air is colder there, the speed of sound is lower and the calculated Mach number is too low.

Using ground speed despite wind distorts the ratio: use speed relative to the air.

Mixing kilometres per hour and metres per second changes the result: convert both speeds.

Assigning a unit to Mach confuses a ratio with a speed: check its dimensionless nature.

Deriving all pressures from the ratio alone omits thermodynamics: use a suitable model.

Frequently asked questions

Is Mach 1 always 340 m/s?

No. Mach 1 means that relative speed equals the local speed of sound, which depends on the medium and its state: in air, it varies with temperature (see the speed-of-sound table). The value of 340 m/s used in several examples corresponds to air at around 15 °C; it cannot be transferred to another fluid or another state.

How much is Mach 1 in km/h?

It depends on air temperature, since the speed of sound depends on it. Mach 1 corresponds to about 1 225 km/h at 15 °C, 1 236 km/h at 20 °C and 1 062 km/h at −56,5 °C, the standard-atmosphere temperature at around 11 km altitude. There is therefore no single value in km/h.

How do I calculate the speed of sound to enter?

For dry air treated as an ideal gas, a = √(γ R T), with γ=1,4, R=287,05 J/(kg·K) and T the absolute temperature in kelvin. At 15 °C (288,15 K), the result is approximately 340 m/s. For another gas, replace γ and R with its own values, or use a measured value.

Which speed should I enter for an aircraft?

The speed relative to the local air, not the ground speed when wind is present.

Why is the result dimensionless?

Both quantities are speeds, so units cancel after conversion. Consistent unit changes leave Mach unchanged.

At what Mach number does air become compressible?

Density variations are often considered small, and therefore negligible, as long as the Mach number remains below about 0,3. Above that, compressibility must be taken into account. This is a rule of thumb, not a strict limit: it depends on the accuracy required.

Does reference Mach describe the whole flow?

No. Local speed and sound speed can vary around objects or through passages. This tool does not solve the spatial flow field.