Skip to calculator

Speed of sound from air temperature

Why this is the only input

In an ideal gas, the speed of sound depends only on the absolute temperature. Air pressure does not appear in the formula at all: it makes the air denser, but also stiffer by the same ratio, and the two effects cancel exactly. That is why there is no field for it here. A field whose value demonstrably changes nothing would only mislead.

Humidity has an effect, but a small one: 0.18 percent at 20 °C and 50 percent relative humidity. For comparison, if you know the room temperature to within ±3 degrees, you already have an uncertainty of ±0.5 percent. This calculator leaves humidity out and says so here, rather than suggesting precision in the wrong place.

What you need the value for

For the length of a bass reflex port, for where the room modes fall, and for any conversion between a length and a frequency. The wavelength at a fixed frequency and the room mode frequencies change in proportion to c. The effective port length, on the other hand, depends on c² for a given tuning, port area and enclosure volume. The usual default of 343 m/s applies at 20 °C; at 15 °C it is 340 m/s, at 25 °C 346 m/s.

Limitations

The calculation covers dry air between −20 and +50 °C, which corresponds to speeds of sound from 319.0 to 360.4 m/s. That range covers an outdoor PA in winter as well as an attic room heated up in summer. Values outside it are calculated, with a warning.

The field for c accepts 318 to 361 m/s, slightly more than the temperature range maps to. If you go right to the edge, you therefore get a warning about the temperature calculated back from it. The number is correct; it is just slightly outside what the calculator is meant for.