This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/2343/. Also, please do not modify any references to the original work (if any) contained in this content.
The speed of sound in an ideal gas is given by the equation
R - the universal gas constant, 8.314 J/(mol K)
T - the absolute temperature, K
M - the molecular mass of gas, kg/mol
gamma - the adiabatic constant of gas.
You can find the calculator below.
Its default values (adiabatic constant 1.4 and molecular mass 28.95) are given for dry air.
For a monoatomic ideal gas, adiabatic constant is 5/3, and for a diatomic gas (such as nitrogen and oxygen) adiabatic constant is 7/5. For molecules with three atoms it is 4/3.
For helium, with adiabatic constant 5/3 and molecular mass 4 g/mol, speed of sound at 20C is 1007 m/s. That's why voice in helium sounds so funny.