Engineers prefer the gas constant per kilogram, since mass is easier to measure than moles. This specific gas constant calculator takes a gas, a pressure and a temperature to give the specific gas constant Rs, the density from the ideal gas law, the heat capacity ratio and the speed of sound.
How the calculation works
- Specific gas constant Rs = R ÷ M, where R = 8,314.46 J/(mol·K) is the universal gas constant and M the molar mass of the gas in kg/mol.
- Density from the ideal gas law ρ = P ÷ (Rs × T), with the pressure in pascals and the temperature in kelvin.
- Speed of sound c = √(γ × Rs × T), with γ the heat capacity ratio: about 1.40 for air and diatomic gases, 1.66 for helium, 1.31 for methane and 1.29 for carbon dioxide.
- Temperature in kelvin = (°F − 32) ÷ 1.8 + 273.15.
Example
For dry air, M = 28.97 g/mol, so Rs = 8,314.46 ÷ 28.97 = 287.0 J/(kg·K). At 14.7 psi (101.35 kPa) and 68 °F (293.15 K) the density is 101,350 ÷ (287.0 × 293.15) = 1.2046 kg/m³, or 0.0752 lb/ft³. With γ = 1.40, the speed of sound is √(1.40 × 287.0 × 293.15) = 343 m/s.
Why it matters
The specific gas constant is the number in thermodynamics, aerodynamics and HVAC equations such as P = ρRsT. It is needed to compute the density of air for flight and engine performance, the mass of gas in a tank, the flow through a nozzle and the speed of sound for acoustics or Mach number.
Good to know
The ideal gas law holds near atmospheric pressure and moderate temperatures. At high pressures, in cryogenic conditions and close to condensation, real gases deviate, and a compressibility factor Z must multiply the denominator. Humid air is lighter than dry air because water vapor has a molar mass of 18 g/mol, so the dry-air value overstates the density on a humid day. The heat capacity ratio also varies with temperature, so the speed of sound figure is an approximation, to within about 1 % for the common gases.
Related tools
The ideal gas calculator solves for pressure, volume or temperature, the gas molecule speed calculator gives speeds of molecules and the speed of sound calculator treats sound in air.