molecalculator

Moles & Molar Mass

Natural Gas Density vs Pressure Calculator

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

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

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.

Natural gas density generally increases as absolute pressure rises, provided temperature and gas composition stay the same; for an ideal gas, density is directly proportional to absolute pressure. This calculator estimates density from pressure, temperature, and molar mass, and also reports the ideal-gas density for a reference condition so you can compare results.

Formula

The ideal-gas equation gives density as pressure multiplied by molar mass, divided by the gas constant and absolute temperature:

ρ = P M / (R T)

  • ρ is density in kg/m³.
  • P is absolute pressure in pascals. The calculator converts pressure from kPa to Pa by multiplying by 1,000.
  • M is the mixture’s molar mass in kg/mol. The input is in g/mol, so it is divided by 1,000.
  • R is the molar gas constant, 8.31446261815324 J/(mol·K).
  • T is absolute temperature in kelvins. Convert °C to K by adding 273.15.

For a real gas, the compressibility factor Z accounts for departures from ideal behavior: ρ = P M / (Z R T). The calculator sets Z to 1, so it is an ideal-gas estimate, not a complete pipeline or custody-transfer calculation.

Worked Example

Using the defaults: P = 101.325 kPa, t = 15 °C, and M = 16.043 g/mol. Convert pressure to pascals, molar mass to kilograms per mole, and temperature to kelvins:

  • P = 101.325 × 1,000 = 101,325 Pa
  • M = 16.043 / 1,000 = 0.016043 kg/mol
  • T = 15 + 273.15 = 288.15 K

Then ρ = (101,325 × 0.016043) / (8.31446261815324 × 288.15) ≈ 0.6770 kg/m³. The calculator displays 0.6770 kg/m³. Because the reference output uses these same default conditions, it also reads 0.6770 kg/m³.

Assumptions

  • The gas is treated as ideal, with Z = 1.
  • The entered molar mass represents the whole natural-gas mixture; 16.043 g/mol is a methane-like default, not a universal natural-gas value.
  • Pressure is absolute pressure, not gauge pressure.
  • Temperature is uniform and converted to kelvins for the equation.

Why Pressure Changes Density

Density is mass per unit volume. Compressing a fixed amount of gas into a smaller volume raises its density. For an ideal gas with unchanged composition and temperature, the equation reduces to a simple proportional relationship: doubling absolute pressure doubles density. Halving absolute pressure halves density.

This relationship concerns absolute pressure, measured from a vacuum. Gauge pressure is measured relative to local atmospheric pressure. For example, a gauge reading of 200 kPa at an atmospheric pressure of 101.325 kPa corresponds to about 301.325 kPa absolute—not 200 kPa absolute. Substituting gauge pressure directly can substantially understate the calculated density, particularly at low pressures.

Temperature matters too. At fixed absolute pressure and composition, raising the temperature lowers ideal-gas density because the gas occupies more volume. Natural gas composition also matters: a mixture with a different average molar mass has a different density under the same pressure and temperature.

Natural Gas Is a Mixture

“Natural gas” does not identify a single pure substance. It is typically methane-rich, but may also contain ethane, propane, nitrogen, carbon dioxide, and other components in proportions that vary by source and processing. The mixture’s molar mass is the sum of each component’s molar mass weighted by its mole fraction. A methane-only value is therefore a convenient approximation, not a certificate of actual gas quality.

For a more representative estimate, use a molar mass from a reliable composition analysis or a value specified for the gas being studied. For higher accuracy at elevated pressures, use a suitable real-gas equation of state or a published compressibility factor for the gas composition and conditions. Z can vary with pressure, temperature, and composition; it should not be assumed to equal one in every application.

How to Use the Calculator

  1. Enter absolute pressure in kPa. Convert gauge pressure to absolute pressure using the local atmospheric pressure: absolute = gauge + atmospheric pressure.
  2. Enter gas temperature in °C. The formula converts it to kelvins; temperatures below absolute zero are physically impossible.
  3. Enter the mixture molar mass in g/mol. Keep the default only when a methane-like approximation is appropriate.
  4. Read the density in kg/m³. The second result is the density at the fixed reference conditions of 101.325 kPa absolute and 15 °C for the same molar mass.

As a practical comparison, at fixed temperature and composition, the ideal estimate at 202.65 kPa absolute is twice the estimate at 101.325 kPa. If temperature or composition changes between the two cases, that simple doubling no longer applies; recalculate using the new inputs.

Limits and Common Misunderstandings

  • Gauge is not absolute: The gas-law equation requires absolute pressure.
  • Reference conditions vary: “Standard” or “normal” cubic metres may use different specified reference temperatures and pressures in different contexts. State the reference conditions when comparing densities or volumes.
  • Ideal estimates can be insufficient: Real-gas effects become important for some combinations of high pressure, low temperature, and composition. Use an appropriate Z or equation of state for engineering-grade results.
  • Composition affects the answer: Two supplies at identical pressure and temperature can have different densities if their mixtures differ.
  • Density is not heating value: Density describes mass per volume. It does not by itself tell you the gas’s energy content or interchangeability.

This calculator is for general educational estimates. It does not replace a gas-composition analysis, an applicable measurement standard, or engineering calculations for equipment and pipelines. Natural gas is flammable; pressure systems and gas handling require appropriate controls and qualified procedures. Do not use this ideal-gas estimate as a safety limit.

Frequently Asked Questions

Does natural gas density increase with pressure?
Usually, yes. At constant temperature and composition, ideal-gas density rises in direct proportion to absolute pressure. Real-gas behavior can differ from that simple relationship.

What is the density of natural gas at atmospheric pressure?
It depends on temperature and composition. With the calculator’s methane-like molar mass at 101.325 kPa absolute and 15 °C, the ideal estimate is 0.6770 kg/m³.

Should I use gauge pressure or absolute pressure?
Use absolute pressure. Add local atmospheric pressure to gauge pressure before entering it; a gauge reading of zero means atmospheric pressure, not a vacuum.

Is natural gas less dense than air?
Methane-rich natural gas is generally less dense than air under the same conditions, but the exact comparison depends on composition, pressure, and temperature. This calculator estimates gas density, not the density of air.

Why does my measured density differ from the calculator?
Possible causes include a different gas composition, gauge pressure entered as absolute pressure, different reference temperature, measurement uncertainty, or real-gas effects at the operating conditions.

Related

Formula used
in p | Absolute pressure | kPa | 101.325 | 0
in t | Temperature | °C | 15 | -273.15
in mm | Natural gas molar mass | g/mol | 16.043 | 0.001
out d | Ideal-gas density | kg/m³ | p * 1000 * (mm / 1000) / (8.31446261815324 * (t + 273.15)) | 4
out ref | Density at 101.325 kPa and 15 °C | kg/m³ | 101.325 * 1000 * (mm / 1000) / (8.31446261815324 * (15 + 273.15)) | 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 →