Skip to main content

Air Density From T P Calculator

Free Air density Calculator for meteorology & atmospheric science. Enter variables to compute results with formulas and detailed steps.

Skip to calculator
Earth Science & Geology

Air Density From T & P Calculator

Calculate air density from temperature and pressure using the ideal gas law with humidity correction, virtual temperature, and density altitude.

Last updated: December 2025Reviewed by NovaCalculator Mathematics Team

Calculator

Adjust values & calculate
Moist Air Density
1.1988 kg/m3
Dry: 1.2041 kg/m3
Virtual Temp
21.28 C
Density Altitude
224.3 m
Speed of Sound
343.24 m/s
Vapor Pressure
1169.17 Pa
Sat: 2338.34 Pa
Specific Volume
0.8341 m3/kg
Your Result
Dry: 1.2041 | Moist: 1.1988 kg/m3 | Density Alt: 224.3 m
Share Your Result
Understand the Math

Formula

rho = P / (R_d x T_v)

Where rho is air density in kg/m3, P is pressure in Pa, R_d is 287.058 J/kg/K, and T_v is virtual temperature in Kelvin accounting for moisture.

Last reviewed: December 2025

Worked Examples

Example 1: Standard Day Air Density

Calculate at 20 C, 101325 Pa, 50% RH.
Solution:
Dry = 101325/(287.058 x 293.15) = 1.2041 es = 2338 Pa, e = 1169 Pa Tv = 295.26 K Moist = 101325/(287.058 x 295.26) = 1.1956
Result: Dry: 1.2041 | Moist: 1.1956 kg/m3 | Sound: 343.37 m/s

Example 2: Hot High-Altitude Airport

P=85000 Pa, T=35 C, RH=20%.
Solution:
Dry = 85000/(287.058 x 308.15) = 0.9612 es=5627 Pa, e=1125 Pa Tv=309.42 K Moist = 0.9573
Result: Moist: 0.9573 kg/m3 | Density altitude: ~2764 m
Expert Insights

Background & Theory

The Air Density From T & P Calculator applies the following established principles and formulas. Earth science calculators draw on a wide range of measurement scales and physical principles that quantify natural phenomena across geological, atmospheric, and hydrological systems. Earthquake magnitude is most precisely described by the Moment Magnitude Scale (Mw), which replaced the original Richter scale for larger events. Mw is calculated as Mw = (2/3) log10(M0) โˆ’ 10.7, where M0 is the seismic moment in dyne-centimeters. The Richter scale, while still referenced colloquially, is a local magnitude (ML) measurement derived from peak seismograph amplitude at a standard 100 km distance. Wind intensity is classified using the Beaufort Scale, a 13-point empirical scale (0โ€“12) relating wind speed in knots to observable sea and land effects, with Beaufort 12 corresponding to hurricane-force winds above 64 knots. Tropical cyclone intensity is further categorized by the Saffir-Simpson Hurricane Wind Scale, which assigns Categories 1 through 5 based on sustained wind speed, correlating with expected structural damage. Mineral hardness is quantified on the Mohs scale (1โ€“10), comparing scratch resistance relative to reference minerals from talc (1) to diamond (10). Soil composition analysis measures the proportions of sand, silt, and clay by particle size, alongside organic matter content, bulk density, and porosity, which together determine engineering and agricultural suitability. Seismic wave velocity in rock varies by material: P-waves travel at approximately 5โ€“7 km/s in granite and 1.5 km/s in water, while S-waves travel at roughly 60% of P-wave speeds. Atmospheric pressure decreases with altitude according to the barometric formula: P = P0 ร— exp(โˆ’Mgh / RT), where M is molar mass of air, g is gravitational acceleration, h is altitude, R is the universal gas constant, and T is temperature in Kelvin. Standard sea-level pressure is 101,325 Pa. Tidal calculations use harmonic analysis of gravitational forcing by the Moon and Sun, with the principal lunar semidiurnal tidal constituent (M2) having a period of approximately 12.42 hours.

History

The history behind the Air Density From T & P Calculator traces back through the following developments. The systematic study of Earth's structure and processes spans millennia, but the scientific foundations were laid in the seventeenth century. In 1669, Danish naturalist Nicolas Steno published his principles of stratigraphy, establishing the laws of superposition, original horizontality, and lateral continuity โ€” foundational rules for reading rock layers that remain in use today. Scottish geologist James Hutton introduced the concept of uniformitarianism in 1788, proposing that geological processes observable in the present have operated throughout Earth's history at broadly consistent rates. This idea of deep time challenged prevailing biblical chronologies and set the stage for modern geology. Charles Lyell systematized these ideas in his landmark three-volume work Principles of Geology, published beginning in 1830, which directly influenced Charles Darwin's thinking on biological evolution during the voyage of the Beagle. The nineteenth century saw growing curiosity about continental shapes, but a coherent theory awaited Alfred Wegener, a German meteorologist who proposed continental drift in 1912, arguing that the continents had once formed a supercontinent he called Pangaea. His evidence included matching fossil records and geological formations across the Atlantic, but his mechanism was disputed for decades. The theory gained acceptance in the 1960s when seafloor spreading was confirmed through paleomagnetic studies, and plate tectonics emerged as the unifying framework of modern geoscience. The United States Geological Survey was established by Congress in 1879 to classify public lands and examine the geological structure, mineral resources, and products of the national domain. The twentieth century brought instrumental advances, including the global seismograph network deployed after World War II, initially to monitor nuclear tests, which dramatically improved earthquake detection and characterization. Satellite Earth observation began in earnest with the Landsat program launched in 1972, enabling continuous global monitoring of land use, glacier retreat, and vegetation patterns. Today, GPS networks, LIDAR scanning, and ocean-floor mapping provide centimeter-scale precision for tracking tectonic motion, sea level rise, and volcanic deformation in near real time.

Share this calculator

Explore More

Frequently Asked Questions

Air density is calculated using the ideal gas law in the form rho equals P divided by the product of the specific gas constant R and absolute temperature T. For dry air R equals 287.058 joules per kilogram per kelvin. The temperature must be converted to Kelvin by adding 273.15 to the Celsius value. At standard sea level conditions of 101325 Pa and 15 C this yields approximately 1.225 kg per cubic meter. This calculation assumes air behaves as an ideal gas, which is an excellent approximation at atmospheric pressures. For humid air the calculation is modified using the virtual temperature concept to account for water vapor.
Humid air is actually less dense than dry air at the same temperature and pressure, which is counterintuitive to many people. This occurs because water vapor molecules have a molecular weight of 18 grams per mole compared to 29 grams per mole for dry air. When water vapor molecules replace heavier nitrogen and oxygen molecules in a given volume the total mass decreases. The effect is quantified through the virtual temperature which is always higher than actual temperature for moist air. At 30 C and 100 percent humidity the density reduction compared to dry air is approximately 1.2 percent. This effect is important for aircraft performance calculations.
Density altitude is the altitude in the International Standard Atmosphere at which the actual air density would be found. It increases with rising temperature, increasing humidity, and decreasing pressure, all of which reduce air density. Pilots use density altitude because aircraft performance depends directly on air density rather than geographic altitude. At a hot high-altitude airport the density altitude can be thousands of feet higher than the field elevation, meaning reduced engine power, decreased lift, and longer takeoff rolls. Fatal accidents have occurred when pilots failed to account for high density altitude conditions during takeoff from mountain airports.
Air pressure and density decrease approximately exponentially with increasing altitude because the weight of the overlying air column diminishes. In the International Standard Atmosphere pressure drops from 101325 Pa at sea level to about 89875 Pa at 1000 meters and 54048 Pa at 5000 meters. The corresponding density decreases from 1.225 to 1.112 and 0.736 kg per cubic meter. A useful rule of thumb is that pressure drops by about one percent for every 80 meters of altitude gain near sea level. The barometric formula describes this relationship mathematically and depends on the temperature lapse rate.
The speed of sound in an ideal gas depends on temperature but not directly on density or pressure, which is frequently misunderstood. It equals the square root of gamma times R times T where gamma is 1.4 for air, R is 287.058 J/kg/K, and T is absolute temperature in Kelvin. At 20 C the speed is approximately 343 meters per second. Higher temperatures increase molecular velocity and thus sound speed. Humidity has a small effect because water vapor has a higher ratio of specific heats than dry air. The Mach number of an aircraft is its velocity divided by the local speed of sound at that altitude and temperature.
Dynamic viscosity measures a fluid resistance to shearing flow and is crucial for calculating aerodynamic drag, heat transfer, and boundary layer behavior. For air dynamic viscosity increases with temperature because higher molecular kinetic energy produces stronger intermolecular momentum transfer. The Sutherland formula provides accurate values: mu equals mu0 times T over T0 raised to 1.5 times T0 plus S over T plus S where mu0 is 1.716e-5 Pa-s at T0 of 273.15 K and S is 110.4 K. At 20 C dynamic viscosity is approximately 1.81e-5 Pa-s. Unlike liquids gas viscosity is nearly independent of pressure at atmospheric conditions.
Educational Note: This calculator is provided for educational and informational purposes. Results are based on the formulas and inputs provided. Always verify important calculations independently. NovaCalculator processes calculator inputs client-side; optional analytics follow visitor consent settings.Reviewed by: NovaCalculator Mathematics Team โ€” Verified against standard mathematical and scientific references. Last reviewed: December 2025. ยฉ 2024โ€“2026 NovaCalculator.

Share this calculator

Formula

rho = P / (R_d x T_v)

Where rho is air density in kg/m3, P is pressure in Pa, R_d is 287.058 J/kg/K, and T_v is virtual temperature in Kelvin accounting for moisture.

Worked Examples

Example 1: Standard Day Air Density

Problem: Calculate at 20 C, 101325 Pa, 50% RH.

Solution: Dry = 101325/(287.058 x 293.15) = 1.2041\nes = 2338 Pa, e = 1169 Pa\nTv = 295.26 K\nMoist = 101325/(287.058 x 295.26) = 1.1956

Result: Dry: 1.2041 | Moist: 1.1956 kg/m3 | Sound: 343.37 m/s

Example 2: Hot High-Altitude Airport

Problem: P=85000 Pa, T=35 C, RH=20%.

Solution: Dry = 85000/(287.058 x 308.15) = 0.9612\nes=5627 Pa, e=1125 Pa\nTv=309.42 K\nMoist = 0.9573

Result: Moist: 0.9573 kg/m3 | Density altitude: ~2764 m

Frequently Asked Questions

How is air density calculated from temperature and pressure?

Air density is calculated using the ideal gas law in the form rho equals P divided by the product of the specific gas constant R and absolute temperature T. For dry air R equals 287.058 joules per kilogram per kelvin. The temperature must be converted to Kelvin by adding 273.15 to the Celsius value. At standard sea level conditions of 101325 Pa and 15 C this yields approximately 1.225 kg per cubic meter. This calculation assumes air behaves as an ideal gas, which is an excellent approximation at atmospheric pressures. For humid air the calculation is modified using the virtual temperature concept to account for water vapor.

How does humidity affect air density?

Humid air is actually less dense than dry air at the same temperature and pressure, which is counterintuitive to many people. This occurs because water vapor molecules have a molecular weight of 18 grams per mole compared to 29 grams per mole for dry air. When water vapor molecules replace heavier nitrogen and oxygen molecules in a given volume the total mass decreases. The effect is quantified through the virtual temperature which is always higher than actual temperature for moist air. At 30 C and 100 percent humidity the density reduction compared to dry air is approximately 1.2 percent. This effect is important for aircraft performance calculations.

What is density altitude and why does it matter for aviation?

Density altitude is the altitude in the International Standard Atmosphere at which the actual air density would be found. It increases with rising temperature, increasing humidity, and decreasing pressure, all of which reduce air density. Pilots use density altitude because aircraft performance depends directly on air density rather than geographic altitude. At a hot high-altitude airport the density altitude can be thousands of feet higher than the field elevation, meaning reduced engine power, decreased lift, and longer takeoff rolls. Fatal accidents have occurred when pilots failed to account for high density altitude conditions during takeoff from mountain airports.

How does altitude affect air pressure and density?

Air pressure and density decrease approximately exponentially with increasing altitude because the weight of the overlying air column diminishes. In the International Standard Atmosphere pressure drops from 101325 Pa at sea level to about 89875 Pa at 1000 meters and 54048 Pa at 5000 meters. The corresponding density decreases from 1.225 to 1.112 and 0.736 kg per cubic meter. A useful rule of thumb is that pressure drops by about one percent for every 80 meters of altitude gain near sea level. The barometric formula describes this relationship mathematically and depends on the temperature lapse rate.

What is the speed of sound in air and how does density affect it?

The speed of sound in an ideal gas depends on temperature but not directly on density or pressure, which is frequently misunderstood. It equals the square root of gamma times R times T where gamma is 1.4 for air, R is 287.058 J/kg/K, and T is absolute temperature in Kelvin. At 20 C the speed is approximately 343 meters per second. Higher temperatures increase molecular velocity and thus sound speed. Humidity has a small effect because water vapor has a higher ratio of specific heats than dry air. The Mach number of an aircraft is its velocity divided by the local speed of sound at that altitude and temperature.

What is dynamic viscosity and how is it calculated for air?

Dynamic viscosity measures a fluid resistance to shearing flow and is crucial for calculating aerodynamic drag, heat transfer, and boundary layer behavior. For air dynamic viscosity increases with temperature because higher molecular kinetic energy produces stronger intermolecular momentum transfer. The Sutherland formula provides accurate values: mu equals mu0 times T over T0 raised to 1.5 times T0 plus S over T plus S where mu0 is 1.716e-5 Pa-s at T0 of 273.15 K and S is 110.4 K. At 20 C dynamic viscosity is approximately 1.81e-5 Pa-s. Unlike liquids gas viscosity is nearly independent of pressure at atmospheric conditions.

References

Reviewed by Daniel Agrici, Founder & Lead Developer ยท Editorial policy