How to Calculate Relative Humidity?

To calculate relative humidity, you have to take the moisture in the air (measured in vapor pressure or moisture mass and divide it by the maximum amount of moisture that could be in the air (measured in vapor pressure or moisture mass). This will give you a percentage that is the relative humidity.