Here’s the formula to calculate the mass of air:
  Â
Where:
- is the mass of air (in kilograms),
- is the pressure of the gas (in pascals, Pa),
- is the volume occupied by the gas (in cubic meters, m³),
- is the ideal gas constant (Â ),
- is the temperature of the gas in Kelvin (K),
- is the molar mass of air (in kilograms per mole, kg/mol), which is approximately 0.02897 kg/mol.
Ensure that the units of pressure, volume, and temperature are consistent with the SI units used in the ideal gas constant () (usually pascals, cubic meters, and Kelvin).