If P, V, M, T and R are pressure, volume, molar mass, temperature and gas constant of gas, then for ideal gas the density is given by,
A sample of an ideal gas has volume V, pressure P and temperature T. The mass of each molecule of the gas is m. The density of the gas is (k is the Boltzmann's constant )