Vapor pressure alone cannot determine vapor density: it gives a gas’s pressure at a stated temperature, but density also depends on the gas’s identity or molar mass and on the conditions. This calculator uses vapor pressure, temperature, and molar mass to estimate the vapor’s density, assuming the vapor behaves as an ideal gas.
Formula
For an ideal gas, density is pressure multiplied by molar mass and divided by the universal gas constant and absolute temperature:
ρ = PM / (RT)
- ρ is vapor density in kg/m³.
- P is the vapor’s partial pressure in pascals (Pa). Convert the entered pressure in kPa to Pa by multiplying by 1000.
- M is molar mass in kg/mol. Convert the entered value in g/mol to kg/mol by dividing by 1000.
- R is the ideal-gas constant, 8.31446261815324 J/(mol·K).
- T is absolute temperature in kelvins (K). Convert °C to K by adding 273.15.
The calculator reports kg/m³ as its main result and also gives the equivalent value in g/L. Since 1 kg/m³ equals 1 g/L, those numbers are the same. “Vapor density” can also mean density relative to air in some reference sources; this calculator reports mass per volume, not that dimensionless relative-density ratio.
Worked Example
Using the defaults—101.325 kPa, water vapor’s molar mass of 18.015 g/mol, and 25 °C—first convert the inputs:
- Pressure: 101.325 kPa × 1000 = 101325 Pa.
- Molar mass: 18.015 g/mol ÷ 1000 = 0.018015 kg/mol.
- Temperature: 25 °C + 273.15 = 298.15 K.
Substitute into the ideal-gas density equation:
ρ = (101325 Pa × 0.018015 kg/mol) ÷ (8.31446261815324 J/(mol·K) × 298.15 K) ≈ 0.7369 kg/m³.
The calculator displays 0.737 kg/m³ to three decimal places, equivalent to 0.737 g/L. This is a hypothetical calculation at the stated pressure and temperature; it does not mean water vapor at 25 °C normally has a partial pressure of one atmosphere in ordinary room air.
Assumptions
- The vapor is treated as an ideal gas.
- The entered pressure is the vapor’s partial pressure, not automatically the total pressure of a gas mixture.
- The vapor is represented by one molar mass; mixtures require a mixture-average molar mass or a component-by-component calculation.
- Temperature is uniform and above absolute zero.
What Vapor Pressure Tells You
Vapor pressure is the pressure exerted by a vapor in equilibrium with its liquid or solid at a particular temperature. It is substance-specific and strongly temperature-dependent. A higher vapor pressure means more of the substance can be present in the gas phase at equilibrium under the relevant conditions, but it does not by itself tell you the mass of vapor in a given volume.
For a pure substance in a closed container containing both liquid and vapor at equilibrium, the vapor’s pressure is its saturation vapor pressure at that temperature. In a mixture with air or other gases, the vapor contributes a partial pressure. If the gas mixture is ideal, the total pressure is the sum of the component partial pressures. Use the vapor component’s partial pressure in the density formula when calculating that component’s density.
This distinction prevents a common error: substituting the room’s total atmospheric pressure for the vapor pressure. For example, water vapor in room air usually has a partial pressure far below atmospheric pressure. Using 101.325 kPa for it would overstate the water-vapor density.
How to Choose the Pressure and Molar Mass
Choose inputs that describe the same substance and conditions. The vapor pressure must correspond to the temperature used in the calculation, and the molar mass must match the vapor’s chemical identity. If a vapor-pressure table reports pressure in mmHg, torr, or bar, convert it to kPa before entering it: 1 atm = 101.325 kPa, and 1 bar = 100 kPa. For mmHg or torr, use the conversion convention stated by the source and retain appropriate precision.
- Pure vapor in equilibrium: use its saturation vapor pressure at the specified temperature.
- Vapor mixed with air: use the vapor’s measured or calculated partial pressure, not the total pressure.
- Unknown or mixed composition: establish composition and an appropriate average molar mass before treating the mixture as one gas.
- Pressure reported in another unit: convert it consistently; do not enter a number in kPa if it is actually in Pa or atm.
Molar mass is not interchangeable with vapor pressure. Two gases at the same pressure and temperature have different mass densities if their molar masses differ. Conversely, the same vapor at the same temperature has lower density at lower partial pressure, under the ideal-gas model.
Limits and Common Mistakes
The ideal-gas relation is a useful approximation for many gases at moderate pressures and temperatures sufficiently far from condensation. Real gases can deviate, especially at high pressure or near a phase change. In those cases, a compressibility factor or a substance-specific equation of state may be needed; vapor pressure alone still does not supply that correction.
- Using Celsius in the denominator: the equation requires kelvins. Add 273.15 to the Celsius temperature.
- Confusing vapor pressure with total pressure: use partial pressure for one component of a mixture.
- Mixing units: convert kPa to Pa and g/mol to kg/mol as shown, or use a fully consistent alternative form.
- Assuming vapor pressure is fixed: it changes with temperature, so a value from a different temperature may give a misleading density.
- Confusing density with relative vapor density: relative density compares a gas’s density with a reference gas, commonly air, under specified conditions; it is not expressed in kg/m³.
Density describes mass per volume at the stated conditions. It does not directly predict whether a vapor will collect near the floor or ceiling in a real room. Mixing, temperature differences, ventilation, and diffusion affect how gases distribute, so a density comparison alone is not a reliable safety assessment.
Frequently Asked Questions
Can vapor density be calculated from vapor pressure alone?
No. You also need temperature and molar mass, and you must know whether the pressure is the vapor’s partial pressure. The ideal-gas equation then estimates density.
What is the formula for vapor density?
For an ideal gas, ρ = PM/(RT), where pressure is in Pa, molar mass in kg/mol, temperature in K, and R = 8.31446261815324 J/(mol·K).
Is vapor pressure the same as partial pressure?
Not in every situation. Vapor pressure usually refers to equilibrium pressure above a pure liquid or solid at a given temperature. Partial pressure is the contribution of one gas component in a mixture. At equilibrium, that component’s partial pressure may equal its saturation vapor pressure.
Does higher vapor pressure mean higher vapor density?
For the same gas at the same temperature, higher partial pressure gives higher ideal-gas density. Comparing different substances also requires their molar masses, and comparing different temperatures requires using absolute temperature.
How do I convert vapor density from kg/m³ to g/L?
The numerical value is unchanged: 1 kg/m³ = 1 g/L. For example, 0.737 kg/m³ equals 0.737 g/L.
Can this formula be used for a vapor-air mixture?
It can calculate the density contribution of one component when that component’s partial pressure and molar mass are known. To find the total mixture density, account for all gas components and their composition, rather than treating the total pressure as the pressure of one vapor.
Related
Formula used
in p | Vapor pressure | kPa | 101.325 | 0 in mm | Molar mass | g/mol | 18.015 | 0 in t | Temperature | °C | 25 | -273.15 out d | Vapor density | kg/m³ | (p * 1000) * (mm / 1000) / (8.31446261815324 * (t + 273.15)) | 3 out rho | Vapor density | g/L | d * 1000 | 3
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
- Heat Gain and Loss Calculator for Calorimetry4,184.00 J
- Heat Output Calculator kW: Estimate Thermal Power1.395 kW
- Heat Calculation: Formula, Example, and Limits41,840 J
- Heat Energy Released Formula and Worked Example23,012 J
- Heat Transfer Equation for q: Formula and Examples41,840 J
- Heat Rate Formula: Calculate Energy per Unit Time166.67 W