A more detailed discussion of these same topics is now available here.

**Introduction**

Let’s consider the relative humidity we have right now in Venice, Italy: 97% with a temperature of 8°C and a pressure of 755 mmHg. Pretty humid, right? What about a warm place, let’s say Buenos Aires, in Argentina? Right now they have a relative humidity of 55%, at a temperature of 23° and a pressure of 760 mmHg. Now, which place is more humid, between these two? In other words: in which of these two places does the same volume of air contain the biggest amount of water? Are you sure you know the answer?

**Some definitions and a formula**

Relative humidity is defined as follows

where is the partial pressure of water vapor in the air and is the saturation vapor pressure with respect to water (the vapor pressure in the air in equilibrium with the surface of the water). We then have

Here and in what follows we express pressure in hPa, with , while is the temperature in °C and is the temperature in , with . Absolute humidity is simply given by

where is the mass of vapor and is the total volume occupied by the mixture (Ref, chapter 4).

**Physics of gasses**

From the law of perfect gasses and considering that, according to Dalton’s law, in a moisture, the partial pressure of each gas is the pressure it would have if it occupied the whole volume (Ref), we can also write

with . Then, by substituting and in , we have

At the end of this post, you find a simple code in Octave that calculates this formula and the plot.

**The answer**

If we apply now the equation for to the environmental parameters relative to Venice, we find that one of air contains 8 grams of water; if we repeat the same calculation for Buenos Aires we find that the same volume of air contains 11 grams of water. In other words, today Venice is less humid than Buenos Aires in the same period if we refer to the content of water in the air.

In the diagram below you can see the plot of absolute humidity as a function of the temperature, for three values of relative humidity. So, for instance, 20 of water corresponds to an RH of 90% at a temperature of 24°C and to an RH of only 50% at a temperature of 35°C. The reason for this, beyond the mathematical formulae, is obvious: when the temperature of the air decreases, the ability of the moisture to retain water as vapor decreases accordingly.

**Conclusion**

Relative humidity is relevant for the subjective perception of heat (the more the relative humidity, the more difficult it is sweating for human beings, then the higher it is the perception of heat since we use sweating for cooling down). But if we are interested in the interaction of air and our lungs, for instance, relative humidity might be completely misleading and absolute humidity is likely the parameter to be considered (R).

**The script**

% file name = absolute_humidity

% date of creation = 07/02/2021

% it calculates the absolute humidity given the relative humidity and the temperature

clear all

% constant for water vapour (J/kg*K)

Rv = 461.4;

% relative humidity (%), temperature (°C), pressure (mmHg)

RH = 55

t = 23

pHg = 760

% conversion to Pa (1 mmHg = 133.322365 Pa)

p = pHg*133.322

% conversion to hPa=100Pa

p = p/100;

Rv = 4.614;

% absolute humidity (kg/m^3)

AH = (RH/(100*Rv*(273.15+t)))*(1.0016+3.15*10^(-6)*p-0.074/p)*6.112*e^(17.62*t/(243.12+t))

% we now fix the RH and plot AH for variuos values of t

RH = 50

pHg = 760

p = pHg*133.322;

p = p/100;

for i=1:30

t2(i)=i+5;

AH2(i) = 1000*(RH/(100*Rv*(273.15+t2(i))))*(1.0016+3.15*10^(-6)*p-0.074/p)*6.112*e^(17.62*t2(i)/(243.12+t2(i)));

endfor

plot (t2, AH2,’-k’,’LineWidth’,3)

grid on

grid minor

hold on

RH = 70

for i=1:30

t2(i)=i+5;

AH2(i) = 1000*(RH/(100*Rv*(273.15+t2(i))))*(1.0016+3.15*10^(-6)*p-0.074/p)*6.112*e^(17.62*t2(i)/(243.12+t2(i)));

endfor

plot (t2, AH2,’-r’,’LineWidth’,3)

hold on

RH = 90

for i=1:30

t2(i)=i+5;

AH2(i) = 1000*(RH/(100*Rv*(273.15+t2(i))))*(1.0016+3.15*10^(-6)*p-0.074/p)*6.112*e^(17.62*t2(i)/(243.12+t2(i)));

endfor

plot (t2, AH2,’-b’,’LineWidth’,3)

xlabel (‘temperature (°C)’)

ylabel (‘absolute humidity (g/{m^3})’)

legend (‘AH for RH = 50%’,’AH for RH = 70%’,’AH for RH = 90%’, ‘location’, ‘NORTHWEST’ )

*The equations of this blog post were written using* .