Atmospheric pressure is the weight of the air overhead spread across each square metre beneath it, so it falls as you climb and less air remains above you; in the standard atmosphere that gives P = P0·(1 - L·h/T0)^5.256 up to 11 km. Drag the altitude slider from sea level to 20 km and the sea-level pressure slider across the span of real weather, and watch the pressure readouts, the ISA air temperature and a mercury barometer answer in real time.

Atmospheric Pressure vs Altitude

Climb through the standard atmosphere and watch the air pressure fall. The gold curve is the ISA pressure profile, the cream line is your altitude, and the mercury barometer on the right reads the pressure there. Up to 11 km the model is P = P0 (1 - L h / T0)5.256; above the tropopause the air is isothermal and the fall becomes exponential.

Pressure at altitude  P = P0 (T / T0)5.256
101.3 kPa
1013.3 hPa · 1.000 atm · 14.70 psi
Fraction of sea-level pressure  P / P0
100.0 %
depends on the altitude alone, not on P0
Mercury barometer column  h = P / (ρ g)
760.0 mm Hg
29.92 inHg
Water column equivalent
10.33 m
the same pressure holds up this much water
ISA air temperature  T = T0 - L h
15.0 °C
288.15 K
Air density  ρ = P M / (R T)
1.225 kg/m³
ideal gas at the ISA temperature
Altitude h0 m
Sea-level pressure P01013.25 hPa
Model: International Standard Atmosphere (1976) · g = 9.80665 m/s² · lapse 6.5 °C per km to 11 km, then -56.5 °C · mercury 13,595 kg/m³
Tip: slide P0 and the percentage does not move — P / P0 depends on altitude alone, which is why an altimeter has to be told the day's sea-level pressure.

Load a real place

Each button writes an altitude and a sea-level pressure into the two sliders and leaves the simulator to do the rest. The confirmation line below quotes the lab's own readouts for that place, not a stored answer.

Pick a place above, or drag the sliders yourself.

What Is the Atmospheric Pressure Simulator?

The atmospheric pressure simulator is a free interactive physics lab that runs in your browser — nothing to install and no sign-up. Set any altitude up to 20 km and a sea-level pressure, and watch a mercury barometer track the standard atmosphere. It reports the pressure at altitude, its fraction of sea-level pressure, the mercury and water column heights, the ISA air temperature and the air density as you drag the sliders.

What you can change in the atmospheric pressure simulator
ControlRangeStep
Altitude above sea level0 – 20,000 m1
Sea-level pressure950 – 1050 hPa0.25

How to use the atmospheric pressure simulator

  1. Climb. Drag Altitude h anywhere from 0 to 20,000 m; it moves in single metres, so real summits such as 8,849 m land exactly. The figure beside the slider echoes the height, the cream marker line in the picture rises to it, and the gold curve shows how much of the sea-level pressure survives at every height on the way.
  2. Read the pressure. Pressure at altitude is the main readout, in kilopascals to four significant figures, with the same value in hectopascals, atmospheres and psi on the line beneath it. Fraction of sea-level pressure gives the ratio as a percentage.
  3. Watch the barometer. The tube on the right is a mercury barometer scaled to 800 mm, and Mercury barometer column prints its height in mm Hg with inches of mercury underneath; Water column equivalent says how tall a water barometer would have to be. Both columns take about two seconds to settle after a change, while the numbers update at once.
  4. Read the air itself. ISA air temperature shows the model's temperature at that height in degrees Celsius and kelvin, and Air density the mass of a cubic metre of air there, from the ideal gas law.
  5. Change the weather. Drag Sea-level pressure P0 between 950 and 1050 hPa in quarter-hectopascal steps. Every pressure, both columns and the density scale with it; the fraction and the temperature do not, which is the point the whole lab is built to make.
  6. Start again. Reset returns the sliders to 0 m and 1013.25 hPa and replays the settle from the ground. The five preset places above are the quicker route to a specific real location.
Atmospheric pressure simulator at the Everest summit preset: altitude 8,849 m with the sea-level pressure at 1013.25 hPa reads 31.44 kPa (314.4 hPa, 0.310 atm, 4.56 psi), 31.0 % of sea level, a 235.8 mm Hg mercury column (9.28 inHg), 3.21 m of water, an ISA air temperature of -42.5 °C (230.63 K) and an air density of 0.475 kg/m³.
The Everest summit preset. At 8,849 m on a standard day the lab reads 31.44 kPa, 31.0 % of sea level, and the mercury column has dropped to 235.8 mm; the marker sits just below the faint tropopause tick at 11 km.

Worked example: change one thing at a time

Begin from the Reset state and move one slider per step. Every figure in the table is the string the lab itself displays for those slider positions; if the table and the lab ever disagree, the lab is right.

What the simulator reports as each slider moves
Step Altitude Sea-level pressure Pressure at altitude Share of sea level Mercury column Water column ISA temperature
Start (Reset) 0 m 1013.25 hPa 101.3 kPa 100.0 % 760.0 mm Hg 10.33 m 15.0 °C
Raise the altitude to 2,000 m 2,000 m 1013.25 hPa 79.50 kPa 78.5 % 596.3 mm Hg 8.11 m 2.0 °C
Climb to Everest, 8,849 m 8,849 m 1013.25 hPa 31.44 kPa 31.0 % 235.8 mm Hg 3.21 m -42.5 °C
Climb to the tropopause, 11,000 m 11,000 m 1013.25 hPa 22.63 kPa 22.3 % 169.8 mm Hg 2.31 m -56.5 °C
Back to sea level, a 950 hPa low 0 m 950.00 hPa 95.00 kPa 100.0 % 712.6 mm Hg 9.69 m 15.0 °C
Sea level, a 1050 hPa high 0 m 1050.00 hPa 105.0 kPa 100.0 % 787.6 mm Hg 10.71 m 15.0 °C

The first four rows are one climb with the weather held standard. Row 1 to row 2: the first 2,000 m take the share of sea level from 100.0 % to 78.5 % and knock the mercury from 760.0 mm down to 596.3 mm, while the temperature drops from 15.0 °C to 2.0 °C, thirteen degrees for two kilometres, which is the 6.5 °C per kilometre lapse rate at work.

Row 2 to row 3: the next 6,849 m up to the summit of Everest cost another 47.5 points, leaving 31.0 %, a 235.8 mm column and air at -42.5 °C. Row 3 to row 4: the last 2,151 m to the tropopause remove only 8.7 more points, because by now there is so little air left overhead to lose. Push the slider on past 11,000 m and the temperature readout sticks at -56.5 °C while the pressure keeps sliding: 19.33 kPa at 12,000 m, 12.04 kPa at 15,000 m and 5.475 kPa at the top of the slider.

Rows 5 and 6 put the altitude back to zero and move only the weather. At sea level the pressure readout is simply whatever the sea-level slider says, 95.00 kPa in the deep low and 105.0 kPa in the strong high, and the barometer swings from 712.6 mm to 787.6 mm between them. The share of sea level reads 100.0 % in both rows and the temperature stays at 15.0 °C, because neither quantity has anything to do with the weather in this model. The two rows also bracket what a real barometer does over a year: a swing of about a tenth of the pressure, and seventy-odd millimetres of mercury.

The lab's central claim is in the fraction readout. Set the altitude to 2,000 m and drag the sea-level slider from end to end: the pressure runs from 74.53 kPa at 950 hPa through 79.50 kPa at 1013.25 hPa to 82.38 kPa at 1050 hPa, and the air density from 0.944 kg/m³ to 1.043 kg/m³, yet Fraction of sea-level pressure reads 78.5 % the whole way. Do the same at Everest and it reads 31.0 % throughout. The ratio P/P0 is fixed by the altitude alone, which is exactly why an aircraft altimeter cannot work until the pilot has dialled in the day's sea-level pressure.

One more slider position is worth finding. The atmosphere is often said to be half gone by about five and a half kilometres, and the lab lets you check: at 5,500 m it reads 50.51 kPa and 49.8 %, so the halfway point sits just below that height on a standard day. Kilimanjaro, at 5,895 m, is already on the thinner side of it at 47.2 %.

Formula and symbol reference

Everything the lab prints follows from three relationships: the standard-atmosphere pressure profile P = P0·(1 - L·h/T0)^(g·M/(R·L)) below 11 km, with an exponential continuation above it; the ideal gas law rho = P·M/(R·T) for the density; and the hydrostatic balance P = rho·g·h, run backwards, for the height of each liquid column. The ranges marked “in this lab” are the simulator's own displayed values at the ends of its slider travel.

Symbols, units and working ranges
Symbol Meaning SI unit Typical range
h Altitude above mean sea level (geopotential height in the standard atmosphere) metre, m 0 to 20,000 m in this lab, in 1 m steps.
P0 Sea-level pressure for the day, the value weather reports quote pascal, Pa 950 to 1050 hPa in this lab, in 0.25 hPa steps; 1013.25 hPa is the standard day.
P Air pressure at altitude h, the main readout pascal, Pa 5.133 kPa (20,000 m at 950 hPa) to 105.0 kPa (sea level at 1050 hPa) in this lab.
P/P0 Fraction of sea-level pressure remaining; depends on h alone dimensionless ratio 5.4 % at 20,000 m to 100.0 % at sea level in this lab, whatever P0 is set to.
T ISA air temperature, T = T0 - L·h up to 11 km, then constant kelvin, K 15.0 °C (288.15 K) at sea level to -56.5 °C (216.65 K) from 11,000 m upwards in this lab.
T0 Standard sea-level temperature, fixed by the model kelvin, K 288.15 K (15 °C), not adjustable.
L Tropospheric lapse rate, fixed by the model kelvin per metre, K/m 0.0065 K/m (6.5 °C per km) to 11 km, then zero to 20 km.
g Standard gravity, fixed by the lab metre per second squared, m/s² 9.80665 m/s² (not adjustable).
M, R Molar mass of dry air and the universal gas constant, which set the exponent g·M/(R·L) kg/mol and J/(mol·K) 0.0289644 kg/mol and 8.31432 J/(mol·K), giving an exponent of 5.256.
rho Air density from the ideal gas law, rho = P·M/(R·T) kilogram per cubic metre, kg/m³ 0.083 kg/m³ (20,000 m at 950 hPa) to 1.269 kg/m³ (sea level at 1050 hPa) in this lab.
h(Hg) Mercury barometer column, h = P/(rho·g) with mercury at 13,595 kg/m³ metre, m (shown in mm) 38.5 mm to 787.6 mm in this lab; the drawn tube is scaled to 800 mm.
h(water) Water column that the same pressure would support metre, m 0.52 m to 10.71 m in this lab.

The physics: why pressure falls with height

Take any thin horizontal slice of the atmosphere. It is not accelerating, so the air below must push up on it slightly harder than the air above pushes down, and the difference is the slice's own weight per unit area. Written for an infinitesimal slice that is the hydrostatic balance dP/dh = -rho·g: pressure falls with height at a rate set by the local density.

In a lake the density is the same at every depth and the balance integrates to the straight line P = rho·g·h, which is why the lab's water column rises in exact proportion to the pressure. Air will not sit still for that, because its density is not a constant but is itself decided by the pressure it is under.

The ideal gas law closes the loop: rho = P·M/(R·T), density proportional to pressure at a given temperature. Substituting it turns the balance into dP/P = -(g·M/(R·T))·dh, which says the atmosphere loses a fixed fraction of its pressure per metre rather than a fixed amount.

That is the whole reason the gold curve in the picture bends the way it does. Near the ground the air is dense and every metre of climb sheds a lot of weight; high up the air is thin and the same metre sheds very little. You can read it off the table above: the first 2,000 m take 21.5 percentage points off the sea-level pressure, and the 9,000 m from the tropopause to the top of the slider take only 16.9.

If the temperature were the same all the way up, the fraction lost per metre would be constant and the profile would be a perfect exponential. The troposphere is not like that; it cools with height at roughly 6.5 °C per kilometre, because sunlight warms the ground and the air above it expands and cools as it rises.

Feeding T = T0 - L·h into the balance and integrating gives the power law P = P0·(1 - L·h/T0)^(g·M/(R·L)), whose exponent works out at 5.256 for dry air, and that is the formula the lab evaluates below 11 km. Slide the altitude upwards and the temperature readout falls in step, 15.0 °C at the ground, 2.0 °C at 2,000 m, -42.5 °C on Everest.

At 11,000 m the cooling stops. The tropopause is where the standard model switches to a constant -56.5 °C, and with T fixed the balance integrates to a plain exponential, P = P(11 km)·exp(-g·M·(h - 11000)/(R·T11)). Pressure is continuous across the join, so nothing jumps in the readouts as you cross it; only the temperature freezes, and the slope of the curve changes by an amount too small to see at this scale. The lab stops the slider at 20,000 m because that is where the isothermal layer ends and the standard atmosphere starts to warm again.

The barometer is the same hydrostatic balance run in reverse. A closed tube of mercury standing in an open dish has vacuum above the column and the atmosphere pressing on the dish, so the column settles where rho(Hg)·g·h equals the air pressure; with mercury at 13,595 kg/m³ that is 760.0 mm at 101.3 kPa, and it is why the lab's column-top label and its pressure readout always agree. Mercury earns its place by being dense: the water column readout shows that the same pressure would need 10.33 m of water, taller than a two-storey house, which was the original puzzle that led Torricelli to the barometer in the first place.

Atmospheric pressure simulator at the airliner cruise preset: altitude 11,000 m with the sea-level pressure at 1013.25 hPa reads 22.63 kPa (226.3 hPa, 0.223 atm, 3.28 psi), 22.3 % of sea level, a 169.8 mm Hg mercury column (6.68 inHg), 2.31 m of water, an ISA air temperature of -56.5 °C (216.65 K) and an air density of 0.364 kg/m³.
The Airliner cruise preset at 11,000 m. The marker sits exactly on the tropopause tick, the pressure has fallen to 22.63 kPa, under a quarter of sea level, and the temperature readout has reached the -56.5 °C it will hold for the rest of the slider's travel.

Where the standard atmosphere breaks down

The lab shows an idealised average column: dry air, a fixed temperature profile and constant gravity. Every real day departs from it, and each departure leaves a recognisable fingerprint on the numbers.

Real days are not standard days
The ISA air temperature readout is what the model assumes, not a forecast. A warm air column is less dense, so the pressure falls more slowly with height than the lab shows and a given pressure is met at a greater altitude; a cold column does the reverse. Aviation carries a rule of thumb of about 4 % of the height above the pressure datum for every 10 °C the air differs from ISA, which at Everest is several hundred metres.
Symptom: a barometer at a known height reads a few per cent off the lab even with the correct sea-level pressure dialled in.
Weather moves the whole curve
The model contains no weather; you supply it through the sea-level slider. Its 950 to 1050 hPa span is roughly five per cent either side of standard and covers a deep depression to a strong anticyclone, which is why the lab lets you set it. Mean sea-level pressure also drifts by a few hectopascals through a single day, and near the ground each hectopascal is worth roughly eight to nine metres of altitude: slide from 0 to 500 m and the readout falls from 101.3 kPa to 95.46 kPa.
Humidity
The molar mass the lab uses, 0.0289644 kg/mol, is for dry air. Water vapour, at 0.018 kg/mol, is lighter than the nitrogen and oxygen it displaces, so humid air is a little less dense and its pressure falls a little more slowly with height. In hot, humid air the effect can pass one per cent of the density; the lab ignores it.
Above 20 km there are more layers
The isothermal layer the lab uses between 11 km and 20 km is the second of seven in the 1976 standard. Above 20 km the stratosphere warms, first slowly and then quickly, because ozone absorbs sunlight there, and each layer has its own lapse rate and its own exponent. The slider stops at 20,000 m rather than extrapolating an exponential that would soon be wrong.
Geopotential versus geometric altitude
The standard atmosphere is tabulated against geopotential height, which treats g as 9.80665 m/s² all the way up. Real gravity weakens with distance from the Earth's centre, so the geometric height above sea level is slightly larger than the geopotential value: about 60 m larger at the top of the slider, and a negligible amount at the heights people actually stand on.
The lab's own limits
The altitude slider moves in whole metres and the sea-level slider in quarter hectopascals, and every readout is rounded for display, four significant figures on the pressure, one decimal place on the temperature and the mercury column, two on the water column. The mercury density is fixed at its 0 °C value; a warm barometer's mercury is slightly less dense and stands a fraction of a per cent taller. The drawn columns take about two seconds to settle while the printed numbers are instant, so during the animation the label on the column top is the answer and the column beneath it is still catching up.

Where atmospheric pressure is actually used

Pressure altimeters and QNH
An aircraft altimeter is a barometer with its dial marked in feet or metres according to this very model, and the small window on its face, the subscale, is the lab's sea-level slider. Set the subscale to the reported sea-level pressure, called the QNH, and the instrument reads altitude above the sea; set it to 1013.25 hPa, as every aircraft does above the transition altitude, and it reads pressure altitude, the basis of flight levels. In the lab, dialling 950 hPa with the altitude at zero drops the reading to 95.00 kPa, which an altimeter still set to 1013.25 would interpret as being several hundred metres up.
Weather reports reduced to sea level
A station's barometer measures the pressure at the station's own height, and forecasters convert it to an equivalent sea-level value so that stations at different heights can be drawn on one map. The lab runs that conversion the other way round. Load the Denver preset: with the map showing a standard 1013.25 hPa, a barometer in the city itself reads 83.42 kPa, or 834.2 hPa, and the fraction readout says why, 82.3 %.
Cabin altitude
An airliner at cruise does not hold its cabin at sea-level pressure; airworthiness rules require only that the cabin altitude stays below 8,000 ft, about 2,400 m, in normal operation. Set the slider to 2,400 m and the lab shows what passengers breathe: 75.63 kPa, 74.6 % of sea level. Now load the Airliner cruise preset for the air outside the window at 11,000 m, 22.63 kPa, and the difference between the two is the load the fuselage is built to carry.
Cooking and the boiling point
Water boils when its vapour pressure reaches the pressure of the air above it, so the boiling point tracks the lab's main readout. At the 79.50 kPa the lab gives for 2,000 m water boils close to 93 °C, and at the 31.44 kPa of the Everest summit at about 70 °C, too cool to cook many foods properly; the exact pairing comes from steam tables, not from this lab. A pressure cooker is the same physics run upwards.
Breathing at altitude
Oxygen is a fixed fifth of dry air by volume at every altitude in this model, so the Fraction of sea-level pressure readout is also the fraction of sea-level oxygen pressure that each breath delivers. Many people notice the thinner air above roughly 2,500 m, where the lab reads a little under three-quarters of sea level, and above about 8,000 m, where it reads about a third, unacclimatised humans cannot survive for long without supplementary oxygen. The precise thresholds vary from person to person; the physics of the pressure does not.
Atmospheric pressure simulator at the deep low at sea level preset: altitude 0 m with the sea-level pressure at 950.00 hPa reads 95.00 kPa (950.0 hPa, 0.938 atm, 13.78 psi), 100.0 % of sea level, a 712.6 mm Hg mercury column (28.05 inHg), 9.69 m of water, an ISA air temperature of 15.0 °C (288.15 K) and an air density of 1.149 kg/m³.
The Deep low at sea level preset. With the altitude at 0 m the pressure readout is simply the 950 hPa on the sea-level slider, 95.00 kPa, and the mercury has slipped to 712.6 mm — yet the fraction still reads 100.0 %, because the ratio to sea level is fixed by height alone.

Where to go next

Put numbers to a specific height with the atmospheric pressure calculator, which runs the same model with the working written out and will also solve the altimeter problem, altitude from a measured pressure, directly. For the concept from the ground up, including how a barometer is built and why you do not feel ten tonnes of air, read Atmospheric Pressure Explained, and for the definition it all rests on, force spread over area, the guide to pressure in physics. The pressure simulator shows the same hydrostatic balance building with depth in water instead of thinning with height in air, and everything else we have built is in the library of physics simulations.

Frequently asked questions

What does the atmospheric pressure simulator actually calculate?

It evaluates the 1976 International Standard Atmosphere between sea level and 20 km for the altitude and sea-level pressure you set. Up to 11,000 m the air cools at 6.5 °C per kilometre and the pressure follows P = P0·(1 - L·h/T0)^5.256; from 11 km to 20 km the model holds the air at -56.5 °C and the pressure decays exponentially. From that one pressure the lab derives the mercury and water columns, the ISA temperature and the air density.

Why does the fraction of sea-level pressure not move when I slide the sea-level pressure?

Because in this model the ratio P/P0 depends on the altitude alone. Sea-level pressure enters the formula only as a multiplier, so changing it scales every pressure by the same factor and leaves the ratio untouched. You can see it in the lab: at 2,000 m the pressure readout is 74.53 kPa with the slider at 950 hPa, 79.50 kPa at 1013.25 hPa and 82.38 kPa at 1050 hPa, and the fraction reads 78.5 % for all three.

What pressure does the simulator give on the summit of Everest?

With the altitude at 8,849 m and a standard 1013.25 hPa at sea level it reads 31.44 kPa, which is 31.0 % of sea-level pressure. The mercury barometer stands at 235.8 mm Hg, the water column at 3.21 m, the ISA air temperature is -42.5 °C and the air density 0.475 kg/m³. Real summit readings sit several per cent above that standard figure, higher in summer than in winter, because the real air column there is warmer than the model's.

Why does the temperature readout stop falling at 11,000 m?

Because 11 km is the tropopause of the standard atmosphere, the top of the layer in which temperature falls with height. Above it the model treats the lower stratosphere as isothermal, so the ISA air temperature reads -56.5 °C (216.65 K) at every altitude from 11,000 m to the top of the slider. The pressure keeps falling, but as a pure exponential rather than the power law used below the tropopause.

Why does the mercury barometer read 760 mm at sea level?

Because a liquid column balances the atmosphere when rho·g·h equals the air pressure. With mercury at 13,595 kg/m³ and g at 9.80665 m/s², a pressure of 101,325 Pa holds up a column 0.760 m tall, which the lab prints as 760.0 mm Hg. The water column readout applies the same balance with a density of 1,000 kg/m³, which is why it needs 10.33 m to do the same job.

Why does the altitude slider stop at 20,000 m?

Because the two-layer model the lab implements is only defined that far. Above 20 km the standard atmosphere begins to warm again through the stratosphere, and each further layer needs its own lapse rate and exponent. At the top of the slider the lab reads 5.475 kPa on a standard day, 5.4 % of sea-level pressure, and it refuses to extrapolate beyond it.

Can I use the simulator as an altimeter?

Yes, by working it backwards. Set the sea-level pressure slider to the day's reported mean sea-level pressure (the QNH in aviation), then move the altitude slider until the pressure readout matches what your barometer shows; the slider then reads your pressure altitude. If you would rather have the inverse solved for you directly, the atmospheric pressure calculator linked below does it in one step.

Why does the simulator disagree with the barometer in my phone or watch?

Because the lab shows a standard atmosphere and your sensor is measuring the real one. On a warm day the air column is less dense and pressure falls more slowly with height; on a cold day the opposite; humidity and the day's weather move it further. Setting the sea-level pressure slider to the current mean sea-level pressure removes the largest of those differences, and the temperature effect is what remains.

References & formula source

  • Halliday, Resnick and Walker, Fundamentals of Physics, chapter 14 (Fluids): pressure and how it varies with height.
  • Young and Freedman, University Physics with Modern Physics, section 12.2: pressure in a fluid and the variation of atmospheric pressure with altitude.
  • U.S. Standard Atmosphere, 1976 (NOAA, NASA and USAF; NASA-TM-X-74335): the constants and the two layers from 0 to 20 km that this lab implements.
  • ICAO Doc 7488, Manual of the ICAO Standard Atmosphere: the same reference atmosphere as used for altimetry.
  • Further reading: Atmospheric pressure — Wikipedia