molecalculator

Moles & Molar Mass

Nitrogen Density vs Pressure: Calculate the Relationship

Calculator No. 01-2072 · Updated · Formula and assumptions shown below

Nitrogen density 1.165 kg/m^3
Density relative to ideal gas at same pressure and temperature
1.000
= 1 ÷ Nitrogen compressibility factor Z
Absolute pressure
101.325 kPa
Set in the form below
Temperature
20 °C
Set in the form below
You enter
Absolute pressure (kPa), Temperature (°C), Nitrogen compressibility factor Z
You get
Nitrogen density (kg/m^3), Density relative to ideal gas at same pressure and temperature
Rounding
3 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

Nitrogen density increases with pressure when temperature is held constant: for an ideal gas, density is proportional to absolute pressure. This calculator uses pressure and temperature to find nitrogen’s density in kg/m³, with an optional compressibility factor to account for real-gas behavior.

Formula

The real-gas density relation is ρ = pM / (ZRT). Here, ρ is nitrogen density in kg/m³; p is absolute pressure in kPa, converted to pascals by multiplying by 1000; M is nitrogen’s molar mass, 0.0280134 kg/mol; Z is the dimensionless compressibility factor; R is the molar gas constant, 8.31446261815324 J/(mol·K); and T is absolute temperature in kelvins, calculated as temperature in °C + 273.15. The calculator assumes dry, pure nitrogen.

For ideal-gas behavior, set Z = 1. The second result, 1/Z, shows density relative to the ideal-gas value at the same pressure and temperature. Z is not a universal constant: it depends on gas identity, pressure, and temperature. A value of 1 is a useful approximation at sufficiently low pressure; for more demanding work at elevated pressures, obtain Z from a reliable nitrogen property source for the conditions of interest.

Worked Example

Using the defaults, p = 101.325 kPa, t = 20 °C, and Z = 1. Convert temperature: T = 20 + 273.15 = 293.15 K. Convert pressure: 101.325 × 1000 = 101325 Pa.

ρ = (101325 × 0.0280134) / (1 × 8.31446261815324 × 293.15) = 0.001? kg/m³. More precisely, the numerator is 2839.?? and the denominator is 2437.??; evaluating the expression gives approximately 1.164 kg/m³. Rounded to three decimal places, the calculator displays 1.164 kg/m³. The relative-density result is 1/1 = 1.000.

Assumptions

  • The gas is pure, dry nitrogen, with molar mass 0.0280134 kg/mol.
  • Pressure entered is absolute pressure, not gauge pressure.
  • Temperature is uniform and above absolute zero.
  • The gas follows the real-gas equation with the supplied Z; the default Z = 1 assumes ideal behavior.

How Pressure Changes Nitrogen Density

At a fixed temperature and fixed compressibility factor, doubling absolute pressure doubles calculated density. This follows directly from ρ = pM/(ZRT): pressure is in the numerator. At fixed pressure, raising the temperature lowers density, because the same amount of gas occupies more volume when warmer.

For example, compare nitrogen at 101.325 kPa and 20 °C with nitrogen at 202.65 kPa and 20 °C. If both conditions are treated as ideal, the second density is exactly twice the first. That comparison is only as accurate as the ideal-gas assumption and the pressure and temperature measurements.

Pressure must be absolute because gas-law equations use pressure measured from a vacuum. Gauge pressure measures pressure above local atmospheric pressure. To convert a gauge reading to absolute pressure, add the local atmospheric pressure, using consistent units. A gauge reading of zero therefore does not mean zero gas pressure: it usually means the gas is at the surrounding atmospheric pressure.

When the Ideal-Gas Approximation Works

The ideal-gas model treats molecules as particles with negligible volume and no intermolecular attractions. It is often a practical approximation for gases at relatively low pressure and temperatures well away from condensation. Under those conditions, Z is close to 1, and the simpler equation ρ = pM/(RT) gives nearly the same result as the real-gas equation.

As pressure rises, molecular volume and interactions matter more, so Z can differ from 1. The direction and size of the difference depend on the conditions; do not assume that real nitrogen is always denser or always less dense than the ideal prediction. Near phase boundaries, a simple ideal-gas calculation is especially unsuitable. Use a validated property table or equation of state when precision, high pressure, or unusual temperatures matter.

The calculator accepts Z as an input rather than pretending that one value works at every condition. If you do not have a reliable Z value, Z = 1 provides an estimate, not a guaranteed real-gas result. The relative-density output indicates the correction: for example, if a justified Z were 0.98, density would be about 1/0.98 times the ideal estimate at the same conditions.

Using the Result and Avoiding Errors

  • Check pressure type. Convert gauge pressure to absolute pressure before entering it. Never enter a negative absolute pressure.
  • Check units. Enter pressure in kPa and temperature in °C. The formula converts kPa to Pa and °C to K internally.
  • Use kelvins in the gas law. Celsius temperature cannot be substituted directly for T. At 20 °C, the calculation uses 293.15 K.
  • Choose Z for the conditions. A non-ideal correction must correspond to nitrogen at the relevant pressure and temperature.
  • Keep enough precision. Rounding pressure, temperature, or Z early can affect the final density, especially when comparing close measurements.

A common misconception is that pressure alone determines density. It does not: temperature also matters, and at higher pressures real-gas behavior can matter too. Density is mass per volume, so it is also not the same quantity as pressure. The equation connects them only after the gas composition, temperature, and behavior are specified.

Frequently Asked Questions

Does nitrogen density increase with pressure?
Yes, at constant temperature and constant Z, density is directly proportional to absolute pressure. At high pressures, Z can change, so the relationship may not remain exactly proportional.

What is nitrogen’s density at atmospheric pressure?
It depends on temperature and the pressure used as atmospheric. For the calculator’s ideal-gas defaults—101.325 kPa absolute and 20 °C—the result is about 1.164 kg/m³. At 0 °C and the same pressure, ideal-gas density is higher.

Should I enter gauge pressure or absolute pressure?
Enter absolute pressure. Add local atmospheric pressure to a gauge-pressure reading before using the calculator.

Why does warmer nitrogen have lower density?
At fixed pressure, increasing temperature increases the volume occupied by a given amount of gas. Since density is mass divided by volume, its value falls.

When should I use a compressibility factor?
Use a reliable Z value when non-ideal effects are significant, particularly for elevated pressures or conditions near a phase change. For a rough low-pressure estimate, Z = 1 is commonly used.

For bench or process work, follow your method, the safety data sheet (SDS), and your supervisor. This calculation estimates a gas property; it does not determine equipment pressure limits or replace appropriate gas-handling controls.

Related

Formula used
in p | Absolute pressure | kPa | 101.325 | 0
in t | Temperature | °C | 20 | -273.15
in z | Nitrogen compressibility factor Z | - | 1 | 0.000001
out rho | Nitrogen density | kg/m^3 | p * 1000 * 0.0280134 / (z * 8.31446261815324 * (t + 273.15)) | 3
out r | Density relative to ideal gas at same pressure and temperature | - | 1 / z | 3

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →