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.
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.
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.

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.
| Control | Range | Step |
|---|---|---|
| Altitude above sea level | 0 – 20,000 m | 1 |
| Sea-level pressure | 950 – 1050 hPa | 0.25 |
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.
| 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 %.
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.
| 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. |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.