molecalculator

Moles & Molar Mass

Absolute Humidity Calculator g/kg?

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

Absolute humidity 9.88 g/kg
Vapor pressure
15.8 hPa
Result, rounded to 1 decimal place
Dew point
-5.03 °C
Result, rounded to 1 decimal place
Air temperature
25 °C
Set in the form below
You enter
Air temperature (°C), Relative humidity (%)
You get
Absolute humidity (g/kg), Vapor pressure (hPa), Dew point (°C)
Rounding
2 dp · 1 dp

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.

An absolute humidity calculator in g/kg (grams of water vapor per kilogram of dry air) computes the mass of water vapor present in a given mass of dry air, typically using temperature and relative humidity as inputs. You enter the air temperature and relative humidity, and the calculator returns the absolute humidity in grams of water per kilogram of dry air (g/kg), along with related values like dew point or vapor pressure. This is a standard calculation for HVAC design, meteorology, and drying processes.

Formula

The calculator uses the Magnus formula to find the saturation vapor pressure (es) at the given temperature, then scales it by relative humidity to get the actual vapor pressure (e). Absolute humidity (AH) in g/kg is then derived from the ratio of vapor pressure to total atmospheric pressure.

Step 1: Saturation vapor pressure (hPa)
es = 6.112 × exp( (17.67 × T) / (T + 243.5) )
where T is air temperature in °C.

Step 2: Actual vapor pressure (hPa)
e = (RH / 100) × es
where RH is relative humidity in %.

Step 3: Absolute humidity (g/kg)
AH = (e × 621.97) / (Ptotal − e)
where Ptotal is the total atmospheric pressure (assumed 1013.25 hPa, i.e., 1 atm at sea level). The constant 621.97 is the ratio of the molar mass of water (18.015 g/mol) to the molar mass of dry air (28.97 g/mol) multiplied by 1000.

All pressures are in hPa (hectopascals, equivalent to millibars). The formula is valid for temperatures from about −40°C to +60°C, which covers most atmospheric conditions.

Worked Example

Using the default values: T = 25°C, RH = 50%.

Step 1: es = 6.112 × exp( (17.67 × 25) / (25 + 243.5) )
= 6.112 × exp(441.75 / 268.5)
= 6.112 × exp(1.64525)
= 6.112 × 5.1811 ≈ 31.67 hPa

Step 2: e = (50/100) × 31.67 = 15.835 hPa

Step 3: AH = (15.835 × 621.97) / (1013.25 − 15.835)
= 9849.2 / 997.415
= 9.87 g/kg

The calculator rounds to 9.87 g/kg, matching the result shown above.

Assumptions

  • Ideal gas behavior for air and water vapor.
  • Total atmospheric pressure fixed at 1013.25 hPa (sea level). At higher altitudes, absolute humidity for the same RH and temperature is lower because total pressure is lower.
  • The Magnus formula is an approximation; it is accurate to within about 0.1% over the range −40°C to +60°C.
  • Relative humidity is expressed as a percentage (0–100).

How to Use the Calculator

Enter the air temperature in degrees Celsius (range −40 to 60) and the relative humidity as a percentage (0 to 100). The calculator instantly outputs:

  • Absolute humidity (g/kg) – the main answer, grams of water vapor per kilogram of dry air.
  • Vapor pressure (hPa) – the partial pressure exerted by water vapor.
  • Dew point (°C) – the temperature at which condensation begins.

For example, 25°C and 50% RH gives 9.87 g/kg, while 30°C and 80% RH gives about 21.6 g/kg – a much higher moisture content. You can also use the calculator in reverse: if you know the absolute humidity and temperature, you can solve for relative humidity by rearranging the formula, though this calculator is designed for forward calculation.

Why Use g/kg Instead of g/m³?

Absolute humidity is often expressed in grams per cubic meter (g/m³), but g/kg (also called humidity ratio or mixing ratio) is preferred in engineering because it does not change with temperature or pressure due to air expansion. A kilogram of dry air always contains the same number of molecules, so g/kg directly reflects the mass of water per unit mass of air. In contrast, g/m³ varies with air density: warm air expands, so the same moisture content gives a lower g/m³ value. For drying, HVAC, and psychrometrics, g/kg is the standard unit.

Common Mistakes and Misconceptions

  • Confusing relative humidity with absolute humidity: RH is a percentage relative to saturation; 50% RH at 10°C is much drier than 50% RH at 30°C. Always convert to g/kg for a true moisture comparison.
  • Ignoring pressure: The formula assumes sea level. At 1500 m altitude (about 850 hPa), the same T and RH yield about 15% lower absolute humidity. Use a pressure-corrected formula if altitude is significant.
  • Using Celsius vs. Kelvin: The Magnus formula requires Celsius. If you have Kelvin, subtract 273.15 first.
  • Rounding too early: Keep intermediate values with several significant figures; rounding es to 32 hPa instead of 31.67 changes the final answer by 0.1 g/kg.

Limitations of the Formula

The Magnus formula is empirical and works well for atmospheric conditions, but it deviates slightly at very low temperatures (below −40°C) and very high pressures. For industrial processes with pressures far from 1 atm, use the more general equation based on the ideal gas law and the saturation vapor pressure over water or ice. Also, the formula assumes the air is a mixture of dry air and water vapor only; if other gases are present, the molar mass ratio changes. For most practical purposes, the accuracy is sufficient.

Frequently Asked Questions

What is the difference between absolute humidity and relative humidity?

Absolute humidity is the actual mass of water vapor in a given mass of dry air (g/kg), independent of temperature. Relative humidity is the ratio of the current vapor pressure to the saturation vapor pressure at that temperature, expressed as a percentage. Warm air can hold more water vapor, so the same absolute humidity gives a lower RH at higher temperatures.

How do I convert g/kg to g/m³?

To convert g/kg to g/m³, you need the air density (kg/m³). At sea level and 25°C, dry air density is about 1.184 kg/m³. Multiply g/kg by density: 9.87 g/kg × 1.184 kg/m³ ≈ 11.7 g/m³. At other temperatures and pressures, density changes, so use the ideal gas law to find it.

Why does the calculator use 621.97 in the formula?

The constant 621.97 comes from the ratio of the molar mass of water (18.015 g/mol) to the molar mass of dry air (28.97 g/mol), multiplied by 1000 to convert from kg/kg to g/kg: (18.015 / 28.97) × 1000 = 621.97. It converts the mole fraction of water vapor to a mass ratio.

Can I use this calculator for high-altitude conditions?

No, the calculator assumes sea-level pressure (1013.25 hPa). At high altitudes, the total pressure is lower, so the same RH and temperature yield a lower absolute humidity. For high-altitude work, you would need to input the actual barometric pressure; this calculator does not currently support that, so treat results as approximate for elevations above ~500 m.

What is the dew point and why is it useful?

The dew point is the temperature at which air becomes saturated and condensation begins. It is a direct measure of moisture content – the higher the dew point, the more water vapor in the air. Unlike RH, it does not change with temperature. For example, 25°C and 50% RH gives a dew point of about 14°C, meaning surfaces cooler than 14°C will fog.

Is absolute humidity the same as specific humidity?

Strictly, specific humidity is the mass of water vapor per unit mass of moist air (including the water vapor), while absolute humidity (humidity ratio) is per unit mass of dry air. The difference is small (about 1–2%) because water vapor is a small fraction of air mass. In practice, the terms are often used interchangeably, but the g/kg value from this calculator is the humidity ratio.

Related

Formula used
in t | Air temperature | °C | 25 | -40 | 60
in rh | Relative humidity | % | 50 | 0 | 100
out ah | Absolute humidity | g/kg | (rh/100) * 6.112 * exp((17.67 * t) / (t + 243.5)) * 621.97 / (1013.25 - (rh/100) * 6.112 * exp((17.67 * t) / (t + 243.5))) | 2
out vp | Vapor pressure | hPa | (rh/100) * 6.112 * exp((17.67 * t) / (t + 243.5)) | 1
out dp | Dew point | °C | (243.5 * log10((rh/100) * exp((17.67 * t) / (t + 243.5)) / 6.112)) / (17.67 - log10((rh/100) * exp((17.67 * t) / (t + 243.5)) / 6.112)) | 1

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 →