How to Calculate Specific Humidity, Humidity Ratio, and Mixing Ratio from Relative Humidity
Specific humidity, humidity ratio, and mixing ratio all measure moisture in air — but differently. Here are the exact formulas, worked examples, a comparison table, and a calculator that outputs all three instantly.
You look up a weather report and see "relative humidity: 65%." Your HVAC manual asks for the "humidity ratio." Your meteorology textbook uses "mixing ratio." Your climate model requires "specific humidity." They sound interchangeable. They are not — and confusing them will ruin your calculation.
Here is the definitive guide to all three: what they measure, how to calculate each from relative humidity and temperature, and when each one actually matters. If you want to skip straight to the numbers:
The Three Moisture Metrics: A Quick Map
Before the formulas, understand what each metric is actually counting:
| Metric | Unit | What it measures | Temperature-dependent? |
|---|---|---|---|
| Relative Humidity | % | Fraction of saturation capacity | ✅ Yes — shifts with temp |
| Specific Humidity (q) | g/kg | Mass of water vapor per kg of moist air | ❌ No |
| Humidity Ratio (W) | g/kg | Mass of water vapor per kg of dry air | ❌ No |
| Mixing Ratio (r) | g/kg | Mass of water vapor per kg of dry air | ❌ No |
| Absolute Humidity | g/m³ | Mass of water vapor per cubic meter of air | ❌ No |
Specific humidity and mixing ratio are nearly identical — the only difference is the denominator: specific humidity divides by total (moist) air mass, mixing ratio divides by dry air mass only. At typical atmospheric humidity levels, they differ by less than 1%. In practice, the terms are often used interchangeably in HVAC, though they are technically distinct.
How to Calculate Mixing Ratio from Relative Humidity and Temperature
The mixing ratio (also called humidity ratio in HVAC) is the most commonly requested of these metrics. It tells you how many grams of water vapor are mixed with each kilogram of dry air.
Step 1 — Saturation vapor pressure (Magnus formula):
e_s(T) = 6.112 × exp(17.625 × T / (243.04 + T)) [hPa]
Step 2 — Actual vapor pressure:
e = e_s(T) × (RH / 100) [hPa]
Step 3 — Mixing Ratio:
W = 621.98 × e / (P − e) [g/kg]
Where:
T = air temperature in °C
RH = relative humidity in %
P = atmospheric pressure in hPa (use 1013.25 at sea level)
Worked Example
Given: Air temperature = 25°C, Relative humidity = 60%, Elevation = sea level (P = 1013.25 hPa)
e_s(25) = 6.112 × exp(17.625 × 25 / 268.04)
= 6.112 × exp(1.644)
≈ 6.112 × 5.174
≈ 31.63 hPa
e = 31.63 × 0.60 = 18.98 hPa
W = 621.98 × 18.98 / (1013.25 − 18.98)
= 11,801 / 994.27
≈ 11.87 g/kg
At 25°C and 60% RH: Mixing Ratio ≈ 11.87 g/kg dry air. The calculator above outputs this directly.
How to Calculate Specific Humidity from Relative Humidity
Specific humidity (q) divides water vapor mass by total air mass (dry air + water vapor), not just dry air. The formula is almost identical to mixing ratio, but uses a slightly different denominator:
q = W / (1 + W/1000) [g/kg moist air]
Or directly:
q = 622 × e / (P − 0.378 × e) [g/kg]
Where:
e = actual vapor pressure (hPa)
P = atmospheric pressure (hPa)
Why the Difference Is Tiny
Using our 25°C / 60% RH example (e = 18.98 hPa, P = 1013.25 hPa):
q = 622 × 18.98 / (1013.25 − 0.378 × 18.98)
= 11,806 / (1013.25 − 7.17)
= 11,806 / 1006.08
≈ 11.73 g/kg
Mixing ratio: 11.87 g/kg. Specific humidity: 11.73 g/kg. The difference is 0.14 g/kg — under 1.2%. At typical atmospheric humidity levels, you can use either interchangeably for most practical purposes. At very high humidity (>90% RH) or high-altitude conditions, the gap widens enough to matter for precision engineering.
Mixing Ratio vs. Specific Humidity Reference Table
Pre-calculated values at sea level (P = 1013.25 hPa):
| Temperature | RH | Mixing Ratio (W) | Specific Humidity (q) | Absolute Humidity |
|---|---|---|---|---|
| 10°C | 50% | 3.79 g/kg | 3.78 g/kg | 4.71 g/m³ |
| 10°C | 80% | 6.08 g/kg | 6.04 g/kg | 7.53 g/m³ |
| 20°C | 50% | 7.27 g/kg | 7.22 g/kg | 8.65 g/m³ |
| 20°C | 70% | 10.27 g/kg | 10.17 g/kg | 12.10 g/m³ |
| 25°C | 60% | 11.87 g/kg | 11.73 g/kg | 13.82 g/m³ |
| 30°C | 60% | 16.10 g/kg | 15.85 g/kg | 18.98 g/m³ |
| 35°C | 70% | 25.97 g/kg | 25.31 g/kg | 29.77 g/m³ |
All values computed using Magnus-Tetens formula with Alduchov & Eskridge (1996) coefficients.
How to Calculate Mixing Ratio from Temperature and Relative Humidity: The Short Version
If you need this for a quick calculation:
- Get the saturation vapor pressure using
e_s = 6.112 × exp(17.625T / (243.04 + T)) - Get the actual vapor pressure:
e = e_s × (RH / 100) - Get the mixing ratio:
W = 621.98 × e / (1013.25 − e)(at sea level)
Or just use the calculator at the top of this page — it outputs Mixing Ratio in g/kg directly in the results.
How to Convert Relative Humidity to Specific Humidity: Real-World Uses
Weather forecasting and climate modeling: Climate models track specific humidity because it does not change when air masses rise or descend (and change temperature). It is a conserved quantity — the same value follows a parcel of air through its journey, which makes it useful for tracking moisture transport.
Aviation and combustion: Specific humidity matters for fuel-to-air ratio calculations and engine performance. Moist air is less dense than dry air at the same temperature and pressure, affecting both lift and combustion efficiency.
Indoor air quality engineering: HVAC designers calculate the humidity ratio of supply and return air to size dehumidification loads. If return air has a mixing ratio of 14 g/kg and you need to deliver supply air at 9 g/kg, the system must remove 5 g of water per kg of air processed.
Frequently Asked Questions
Is humidity ratio the same as mixing ratio? Almost. Both divide water vapor mass by dry air mass and are expressed in g/kg. The term "humidity ratio" (symbol W) is standard in HVAC and psychrometrics per ASHRAE. "Mixing ratio" (symbol r) is standard in meteorology. The formulas are identical; the communities just use different names.
How do I calculate specific humidity without knowing relative humidity?
If you have dew point and temperature, you can find specific humidity directly: calculate actual vapor pressure from dew point using e = 6.112 × exp(17.625 × Td / (243.04 + Td)), then apply q = 622e / (P − 0.378e). You can enter dew point and temperature into the Relative Humidity Calculator and the mixing ratio stat will display automatically.
What is a typical specific humidity value for comfortable indoor air? At a comfortable indoor temperature of 21°C and 45% RH, specific humidity is approximately 7.0 g/kg. At 50% RH it rises to about 7.8 g/kg. For reference, a tropical summer day at 32°C / 75% RH has a specific humidity around 22 g/kg — three times as moisture-laden.
Why does mixing ratio use 621.98 as the constant? That constant is the ratio of the molecular weight of water (18.015 g/mol) to the molecular weight of dry air (28.965 g/mol), expressed as a ratio: 18.015/28.965 × 1000 ≈ 621.98. It converts vapor pressure ratios into a mass-per-mass ratio.
How does altitude affect mixing ratio? Because mixing ratio uses atmospheric pressure (P) in the denominator, it changes with altitude. At Denver (elevation ≈ 1,609 m, P ≈ 840 hPa), the same temperature and RH produces a higher mixing ratio than at sea level because the denominator (P − e) is smaller. The calculator accounts for this when you enter an elevation value.
Ready to run the numbers?
Get your result instantly — private, in your browser.