Hydrogen Density Calculator & Formula
- Mass
- g
- Result
- Amount
- mol
- Result
- Temperature
- 20 °C
- You entered
This hydrogen density calculator works out the mass of hydrogen gas in a given volume at a specified temperature and pressure, using the ideal gas law. You enter the temperature, pressure, and volume, and it returns the density in kilograms per cubic meter (kg/m³) and grams per liter (g/L). The calculator also shows the mass of hydrogen in your container, which is useful for fueling, storage, and engineering calculations.
Formula
The calculator uses the ideal gas law rearranged to solve for density:
� = (P × M) / (R × T)
- � = density of hydrogen (kg/m³)
- P = absolute pressure (Pa, or N/m²)
- M = molar mass of hydrogen (0.002016 kg/mol for Hâ‚‚)
- R = universal gas constant (8.314 J/(mol·K))
- T = absolute temperature (K, kelvin)
To get mass, multiply density by volume. The calculator converts your inputs to SI units: pressure from bar to pascals (1 bar = 100,000 Pa), temperature from Celsius to kelvin (K = °C + 273.15), and volume from liters to cubic meters (1 L = 0.001 m³).
Worked Example
Using the default values: temperature = 20 °C, pressure = 1 bar, volume = 10 L.
- Convert temperature to kelvin: T = 20 + 273.15 = 293.15 K
- Convert pressure to pascals: P = 1 × 100,000 = 100,000 Pa
- Convert volume to cubic meters: V = 10 × 0.001 = 0.01 m³
- Calculate density: � = (100,000 × 0.002016) / (8.314 × 293.15) = 201.6 / 2437.3 = 0.0827 kg/m³
- Calculate mass: m = 0.0827 × 0.01 = 0.000827 kg = 0.827 g
- Calculate moles: n = (100,000 × 0.01) / (8.314 × 293.15) = 1000 / 2437.3 = 0.410 mol
The calculator shows density = 0.083 kg/m³, mass = 0.83 g, and moles = 0.41 mol, matching the hand calculation.
Why Hydrogen Density Matters
Hydrogen has the lowest density of all gases at standard conditions—about 0.09 kg/m³ at 0 °C and 1 atm, which is roughly 14 times lighter than air. That low density is why hydrogen rises quickly and dissipates in open air. But in practical applications, you rarely use hydrogen at standard conditions. Fuel cells, rocket engines, and industrial processes often require hydrogen at high pressure (350–700 bar) or cryogenic temperatures (−253 °C for liquid hydrogen). At 700 bar and room temperature, hydrogen density reaches about 40 kg/m³—still only about half the density of liquid hydrogen (70.8 kg/m³ at its boiling point).
Knowing the density at your operating conditions tells you how much hydrogen you can store in a tank of a given size, how much mass will flow through a pipe, and how to design compressors and heat exchangers.
How to Use the Calculator Correctly
- Always enter absolute pressure, not gauge pressure. If your gauge reads 350 bar, the absolute pressure is about 351 bar (at sea level). The calculator assumes absolute pressure.
- Use kelvin or Celsius for temperature—the calculator accepts Celsius and converts internally. Do not enter Fahrenheit.
- Volume is in liters for the mass and moles outputs. If you have a tank volume in cubic meters, multiply by 1000 to get liters.
- The result is for pure hydrogen gas (Hâ‚‚). If your mixture contains other gases, the density will differ.
Real-World Examples and Comparisons
Let’s compare densities at different conditions:
- Standard conditions (0 °C, 1 atm): 0.090 kg/m³
- Room temperature (20 °C, 1 atm): 0.083 kg/m³
- Compressed at 350 bar, 20 °C: about 28.5 kg/m³ (the ideal gas law gives 29.1 kg/m³, but real-gas effects lower it slightly)
- Compressed at 700 bar, 20 °C: about 40 kg/m³ (ideal gas law gives 58.2 kg/m³—a big deviation, so real-gas corrections are needed)
- Liquid hydrogen at −253 °C, 1 atm: 70.8 kg/m³
The ideal gas law is accurate at low pressure and high temperature. At high pressure (above ~100 bar) or near the boiling point, hydrogen molecules interact, and the ideal gas law overestimates density. For engineering work at 350 or 700 bar, use a real-gas equation of state (like the Peng-Robinson or Soave-Redlich-Kwong) or look up tabulated data.
Common Mistakes and Limitations
- Using gauge pressure instead of absolute: This can cause errors of several percent at high pressures. Add atmospheric pressure (about 1 bar) to gauge pressure.
- Forgetting to convert Celsius to kelvin: The calculator does this for you, but if you do it manually, remember K = °C + 273.15, not + 273.
- Assuming ideal gas at high pressure: At 700 bar, the ideal gas law overestimates density by about 45%. The calculator is best for pressures up to ~100 bar; beyond that, treat results as approximations.
- Using the wrong molar mass: Hydrogen gas is Hâ‚‚ (2.016 g/mol), not atomic hydrogen (1.008 g/mol). The calculator uses the correct value for Hâ‚‚.
Safety and Practical Notes
Hydrogen is flammable and can form explosive mixtures with air (4–75% by volume). When calculating storage amounts, always consider the lower flammability limit. Never rely solely on a calculator for safety-critical decisions—consult relevant standards (e.g., ISO 19880 for hydrogen fueling stations). Also, hydrogen can embrittle certain metals over time, so tank materials matter. For high-pressure storage, use certified composite or steel tanks designed for hydrogen service.
Frequently Asked Questions
Why is hydrogen density so low?
Hydrogen is the lightest element, with a molar mass of only 2.016 g/mol for H₂. At the same temperature and pressure, a gas’s density is proportional to its molar mass, so hydrogen is about 14 times lighter than air (molar mass ~29 g/mol).
How much does a liter of hydrogen weigh?
At 20 °C and 1 atmosphere, one liter of hydrogen weighs about 0.083 grams. At 700 bar, the same volume holds about 40 grams of hydrogen (using real-gas data).
Can I use this calculator for liquid hydrogen?
No. The ideal gas law does not apply to liquids. Liquid hydrogen density is about 70.8 kg/m³ at its boiling point (−253 °C). This calculator is for gaseous hydrogen only.
What is the difference between hydrogen density and specific volume?
Specific volume is the inverse of density—volume per unit mass (m³/kg). If you need specific volume, just take 1 divided by the density. For example, at 20 °C and 1 bar, density is 0.083 kg/m³, so specific volume is about 12.0 m³/kg.
Why does the calculator use the ideal gas law instead of real-gas equations?
The ideal gas law is simple, fast, and accurate enough for most educational and low-pressure uses (up to ~100 bar). For high-pressure engineering, you need a real-gas equation of state, which requires more complex calculations and property tables. This calculator gives a good estimate for moderate conditions.
How do I convert the result to pounds per cubic foot?
Multiply the density in kg/m³ by 0.0624 to get lb/ft³. For example, 0.083 kg/m³ × 0.0624 = 0.0052 lb/ft³.
Related
Formula used
in t | Temperature | °C | 20 | -273 in p | Pressure | bar | 1 | 0 in v | Volume | L | 10 | 0 out density | Density | kg/m³ | (p * 100000 * 0.002016) / (8.314 * (t + 273.15)) | 3 out mass | Mass | g | density * v | 2 out moles | Amount | mol | (p * 100000 * (v / 1000)) / (8.314 * (t + 273.15)) | 2
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, rounded as each result states. See how the calculators work or report an error.