This calculator works out relative humidity (RH) from air temperature and dew point temperature, or dew point from temperature and RH, using the Magnus formula. You enter the two values you know, and it returns the missing humidity measure plus the saturation vapor pressure at that temperature.
Formula
The calculator uses the Magnus formula, a widely used approximation for saturation vapor pressure over liquid water:
e_s(T) = 6.1094 × exp(17.625 × T / (243.04 + T))
where:
- T = air temperature (°C)
- e_s = saturation vapor pressure (hPa)
- exp = exponential function (ex)
Relative humidity is the ratio of actual vapor pressure (e) to saturation vapor pressure (e_s) at the air temperature, expressed as a percentage:
RH = 100 × e / e_s(T)
Since the dew point (Td) is the temperature at which the air would become saturated, e = e_s(Td). Combining the two equations gives the formulas used in the calculator:
- RH from T and Td: RH = 100 × exp(17.625×Td/(243.04+Td) − 17.625×T/(243.04+T))
- Td from T and RH: Td = 243.04 × (ln(RH/100) + 17.625×T/(243.04+T)) / (17.625 − (ln(RH/100) + 17.625×T/(243.04+T)))
All temperatures are in degrees Celsius; the calculator does not accept Fahrenheit directly, but you can convert with °C = (°F − 32) × 5/9.
Worked Example
Suppose the air temperature is 25 °C and the dew point is 15 °C. What is the relative humidity?
- Compute the saturation vapor pressure at 25 °C: e_s(25) = 6.1094 × exp(17.625×25/(243.04+25)) = 6.1094 × exp(1.6435) ≈ 6.1094 × 5.172 = 31.60 hPa
- Compute the actual vapor pressure (saturation at dew point): e = e_s(15) = 6.1094 × exp(17.625×15/(243.04+15)) = 6.1094 × exp(1.0248) ≈ 6.1094 × 2.786 = 17.02 hPa
- Relative humidity = 100 × 17.02 / 31.60 = 53.9%
The calculator’s first output shows 53.9% for these defaults. If you instead enter temperature 25 °C and RH 50%, the dew point output is 13.8 °C (check: Td = 243.04 × (ln(0.5) + 1.6435) / (17.625 − (ln(0.5) + 1.6435)) ≈ 13.8 °C).
Assumptions
- The Magnus formula is an approximation valid for temperatures roughly between −40 °C and +50 °C and for liquid water (not ice). Below 0 °C, saturation over ice differs slightly.
- Air is assumed to be an ideal gas mixture; the formula ignores the small effect of total air pressure on vapor pressure (the enhancement factor).
- The calculator assumes the dew point is ≤ air temperature; if you enter a dew point higher than air temperature, the result is >100% RH, which physically means supersaturation or fog/condensation.
- No adjustment is made for altitude; saturation vapor pressure depends mainly on temperature, not barometric pressure.
How to Use the Calculator
You have three input fields: air temperature, dew point temperature, and relative humidity. The calculator always uses the two you fill in and computes the third. For example:
- If you know temperature and dew point (from a weather report or a psychrometer), leave RH blank (or at default) and read the RH output.
- If you know temperature and RH (from a hygrometer), read the dew point output.
- The saturation vapor pressure output is always computed from the air temperature you enter.
Note that the calculator does not validate which fields you filled; it simply uses the values present. For a correct result, enter exactly two values (temperature plus either dew point or RH). If you enter all three, the RH and dew point outputs will be inconsistent because they are computed independently from the temperature and the other input.
Common Mistakes and Misconceptions
Mixing up dew point and wet-bulb temperature. Dew point is the temperature at which air becomes saturated (RH = 100%). Wet-bulb temperature is lower than dew point when RH < 100% and is measured with a wet wick; they are not the same.
Assuming RH alone tells you how much moisture is in the air. RH depends on temperature. Air at 20 °C with 50% RH holds about 8.7 g/m³ of water vapor; air at 30 °C with 50% RH holds about 15.3 g/m³. Dew point is a more direct measure of absolute moisture.
Using the wrong units. The Magnus formula requires Celsius; if you use Fahrenheit, results will be wildly wrong. Convert first.
Forgetting that RH can exceed 100%. If dew point > air temperature, the formula gives RH > 100%, which indicates supersaturation or condensation. In practice, fog or dew forms.
How to Choose Between Dew Point and RH
For everyday comfort, RH is more intuitive: 50% feels dry, 80% feels sticky. But for industrial processes, weather forecasting, and HVAC design, dew point is often preferred because it is independent of air temperature. For example:
- If dew point is below 10 °C, air feels dry; above 20 °C, it feels humid.
- Condensation on windows occurs when the surface temperature drops below the dew point.
- In a compressed air system, you need to know the pressure dew point to avoid water in pipes.
This calculator gives you both, so you can convert between the two measures easily.
Limitations and Accuracy
The Magnus formula is accurate to within about 0.1% RH for temperatures from −40 °C to +50 °C, which covers most meteorological and indoor applications. However, it is an empirical fit, not a fundamental law. For high-precision work (e.g., calibration of hygrometers), you should use the more exact formulations from standards like the World Meteorological Organization or the IAPWS (International Association for the Properties of Water and Steam).
Also, the calculator assumes the air is at standard atmospheric pressure. At high altitudes, the same RH and temperature give a slightly different dew point because the total pressure affects the vapor pressure. The error is small (a few tenths of a degree) for altitudes up to a few thousand meters.
Finally, remember that this is a theoretical calculation. Real measurements from a hygrometer or psychrometer can have errors due to sensor calibration, airflow, and radiation effects. Always verify critical readings with a calibrated instrument.
Frequently Asked Questions
What is the difference between dew point and humidity? Humidity usually means relative humidity, which is a percentage of how saturated the air is relative to its temperature. Dew point is the temperature at which that air would become saturated. Dew point is an absolute measure of moisture; RH is a relative measure.
Can I use this calculator for freezing temperatures? Yes, but below 0 °C the Magnus formula for liquid water is slightly different from the one for ice. The error is usually less than 1% RH, but for accurate results below −20 °C, use a formula that accounts for ice.
Why does my hygrometer read differently from this calculator? Hygrometers measure RH directly and can have calibration drift. Also, if the sensor is near a heat source or in direct sunlight, it may read differently. The calculator is only as accurate as the inputs you give it.
How do I convert Fahrenheit to Celsius for this calculator? Use °C = (°F − 32) × 5/9. For example, 68 °F = (68−32)×5/9 = 20 °C.
What is the dew point if RH is 100%? The dew point equals the air temperature. The calculator will show that if you enter T = Td, RH = 100%.
Can I use this for weather forecasting? Yes, meteorologists use dew point to predict fog, frost, and precipitation. This calculator gives you the same values used in basic weather analysis.
Related
Formula used
in t | Air temperature | °C | 25 | -273.15 | 200 in td | Dew point temperature | °C | 15 | -273.15 | 200 in rh | Relative humidity | % | 50 | 0 | 100 out rh_out | Relative humidity | % | 100 * exp((17.625 * td) / (243.04 + td) - (17.625 * t) / (243.04 + t)) | 1 out td_out | Dew point | °C | 243.04 * ((17.625 * t) / (243.04 + t) + log(rh / 100)) / (17.625 - ((17.625 * t) / (243.04 + t) + log(rh / 100))) | 1 out es | Saturation vapor pressure | hPa | 6.1094 * exp(17.625 * t / (243.04 + t)) | 2
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