Barometric formula. The barometric formula is a formula used to model how the pressure (or density) of the air changes with altitude.

Pressure equations 

There are two equations for computing pressure as a function of height. The first equation is applicable to the atmospheric layers in which the temperature is assumed to vary with altitude at a non null lapse rate of :

The second equation is applicable to the atmospheric layers in which the temperature is assumed not to vary with altitude (lapse rate is null):

where:
 = reference pressure 
 = reference temperature (K)
 = temperature lapse rate (K/m) in ISA
 = geopotential height at which pressure is calculated (m) 
 = geopotential height of reference level b (meters; e.g., hb = 11 000 m)
 = universal gas constant: 8.3144598 J/(mol·K)
 = gravitational acceleration: 9.80665 m/s2
 = molar mass of Earth's air: 0.0289644 kg/mol

Or converted to imperial units:

 = reference pressure 
 = reference temperature (K)
 = temperature lapse rate (K/ft) in ISA
 = height at which pressure is calculated (ft)
 = height of reference level b (feet; e.g., hb = 36,089 ft)
 = universal gas constant; using feet, kelvins, and (SI) moles: 
 = gravitational acceleration: 32.17405 ft/s2
 = molar mass of Earth's air: 28.9644 lb/lb-mol

The value of subscript b ranges from 0 to 6 in accordance with each of seven successive layers of the atmosphere shown in the table below.  In these equations, g0, M and R* are each single-valued constants, while P, L, T, and h are multivalued constants in accordance with the table below.  The values used for M, g0, and R* are in accordance with the U.S. Standard Atmosphere, 1976, and the value for R* in particular does not agree with standard values for this constant. The reference value for Pb for b = 0 is the defined sea level value, P0 = 101 325 Pa or 29.92126 inHg.  Values of Pb of b = 1 through b = 6 are obtained from the application of the appropriate member of the pair equations 1 and 2 for the case when h = hb+1.

Density equations

The expressions for calculating density are nearly identical to calculating pressure.  The only difference is the exponent in Equation 1.

There are two equations for computing density as a function of height. The first equation is applicable to the standard model of the troposphere in which the temperature is assumed to vary with altitude at a lapse rate of ; the second equation is applicable to the standard model of the stratosphere in which the temperature is assumed not to vary with altitude.

Equation 1:

which is equivalent to the ratio of the relative pressure and temperature changes

Equation 2:

where
 = mass density (kg/m3)
 = standard temperature (K)
 = standard temperature lapse rate (see table below) (K/m) in ISA
 = height above sea level (geopotential meters)
 = universal gas constant 8.3144598 N·m/(mol·K)
 = gravitational acceleration: 9.80665 m/s2
 = molar mass of Earth's air: 0.0289644 kg/mol

or, converted to U.S. gravitational foot-pound-second units (no longer used in U.K.):
 = mass density (slug/ft3)
 = standard temperature (K)
 = standard temperature lapse rate (K/ft)
 = height above sea level (geopotential feet)
 = universal gas constant: 8.9494596×104 ft2/(s·K)
 = gravitational acceleration: 32.17405 ft/s2
 = molar mass of Earth's air: 0.0289644 kg/mol

The value of subscript b ranges from 0 to 6 in accordance with each of seven successive layers of the atmosphere shown in the table below. The reference value for ρb for b = 0 is the defined sea level value, ρ0 = 1.2250 kg/m3 or 0.0023768908 slug/ft3. Values of ρb of b = 1 through b = 6 are obtained from the application of the appropriate member of the pair equations 1 and 2 for the case when h = hb+1.

In these equations, g0, M and R* are each single-valued constants, while ρ, L, T and h are multi-valued constants in accordance with the table below. The values used for M, g0 and R* are in accordance with the U.S. Standard Atmosphere, 1976, and that the value for R* in particular does not agree with standard values for this constant.

{| class="wikitable"
|-
! rowspan="2"|Subscript b
! colspan="2"|Geopotential
height above MSL
(h)
! colspan="2"|Mass Density ()
! rowspan="2"|Standard Temperature (T''') (K)
! colspan="2"|Temperature Lapse Rate (L)
|-
! (m) !! (ft)!! (kg/m3) !! (slug/ft3) !! (K/m) !! (K/ft)
|-
| align="center" |0
| align="center" |0
| align="center" |0
| align="center" |1.2250
| align="center" |
| align="center" |288.15
| align="center" |0.0065
| align="center" |0.0019812
|-
| align="center" |1
| align="center" |11 000
| align="center" |36,089.24
| align="center" |0.36391
| align="center" |
| align="center" |216.65
| align="center" |0.0
| align="center" |0.0
|-
| align="center" |2
| align="center" |20 000
| align="center" |65,616.79
| align="center" |0.08803
| align="center" |
| align="center" |216.65
| align="center" |-0.001
| align="center" |-0.0003048
|-
| align="center" |3
| align="center" |32 000
| align="center" |104,986.87
| align="center" |0.01322
| align="center" |
| align="center" |228.65
| align="center" |-0.0028
| align="center" |-0.00085344
|-
| align="center" |4
| align="center" |47 000
| align="center" |154,199.48
| align="center" |0.00143
| align="center" |
| align="center" |270.65
| align="center" |0.0
| align="center" |0.0
|-
| align="center" |5
| align="center" |51 000
| align="center" |167,322.83
| align="center" |0.00086
| align="center" |
| align="center" |270.65
| align="center" |0.0028
| align="center" |0.00085344
|-
| align="center" |6
| align="center" |71 000
| align="center" |232,939.63
| align="center" |0.000064
| align="center" |
| align="center" |214.65
| align="center" |0.002
| align="center" |0.0006096
|}

Derivation
The barometric formula can be derived using the ideal gas law:

Assuming that all pressure is hydrostatic:

and dividing this equation by  we get:

Integrating this expression from the surface to the altitude z we get:

Assuming linear temperature change  and constant molar mass and gravitational acceleration, we get the first barometric formula:

Instead, assuming constant temperature, integrating gives the second barometric formula:

In this formulation, R* is the gas constant, and the term R*T/Mg gives the scale height (approximately equal to 8.4 km for the troposphere).

(For exact results, it should be remembered that atmospheres containing water do not behave as an ideal gas''. See real gas or perfect gas or gas for further understanding.)

See also
Hypsometric equation
NRLMSISE-00
Vertical pressure variation

References 

Vertical position
Atmospheric pressure