...

Relative Humidity Formula: Step-by-Step Calculation

Relative humidity (RH) is calculated as actual vapor pressure divided by saturation vapor pressure, multiplied by 100. That single ratio is the foundation of every digital hygrometer reading, every HVAC control loop output, and every environmental specification a facility engineer writes. 

This article covers two calculation pathways: the dew point method using the Magnus formula, and the psychrometric method using wet-bulb and dry-bulb temperature. An embedded calculator is available below for readers who need results without manual arithmetic.

Key Takeaways

  • Relative humidity is defined as the ratio of actual vapor pressure to saturation vapor pressure at the same ambient temperature, expressed as a percentage.
  • Saturation vapor pressure is a function of temperature alone. The Magnus formula calculates it within approximately 0.1% accuracy for temperatures between 0°C and 60°C.
  • RH can be computed via two distinct methods: the dew point depression method, or the psychrometric method using wet-bulb and dry-bulb temperature readings from a sling psychrometer or psychrometric chart.
  • At non-standard atmospheric pressure, such as in high-altitude facilities or pressurized cleanrooms, the standard RH formula requires an enhancement factor correction.
  • Absolute humidity measures water vapor mass per unit volume and does not change with temperature in a closed system. Relative humidity changes with every temperature shift, making it the preferred metric for environmental control.
  • Industrial humidity control systems must match or exceed the measurement precision of the instruments reading the setpoint: a system fluctuating by 5-8% RH cannot honor a specification derived from a formula-accurate setpoint.

The Basic Relative Humidity Formula

The foundational equation is: RH (%) = (e / es) × 100, where e is actual vapor pressure and es is saturation vapor pressure at the same temperature. Both values are expressed in the same pressure unit, typically hectopascals (hPa) or millibars, so the ratio is dimensionless and the result is a percentage.

Actual vapor pressure is the partial pressure exerted by water vapor currently present in the air. Saturation vapor pressure is the maximum partial pressure water vapor can exert at a given temperature before condensation begins. Because saturation vapor pressure rises with temperature, warmer air can hold more moisture content in air, which is the core of the temperature and humidity relationship.

The Magnus formula, covered in detail below, is the standard approximation used to compute es from ambient temperature. For a full conceptual treatment of what relative humidity represents physically, see our guide on relative humidity.

What Each Variable Means

Actual vapor pressure (e) is not measured directly in most field instruments. It is derived from dew point temperature using a saturation vapor pressure equation, or read indirectly via a calibrated hygrometer. Saturation vapor pressure (es) is computed from ambient temperature using the same equation applied to the current air temperature rather than the dew point. A reader needs both values to apply the formula. The sections below explain how to obtain each from real measurements.

Embedded Relative Humidity Calculator

Enter air temperature and dew point temperature (or wet-bulb temperature) in the fields below, or use the full relative humidity calculator directly. The calculator accepts inputs in both Celsius and Fahrenheit. The output is RH expressed as a percentage. The worked example in the next section allows readers to verify the calculator’s result manually.

How to Use This Calculator

  1. Enter the air (dry-bulb) temperature in the temperature field and select the unit (°C or °F).
  2. Enter the dew point temperature if using the dew point method, or enter the wet-bulb temperature if using psychrometric inputs.
  3. Select the preferred unit for both inputs.
  4. Read the RH percentage output displayed below the input fields.

How to Calculate Relative Humidity from Dew Point: Step-by-Step

The dew point method is the calculation that underlies virtually every digital hygrometer and RH controller in industrial use. Using a realistic example with an air temperature of 25°C and a dew point temperature of 15°C, the following steps show the complete arithmetic using the Magnus formula approximation for saturation vapor pressure.

The Magnus formula is: es(T) = 6.1078 × exp(17.27 × T / (T + 237.3)), where T is temperature in degrees Celsius and es is in hectopascals. This form is consistent with approximations referenced in the World Meteorological Organization CIMO Guide.

Step 1: Compute saturation vapor pressure at air temperature (25°C)

es(25) = 6.1078 × exp(17.27 × 25 / (25 + 237.3))

= 6.1078 × exp(431.75 / 262.3)

= 6.1078 × exp(1.6459)

= 6.1078 × 5.1847

= 31.67 hPa

Step 2: Compute actual vapor pressure using dew point temperature (15°C)

e = es(15) = 6.1078 × exp(17.27 × 15 / (15 + 237.3))

= 6.1078 × exp(259.05 / 252.3)

= 6.1078 × exp(1.0268)

= 6.1078 × 2.7921

= 17.05 hPa

Step 3: Calculate RH

RH = (e / es) × 100 = (17.05 / 31.67) × 100 = 53.8% RH

This result matches what a calibrated instrument would report for those same conditions. NOAA weather stations use equivalent approximations when deriving reported RH from temperature and dew point observations.

The Magnus Formula for Saturation Vapor Pressure

The Magnus formula is a named approximation, not a derived thermodynamic identity. Its accuracy is approximately 0.1% across the 0°C to 60°C range, which is sufficient for most operational humidity measurement. The related Tetens equation is an earlier form that uses slightly different empirical coefficients. The Buck equation offers marginally improved accuracy at the extremes of the valid temperature range. These differences explain why two instruments calculating RH from the same inputs may report slightly different values: the underlying saturation vapor pressure approximation differs between them.

Converting the Result: What the Number Means

A result of 53.8% RH means the air at 25°C contains 53.8% of the water vapor it could hold before reaching saturation. If that same air mass were cooled to 15°C without adding or removing moisture, it would reach 100% RH, which is why 15°C is the dew point temperature in this example. The temperature and humidity relationship is reciprocal: raise the temperature and RH falls; lower it and RH climbs.

The Psychrometric Method: Calculating RH from Wet-Bulb and Dry-Bulb Temperature

When a chilled mirror hygrometer or electronic dew point sensor is unavailable, RH can be derived from the wet-bulb depression using a psychrometric equation. The general form is: e = ew – A × P × (T – Tw), where ew is saturation vapor pressure at wet-bulb temperature Tw, A is the psychrometer coefficient (which varies by instrument type and airflow velocity), P is atmospheric pressure, and T is dry-bulb temperature. This formula is defined in ISO 4677 and is the basis for readings taken from sling psychrometers and aspirated psychrometers.

The psychrometric chart is a graphical alternative to this arithmetic. It maps dry-bulb temperature, wet-bulb temperature, and RH onto a single diagram, allowing technicians to read results directly without calculation. For a full treatment of humidity measurement tools including psychrometers and chilled mirror instruments, see our guide on how humidity is measured.

When to Use the Dew Point Method vs. the Psychrometric Method

  • Measurement inputs required: The dew point method requires air temperature and dew point temperature from a sensor or hygrometer. The psychrometric method requires dry-bulb temperature, wet-bulb temperature, and an atmospheric pressure value.
  • Typical accuracy: The dew point method is generally more accurate under controlled conditions. The psychrometric method introduces additional error from airflow variability and thermometer placement.
  • Equipment required: The dew point method uses a chilled mirror hygrometer or calibrated electronic sensor. The psychrometric method uses a sling psychrometer or aspirated psychrometer and a psychrometric chart.
  • Best-use context: The dew point method suits laboratory and precision industrial monitoring. The psychrometric method is common in field HVAC work and general meteorology where portable instrumentation is preferred.

For precision industrial humidity control, the dew point method and calibrated electronic sensors provide more reliable readings than field psychrometric instruments.

Pressure and Altitude Corrections to the RH Formula

The standard RH formula assumes sea-level atmospheric pressure. At non-standard pressures, such as in high-altitude manufacturing plants or pressurized cleanrooms, the saturation vapor pressure relationship is modified by the enhancement factor fw. This factor accounts for the non-ideal behavior of moist air at real pressures and is defined in the WMO CIMO Guide for precision meteorological applications.

For most industrial facilities at altitudes below 1,500 meters, the correction is small, typically less than 0.5%, and is often omitted from routine measurements. At higher altitudes or in pressurized environments where RH accuracy is a regulatory requirement, the correction becomes material. The ICAO Standard Atmosphere model provides the pressure-altitude framework used in aviation and aerospace contexts.

When Pressure Corrections Matter in Industrial Settings

  • High-altitude manufacturing plants: Facilities above 1,500 meters experience lower ambient pressure, which shifts the saturation vapor pressure relationship enough to introduce meaningful RH measurement error without correction.
  • Pressurized aerospace test chambers: Pressure differentials in these environments may be significant, making the enhancement factor correction a measurement requirement rather than an option.
  • Pharmaceutical cleanrooms: Positive or negative pressure differentials relative to adjacent corridors alter the effective atmospheric pressure, which can affect RH readings in GMP-regulated spaces. See our explainer on GMP humidity requirements for regulatory context.
  • Hyperbaric and hypobaric research environments: These facilities operate at pressures far from standard atmosphere, requiring corrected RH calculations as a baseline for any environmental specification.

How Absolute Humidity Differs from Relative Humidity

Absolute humidity (AH) measures the actual mass of water vapor per unit volume of air, typically in grams per cubic meter, independent of temperature. The formula is: AH = m / V, where m is the mass of water vapor in grams and V is the volume of the air sample in cubic meters. Because this quantity does not depend on temperature, it does not change when temperature changes in a closed system with fixed moisture content.

Relative humidity, by contrast, changes with every temperature shift even when no moisture is added or removed. This is the core of the temperature and humidity relationship: as ambient temperature rises, saturation vapor pressure increases, and the same moisture content in air represents a lower percentage of saturation. 

Specific humidity, expressed as grams of water vapor per kilogram of moist air, is a related but distinct quantity used in meteorology and HVAC load calculations. For a detailed treatment, see our comparison of absolute humidity and relative humidity.

Which Humidity Metric to Use and When

  • What each measures: Relative humidity expresses moisture as a percentage of the air’s saturation capacity at its current temperature. Absolute humidity states the actual mass of water vapor present per unit volume, regardless of temperature.
  • How temperature affects the reading: Relative humidity changes with every temperature shift, even in a closed system. Absolute humidity remains constant if no moisture is added or removed and the volume is fixed.
  • Typical application context: Relative humidity is used for environmental control, comfort monitoring, condensation risk assessment, and electrostatic discharge (ESD) management. Absolute humidity is used in mass-transfer calculations, industrial drying processes, and HVAC load analysis where moisture mass is the engineering variable.

Why Precision RH Measurement Matters in Industrial Facilities

In industrial settings, RH is a process control input, not an academic measurement. The RH reading drives a humidity controller response directly, so errors in measurement propagate into errors in environmental control. A formula-accurate setpoint is meaningless if the control system cannot hold it within a defined tolerance band.

Most industrial applications define acceptable RH ranges in written specifications. If the measurement instrument carries a plus or minus 2% RH accuracy tolerance, the humidity control system must be capable of maintaining the setpoint within a band that accounts for that measurement uncertainty. The formula establishes the target. The system determines whether the target is achievable in practice.

RH Tolerance Ranges by Industry

Precision Humidification That Matches the Formula’s Demands

Controlling RH at a specified setpoint requires a system capable of maintaining actual vapor pressure within a defined tolerance relative to saturation. The formula makes this precise: if the target is 50% RH, then e must equal 0.50 × es at the prevailing ambient temperature. A system that cycles between 44% and 58% RH has not honored that specification, regardless of what the setpoint controller reads.

The equal-sized droplet grid produced through Smart Fog’s proprietary nozzle addresses this directly. Each droplet carries a slight electrical charge to prevent re-aggregation, and because all droplets are equal in size, the evaporation rate is consistent and predictable. That consistency is what enables the system to hold RH at a precise setpoint rather than cycling between over- and under-humidification. Under proper system design, the droplets self-evaporate before reaching any surface, enabling humidity control without surface wetting.

How Self-Evaporating Droplets Enable Setpoint Precision

The operating principle behind Smart Fog’s precision is the uniformity of the droplet grid. When every droplet is the same size, the physics of evaporation are uniform across the entire output. This eliminates the variable evaporation rates that cause competing systems to overshoot or undershoot the setpoint.

Key performance characteristics:

  • Maintains RH up to 99% RH with plus or minus 1-2% precision
  • No moving parts in the humidification process, removing mechanical variability as a source of RH fluctuation
  • 100% water efficient: every droplet evaporates into the air before reaching a surface under proper system design
  • Maintenance intervals extending up to every two years, reducing process interruptions in controlled environments
  • Continuous 24/7 industrial operation without requiring reset or recalibration

From Formula to Facility: Specifying the Right System

Facility engineers who have used the RH formula to define a target setpoint and tolerance band need a system sized and configured to those specific environmental conditions. Smart Fog humidity control systems are delivered as complete engineered solutions, not component kits. The system is designed to the facility’s conditions before installation, not adjusted afterward to compensate for a generic configuration. See our comparison of dew point and humidity for further context on the measurement variables that inform system specification.

Final Thoughts

The relative humidity formula is a ratio: actual vapor pressure divided by saturation vapor pressure, expressed as a percentage. That ratio connects temperature, moisture content in air, and the physical limit of saturation into a single number that drives environmental specifications across industries. Understanding both the dew point method and the psychrometric method gives engineers and technicians the tools to compute RH from real measurements, audit instrument readings, and identify when pressure corrections apply.

The heat index, condensation risk, ESD susceptibility, and pharmaceutical stability all depend on RH held within a defined band. A formula-accurate setpoint is only as useful as the system controlling it.

If a facility requires RH held within a defined tolerance band, contact Smart Fog Engineers to discuss a precision humidification system matched to the facility’s specific setpoint and environmental conditions.

FAQ

What is the formula for calculating relative humidity?

Relative humidity is calculated using the formula RH (%) = (e / es) × 100, where e is the actual vapor pressure of water vapor in the air and es is the saturation vapor pressure at the same temperature. Both values are typically expressed in hectopascals or millibars, making the ratio dimensionless. The Magnus formula is the standard approximation used to calculate es from a temperature measurement.

How do you calculate relative humidity from dew point temperature?

To calculate relative humidity from dew point temperature, apply the Magnus formula twice: once to compute saturation vapor pressure at the air (dry-bulb) temperature, and once at the dew point temperature to obtain actual vapor pressure. Divide actual vapor pressure by saturation vapor pressure and multiply by 100. For air at 25°C with a dew point of 15°C, this calculation yields approximately 53.8% RH.

How do you calculate relative humidity from wet-bulb and dry-bulb temperature readings?

Relative humidity from wet-bulb and dry-bulb temperatures is calculated using the psychrometric equation: e = ew – A × P × (T – Tw), where ew is saturation vapor pressure at wet-bulb temperature, A is the psychrometer coefficient, P is atmospheric pressure, and T and Tw are dry-bulb and wet-bulb temperatures respectively. The result gives actual vapor pressure, which is then divided by saturation vapor pressure at dry-bulb temperature and multiplied by 100. A psychrometric chart provides a graphical shortcut to the same result.

What is the difference between relative humidity and absolute humidity?

The practical difference shows up when temperature changes. In a closed system with no added or removed moisture, absolute humidity stays fixed while relative humidity swings with temperature, since RH is measured against a saturation capacity that rises and falls with heat. That’s why a facility can report a stable “moisture load” in g/m3 even as its RH percentage drifts through the day.

Why does relative humidity change when temperature changes even if no moisture is added or removed?

Relative humidity changes with temperature because saturation vapor pressure is a function of temperature. As temperature rises, the air’s capacity to hold water vapor increases, so the same amount of moisture represents a smaller fraction of the maximum possible. Conversely, cooling the air reduces saturation vapor pressure, increasing RH toward 100% without any moisture being added. This is why the dew point temperature marks the exact point at which RH reaches 100% for a given air mass.

What is the Magnus formula and how accurate is it for calculating saturation vapor pressure?

The Magnus formula calculates saturation vapor pressure as es(T) = 6.1078 × exp(17.27 × T / (T + 237.3)), where T is temperature in degrees Celsius and es is in hectopascals. It is accurate to within approximately 0.1% for temperatures between 0°C and 60°C, which is sufficient for most operational humidity measurement applications. If your reading falls outside that range, whichever approximation your instrument uses becomes the bigger source of error, not the input measurement itself.

How does atmospheric pressure affect relative humidity calculations at high altitude?

At non-standard atmospheric pressures, the standard RH formula requires an enhancement factor correction because the saturation vapor pressure relationship is modified by real-gas behavior in moist air. For facilities below 1,500 meters altitude, this correction is typically less than 0.5% and is often omitted. At higher altitudes, in pressurized cleanrooms, or in aerospace test environments, the correction becomes operationally significant and should be applied to meet measurement accuracy requirements.

What relative humidity level is recommended for electronics manufacturing, pharmaceutical facilities, and data centers?

Electronics and PCB manufacturing facilities typically specify 45-55% RH to suppress ESD events. Pharmaceutical manufacturing environments operating under GMP regulations commonly require 40-60% RH, with excursions requiring documented investigation. Data centers referencing ASHRAE A1-A4 guidelines operate within 20-80% RH non-condensing, with a dew point ceiling of 15°C. Printing facilities generally target 45-55% RH to control paper curl and static discharge in pressrooms.

Chief Technology Officer at Smart Fog

Author

Ido Goldstein is a technology innovator with deep expertise in humidity engineering, climate control, and non-wetting fog systems. He has spent years advancing energy-efficient and water-smart solutions that help industries like cleanrooms, data centers, wineries, and greenhouses maintain precise environmental control.

Passionate about technology with real-world impact, Ido also supports sustainable agriculture initiatives and nonprofit innovation. Through this blog, he shares practical insights on HVAC advancements, indoor air quality, and the science behind high-performing environments.