Virtual Temperature Calculator

Fluids & Weather

Virtual temperature305.85 K
Virtual temperature in Celsius32.70 °C
Specific humidity14.67 g/kg
Moist air density1.14 kg/m³
How this was calculated
  1. Virtual temperature is the temperature dry air would need to match the density of this moist air at the same pressure.
  2. From the dew point of 20.0 °C the Magnus formula gives a vapour pressure of 23.37 hPa.
  3. Dividing the absolute temperature of 303.15 K by the density correction gives the virtual temperature of 305.85 K.
  4. The specific humidity is 14.67 g/kg, and the moist air density at this virtual temperature is 1.14 kg/m³.

Water vapour is a light gas. A cubic metre of humid air weighs less than a cubic metre of dry air at the same temperature and pressure, because every water molecule (molar mass 18) displaces a heavier nitrogen or oxygen molecule (molar masses 28 and 32). Virtual temperature packages that fact into a single number: the temperature that dry air would need to have, at the same pressure, to match the moist air's actual density. Density is what buoyancy acts on, so virtual temperature - not the thermometer reading - is the temperature that decides whether a parcel of air rises, sinks or floats.

Enter the air temperature, the dew point and the pressure. The calculator finds the vapour pressure from the dew point with the Magnus formula, applies Tv = T / (1 - (e/p) x (1 - 0.622)), and returns the virtual temperature in kelvin and degrees Celsius, the specific humidity in grams per kilogram, and the moist air density the virtual temperature implies.

Worked examples

30 C, dew point 20

(30 °C · 20 °C · 1000 hPa)

Virtual temperature305.85 K
Virtual temperature in Celsius32.70 °C
Specific humidity14.67 g/kg
Moist air density1.14 kg/m³

15 C at 850 hPa

(15 °C · 5 °C · 850 hPa)

Virtual temperature289.27 K
Virtual temperature in Celsius16.12 °C
Specific humidity6.41 g/kg
Moist air density1.02 kg/m³

Freezing air, dew point -10

(0 °C · -10 °C · 1000 hPa)

Virtual temperature273.45 K
Virtual temperature in Celsius0.30 °C
Specific humidity1.79 g/kg
Moist air density1.27 kg/m³

The virtual temperature formula

The chain has three links. First, the dew point gives the actual vapour pressure e through the Magnus relation, e = 6.112 x exp(17.67 x Td / (Td + 243.5)) - the same saturation curve the dew-point and humidity calculators use, run at the dew point because air at its dew point is saturated by definition. Second, the density correction: moist air's density equals that of dry air at temperature Tv, where Tv = T / (1 - (e/p)(1 - epsilon)) and epsilon = 0.622 is the ratio of the gas constants Rd/Rv. Third, the by-products: specific humidity q = 0.622 e / (p - 0.378 e), and density itself, rho = p / (Rd Tv).

The correction factor deserves a slow read. The term (e/p) is the fraction of the air that is water vapour - never more than about 4 percent, even in the tropics. The factor (1 - 0.622) = 0.378 prices how much lighter each vapour molecule is than the dry-air molecule it replaces. Multiply the two and the denominator shrinks by that much: at the first example's vapour fraction of 2.34 percent, the shrink is 0.88 percent, and the virtual temperature rises by just under 3 kelvin. Small percentages, decisive physics - buoyancy itself is usually a percentage-level effect.

  • e from the dew point via the Magnus formula
  • Tv = T / (1 - (e/p)(1 - 0.622)); epsilon = Rd/Rv = 0.622
  • q = 0.622 e / (p - 0.378 e); rho = p / (Rd Tv)
  • Tv is always at least T, and equal only for dry air

Worked examples

Example one is a humid summer afternoon: 30 degrees C, dew point 20, pressure 1000 hPa. The vapour pressure is 23.37 hPa, the virtual temperature 305.85 K - 32.70 degrees C, a full 2.70 degrees above the thermometer - the specific humidity is 14.67 g/kg and the density is 1.14 kg/m3. A forecaster judging whether that air will convect compares 305.85, not 303.15, against the environment, and the difference is routinely the difference between a stable and an unstable verdict.

Example two climbs: 15 degrees C, dew point 5, at 850 hPa. Cooler air holds less vapour - e is only 8.72 hPa - and Tv is 289.27 K, 1.12 degrees above actual. Example three is winter: freezing air with a dew point of -10 at the surface. The vapour pressure collapses to 2.87 hPa, specific humidity to 1.79 g/kg, and Tv is 273.45 K, a mere 0.30 degrees above the real temperature. The three examples trace the whole story of the variable: humidity is a summer and tropics effect, and virtual temperature matters exactly where and when the air is warm and wet.

ExampleT (C)Dew point (C)Pressure (hPa)e (hPa)Tv (K)q (g/kg)Density
13020100023.37305.8514.671.14
21558508.72289.276.411.02
30-1010002.87273.451.791.27

Why moist air is lighter

The counterintuitive part - humid air feels heavy, yet is light - dissolves on inspection. The heaviness of a humid day is a physiological fact about sweat evaporation, not a physical fact about density. Physically, Avogadro's law settles it: at fixed temperature and pressure a given volume holds a fixed number of molecules, and swapping a 29-mass dry molecule for an 18-mass water molecule can only lighten the parcel. The swap is driven by evaporation at the surface, which is why the effect peaks over warm oceans and rain forests and vanishes over winter continents.

The density numbers on this page make the effect tangible. The humid summer air of example one, at 30 degrees, has a density of 1.14 kg/m3 - the density dry air would have at 32.70 degrees. The winter air of example three is 11 percent denser at 1.27 kg/m3 despite the pressure being the same. Aircraft feel that spread as performance; weather systems feel it as the raw material of every circulation, since pressure gradients accelerate light and dense air differently across every front on the map.

Virtual temperature and buoyancy

Buoyancy is a density contest judged at equal pressure, and virtual temperature is the score. A parcel warmer in Tv than its environment is lighter and rises; colder, it sinks; equal, it drifts. Every stability calculation in meteorology is, underneath the notation, a comparison of virtual temperatures - or, for comparisons across heights, of virtual potential temperatures, which apply the potential-temperature pressure correction to Tv so parcels at different levels can be compared fairly.

This is why humid low-level air is such potent storm fuel beyond its warmth alone. The tropical maritime parcel at Tv 305.85 K sitting under drier air aloft whose Tv is lower has a buoyancy reserve that a thermometer-only analysis understates by the full humidity contribution - in the deep tropics, several kelvin of the atmosphere's convective available potential energy is moisture's contribution delivered through exactly this correction. Leave virtual temperature out of a tropical sounding and the forecast is wrong in a way no amount of temperature precision can repair.

Comparing two air masses for buoyancy? Compare virtual temperatures, never raw temperatures - a cooler but much moister parcel can be the lighter one, and it is the one that will rise.

Tv vs density altitude

Aviation meets the same physics wearing a different uniform. Density altitude - the altitude in the standard atmosphere matching the actual density - is computed from pressure altitude and temperature, and the standard rule-of-thumb version ignores humidity entirely, as the density altitude calculator on this site does with its 120-feet-per-degree rule. The virtual temperature exposes what that rule omits: on the humid day of example one, the air's density matches dry air 2.70 degrees warmer, which is worth roughly 300 extra feet of density altitude the simple rule never reports.

Pilots operating from hot, humid, high airfields live inside that omission, and performance charts for many aircraft now carry humidity corrections that are, in substance, virtual-temperature corrections. The two pages are complementary: density altitude translates density into the aviator's unit, feet; virtual temperature keeps it in the physicist's unit, kelvin, where buoyancy and stability work is done. Both begin from the same unarguable fact - moist air is light air - and this page shows the arithmetic in its cleanest form.

One more field runs on virtual temperature without naming it: numerical weather prediction. Forecast models carry Tv (or quantities built from it) in their density and pressure-gradient calculations, because a model that treated humid tropical air as dry air at the same temperature would misplace mass throughout the column and corrupt every wind it derived. When a model verification shows a tropical low-level bias, the humidity-density coupling audited by this page's formula is one of the first places the developers look.

FAQs

What is the virtual temperature of 30 degrees C with a 20 degree dew point at 1000 hPa?

The vapour pressure is 23.37 hPa and Tv is 305.85 K, which is 32.70 degrees C - nearly three degrees warmer than the actual temperature.

What specific humidity does that air have?

A specific humidity of 14.67 g/kg, and a moist air density of 1.14 kg/m3.

What Tv does 15 degrees C with a 5 degree dew point at 850 hPa give?

Tv is 289.27 K, 16.12 degrees C, with specific humidity 6.41 g/kg and density 1.02 kg/m3.

What Tv does freezing air with a -10 degree dew point give?

Tv is 273.45 K, only 0.30 degrees above the actual temperature - cold air holds too little moisture to matter much.

Why is virtual temperature always at least the actual temperature?

Water vapour is lighter than dry air, so moist air needs a higher dry-air temperature to match its low density; only perfectly dry air has Tv exactly equal to T. The gap between the two is a pure humidity signal: read it and you have weighed the air's water content without a hygrometer.

Where does the 0.622 in the formula come from?

It is the ratio of the gas constants for dry air and water vapour, Rd over Rv - the molecular-weight ratio that prices the lightness of vapour.

Sources

Related calculators

Dew Point Calculator
The dew point from air temperature and relative humidity (Magnus formula) — the absolute moisture number behind fog, condensation and how muggy a day feels.
Air Density Calculator
Moist air density from pressure, temperature and humidity (Magnus vapour pressure), with dry-air density, dew point and vapour content.
Relative Humidity Calculator (Dew Point)
Relative humidity from air temperature and dew point via the Magnus formula, with vapour pressure, absolute humidity and vapour pressure deficit.