It states that the product of one gram molecule's pressure and volume is equal to the product of the gas's absolute temperature and the universal gas constant.
This is given by the equation where P is the pressure of ideal gas, V is the volume of gas, n is the moles of an ideal gas, T is temperature and R is the universal gas constant.
For calculating density we must know the volume and mass of gas.
From the above formula, we get volume V
From the formula of moles i.e., we get moles in terms of masses.
Replacing the formula of moles in ideal gas law we get , volume
Density is defined as mass per volume, diving both the sides by we get