How to use the gas density calculator
Find density of a gas from molar mass, pressure and temperature. Enter molar mass, pressure, temperature in the fields above; the density is computed instantly and plotted on the chart so you can see how the answer changes.
Formula
Variables
- M — Molar mass (g/mol)
- P — Pressure (kPa)
- T — Temperature (K)
Worked example
With molar mass = 28.96 g/mol, pressure = 101.325 kPa, temperature = 293.15 K, the calculator gives density ≈ 1.203902 kg/m³.
Frequently asked questions
What is the formula for the gas density calculation?
Density (kg/m³) = P × 1000 × M / 1000 / (RGAS × T). Here M is molar mass (g/mol), P is pressure (kPa), T is temperature (K).
What inputs do I need for the gas density calculator?
You need molar mass in g/mol, pressure in kPa, temperature in K. Each field is pre-filled with a typical example so you can see how the result responds as you edit the numbers.
How do I use this calculator?
Type values into the input fields. Results and the chart update instantly. Use Reset to restore the example values, Copy results to paste them elsewhere, or Share to copy a link that preserves your inputs.
Is the result exact?
Calculations use standard formulas and double-precision arithmetic, then display about seven significant figures. Real-world measurements carry uncertainty, so treat results as estimates unless your inputs are exact.