Nitrogen at 20 °C (68 °F) and 1 atm has a density of 1.1648 kg/m³ (0.07272 lb/ft³). At 0 °C it is 1.2504 kg/m³. Density falls as the gas gets hotter and rises with pressure.
Nitrogen is a little lighter than air: 1.1648 against 1.2046 for dry air (-3.3 %) at 20 °C and 1 atm. Compare on the air density page. For the liquid, see liquid nitrogen boiling point.
For an ideal gas, density is set by the ideal gas law:
ρ = P / (R·T)
with P in Pa, T in K and R = 296.80 J/(kg·K) for nitrogen (8.314510 J/(mol·K) divided by 28.01348 g/mol, both from Span et al. 2000). Real nitrogen is described with the compressibility factor Z:
ρ = P / (Z·R·T)
At 1 atm the ideal gas law is within about 0.1 % of the real value above 0 °C. At 100 bar and −100 °C, Z is 0.710, so the ideal gas law is about 41 % too high there. At 100 bar and 1000 °C, Z is 1.029. Use the real-gas value above about 10 bar or below about −50 °C. This matters for nitrogen bottles, accumulator precharge and strut servicing, which run at 100 bar and more.
Accuracy. Span et al. (2000) state an uncertainty of 0.02 % in density from the triple point to 523 K (250 °C) at pressures to 12 MPa, 0.005–0.1 % in the speed of sound of the gas, and 0.3 % in heat capacity for gas-like states. Their equation is valid to 1000 K (727 °C); from 727 to 1000 °C it was validated against shock-tube and high-temperature data. Viscosity and thermal conductivity come from the Lemmon & Jacobsen (2004) equations. At 1 atm every value on these pages matches the NIST Chemistry WebBook to 0.001 % or better.