Calculate specific humidity from temperature and relative humidity or from vapor pressure, or convert specific humidity back to relative humidity.

Liquid-water Magnus model: โˆ’40 to 50ยฐC (โˆ’40 to 122ยฐF). Below 0ยฐC, this is not an ice/frost-point model.

Default is standard sea-level pressure. Use actual station pressure for your conditions.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Specific humidity from temperature and RHFinds specific humidity from air temperature and relative humidityRequires dry-bulb temperature, relative humidity and total absolute air pressure
Relative humidity from specific humidityConverts specific humidity to relative humidity at a given temperatureRequires dry-bulb temperature, specific humidity and total absolute air pressure
Specific humidity from pressuresFinds specific humidity from the water-vapor partial pressureRequires water-vapor partial pressure and total absolute air pressure
Water-vapor pressureFinds the water-vapor partial pressure that matches a specific humidityRequires specific humidity and total absolute air pressure
Total air pressureFinds the total air pressure that matches a vapor pressure and a specific humidityRequires water-vapor partial pressure and specific humidity

Total pressure starts at standard sea-level pressure, 101.325 kPa, and pressures can be entered in kPa, hPa, Pa or psi. Specific humidity can be entered or shown in g/kg, kg/kg or percent by mass, and temperature in ยฐC or ยฐF. Every result also lists the mixing ratio, and the two temperature functions add absolute humidity and dew point.

Specific Humidity Formulas

q = 0.622 ร— e รท
(p โˆ’ 0.378 ร— e) [1]
qSpecific humidity: mass of water vapor per mass of moist air (kg/kg)
eWater-vapor partial pressure
pTotal absolute air pressure, in the same unit as e

Specific humidity is the ratio of the mass of water vapor to the total mass of the moist air [1]. It has no unit of its own. It is written in kg/kg, in g/kg (multiply by 1,000) or as a percent by mass (multiply by 100). The formula combines q = r รท (1 + r) [1] with the mixing ratio r = 0.622 ร— e รท (p โˆ’ e) [2], where 0.622 is the rounded ratio of the molar mass of water vapor to that of dry air.

Specific humidity from temperature and RH

es = 0.61094 ร—
exp(17.625 ร— T รท
(T + 243.04)) [3]
e = es ร— RH รท 100

es is the saturation vapor pressure over liquid water in kPa, and T is the temperature in ยฐC. These constants are a Magnus-form fit that its authors found the most accurate of their approximations from โˆ’40 to 50 ยฐC [3], which is the range the calculator accepts. At 25 ยฐC, es is 3.162 kPa, so 50% relative humidity gives e = 1.581 kPa and, at 101.325 kPa, q = 9.762 g/kg.

Relative humidity from specific humidity

RH = e รท es ร— 100

e comes from the entered specific humidity through the Water-vapor pressure formula, and es from the temperature. At 25 ยฐC and 101.325 kPa, 10 g/kg is a relative humidity of 51.21%. A result above 100% means the air cannot hold that much vapor at that temperature, and the calculator reports an error.

Specific humidity from pressures

The main formula applies directly. A vapor pressure of 2 kPa in air at 101.325 kPa gives q = 0.622 ร— 2 รท (101.325 โˆ’ 0.756) = 0.01237 kg/kg, which is 12.37 g/kg or 1.237% by mass.

Water-vapor pressure

e = q ร— p รท
(0.622 + 0.378 ร— q)

q is in kg/kg. A specific humidity of 10 g/kg at 101.325 kPa is 0.010 ร— 101.325 รท 0.62578 = 1.619 kPa.

Total air pressure

p = e ร— (0.622 รท q + 0.378)

A vapor pressure of 2 kPa with a specific humidity of 12.376 g/kg gives p = 2 ร— (0.622 รท 0.012376 + 0.378) = 101.273 kPa.

Mixing Ratio, Absolute Humidity and Dew Point

Mixing ratio is the mass of water vapor per mass of dry air [2], w = q รท (1 โˆ’ q), so it is always a little larger than specific humidity: 9.762 g/kg of moist air is 9.858 g/kg of dry air. Absolute humidity is the mass of vapor in a volume of air, e รท (461.5 ร— T) with e in Pa and T in kelvin, which is 11.49 g/mยณ at 25 ยฐC and 50% relative humidity. Dew point is the temperature at which e equals the saturation pressure, found by inverting the saturation formula: 13.86 ยฐC in the same case.

Limits of This Estimate

  • Moist air is treated as an ideal gas and 0.622 is a rounded constant, so the result is an estimate, not a high-precision standard.
  • Total pressure has to be the absolute pressure at the location, not a reading corrected to sea level.
  • Saturation pressure is over liquid water. Below 0 ยฐC the dew point refers to supercooled water, not frost.
  • Temperatures outside โˆ’40 to 50 ยฐC (โˆ’40 to 122 ยฐF) are rejected.

Sources