top of page

Natural gas density calculator

Quick answer: natural gas density at 15 °C and 1 atm is about 0.72 kg/m³ (0.045 lb/ft³); pure methane is 0.68 kg/m³, and most gases fall between 0.7 and 0.9 kg/m³. Under pressure it rises almost proportionally: about 58 kg/m³ at 7 MPa.

Calculate the density of natural gas! Our tool calculates density and the compressibility factor Z with the DETAIL equation of AGA 8 Part 1 (2017), the gas industry reference method, from the composition, pressure and temperature.

Main features:

- Calculation of density, compressibility factor (Z), molar mass and more.
- Customizable composition – Adjust percentages of methane (CH₄), ethane (C₂H₆), CO₂, N₂ and other components.
- Interactive graphic showing the gas composition in real time.
- Intuitive and responsive design, accessible from any device.

Ideal for engineers, gas technicians, researchers, and students who need fast and reliable results.

In the world of engineering and the energy industry, natural gas is one of the most important sources of energy. However, to transport, measure, and use it efficiently and safely, knowing its volume is not enough. One of its most critical properties is its density. The density of a gas tells us how much mass is contained in a given volume and is a fundamental variable that affects everything from the billing of large gas pipelines to the design of industrial flares.

 

This guide, along with our calculator, will walk you through the key concepts behind calculating natural gas density, using the industry reference method, AGA 8 Part 1 (DETAIL), so you understand not only the result, but also the valuable process behind it.

 


Why Is Gas Density So Important?


Accurately calculating gas density is not merely an academic exercise; it has direct economic and operational implications.

​

  • Custody Transfer: Natural gas is sold for its energy content, not its volume. Density is crucial for converting measured volume (in cubic meters or cubic feet) to mass and, subsequently, to energy (BTUs or Joules). A small error in calculating density can translate into differences of thousands or millions of dollars in commercial transactions.

  • Process Control: In processing plants, refineries, or power plants, density is a vital parameter for controlling gas quality, optimizing combustion, and ensuring processes run efficiently.

  • Engineering Design: When designing pipelines, compressors, and equipment, engineers must know the density of gas at different pressures and temperatures to calculate pressure drop, compression output, and overall fluid behavior in the system.

​

 

The Calculation Method: AGA 8 Part 1 (DETAIL)

​
The calculator uses American Gas Association Report No. 8 (AGA 8), Part 1, 2017 edition: the DETAIL equation of state, the same as AGA8-92DC (ISO 12213-2), which computes the Z factor and the density from the molar composition of up to 21 components. The calculation follows the reference implementation published by NIST.

It is the reference method for natural gas custody-transfer measurement. For pipeline-quality gas from 263 to 338 K (−10 to 65 °C) and up to 12 MPa, its density uncertainty is about 0.1 %.

The calculation works as follows:

  1. Not all gases are "ideal": The ideal gas law (PV=nRT) is a good approximation at low pressures, but fails miserably at high pressures. Real gases have molecules with volume and attractive forces between them.

  2. The Compressibility Factor (Z): To correct for this deviation, the Compressibility Factor (Z) is introduced. This factor tells us how much a real gas deviates from an ideal gas under the same conditions. If Z=1, the gas behaves ideally. In practice, Z is almost always different from 1.

  3. Calculation from Composition: the DETAIL equation combines energy, size and orientation parameters for each component and each pair of components to get the mixture coefficients; with them it iteratively solves for the density that matches the given pressure and temperature, and from that the Z factor.

 

Understanding Calculator Results


When you use the tool, you get several key results:

​

  • Density: This is the main result, usually expressed in kg/m³. It represents the mass of the gas per cubic meter of volume at the specified pressure and temperature conditions.

  • Compressibility Factor (Z): This is a dimensionless number and one of the most important results of the intermediate calculation. A typical value for natural gas at line conditions might be 0.9 or 0.85, indicating that it is denser than the ideal gas law would predict.

  • Average Molar Mass: This is the average weight of a molecule in the gas mixture, expressed in kg/kmol. It is calculated by weighting the molar mass of each component by its fraction in the mixture.

  • Composition Chart: The bar chart shows the major components of your gas mixture at a glance, allowing you to quickly identify the gases that most influence the final result.

​

​

Real gas density equation

​

ρ = P · M / (Z · R · T)

P is the absolute pressure, M the molar mass of the mixture, Z the compressibility factor (which this calculator obtains with AGA 8 Part 1, DETAIL equation), R = 8.314 462 J/(mol·K) and T the absolute temperature in kelvin.

​

Worked example

​

Methane (M = 16.043 g/mol) at 5 000 kPa absolute and 15 °C, with a compressibility factor Z = 0.90545 (AGA 8): ρ = 5 000 000 × 0.016043 / (0.90545 × 8.314462 × 288.15) = 36.98 kg/m³. At standard conditions (101.325 kPa and 15 °C, Z ≈ 0.998) the same gas has 0.680 kg/m³: pressure multiplies density about 54 times.

Its relative density to air is 16.043 / 28.9625 = 0.554.

​

Table: natural gas density by pressure

​

Values at 15 °C calculated with this calculator (absolute pressure). “Typical gas” = 95 % methane, 2.5 % ethane, 0.5 % propane, 1 % N₂ and 1 % CO₂ (M = 16.93 g/mol); “rich gas” = the calculator’s default composition (85 % methane, M = 19.23 g/mol).

​

0.101 MPa (1 atm): methane 0.680 · typical gas 0.718 · rich gas 0.816 kg/m³

0.4 MPa: methane 2.70 · typical gas 2.85 · rich gas 3.25 kg/m³

1 MPa: methane 6.83 · typical gas 7.22 · rich gas 8.26 kg/m³

2 MPa: methane 13.93 · typical gas 14.75 · rich gas 17.02 kg/m³

5 MPa: methane 37.0 · typical gas 39.4 · rich gas 46.8 kg/m³

7 MPa: methane 53.8 · typical gas 57.5 · rich gas 69.9 kg/m³

10 MPa: methane 80.9 · typical gas 87.0 · rich gas 109.1 kg/m³

​

At 1 atm the reference temperature also matters: the typical gas has 0.757 kg/m³ at 0 °C (normal conditions, Nm³), 0.718 kg/m³ at 15 °C (ISO standard conditions) and 0.705 kg/m³ at 20 °C.

​

Relative density (air = 1): methane 0.554, typical gas 0.585, rich gas 0.664. That is why leaking natural gas rises and collects near the ceiling, unlike LPG, which is heavier than air.

​

Frequently asked questions

​

​

Absolute or gauge pressure?

The equation uses absolute pressure: gauge pressure plus local atmospheric pressure. Using gauge pressure is one of the most common mistakes.

​

Which method does this calculator use, and where is it valid?

AGA 8 Part 1 (2017), DETAIL equation, computed with the reference algorithm published by NIST. It is intended for pipeline-quality natural gas from 263 to 338 K and up to 12 MPa, where its density uncertainty is about 0.1 %.

​

What is the difference between AGA8-92DC and GERG-2008?

AGA 8 is now published in two parts (2017): Part 1 contains the DETAIL equation, the same as AGA8-92DC, which this calculator uses, and Part 2 is GERG-2008 (ISO 20765-2), which covers wider ranges and compositions.

​

What is the density of natural gas in kg/m³?
At standard conditions (15 °C and 101.325 kPa) it is between 0.7 and 0.9 kg/m³; for a typical pipeline gas, about 0.72 kg/m³ (0.045 lb/ft³). Inside a pressurized pipeline it can range from 5 to more than 90 kg/m³, so always state the pressure and temperature.

​

How do I convert m³ of natural gas to kg?
Multiply the volume by the density at the same conditions: 1,000 standard m³ of typical gas × 0.718 kg/m³ = 718 kg.

​

What about the heating value of natural gas?
Density does not give you the energy. For the heating value (MJ/m³ or BTU/ft³), the Wobbe index and the relative density from the composition, use our ASTM D3588 natural gas heating value calculator.

Use of this site implies acceptance of the Terms and Conditions.

Comments or requests: contacto@axotek.me

  • WhatsApp
  • Facebook

Designed by AxoTek IRL 2026

bottom of page