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