The NWS relative humidity calculator is a tool from the National Weather Service that computes relative humidity from air temperature and dew point temperature. You enter the temperature and dew point, and it returns the relative humidity as a percentage. This page explains the formula behind it, how to use it correctly, and common pitfalls when working with humidity data.
Formula Used by the NWS Calculator
The NWS uses the Magnus formula (also called the Magnus-Tetens approximation) to relate saturation vapor pressure to temperature. The relative humidity is the ratio of actual water vapor pressure to saturation vapor pressure at the air temperature, expressed as a percentage:
RH = 100 × (es(Td) / es(T))
where es(T) = 6.1094 × exp( (17.625 × T) / (243.04 + T) ) in hPa (millibars).
- T = air temperature in °C
- Td = dew point temperature in °C
- es = saturation vapor pressure in hPa
The constants 17.625 and 243.04 are from the NWS implementation of the Magnus formula. They are valid for temperatures roughly between −40°C and +50°C, which covers most surface weather observations.
Worked Example
Suppose the air temperature is 25°C and the dew point is 15°C. First compute the saturation vapor pressure at the air temperature:
es(25) = 6.1094 × exp( (17.625 × 25) / (243.04 + 25) ) = 6.1094 × exp(440.625 / 268.04) ≈ 6.1094 × exp(1.6439) ≈ 6.1094 × 5.174 ≈ 31.61 hPa
Then compute the saturation vapor pressure at the dew point:
es(15) = 6.1094 × exp( (17.625 × 15) / (243.04 + 15) ) = 6.1094 × exp(264.375 / 258.04) ≈ 6.1094 × exp(1.0246) ≈ 6.1094 × 2.786 ≈ 17.02 hPa
Relative humidity = (17.02 / 31.61) × 100 ≈ 53.8%. The calculator above gives 53.8% (rounded to one decimal).
Assumptions
- The Magnus formula is an approximation; it is accurate to about 0.4% over the range −40°C to +50°C compared to more exact references.
- Both temperatures are in degrees Celsius; if you have Fahrenheit, convert first.
- The formula assumes the air is at standard atmospheric pressure; relative humidity is pressure-dependent, but the error is small for typical surface pressures.
- It is a pure thermodynamic calculation; it does not account for local variations like proximity to water or altitude effects beyond temperature.
How to Use the NWS Relative Humidity Calculator
Using the NWS tool is straightforward, but you must have accurate inputs. Here are the steps:
- Get the air temperature and dew point from a reliable source, such as a weather station, a psychrometer reading, or a weather app that reports dew point.
- Ensure both values are in the same unit (the NWS tool accepts Fahrenheit or Celsius, but you must select the correct unit).
- Enter the air temperature and dew point.
- Read the relative humidity output. The NWS tool also often shows the heat index or other derived values, but the core output is RH.
For example, if a weather report says temperature is 30°C and dew point is 20°C, the RH is about 55%. If the dew point is close to the temperature, the RH is high; if the dew point is much lower, the air is dry.
Common Mistakes and Misconceptions
One frequent error is mixing up dew point with wet-bulb temperature. Dew point is the temperature at which air becomes saturated when cooled at constant pressure; wet-bulb temperature is lower than dew point when the air is dry. Using wet-bulb in the RH formula gives a wrong result.
Another mistake is using the relative humidity formula with temperatures in Fahrenheit without converting. The Magnus constants (17.625 and 243.04) are for Celsius only. If you input Fahrenheit, you must convert to Celsius first: °C = (°F − 32) × 5/9.
A common misconception is that relative humidity alone tells you how humid it feels. Actually, the dew point is a better indicator of human comfort because it directly measures moisture content. For example, a dew point of 20°C feels muggy regardless of the temperature, while a dew point of 5°C feels dry. The RH can be misleading: on a cold day (e.g., 5°C) with a dew point of 0°C, the RH is about 70%, but that air feels dry because it holds little moisture.
Also, remember that RH changes with temperature even if the moisture content stays constant. If the temperature rises from 20°C to 30°C while the dew point stays at 10°C, the RH drops from about 52% to about 28%, even though the actual water vapor in the air hasn’t changed.
Why the NWS Calculator Matters
The NWS provides this calculator because relative humidity is critical for many weather and safety applications:
- Fire weather: Low RH (below 30%) increases wildfire risk; the NWS uses RH in fire danger ratings.
- Aviation: Pilots use RH to estimate icing conditions and visibility.
- Agriculture: RH affects evapotranspiration and crop disease risk.
- Human health: High RH impairs the body’s ability to cool itself through sweating, leading to heat stress.
By giving a quick way to compute RH from standard observations, the NWS tool helps forecasters and the public understand moisture conditions.
Alternatives and Related Tools
If you don’t have the dew point, you can estimate RH from dry-bulb and wet-bulb temperatures using a psychrometric chart or a psychrometer formula. The NWS also offers a separate heat index calculator that uses temperature and RH, so you can work backwards: if you have RH and temperature, you can find the dew point.
Our calculator on this page uses the same Magnus formula as the NWS, so you can use it as a quick alternative. It also lets you see the dew point you entered, which helps verify your inputs.
Frequently Asked Questions
What is the difference between relative humidity and dew point?
Relative humidity is the percentage of water vapor in the air relative to the maximum it can hold at that temperature. Dew point is the absolute temperature at which that water vapor would condense. A high dew point means more moisture; a high RH can occur with low moisture if the temperature is low.
Can I use the NWS calculator for any altitude?
The NWS calculator assumes sea-level pressure. At higher altitudes, the saturation vapor pressure is slightly lower, so the RH computed from the same temperatures would be slightly overestimated. The error is small for most practical purposes (less than 2% RH at 3000 m), but for precise work you would need a pressure correction.
Why does my weather app show a different RH than the NWS calculator?
Weather apps often use a different formula (e.g., the more complex Goff-Gratch equation) or they may round temperatures differently. The Magnus formula is an approximation, so small differences (0.5–1% RH) are normal. Also, the app might be using a different data source or a model forecast rather than an actual observation.
What is a comfortable relative humidity level?
For indoor comfort, most people prefer RH between 30% and 50%. Below 30% can cause dry skin and respiratory irritation; above 60% can promote mold growth and make it feel stuffy. Outdoors, comfort depends on temperature; a dew point below 10°C feels dry, 10–16°C is comfortable, and above 18°C feels muggy.
How do I convert RH to dew point?
You can rearrange the Magnus formula to solve for dew point: Td = (243.04 × ln(RH/100) + (17.625 × T)/(243.04 + T)) / (17.625 − ln(RH/100) − (17.625 × T)/(243.04 + T)). It’s easier to use an online dew point calculator, but this formula works if you have RH and temperature.
Is the NWS calculator accurate for sub-zero temperatures?
The Magnus formula is valid down to about −40°C, so it works for most winter conditions. However, at very low temperatures, the saturation vapor pressure over ice differs from that over liquid water, and the Magnus formula assumes liquid water. For temperatures below −40°C, the error becomes significant, and you would need an ice-phase formula.
Related
Formula used
in t | Air temperature | °C | 25 | -40 | 60 in td | Dew point temperature | °C | 15 | -40 | 60 out rh | Relative humidity | % | 100 * (exp((17.625 * td) / (243.04 + td)) / exp((17.625 * t) / (243.04 + t))) | 1 out td_c | Dew point (check) | °C | td | 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