This calculator converts between dew point, relative humidity, and air temperature, letting you enter any two of the three values to get the third. It uses the Magnus formula approximation, which is accurate enough for most practical purposes (weather, HVAC, comfort) between about -45°C and 60°C. You also get the absolute humidity (grams of water vapor per cubic meter) for a more direct sense of how much moisture is actually in the air.
Formula
The Magnus formula relates saturation vapor pressure es (in hPa) to temperature T (in °C):
es(T) = 6.112 × exp( (17.625 × T) / (243.04 + T) )
Relative humidity (RH) is the ratio of actual vapor pressure e to saturation vapor pressure at the air temperature, expressed as a percentage:
RH = 100 × e / es(T_air)
Dew point Td is the temperature at which the actual vapor pressure equals the saturation vapor pressure, so e = es(Td). Inverting the Magnus formula gives:
Td = 243.04 × ( ln(RH/100) + (17.625 × T) / (243.04 + T) ) / ( 17.625 − ln(RH/100) − (17.625 × T) / (243.04 + T) )
Absolute humidity (AH) in g/m³ is derived from the ideal gas law applied to water vapor:
AH = ( e × 100 ) × 18.01528 / ( R × (T + 273.15) )
where e is in hPa, 18.01528 g/mol is the molar mass of water, R = 8.31446261815324 J/(mol·K), and (T + 273.15) converts °C to K. The factor 100 converts hPa to Pa.
Worked Example
Using the defaults: air temperature T = 25 °C, relative humidity RH = 50%. First compute the saturation vapor pressure at 25 °C:
es(25) = 6.112 × exp( (17.625 × 25) / (243.04 + 25) ) = 6.112 × exp(440.625 / 268.04) = 6.112 × exp(1.6439) ≈ 6.112 × 5.174 ≈ 31.62 hPa
Actual vapor pressure e = 0.50 × 31.62 = 15.81 hPa.
Now find the dew point using the inversion:
Td = 243.04 × ( ln(0.50) + (17.625 × 25)/(243.04 + 25) ) / ( 17.625 − ln(0.50) − (17.625 × 25)/(243.04 + 25) )
ln(0.50) = −0.6931. The fraction (17.625 × 25)/(268.04) = 1.6439. So numerator = 243.04 × (−0.6931 + 1.6439) = 243.04 × 0.9508 = 231.1. Denominator = 17.625 − (−0.6931) − 1.6439 = 17.625 + 0.6931 − 1.6439 = 16.6742. Thus Td = 231.1 / 16.6742 ≈ 13.86 °C, which rounds to 13.9 °C as shown.
Absolute humidity: AH = (15.81 × 100) × 18.01528 / (8.31446261815324 × (25 + 273.15)) = 1581 × 18.01528 / (8.31446 × 298.15) = 28482 / 2479.0 ≈ 11.49 g/m³, which rounds to 11.49 g/m³.
Assumptions
- The Magnus formula is an approximation; it matches the more exact Goff-Gratch equation to within about 0.1% over the range −40 °C to +60 °C.
- Air is assumed to be an ideal gas; this is valid for normal atmospheric pressures.
- The calculator assumes standard atmospheric pressure (1013.25 hPa). At high altitudes, the same RH and temperature produce a lower absolute humidity because total pressure is lower.
- Dew point is independent of pressure to a good approximation (the vapor pressure of water is a function of temperature only), so the dew point value remains valid at altitude.
- No account is taken of dissolved gases or pollutants; the formula applies to pure water vapor in air.
When to Use This Calculator
Use this tool when you have two of the three values (temperature, RH, dew point) and need the third. Common situations include:
- Interpreting a weather report that gives only temperature and dew point, and you want to know the relative humidity.
- Setting up a humidor or a greenhouse: you know the target RH and ambient temperature, and you need to know the dew point to avoid condensation on surfaces.
- Checking comfort conditions: a dew point above 20 °C feels muggy, below 10 °C feels dry.
- Estimating the risk of frost or condensation on a cold pipe or window: compare the surface temperature to the dew point.
For example, if the air is 30 °C and the dew point is 22 °C, the RH is about 62% – that feels quite humid. If the same dew point occurs at 15 °C, the RH is near 100% and fog or rain is likely.
How to Read the Results
The three outputs are:
- Relative humidity – the percentage of moisture relative to the maximum the air can hold at that temperature. It changes with temperature even if the actual moisture stays constant.
- Dew point – the temperature at which condensation begins. It is a direct measure of the actual moisture content; it does not change when the air temperature changes (unless moisture is added or removed).
- Absolute humidity – grams of water vapor per cubic meter of air. This is the most physical measure of moisture content, useful for drying or humidification calculations.
A common misconception is that a high RH always means a lot of water in the air. At 0 °C and 100% RH, the absolute humidity is about 4.8 g/m³, while at 30 °C and 50% RH it is about 15 g/m³ – three times more water despite the lower RH. The dew point and absolute humidity reflect the actual moisture, while RH is relative to temperature.
Common Mistakes and Limitations
- Mixing up °C and °F: The Magnus constants (17.625, 243.04) are for Celsius. If you input Fahrenheit, the results are nonsense. Convert to °C first.
- Using RH as a moisture measure: RH alone is not enough to know how much water is present; always pair it with temperature.
- Ignoring pressure: At high altitudes, the same RH and temperature produce less absolute humidity. The dew point is largely unaffected, but absolute humidity is overestimated if you assume sea-level pressure.
- Rounding too early: If you round intermediate values to one decimal, the final dew point can be off by a few tenths of a degree. Use full precision in calculations.
- Extreme temperatures: Below −40 °C or above 60 °C, the Magnus formula deviates more from physical reality; use a more rigorous formula (e.g., Goff-Gratch) for those ranges.
Dew Point vs. Frost Point
Below 0 °C, the term “dew point” is sometimes replaced by “frost point” because water vapor deposits directly as ice. The Magnus formula used here gives the saturation vapor pressure over liquid water, which is slightly higher than over ice at the same temperature. This means that at sub-zero temperatures, the calculated dew point may be a fraction of a degree lower than the true frost point. For most practical purposes (e.g., weather forecasts), the difference is negligible (less than 0.5 °C down to −20 °C). If you need precision in icing conditions, use a dedicated frost-point formula that uses saturation over ice.
Frequently Asked Questions
What is the difference between dew point and relative humidity?
Relative humidity is a ratio: how much moisture is in the air compared to how much it could hold at that temperature, expressed as a percentage. Dew point is an absolute measure: the temperature to which air must cool to become saturated. A dew point of 15 °C always means the same amount of moisture, regardless of air temperature, while RH changes with temperature even if the moisture stays constant.
Why does dew point feel more accurate than humidity for comfort?
Because dew point directly reflects the actual water vapor content, which drives how quickly sweat evaporates from your skin. At a dew point below 10 °C, air feels dry; at 15–20 °C, it feels comfortable; above 20 °C, it feels muggy and sticky. RH, on the other hand, can be 90% on a cool morning (feeling fine) or 40% on a hot afternoon (feeling oppressive), so it is less intuitive for comfort.
Can dew point be higher than air temperature?
No. If the dew point equals the air temperature, the air is saturated (RH = 100%). The dew point cannot exceed the air temperature because that would imply the air holds more water vapor than it can hold at that temperature, which is physically impossible. If you see dew point above temperature in a forecast, it usually means fog or precipitation is occurring.
How do I measure dew point in practice?
The most common instruments are a chilled mirror hygrometer (which cools a mirror until condensation forms and reads that temperature) and a capacitive sensor that measures RH and temperature, from which dew point is calculated using the same Magnus formula. For rough estimates, you can use a sling psychrometer with wet and dry bulb thermometers and a conversion chart.
Does the calculator work at high altitude?
The dew point and RH calculations are essentially independent of total air pressure, so they remain accurate at altitude. However, the absolute humidity output assumes sea-level pressure (1013.25 hPa). At 3000 meters (about 700 hPa), the true absolute humidity would be roughly 30% lower than the calculator shows for the same temperature and RH. If you need absolute humidity at altitude, adjust by the pressure ratio.
Why does condensation form on a cold glass even when RH is not 100%?
Condensation occurs when a surface is colder than the dew point of the surrounding air. The air near the glass cools below its dew point, causing water to condense on the surface. Even if the overall room RH is 50%, the local air right next to the cold glass becomes saturated. This is why you see fog on windows in winter or moisture on a cold drink in summer.