Speed of Sound Calculator
Check with our speed of sound calculator how the speed of sound in water or air changes with temperature.
The formula
gas c = √(γRT/M); solid rod c = √(E/ρ)
Temperature, not pressure
The speed of sound in a gas is √(γRT/M), which contains temperature but not pressure. Pressure and density appear in the underlying relation as a ratio and cancel exactly, so taking a gas up a mountain does not slow its sound — only cooling it does. This is why the speed of sound falls through the troposphere and then holds steady through the isothermal stratosphere while the pressure keeps dropping.
Molar mass is the other lever. Helium's 4 g/mol against air's 29 makes sound nearly three times faster in it, which is what changes a voice. The vocal folds still vibrate at the same rate — the pitch is unchanged — but the vocal tract's resonances scale with the speed of sound and all shift upward, altering the timbre. Describing it as raising the pitch is wrong.
In solids the relevant relation is √(E/ρ), giving speeds of several kilometres per second. The huge acoustic impedance mismatch with air means almost all sound reflects at the boundary rather than crossing it — which is simultaneously why sound travels so far along a rail and why so little of it reaches your ear through the air.