Ideal Gas Density
The density of a gas falls as it warms or its pressure drops — the reason hot air rises and balloons float.
From the ideal gas law ρ = p·M/(R·T). where p is the pressure, M the molar mass, R the gas constant and T the absolute temperature.
Apply the ideal gas law solved for density.
Results
Air at sea level and 15 °C comes out near 1.2 kg/m³. Heating the gas lowers its density, producing the buoyancy that lifts balloons and drives natural convection.