Temperature and humidity are linked through the ideal gas law and the Clausius-Clapeyron equation: relative humidity (RH) equals the ratio of actual vapor pressure to saturation vapor pressure at a given temperature, expressed as a percentage. The saturation vapor pressure increases exponentially with temperature, so warmer air can hold more water vapor, and for a fixed amount of moisture, RH drops as temperature rises.
Formula
The key equations are the Magnus formula for saturation vapor pressure and the dew point formula derived from it.
- Saturation vapor pressure (es) in kPa: es = 0.6108 × exp(17.27 × T / (T + 237.3)), where T is air temperature in °C.
- Actual vapor pressure (e) in kPa: e = (RH/100) × es.
- Relative humidity (RH) in %: RH = 100 × e / es.
- Dew point (Td) in °C: Td = (237.3 × ln(e / 0.6108)) / (17.27 − ln(e / 0.6108)).
Here, T is the air temperature in degrees Celsius, e is the actual vapor pressure (the partial pressure of water vapor in the air), and es is the saturation vapor pressure at that temperature. The Magnus formula is an approximation valid from about −40 °C to +60 °C, with an error under 0.5% in that range.
Worked Example
Let’s use the default values: air temperature = 25 °C, relative humidity = 50%.
- Calculate saturation vapor pressure: es = 0.6108 × exp(17.27 × 25 / (25 + 237.3)) = 0.6108 × exp(431.75 / 262.3) = 0.6108 × exp(1.646) = 0.6108 × 5.185 ≈ 3.167 kPa.
- Calculate actual vapor pressure: e = (50/100) × 3.167 = 1.583 kPa.
- Calculate dew point: Td = (237.3 × ln(1.583 / 0.6108)) / (17.27 − ln(1.583 / 0.6108)) = (237.3 × ln(2.592)) / (17.27 − ln(2.592)) = (237.3 × 0.953) / (17.27 − 0.953) = 226.1 / 16.32 ≈ 13.9 °C.
The calculator shows: saturation vapor pressure = 3.167 kPa, actual vapor pressure = 1.583 kPa, dew point = 13.9 °C. That means at 25 °C and 50% RH, condensation will occur if the air cools to about 14 °C.
Assumptions
- The Magnus formula assumes standard atmospheric pressure (sea level, ~101.325 kPa). At higher altitudes, the same RH corresponds to lower absolute humidity.
- It assumes the air is a mixture of ideal gases, which is accurate for atmospheric conditions.
- The formula uses a constant that fits the Clausius-Clapeyron equation over a limited temperature range; it is not valid for extreme temperatures (below −40 °C or above 60 °C).
- It assumes no interaction with surfaces or aerosols; the formulas describe bulk air properties.
Why Temperature Affects Humidity
The relationship comes from the physics of evaporation. Water molecules escape a liquid surface when they have enough kinetic energy. Higher temperature means more molecules have that energy, so more water can exist as vapor before the air is saturated. The Clausius-Clapeyron equation describes how the saturation vapor pressure increases with temperature—approximately exponentially. For every 10 °C increase, the saturation vapor pressure roughly doubles. For example, at 20 °C, es ≈ 2.34 kPa; at 30 °C, es ≈ 4.24 kPa; at 40 °C, es ≈ 7.38 kPa.
This is why a warm room feels dry in winter: the absolute moisture content might be similar, but the RH is low because the air can hold more vapor. Conversely, a cool basement feels damp even if the actual vapor pressure is the same as in a warm room.
How to Read the Result
The calculator gives three outputs: actual vapor pressure, saturation vapor pressure, and dew point. The first two tell you the absolute moisture content and the capacity of the air. The dew point is the most intuitive: it is the temperature to which air must be cooled (at constant pressure and moisture content) for condensation to begin. A high dew point (above 20 °C) feels muggy; a low dew point (below 0 °C) feels dry. The difference between air temperature and dew point indicates how close the air is to saturation: a small spread (e.g., 2 °C) means fog or precipitation is likely; a large spread (e.g., 15 °C) means dry conditions.
For practical use, if you know the temperature and RH, you can compute the dew point to assess comfort or condensation risk. If you know temperature and dew point, you can compute RH using the same formulas in reverse.
Common Mistakes and Misconceptions
- Confusing RH with absolute humidity. RH is a ratio; it does not tell you how much water vapor is in the air. Two locations can both have 50% RH, but one at 30 °C has much more moisture per cubic meter than one at 10 °C.
- Using the wrong unit for temperature. The Magnus formula requires Celsius. If you use Fahrenheit, you must convert first: T°C = (T°F − 32) × 5/9.
- Forgetting that RH changes with temperature. If you heat air from 20 °C to 25 °C without adding moisture, the RH drops because es increases while e stays constant. Many people think a heater adds humidity; it actually lowers RH.
- Rounding too early. In the worked example, rounding es to 3.17 kPa before computing e leads to a dew point error of about 0.1 °C. For precision, keep intermediate values to at least 5 significant figures.
- Assuming the formula works at all altitudes. At high elevation, atmospheric pressure is lower, so the same RH corresponds to a lower actual vapor pressure. The Magnus formula is calibrated for sea level; corrections are needed above ~2000 m.
Practical Applications
This relationship is used in meteorology, HVAC (heating, ventilation, and air conditioning), agriculture, and industrial processes. For example:
- In greenhouses, growers monitor RH to prevent fungal diseases; they know that warming the air reduces RH, so they may heat and ventilate to keep leaves dry.
- In museums, the dew point is used to prevent condensation on cold surfaces, which can damage artifacts.
- In data centers, the ASHRAE guidelines recommend RH between 20% and 80% to avoid static discharge and condensation; the dew point is often monitored instead of RH because it is a more stable indicator.
- In weather forecasting, the dew point is a better predictor of fog than RH alone.
Limitations of the Formula
The Magnus formula is an approximation. It does not account for the presence of dissolved substances (like salt in sea spray) that lower the saturation vapor pressure. It also assumes a flat water surface; in clouds, droplets are curved, which slightly raises the saturation vapor pressure (Kelvin effect). For most practical purposes, these effects are negligible, but they matter in specialized fields like cloud physics. Additionally, the formula gives the saturation vapor pressure over liquid water; over ice, the values are slightly lower at temperatures below 0 °C, which is why frost can form even when the dew point is above the frost point.
For extreme accuracy, use the more complex Goff-Gratch equations or a psychrometric chart. But for everyday calculations, the Magnus formula is accurate to within a few percent in the range of typical weather.
Frequently Asked Questions
How do I calculate relative humidity from temperature and dew point?
First, compute the saturation vapor pressure at the air temperature (es) using the Magnus formula. Then compute the saturation vapor pressure at the dew point (ed) using the same formula but with Td instead of T. The actual vapor pressure e is approximately ed (since the dew point is the temperature at which the air would be saturated). Finally, RH = 100 × ed / es. For example, if air temperature is 25 °C and dew point is 15 °C, es = 3.167 kPa and ed = 1.705 kPa, so RH = 53.8%.
Why does humidity feel different at different temperatures?
Because RH is relative to temperature. At 30 °C and 50% RH, the air contains about 15 g/m³ of water vapor, which feels muggy. At 10 °C and 50% RH, the air contains only about 4.5 g/m³, which feels dry. Our bodies cool by evaporating sweat; high absolute humidity slows evaporation, making us feel hotter and stickier.
What is the difference between relative humidity and dew point?
Relative humidity is a percentage that compares the current vapor pressure to the maximum possible at that temperature. Dew point is an absolute measure of moisture content, expressed as a temperature. A dew point of 15 °C always means the same amount of water vapor in the air, regardless of air temperature. RH, on the other hand, can change without any moisture being added or removed, simply by changing temperature.
Can I use this formula for humidity in my house?
Yes, it works for indoor air as long as the temperature is between −40 °C and 60 °C and pressure is near sea level. For home use, you can measure temperature and RH with a cheap hygrometer, then compute the dew point to see if condensation might occur on cold windows. If the dew point is higher than the window surface temperature, you will get condensation.
Does the formula work for humidifiers or dehumidifiers?
It describes the state of air, so it can help you understand how a humidifier or dehumidifier changes conditions. For example, a dehumidifier removes water vapor, lowering the actual vapor pressure and thus the dew point. If the temperature stays the same, RH drops. A humidifier adds water vapor, raising the dew point and RH. The formula helps you predict the new RH after adding or removing a known amount of water, but you also need to know the volume of the room and the air density.
Related
Formula used
in t | Air temperature | °C | 25 | -40 | 60 in rh | Relative humidity | % | 50 | 0 | 100 out vp | Actual vapor pressure | kPa | (rh/100) * 0.6108 * exp(17.27 * t / (t + 237.3)) | 3 out svp | Saturation vapor pressure | kPa | 0.6108 * exp(17.27 * t / (t + 237.3)) | 3 out dp | Dew point | °C | (237.3 * log(rh/100 * exp(17.27 * t / (t + 237.3)))) / (17.27 - log(rh/100 * exp(17.27 * t / (t + 237.3)))) | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- DNA to RNA in the Nucleus: How Transcription Works0.2000 mol/L
- DNA Sequence Example Code: A Practical Guide0.2000 mol/L
- RNA Sequence Reverse Complement Tool
- DNA Sequence Quality Q15: What It Means
- T4 RNA Ligase 2 Sequence & Function15,485.0 g/mol
- T7 RNA Polymerase Sequence: Full Gene & Key Features97.5 kDa