molecalculator

Moles & Molar Mass

How to Calculate Humidity with Temperature

Calculator No. 01-13408 · Updated · Formula and assumptions shown below

Relative humidity 53.8 %
Saturation vapor pressure
31.62 hPa
Result, rounded to 2 decimal places
Actual vapor pressure
17.02 hPa
Result, rounded to 2 decimal places
Air temperature
25 °C
Set in the form below
You enter
Air temperature (°C), Dew point temperature (°C)
You get
Relative humidity (%), Saturation vapor pressure (hPa), Actual vapor pressure (hPa)
Rounding
1 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

This guide explains how to estimate relative humidity (RH) when you know the air temperature and the dew point temperature. You enter the two temperatures, and the calculator returns the relative humidity as a percentage, along with the saturation vapor pressure and actual vapor pressure. This is useful for weather monitoring, greenhouse control, HVAC checks, and understanding comfort levels.

Formula

The calculator uses the Magnus formula, a standard approximation for vapor pressure over liquid water. The relative humidity is the ratio of actual vapor pressure to saturation vapor pressure, expressed as a percentage.

RH = 100 × (ea / es)

where:

  • ea = actual vapor pressure (hPa) = 6.1094 × exp( (17.625 × Td) / (243.04 + Td) )
  • es = saturation vapor pressure (hPa) = 6.1094 × exp( (17.625 × T) / (243.04 + T) )
  • T = air temperature in °C
  • Td = dew point temperature in °C
  • exp is the exponential function

All temperatures are in degrees Celsius. The constants 17.625 and 243.04 are empirical coefficients for the Magnus formula over a range of about -40 °C to +50 °C.

Worked Example

Suppose the air temperature is 25 °C and the dew point is 15 °C. Calculate the relative humidity.

Step 1: Compute the saturation vapor pressure at 25 °C:

es = 6.1094 × exp( (17.625 × 25) / (243.04 + 25) )

es = 6.1094 × exp( 440.625 / 268.04 )

es = 6.1094 × exp(1.6436) = 6.1094 × 5.1736 ≈ 31.61 hPa

Step 2: Compute the actual vapor pressure at the dew point (15 °C):

ea = 6.1094 × exp( (17.625 × 15) / (243.04 + 15) )

ea = 6.1094 × exp( 264.375 / 258.04 )

ea = 6.1094 × exp(1.0245) = 6.1094 × 2.7855 ≈ 17.02 hPa

Step 3: Divide actual by saturation and multiply by 100:

RH = (17.02 / 31.61) × 100 ≈ 53.85%

Rounded to one decimal, the calculator shows 53.8%.

Assumptions

  • The Magnus formula is an approximation valid for temperatures roughly between -40 °C and +50 °C and for pressures near sea level.
  • It assumes the air is in equilibrium with a flat surface of pure water (or ice below 0 °C, though the constants here are for liquid water).
  • It does not account for atmospheric pressure variations; for most practical purposes the error is small.
  • The dew point must be less than or equal to the air temperature; if it is equal, RH = 100%.

When to Use This Calculation

Relative humidity is a key metric in meteorology, agriculture, HVAC design, and indoor air quality. If you have a hygrometer that measures dew point directly, or you obtain dew point from a weather report, this calculation converts it to the more familiar RH percentage. It is also useful when you know the wet-bulb temperature (though that requires a different formula). For quick checks, many weather apps display both temperature and dew point, and this calculator lets you verify the RH.

How to Read the Result

The RH percentage tells you how close the air is to saturation. 0% means completely dry air (rare), 100% means the air is fully saturated and condensation will form. Comfortable indoor RH is often cited as 30-50%. High RH (above 60%) can promote mold growth, while low RH (below 30%) can cause dry skin and static electricity.

Common Mistakes

  • Using Fahrenheit without converting: The formula requires Celsius. Always convert °F to °C: °C = (°F – 32) × 5/9.
  • Swapping the temperatures: The air temperature is always higher than or equal to the dew point. If you swap them, you may get an RH above 100%, which is physically impossible.
  • Rounding too early: Rounding intermediate values can shift the final RH by a few tenths. Keep at least four significant figures during the calculation.
  • Ignoring pressure effects: The Magnus formula assumes standard atmospheric pressure. At high altitudes, the RH may differ slightly, but the error is usually under 2% RH.

Tips

  • If you only have a regular thermometer and a wet-bulb thermometer, use a psychrometric chart or a wet-bulb formula instead; this calculator is specifically for temperature and dew point.
  • For a quick mental estimate, remember that each 1 °C difference between temperature and dew point lowers RH by roughly 5% (this is a rough rule of thumb, not exact).
  • When measuring dew point, use a chilled mirror hygrometer for accuracy; consumer sensors may have ±2 °C accuracy, which can cause RH errors of ±10% or more.
  • If you want to avoid condensation on surfaces, keep the surface temperature above the dew point. This is critical in building design.

Troubleshooting

  • Result is above 100%: Check that the dew point is not higher than the air temperature. If it is, you may have entered the values in the wrong fields. If the dew point truly exceeds the air temperature, you are likely dealing with supersaturation (rare in the atmosphere) or a measurement error.
  • Result is negative: This can happen if the dew point is extremely low (below -40 °C) and the air temperature is high, but the formula should still give a positive number. Check that you are using the correct signs for negative temperatures (e.g., -10 °C).
  • Result does not match a published RH: Verify the source of your dew point. Some weather services report dew point in °F or with different precision. Also, ensure you are comparing at the same atmospheric pressure.
  • Calculator shows “Cannot compute”: If you enter a dew point above the air temperature, the formula may produce an RH above 100%. The calculator does not restrict that, but if you see an error, double-check your inputs.

Frequently Asked Questions

What is dew point?

Dew point is the temperature to which air must be cooled (at constant pressure) for water vapor to condense into liquid water. It is a direct measure of the actual moisture content in the air.

Can I calculate humidity with just temperature?

No, you need at least one more variable, such as dew point, wet-bulb temperature, or relative humidity itself. Temperature alone tells you only the capacity for moisture, not how much moisture is present.

Why does the formula use 17.625 and 243.04?

These are empirical constants from the Magnus formula, fitted to accurate vapor pressure data. They work well for temperatures from about -40 °C to +50 °C, which covers most weather conditions.

What is the difference between relative humidity and absolute humidity?

Relative humidity is the ratio of actual vapor pressure to saturation vapor pressure, expressed as a percentage. Absolute humidity is the mass of water vapor per unit volume of air (e.g., g/m³), which does not depend on temperature.

Does altitude affect relative humidity?

Yes, because atmospheric pressure changes with altitude. The Magnus formula assumes standard pressure. At high altitudes, the same dew point and temperature can yield a slightly different RH, but the difference is usually small for most practical purposes.

How accurate is this calculation compared to a hygrometer?

If your dew point and temperature measurements are accurate, the Magnus formula typically agrees with more precise calculations to within about 0.5% RH. The main source of error is the accuracy of your dew point sensor.

Related

Formula used
in t | Air temperature | °C | 25 | -273.15 | 100
in td | Dew point temperature | °C | 15 | -273.15 | 100
out rh | Relative humidity | % | 100 * exp((17.625 * td) / (243.04 + td) - (17.625 * t) / (243.04 + t)) | 1
out es | Saturation vapor pressure | hPa | 6.1094 * exp((17.625 * t) / (243.04 + t)) | 2
out ea | Actual vapor pressure | hPa | 6.1094 * exp((17.625 * td) / (243.04 + td)) | 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

The whole Moles & Molar Mass section →