Mixing Ratio of Air Calculator

Enter air temperature, relative humidity, and atmospheric pressure to get the humidity mixing ratio (w = 0.622 x e / (P - e)) along with saturation vapor pressure, actual vapor pressure, and specific humidity.

Quick Facts

Mixing ratio formula
w = 0.622 × e / (P − e)
e is actual vapor pressure, P is total atmospheric pressure; result is grams of vapor per kilogram of dry air.
Saturation vapor pressure (Magnus formula)
e_s = 6.1094 × e^(17.625T / (T+243.04))
T in °C, result in hPa; valid roughly from -40°C to 50°C.
Typical values
~1-3 g/kg (cold/dry) to ~20 g/kg (hot/humid)
Room air near 25°C at 50% RH is about 10 g/kg.

Your Results

Calculated
Mixing Ratio (w)
-
w = 0.622 × e / (P − e), g water vapor per kg dry air
Specific Humidity (q)
-
q = 0.622 × e / (P − 0.378e), g water vapor per kg moist air
Saturation Vapor Pressure (e_s)
-
Maximum vapor pressure possible at this temperature
Actual Vapor Pressure (e)
-
e = (RH / 100) × e_s

Ready

Enter temperature, relative humidity, and pressure, then press Calculate.

How to Calculate the Mixing Ratio of Air

The mixing ratio (also called the humidity ratio) is the mass of water vapor carried by each unit mass of dry air. Meteorologists and HVAC engineers prefer it over relative humidity for many calculations because it does not change when air is heated or cooled without adding or removing moisture. This calculator derives the mixing ratio from air temperature, relative humidity, and atmospheric pressure using the standard vapor-pressure formula w = 0.622 × e / (P − e), where e is the actual (partial) vapor pressure of water in the air, P is the total atmospheric pressure, and 0.622 is the ratio of the molar mass of water (18.02 g/mol) to the molar mass of dry air (28.97 g/mol).

Deriving vapor pressure from temperature and humidity

The calculator first estimates the saturation vapor pressure e_s at your input temperature using the Magnus (Alduchov-Eskridge) approximation: e_s = 6.1094 × exp(17.625T / (T + 243.04)), with T in °C and e_s in hPa. This is the maximum vapor pressure the air could hold before water starts condensing out at that temperature. The actual vapor pressure is then e = (RH / 100) × e_s, where RH is the relative humidity you entered. Plugging e and your input pressure P into w = 0.622e / (P − e) gives the mixing ratio, typically reported in grams of water vapor per kilogram of dry air (multiply the kg/kg result by 1000). The closely related specific humidity, q = 0.622e / (P − 0.378e), expresses the same water vapor mass per kilogram of moist (total) air instead of dry air — the two values differ by less than 2% at typical atmospheric conditions.

Practical notes and typical ranges

  • Pressure matters: at high altitude, lower atmospheric pressure P pushes the mixing ratio higher for the same temperature and relative humidity, because there is less total air mass to dilute the same vapor pressure.
  • Sea-level standard pressure is 1013.25 hPa (1 atm); use your local station pressure for the most accurate result if you have it.
  • Typical mixing ratios: cold winter air near 0°C often carries under 3 g/kg; warm, humid summer or tropical air can exceed 20 g/kg.
  • Valid range: the Magnus formula used here is accurate to within about 0.1% for temperatures between roughly -40°C and 50°C — extreme temperatures outside that band are flagged as invalid.

Frequently Asked Questions

What is the mixing ratio of air?
The mixing ratio is the mass of water vapor mixed with each unit mass of dry air, usually reported in grams of water vapor per kilogram of dry air (g/kg). It is computed as w = 0.622 × e / (P − e), where e is the actual (partial) vapor pressure, P is the total atmospheric pressure, and 0.622 is the ratio of the molar mass of water vapor to the molar mass of dry air.
How is mixing ratio different from relative humidity?
Relative humidity is a percentage that compares the actual vapor pressure to the saturation vapor pressure at the same temperature, so it changes with temperature even if the actual amount of water vapor stays constant. Mixing ratio measures the actual mass of water vapor per kilogram of dry air, so it stays constant as air is heated or cooled (as long as no vapor condenses or evaporates).
How is mixing ratio different from specific humidity?
Mixing ratio (w) expresses water vapor mass per unit mass of dry air, w = 0.622e/(P-e). Specific humidity (q) expresses water vapor mass per unit mass of moist (total) air, q = 0.622e/(P-0.378e). The two values are numerically very close at typical atmospheric humidities and only diverge noticeably when the air is very warm and very moist.
What is a typical mixing ratio value?
Cold, dry winter air near 0°C can have a mixing ratio below 2 g/kg, while warm, humid tropical air near 30°C and high relative humidity can exceed 25 g/kg. Room-temperature air at 25°C and 50% relative humidity has a mixing ratio of roughly 10 g/kg.