Skip to content
Omnikalc

Specific gas constant calculator: Rs for air, CO2, helium and more

Choose a gas, a pressure and a temperature to get the specific gas constant, the density from the ideal gas law, the heat capacity ratio and the speed of sound.

Updated on
Your inputs

Value out of range

°F

Value out of range

Results

Specific gas constant (Rs)

287.0 J/(kg·K)

Gas density

1.2046 kg/m³

Gas density in pounds per cubic foot
0.0752 lb/ft³
Heat capacity ratio (γ)
1.40
Speed of sound
343 m/s

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.

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.

Frequently asked questions

What is the specific gas constant?

It is the gas constant per unit of mass rather than per mole: Rs = R ÷ M. It is used in engineering equations in the form P = ρ × Rs × T.

What is the value for air?

287.05 J/(kg·K) for dry air, with a molar mass of 28.97 g/mol. For nitrogen it is 296.8, for oxygen 259.8, for carbon dioxide 188.9, for helium 2,077 and for hydrogen 4,124.

Why does the speed of sound depend on the gas?

Sound travels faster in a gas whose molecules are lighter, since c = √(γ Rs T). Helium has a high Rs and a speed of sound around 1,000 m/s at room temperature, which is why a helium voice is higher.

Is the ideal gas law accurate here?

It is accurate near atmospheric pressure and room temperature. At high pressure or near the condensation point, real-gas effects matter and a compressibility factor is needed.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.