Calculate specific humidity from temperature and relative humidity or from vapor pressure, or convert specific humidity back to relative humidity.
Related Calculators
- Apparent Temperature Calculator
- m3/h to cfm Converter
- Watts To Btu Calculator
- Pounds Per Minute Calculator
- All Unit Converters
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Specific humidity from temperature and RH | Finds specific humidity from air temperature and relative humidity | Requires dry-bulb temperature, relative humidity and total absolute air pressure |
| Relative humidity from specific humidity | Converts specific humidity to relative humidity at a given temperature | Requires dry-bulb temperature, specific humidity and total absolute air pressure |
| Specific humidity from pressures | Finds specific humidity from the water-vapor partial pressure | Requires water-vapor partial pressure and total absolute air pressure |
| Water-vapor pressure | Finds the water-vapor partial pressure that matches a specific humidity | Requires specific humidity and total absolute air pressure |
| Total air pressure | Finds the total air pressure that matches a vapor pressure and a specific humidity | Requires 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
(p โ 0.378 ร e) [1]
| q | Specific humidity: mass of water vapor per mass of moist air (kg/kg) |
| e | Water-vapor partial pressure |
| p | Total 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 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
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
(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
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
- American Meteorological Society, Glossary of Meteorology, Specific humidity: definition of specific humidity and its relation to mixing ratio
- American Meteorological Society, Glossary of Meteorology, Mixing ratio: mixing ratio from vapor pressure and total pressure
- Alduchov and Eskridge, Improved Magnusโ Form Approximation of Saturation Vapor Pressure, NOAA National Climatic Data Center (U.S. DOE report): saturation vapor pressure constants and their temperature range

