Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Mixing Ratio Formula: Meteorology Made Simple

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The mixing ratio formula is w = 0.622 × e / (p − e), where w is the mixing ratio in grams of water vapour per kilogram of dry air, e is the actual vapour pressure of the air, p is the total atmospheric pressure, and 0.622 is the ratio of the molar mass of water vapour to that of dry air. Plug in e and p, both in the same pressure unit (hPa or mb is easiest), and the result comes out as a dimensionless mass ratio you then multiply by 1000 to get g/kg. Nothing needs to be ordered and no special software is required: a calculator, a pressure reading and a vapour pressure value are enough to get a working answer in under a minute.

Because vapour pressure is rarely measured directly, most practical work starts from a relative humidity or dew point reading and works back to e, then forward to w. That two-step route is the one worth learning, since it is how weather stations, soundings and spreadsheets actually produce the number.

What You'll Need

  • A scientific calculator or spreadsheet with an exponential function.
  • The air pressure at your location, in hPa (millibars) — from a barometer, a nearby station, or a weather app that reports station pressure rather than sea-level pressure.
  • Either the vapour pressure e (in hPa) directly, or a temperature plus a relative humidity or dew point to derive it.
  • A consistent unit convention. Convert everything to hPa and degrees Celsius before starting; mixing kelvin and Fahrenheit mid-calculation is the fastest way to a wrong answer.

Step-by-Step

  1. Write down the formula. Commit to w = 0.622e / (p − e). Note that the plain version divides by (p − e), the pressure of dry air, not by p alone. Using p instead of (p − e) is an approximation that is fine at low humidity but drifts at high humidity and low pressure.
  2. Fix your units. Put pressure p and vapour pressure e in the same unit, hPa. If your barometer reads inches of mercury, multiply by 33.8639 to get hPa. If it reads kilopascals, multiply by 10. Degrees should be Celsius; convert Fahrenheit with C = (F − 32) × 5/9.
  3. Get the vapour pressure. If you already have e, skip ahead. If you have dew point Td in Celsius, use the Magnus form: e = 6.112 × exp(17.67 × Td / (Td + 243.5)), with e in hPa. If you have relative humidity RH as a percentage, first compute the saturation vapour pressure at the air temperature T using the same expression with T in place of Td, then multiply by RH/100 to get e.
  4. Substitute both values into the main formula. For example, at p = 1013 hPa and e = 12 hPa: w = 0.622 × 12 / (1013 − 12) = 7.464 / 1001 = 0.00746. Multiply by 1000 and the mixing ratio is about 7.46 g/kg.
  5. Convert to g/kg and sanity-check the size. Warm, humid surface air sits roughly in the 5–20 g/kg band; cold air often holds well under 5 g/kg; tropical air can exceed 18 g/kg. If your answer comes out as 0.007 or 746, you have missed or doubled the ×1000 step.
  6. Cross-check against saturation. Compute the saturation mixing ratio ws the same way but using the saturation vapour pressure at T. The actual w must be less than ws, and the ratio w/ws should match the relative humidity you started with (both as fractions). If it does not, your e or RH conversion is wrong.
  7. Record the assumptions. Note the pressure source, the temperature, and whether you used dew point or RH. These matter because mixing ratio is conserved when air rises and expands, which is exactly why forecasters and balloon-sounding software track it instead of relative humidity.

Common Mistakes

Dividing by p instead of (p − e). At 15 g/kg in high humidity the error is a few tenths of a percent, but it grows with humidity and altitude, and it is simply the wrong arithmetic.

Forgetting the 0.622 factor. Without it you are computing a mass concentration ratio of the wrong species; the number is close-ish at low vapour pressures but not the mixing ratio.

Mixing sea-level and station pressure. Weather apps often show pressure reduced to sea level. At 1,500 m elevation that can be 150 hPa too high, which understates w noticeably. Use absolute station pressure.

Using the wrong temperature in the saturation expression. For dew point, use Td. For relative humidity, use the air temperature T to get the saturation value. Swapping them silently produces plausible but wrong numbers.

Confusing mixing ratio with specific humidity. Specific humidity q = w / (1 + w) and is always slightly smaller. The difference is small below about 10 g/kg but not zero, so label your output correctly.

Tips

The Magnus coefficients above are a widely used approximation; many soundings use slightly different constants, so small differences between sources are normal. If you are programming, keep w, e and p in double precision and apply the exponential last to avoid rounding losses. When comparing to published values, remember that some tables quote g/kg and others quote kg/kg — read the header. For quick field estimates, the saturation vapour pressure at 20 °C is about 23.4 hPa, which is a useful mental anchor. And keep a worked example next to your formula; re-deriving a known case is faster than debugging a spreadsheet from scratch.

Troubleshooting

Answer is ten or a thousand times off: check the ×1000 conversion and confirm e is not already in g/kg or p in Pa.

Result changes wildly between apps: one app is almost certainly reporting sea-level pressure. Set both to station pressure.

w is larger than saturation: this is physically impossible in normal air, so either T and Td are swapped, RH is being applied twice, or your pressure is too low. Recompute ws first, then work backwards.

Negative or zero result: a negative e usually means a signed conversion error or a dew point below the absolute-zero guard in your exponential; clamp temperature inputs to realistic values.

Numbers disagree with a sounding: check whether the sounding is reporting mixing ratio, specific humidity, or a dew-point depression, and confirm whether the pressure level is the same one you used.

Frequently Asked Questions

Why is the 0.622 in the formula?

It is the ratio of the molar mass of water vapour to that of dry air, roughly 18.02 divided by 28.97, and converts between vapour pressure ratio and mass ratio.

Can mixing ratio exceed saturation?

No. Above saturation vapour condenses. Supersaturation can occur briefly in clean, cloud-free air, but sustained values above ws indicate a calculation error.

Is mixing ratio the same as humidity?

No. Relative humidity is a percentage that depends on temperature; mixing ratio is a mass ratio that does not change when air rises and cools. That is why parcel work uses it.

What units should I report it in?

g/kg is standard in meteorology. Some sources use kg/kg, which is 1000 times smaller, so always state the unit.

Which vapour pressure formula should I use?

The Magnus form with coefficients 6.112, 17.67 and 243.5 is adequate for most work. More elaborate forms differ only in the last decimal places at ordinary temperatures.