This calculator converts between relative humidity, air temperature, and dew point, letting you work out any one of the three from the other two. Enter the air temperature and either the relative humidity or the dew point, and you get the missing value plus the actual water vapor content in grams per cubic meter. It uses the standard Magnus formula, which is accurate to within about 0.4 °C for dew points between −40 °C and +50 °C.
Formula
The calculator uses the Magnus formula, a widely used approximation for the saturation vapor pressure of water. The dew point is computed from relative humidity and air temperature as:
Dew point (°C) = (243.12 × γ) / (17.62 − γ)
where γ = ln(RH/100) + (17.62 × T) / (243.12 + T), with T in °C and RH as a percentage (0–100). The constant 17.62 and 243.12 °C are the Magnus coefficients for water over a liquid surface, valid from about −40 °C to +50 °C.
Absolute humidity (g/m³) is then:
AH = (6.112 × exp((17.62 × T)/(243.12 + T)) × RH × 2.1674) / (273.15 + T)
Here 6.112 hPa is the saturation vapor pressure at 0 °C, 2.1674 converts hPa to g/m³ at a given temperature (it equals 217.97 × (18.015/8.314), where 18.015 g/mol is the molar mass of water and 8.314 J/(mol·K) is the gas constant). The result is the mass of water vapor per cubic meter of moist air.
Worked Example
Using the default values: T = 25 °C, RH = 50%.
First compute γ:
- ln(50/100) = ln(0.5) = −0.693147
- (17.62 × 25) / (243.12 + 25) = 440.5 / 268.12 = 1.6429
- γ = −0.693147 + 1.6429 = 0.94975
Then dew point:
- td = (243.12 × 0.94975) / (17.62 − 0.94975) = 230.90 / 16.670 = 13.85 °C
Rounded to one decimal: 13.9 °C.
Absolute humidity:
- exp((17.62 × 25)/(243.12 + 25)) = exp(1.6429) = 5.169
- 6.112 × 5.169 × 50 = 1579.4
- AH = (1579.4 × 2.1674) / (298.15) = 3423.0 / 298.15 = 11.48 g/m³
Rounded to two decimals: 11.48 g/m³. This matches the calculator output.
Assumptions
- Air is an ideal gas; water vapor behaves ideally.
- The Magnus formula is applied over a liquid water surface (valid −40 °C to +50 °C).
- Atmospheric pressure is assumed to be 1013.25 hPa (1 atm). At higher altitudes, dew point is slightly lower for the same RH.
- No interaction with aerosols or dissolved substances is considered.
How to Read the Results
The dew point is the temperature at which the air would become saturated if cooled at constant pressure. A dew point below 10 °C feels dry; 13–16 °C is comfortable; above 18 °C feels humid and sticky. The absolute humidity tells you the actual mass of water vapor in a cubic meter of air, which is useful for drying, ventilation, and condensation calculations.
Relative humidity alone is misleading because it changes with temperature. A room at 20 °C with 50% RH holds about 8.7 g/m³, while the same 50% RH at 30 °C holds 15.4 g/m³. The dew point stays constant if the moisture content doesn’t change, making it a better measure of “how much water is really in the air.”
Common Mistakes and Misconceptions
- Confusing relative humidity with absolute humidity. RH is a ratio (how close to saturation), not a quantity of water.
- Using Celsius in the formula without converting to Kelvin where needed. The Magnus formula uses °C directly, but absolute humidity requires Kelvin (T + 273.15).
- Assuming RH is constant when temperature changes. If you heat air from 20 °C to 25 °C without adding moisture, RH drops from 50% to about 38%.
- Rounding intermediate values too early. Use at least 4–5 significant figures in the middle steps to avoid errors in the final dew point.
How to Choose the Right Humidity Metric
For most everyday questions, dew point is the most intuitive: it directly tells you how humid it feels. For HVAC design and condensation control, use dew point to set surface temperatures above the dew point to avoid mold. For drying processes (paint, lumber, food), absolute humidity is the useful number because it measures the actual moisture load in the air. Relative humidity is the metric used in weather forecasts and for comfort because it relates to how well sweat evaporates from skin.
If you are working with a specific material or process, check whether the standard in your field uses RH, dew point, or absolute humidity. For example, museum storage guidelines often cite RH (45–55%), while compressed air systems specify a pressure dew point in °C.
Limits of the Calculator
The Magnus formula is an approximation. It deviates slightly from the more accurate Goff-Gratch equation, especially below −20 °C or above 50 °C. For extreme conditions (stratospheric temperatures or industrial dryers above 100 °C), use a psychrometric chart or a more rigorous formulation. Also, the calculator assumes standard atmospheric pressure; at high altitudes (e.g., Denver at 1.6 km), the same RH and temperature give a lower absolute humidity because the air density is lower.
For most practical purposes—weather, comfort, HVAC, greenhouse control—the accuracy is more than sufficient. If you need precise values for calibration or scientific work, use a chilled-mirror hygrometer or a psychrometer and refer to the manufacturer’s specifications.
Frequently Asked Questions
What is the difference between relative humidity and dew point?
Relative humidity is the ratio of the current water vapor pressure to the saturation vapor pressure at that temperature, expressed as a percentage. Dew point is the temperature at which that vapor pressure would reach saturation. Dew point is an absolute measure of moisture; RH is a relative measure that depends on temperature.
Why does humidity feel different at different temperatures?
Because relative humidity is temperature-dependent. At 30 °C with 50% RH, the air holds about 15 g/m³ of water, while at 20 °C with 50% RH it holds only 8.7 g/m³. Your body cools by evaporating sweat; when the air already holds more water, evaporation slows, making you feel hotter and stickier. The dew point (around 18 °C in the first case vs. 9 °C in the second) captures that difference.
Can I use this calculator for weather forecasts?
Yes, for general purposes. Enter the forecast temperature and relative humidity to get the dew point, which tells you how humid it will feel and whether fog or dew is likely overnight. For precise meteorological work, use the more exact equations and local pressure data, but the Magnus formula is accurate to within about 0.4 °C for most surface conditions.
How do I convert between humidity units?
You can convert between RH, dew point, and absolute humidity using the formulas on this page. To convert from dew point to RH, rearrange the Magnus equation: RH = 100 × exp((17.62 × td)/(243.12 + td) − (17.62 × T)/(243.12 + T)). To get absolute humidity from dew point, substitute the dew point into the saturation vapor pressure equation and multiply by 2.1674/(T+273.15).
Why does my hygrometer show a different RH than the calculator?
Hygrometers can drift and need calibration. Also, many consumer sensors measure temperature and RH, but the sensor may be near a heat source or in direct sunlight, giving a higher temperature and lower RH than the true air. Place the sensor in a shaded, well-ventilated spot and allow it to equilibrate for at least 10 minutes. For critical measurements, use a sling psychrometer or a dew-point mirror.