molecalculator

Moles & Molar Mass

Hydrogen Density vs Pressure: Calculate Gas Density

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

Hydrogen density 0.0838 kg/m³
Hydrogen density
0.0838 g/L
= Hydrogen density
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)
You get
Hydrogen density (kg/m³), Hydrogen density (g/L)
Rounding
4 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.

Hydrogen density increases with pressure when temperature is held constant: for an ideal gas, density is proportional to absolute pressure and inversely proportional to absolute temperature. This calculator estimates hydrogen’s mass density from pressure and temperature; enter pressure in kPa absolute and temperature in °C to get density in kg/m³, with the corresponding g/L also shown.

Formula

For an ideal gas, density is pressure times molar mass divided by the universal gas constant times absolute temperature:

ρ = P M / (R T)

  • ρ is hydrogen mass density in kg/m³.
  • P is absolute pressure in pascals. The calculator converts the entered kPa to Pa by multiplying by 1,000.
  • M is hydrogen’s molar mass, 0.00201588 kg/mol, based on the molecular mass of H₂.
  • R is the molar gas constant, 8.31446261815324 J/(mol·K).
  • T is absolute temperature in kelvins, calculated from °C + 273.15.

The second result uses the fact that 1 kg/m³ equals 1 g/L. The equation assumes hydrogen behaves as an ideal gas. At high pressures, real-gas behavior can make actual density differ; see the discussion below.

Worked Example

Using the calculator’s defaults, pressure is 101.325 kPa and temperature is 20 °C.

  1. Convert pressure: 101.325 kPa × 1,000 = 101,325 Pa.
  2. Convert temperature: 20 + 273.15 = 293.15 K.
  3. Substitute into the ideal-gas equation: ρ = (101,325 Pa × 0.00201588 kg/mol) / (8.31446261815324 J/(mol·K) × 293.15 K).
  4. Calculate: ρ ≈ 0.08374 kg/m³, or 0.08374 g/L, to four decimal places.

The result is an estimate for hydrogen gas near atmospheric pressure, not a liquid-hydrogen density or a universal value for every pressure and temperature.

Assumptions

  • Hydrogen is treated as pure H₂ gas with molar mass 0.00201588 kg/mol.
  • The ideal-gas equation is used; non-ideal effects are not included.
  • Pressure is absolute, not gauge pressure.
  • Temperature is uniform and above absolute zero.

How Pressure Changes Hydrogen Density

At a fixed temperature, the ideal-gas formula reduces to a direct proportionality: doubling absolute pressure doubles the calculated density. At a fixed pressure, raising the temperature lowers density because the gas occupies more volume for the same amount of hydrogen. These comparisons only hold when the other variable is kept constant.

For example, at the same temperature, hydrogen at 200 kPa absolute has about twice the ideal-gas density it has at 100 kPa absolute. The word absolute matters: the gas-law relationship uses pressure measured from a perfect vacuum. A gauge reading is measured relative to surrounding atmospheric pressure, so it must be converted before using the equation.

Hydrogen is exceptionally light as a gas. At the example conditions, its density is about 0.084 kg/m³, compared with roughly 1.2 kg/m³ for dry air near room temperature and atmospheric pressure. The exact comparison depends on temperature, pressure, humidity, and the reference conditions chosen.

Pressure, Temperature, and Real-Gas Effects

The ideal-gas equation is useful for ordinary conditions and quick estimates, but it is an approximation. A common way to express the real-gas correction is:

ρ = P M / (Z R T)

Here Z is the compressibility factor. An ideal gas has Z = 1; a real gas may have a value above or below 1, depending on pressure and temperature. As a result, simply multiplying ideal density by pressure can become inaccurate at elevated pressures, especially in systems storing compressed hydrogen. A suitable real-gas equation of state or a reliable property table is needed when precision matters.

Temperature also affects whether hydrogen remains gaseous. If the conditions approach a phase boundary, a gas-only ideal calculation is not a substitute for a phase-equilibrium calculation. Density of liquid hydrogen is a separate property and cannot be obtained by extending this gas equation into the liquid region.

Choosing Inputs and Interpreting Results

  • Use absolute pressure. If a gauge reports pressure above local atmosphere, add the local atmospheric pressure. Near sea level, standard atmospheric pressure is 101.325 kPa, but actual local pressure varies with weather and elevation.
  • Use the gas temperature. The relevant temperature is that of the hydrogen itself, not necessarily the room or the surrounding equipment.
  • Check units. The calculator accepts kPa and °C. The formula converts kPa to Pa and °C to K internally.
  • Keep significant figures realistic. Extra calculator digits do not make uncertain pressure, temperature, or gas-composition data more precise.

Density is mass per volume, not the same as pressure, mass, or the amount of gas in a container. If you need the total hydrogen mass, you also need the gas volume and must account for whether the conditions are uniform and whether the ideal-gas approximation is adequate.

Common Misconceptions and Limits

A frequent mistake is to say that pressure alone determines density. It does not: temperature is part of the relationship, and absolute pressure is required. Another error is to assume that hydrogen always has one fixed density. Its density changes substantially with both pressure and temperature.

Pressure and density are related, but they are not interchangeable quantities. Pressure describes force per area; density describes mass per volume. The equation connects them for a specified gas and temperature under stated assumptions. For mixtures, use the mixture’s effective molar mass and appropriate gas properties rather than treating the whole mixture as pure hydrogen.

This calculator is for general gas-law arithmetic. It does not size pressure vessels, predict leaks or buoyant behavior in a complex space, or establish safe operating limits. For engineering decisions involving compressed hydrogen, use validated property data and applicable design requirements.

Frequently Asked Questions

Does hydrogen density increase when pressure increases?
Yes, at constant temperature it increases with absolute pressure in proportion to pressure under the ideal-gas approximation. At high pressures, real-gas corrections may be important.

What is hydrogen’s density at atmospheric pressure?
It depends on temperature. At 101.325 kPa absolute and 20 °C, the ideal-gas estimate is about 0.08374 kg/m³, equal to 0.08374 g/L.

Should I enter gauge pressure or absolute pressure?
Enter absolute pressure. Convert gauge pressure by adding the local atmospheric pressure; do not assume it is exactly 101.325 kPa in every location or condition.

Why does hydrogen density fall as temperature rises?
At fixed pressure, warmer gas occupies more volume for the same amount of substance. The ideal-gas equation therefore gives lower mass per unit volume as absolute temperature rises.

Can this equation calculate liquid hydrogen density?
No. It applies to gas under an ideal-gas assumption. Liquid hydrogen requires liquid-property data at the specified temperature and pressure.

Is the calculator accurate for compressed hydrogen?
It provides an ideal-gas estimate. For high-pressure storage or engineering calculations, use an appropriate real-gas model or validated hydrogen property data.

Related

Formula used
in p | Absolute pressure | kPa | 101.325 | 0
in t | Temperature | °C | 20 | -273.15
out d | Hydrogen density | kg/m³ | p * 1000 * 0.00201588 / (8.31446261815324 * (t + 273.15)) | 4
out gl | Hydrogen density | g/L | d | 4

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 →