Absolute humidity measures the total amount of water vapor in the air, while relative humidity is the percentage of water vapor present relative to the maximum amount the air can hold at a specific temperature.