P = P0 · (1 - L·h / T0)g·M / (R·L)h = (T0 / L) · (1 - (P / P0)R·L / (g·M))  ·  above 11 km: P = P11 · e-g·M·(h - 11000) / (R·T11)

Atmospheric pressure falls with altitude because each layer of air only has to carry the weight of the air above it; the standard atmosphere turns that into P = P0·(1 - L·h/T0)5.2559 up to 11 km and an exponential decay above. This free atmospheric pressure calculator gives the pressure at any altitude to 20 km for the sea-level pressure you enter, or the altitude that matches a measured pressure, and shows every step.

Load a real case

Each button writes an altitude and a sea-level pressure into the boxes above and lets the calculator do the rest. The confirmation line quotes the result the engine renders, not a stored answer.

Pick a case above, or type your own numbers.

What Is the Atmospheric Pressure Calculator?

The atmospheric pressure calculator is a free online tool built on the standard-atmosphere formula P = P0 · (1 − L·h / T0)g·M/(R·L). Enter the altitude and the day's sea-level pressure, in whichever units suit you, and it returns the air pressure at that height with every step of the substitution, or enter a measured pressure and it solves for altitude instead. Valid from sea level to 20 km, with the ISA temperature, air density and mercury column alongside.

Variables used by the atmospheric pressure calculator
SymbolQuantityDefault unitAlso acceptsExample value
hAltitudemkm, ft2000
P0Sea-level pressurehPakPa, Pa, atm, inHg, psi1013.25
PPressure at altitudekPahPa, Pa, atm, mmHg, psi

How to use the atmospheric pressure calculator

  1. Pick the unknown. The Solve for menu offers Pressure at altitude (P), the default, or Altitude (h) for the altimeter problem. Whichever you choose, Sea-level pressure stays on the form as an input.
  2. Enter the altitude. Type it in the Altitude box and pick m, km or ft from its drop-down; the tool accepts 0 to 20,000 m and returns nothing outside that band. When solving for altitude this box is replaced by Pressure at altitude, which takes kPa, hPa, Pa, atm, mmHg or psi.
  3. Set the day's sea-level pressure. The default 1013.25 hPa is the standard atmosphere. For a real day, enter the mean sea-level pressure from a weather report, not the station reading, and choose hPa, kPa, Pa, atm, inHg or psi to match the source.
  4. Read the result and the extras. The answer shows in the unit selected on the result field with the working underneath, followed by the ISA air temperature, air density, equivalent mercury column and the share of sea-level pressure at that height.

The common mistake is mixing up the two pressures: Pressure at altitude is what a barometer reads where you are standing, while Sea-level pressure is the value reduced to sea level that forecasts quote. Enter a station reading as P0 and every altitude comes out too low.

Atmospheric pressure calculator at its default inputs: altitude 2000 m and sea-level pressure 1013.25 hPa give 79.5 kPa, with extras of 2.0 °C ISA air temperature, 1.0065 kg/m³ air density, a 596.3 mm mercury column and 78.46 % of sea-level pressure.
The default case. Two thousand metres up on a standard day the calculator returns 79.5 kPa, and the extras beneath the result show why: the ISA air is 2.0 °C and only 1.0065 kg/m³ dense, and a barometer there holds 596.3 mm of mercury.

Worked example: change one thing at a time

Start from the page defaults and move a single input per row. Every figure in the table is the string the calculator itself displays for those inputs, so if the table and the tool ever disagree, the tool is right.

What the calculator reports as each input moves
Step Altitude Sea-level pressure Pressure at altitude ISA temperature Air density Mercury column Share of sea level
Start (page defaults) 2000 m 1013.25 hPa 79.5 kPa 2.0 °C 1.0065 kg/m³ 596.3 mm Hg 78.46 %
Climb to Everest 8849 m 1013.25 hPa 31.44 kPa -42.5 °C 0.4749 kg/m³ 235.8 mm Hg 31.03 %
Airliner cruise, tropopause 11000 m 1013.25 hPa 22.63 kPa -56.5 °C 0.3639 kg/m³ 169.8 mm Hg 22.34 %
Top of the model 20000 m 1013.25 hPa 5.475 kPa -56.5 °C 0.0880 kg/m³ 41.1 mm Hg 5.40 %
Back to 2000 m, low-pressure day 2000 m 1000 hPa 78.46 kPa 2.0 °C 0.9933 kg/m³ 588.5 mm Hg 78.46 %
Storm at sea level 0 m 950 hPa 95 kPa 15.0 °C 1.1485 kg/m³ 712.6 mm Hg 100.00 %

Rows 1 to 4 climb through the troposphere and into the stratosphere with the standard 1013.25 hPa at sea level: the pressure drops to 78.46 % of sea level by 2000 m, under a third on Everest, and 5.40 % at 20 km. The temperature column falls 6.5 °C for every kilometre until 11 km and then freezes at -56.5 °C, which is why rows 3 and 4 share it. Row 5 keeps the altitude at 2000 m and lowers the sea-level pressure to 1000 hPa: the pressure, density and mercury column all scale down by the same 1.3 %, while the share of sea level and the temperature do not move at all.

Row 6 is the storm preset: at sea level the result is simply the 950 hPa you typed, so the tool reports 95 kPa and 100.00 %. Run the inverse to close the loop. Choose Altitude (h), enter 79.4952 kPa with the standard sea-level pressure, and the calculator returns 2000 m, the row 1 altitude recovered to the metre.

Formula and symbol reference

Everything the tool computes comes from the two-layer standard atmosphere: P = P0·(1 - L·h/T0)^(g·M/(R·L)) up to 11 km and P = P11·exp(-g·M·(h - 11000)/(R·T11)) above it, with the density from rho = P·M/(R·T). The constants are fixed; only P0 and the altitude or pressure are yours to change.

Symbols, units and working ranges
Symbol Meaning SI unit Typical range
P Pressure at altitude h, the result when solving for P and the input when solving for h pascal, Pa 5.475 kPa at 20 km to P0 at sea level (standard day). Must lie between those limits when it is the input.
h Geopotential altitude above mean sea level metre, m 0 to 20,000 m in this calculator. Enter km or ft and the tool converts.
P0 Mean sea-level pressure for the day (MSLP, QNH) pascal, Pa Standard 1013.25 hPa. Real days run about 950 hPa in a deep storm to 1050 hPa in a strong anticyclone.
T0 Standard sea-level temperature kelvin, K Fixed at 288.15 K (15 °C).
L Temperature lapse rate in the troposphere kelvin per metre, K/m Fixed at 0.0065 K/m (6.5 °C per km) up to 11 km; zero from 11 to 20 km.
T11 Air temperature from 11 km to 20 km (lower stratosphere) kelvin, K Fixed at 216.65 K (-56.5 °C).
g Standard acceleration of gravity metre per second squared, m/s² Fixed at 9.80665 m/s².
M Molar mass of dry air kilogram per mole, kg/mol Fixed at 0.0289644 kg/mol.
R Universal gas constant (1976 value) joule per mole-kelvin, J/(mol·K) Fixed at 8.31432 J/(mol·K). The exponent g·M/(R·L) works out to 5.2559.
rho Air density at h, from the ideal-gas law rho = P·M/(R·T) kilogram per cubic metre, kg/m³ 1.225 kg/m³ at sea level to 0.088 kg/m³ at 20 km (standard day).

The physics: why pressure falls with height

Air at rest obeys the hydrostatic balance dP/dh = -rho·g: cross a thin layer upwards and the pressure drops by the weight of that layer per unit area. For water the density is constant and this integrates to the familiar rho·g·h, but air is compressible, so its density is itself set by the pressure.

The ideal-gas law supplies the link, rho = P·M/(R·T), and substituting it gives dP/P = -(g·M/(R·T))·dh. If the temperature were constant the solution would be a pure exponential with a scale height of about 8.4 km at 15 °C.

The troposphere is not isothermal: the standard model cools it at the lapse rate L = 6.5 °C per km. Integrating with T = T0 - L·h turns the exponential into the power law (1 - L·h/T0)^5.2559, and because the exponent is large the two shapes stay close, so the profile is nearly exponential.

At 11 km the model switches to a constant -56.5 °C and the exponential form takes over exactly, with the 11 km pressure of 22.63 kPa as its starting point. The calculator applies whichever branch the altitude falls in, and inverts the same branch when you ask for altitude from pressure.

Atmospheric pressure calculator loaded with the Everest summit preset: altitude 8849 m at 1013.25 hPa returns 31.44 kPa, an ISA air temperature of -42.5 °C, air density 0.4749 kg/m³, a 235.8 mm mercury column and 31.03 % of sea-level pressure.
The Everest summit preset. At 8,849 m the standard atmosphere gives 31.44 kPa, just under a third of sea level, which is the reason the summit’s air holds so little oxygen per breath.

Where the standard atmosphere breaks down

The formula describes an average dry atmosphere with a fixed temperature profile. Real air differs from it in a handful of predictable ways, and each one has a recognisable effect on the number you get.

Non-standard temperature
The lapse rate and the 15 °C sea-level temperature are averages. A hot summer column is less dense, so pressure falls more slowly with height and the true altitude for a given pressure is higher than the tool reports; a cold winter column does the opposite. The error is roughly 0.4 % of the altitude for every degree the column differs from standard.
Symptom: the pressure you measure at a known height sits a few per cent off the calculated value even with the correct P0 entered.
Weather systems and the sea-level pressure
The model has no weather; you supply it through P0. Mean sea-level pressure ranges from about 950 hPa in a deep depression to 1050 hPa under a strong anticyclone, and every result scales with it. Use the day's MSLP from a report, and remember it drifts by a few hectopascals over a day, which is a few tens of metres of apparent altitude.
Humidity
The molar mass 0.0289644 kg/mol is for dry air. Water vapour is lighter than the nitrogen and oxygen it displaces, so humid air is slightly less dense and pressure falls slightly more slowly with height. The effect is usually below one per cent, up to about two per cent in hot saturated air, and the calculator ignores it.
Above 20 km
The isothermal layer ends at 20 km; above it the standard atmosphere warms again through the stratosphere with new lapse rates and new exponents. The calculator returns nothing rather than extrapolate, so an altitude above 20,000 m or a pressure below about 5.47 kPa gives the empty-result message.
Altimeter setting: QNH versus QFE
An aviation altimeter set to QNH reads altitude above mean sea level, which is what this tool computes when P0 is the QNH. Set to QFE it reads height above the airfield, and set to the standard 1013.25 hPa it reads pressure altitude, the flight-level convention. Entering QFE as P0 will make the calculated altitude a height above the field, not above the sea.
Geometric versus geopotential height
The standard atmosphere is tabulated against geopotential altitude, which treats g as constant at 9.80665 m/s². Real gravity weakens with height, so geometric height runs slightly larger: about 0.3 % more at 20 km, or 63 m. For a map altitude below a few kilometres the difference is smaller than the weather-driven error.

Where it is actually used

Aircraft altimeters and flight levels
A pressure altimeter is this calculator's altitude mode built into an instrument: it measures static pressure and displays the standard-atmosphere altitude for the P0 set in its subscale. Above the transition altitude every aircraft sets 1013.25 hPa, so flight levels are pressure altitudes, and separation works because all aircraft share the same error.
Weather stations reducing to sea level
A barometer at a station 300 m up reads roughly 36 hPa less than the sea-level value, and the station adds that back using a formula of this kind so that maps compare like with like. Run the tool with the station height and read the share of sea level to see the size of the correction; operational reductions also fold in the measured temperature, which this tool does not.
Cabin pressurisation
Airliner cabins are typically pressurised to the equivalent of around 2,400 m rather than to sea level. Enter 2400 m and the tool reports the cabin pressure a passenger breathes at cruise, about three-quarters of sea level, while outside at 11,000 m the row 3 figure of 22.63 kPa applies. Check the specific aircraft type before quoting a cabin altitude, as the figure varies by design.
Cooking and boiling at altitude
Water boils where its vapour pressure equals the air pressure, so lower pressure means a cooler boil and longer cooking times. The tool gives you the pressure; the boiling point then comes from steam tables, roughly 93 °C at the 79.5 kPa of the 2,000 m worked example and near 70 °C at the Everest summit. Verify the pairing against a steam table before using it for anything that matters.
Barometric altimeters in phones and watches
Many phones, fitness watches and hiking GPS units carry a pressure sensor and convert it to altitude with exactly the inverse formula in the Altitude mode. They are precise to a metre or two over short times but drift with the weather, which is why serious units ask you to recalibrate P0 at a known height, and why an app that fetches local MSLP from a weather service tracks better than one that assumes 1013.25 hPa.
Atmospheric pressure calculator with the 950 hPa storm preset at sea level: altitude 0 m and sea-level pressure 950 hPa return 95 kPa, with 15.0 °C ISA temperature, 1.1485 kg/m³ air density, a 712.6 mm mercury column and 100.00 % of the entered sea-level value.
A deep low at sea level. Setting the sea-level pressure to 950 hPa with no altitude returns 95 kPa exactly: the altitude term does nothing at 0 m, so the result is simply the pressure you entered, and the mercury column drops to 712.6 mm.

Where to go next

For the concept itself, how a barometer works and why we do not feel the weight of the air, read the guide Atmospheric Pressure Explained and the broader pressure in physics article. To put numbers to force over area or to depth in a liquid, use the pressure calculator, and for the density of a gas at any pressure and temperature the gas density calculator. Watch pressure build with depth in the pressure simulator, or browse the library of physics simulations.

Frequently asked questions

What is the difference between hPa, mbar, kPa and atm?

They are all units of the same pressure, and 1 hPa is exactly 1 mbar. 1 kPa = 10 hPa, and 1 atm = 101.325 kPa = 1013.25 hPa, which is the standard sea-level pressure this calculator uses by default. Weather reports quote hPa or mbar, engineering tables usually kPa, and aviation altimeter settings hPa or inHg, so pick the unit in the drop-down that matches your source.

What sea-level pressure should I enter?

Enter the mean sea-level pressure (MSLP or QNH) from a weather report, not the raw station reading. A station reading is the pressure at the station's own height, so it is already lower than sea level; feeding it in as P0 would make every altitude come out too low. If you only want the standard atmosphere, leave the default 1013.25 hPa.

Why does the calculator stop at 20 km?

Because the two-layer model it uses is only defined that far: a 6.5 K per km lapse rate to 11 km, then a constant -56.5 °C to 20 km. Above 20 km the standard atmosphere starts warming again through the stratosphere and needs further layers with different exponents. Entering an altitude above 20,000 m, or a pressure below the 20 km value of about 5.47 kPa, therefore returns no result rather than a wrong one.

How do I get altitude from a pressure reading?

Choose Altitude (h) in the Solve for menu, enter the pressure you measured and the day's sea-level pressure, and the calculator inverts the barometric formula: h = (T0/L) · (1 - (P/P0)^(R·L/(g·M))). This is exactly what an aircraft altimeter or a phone barometer does. For 79.4952 kPa against 1013.25 hPa it returns 2000 m, the same altitude the forward calculation started from.

Why does my answer differ from a weather station or an altimeter?

The standard atmosphere assumes 15 °C at sea level and a fixed lapse rate, while the real air column has its own temperature. Warm air is less dense, so pressure falls more slowly with height and a given pressure sits higher than the calculator says; cold air does the opposite by a similar few per cent. Entering the correct sea-level pressure removes the biggest error, but the temperature effect stays unless you use a temperature-corrected formula.

Does the answer depend on the sea-level pressure I enter?

Yes, in direct proportion. Every pressure the model returns is P0 multiplied by a factor that depends only on altitude, so 1000 hPa instead of 1013.25 hPa at 2000 m gives 78.456 kPa instead of 79.495 kPa, about 1.3 % lower. The share of sea-level pressure and the ISA temperature do not change at all, because they depend on altitude alone.

References & formula source

  • Halliday, Resnick & Walker — Fundamentals of Physics, Chapter 14 (Fluids: pressure and its variation with height).
  • Young & Freedman — University Physics with Modern Physics, §12.2 (Pressure in a fluid; variation of pressure with height in the atmosphere).
  • U.S. Standard Atmosphere, 1976 (NOAA / NASA / USAF, NASA-TM-X-74335) — the constants and the 0–20 km layer model used here.
  • ICAO Doc 7488 — Manual of the ICAO Standard Atmosphere (extended to 80 kilometres).
  • Further reading: Atmospheric pressure — Wikipedia

Embed this calculator

Add this free Atmospheric Pressure calculator to your own website — copy the snippet below.