ForHosting KIT · Science

Altitude from pressure calculator

Turn a barometer reading into height: 900 hPa against a sea-level pressure of 1013.25 hPa puts you just under a kilometre up. Use the local QNH instead of a fixed standard day, and get metres, feet and kilometres. Free in your browser.

  • Free
  • Runs in your browser
  • No sign-up
  • Your data stays on your device
Use it from WebAPIEmailTelegramApp soon
If you enter
Pressure
900
Sea level pressure
1,013.25
You get
Result
988.5000788989
Pressure unit
Hpa
Pressure pa
90,000
Sea level pressure pa
101,325

A handheld barometer, a weather-station transducer, or a phone pressure chip reports static air pressure, not height. Turning that reading into geometric altitude is the job of the hypsometric equation of the International Standard Atmosphere: a closed-form inversion of the ISA troposphere that maps the ratio of station pressure to sea-level pressure onto metres above the reference surface. Equal pressures give zero height; a lower station pressure gives a positive altitude in metres, feet and kilometres.

What the hypsometric equation of the standard atmosphere actually computes

The hypsometric equation is the integrated hydrostatic balance of a column of air. Starting from dp equals minus rho g dh and the ideal-gas law with the International Standard Atmosphere lapse rate T of h equals T0 minus L times h, the integral between sea level and the station closes in a power law rather than a plain logarithm.

Solving that power law for geometric height produces the barometric-altimeter formula h equals (T0 over L) times one minus the ratio P over Psl raised to the power R L over g, where P is the measured static pressure, Psl is the sea-level or altimeter-setting pressure, T0 is 288.15 kelvin, L is 0.0065 kelvin per metre, R is the specific gas constant of dry air 287.05287 joules per kelvin per kilogram, and g is standard gravity 9.80665 metres per second squared.

The exponent R L over g is a fixed number near 0.190263; the scale height T0 over L is 44330.76923076923 metres. When P equals Psl the ratio is one, the power is one, and height is identically zero — you are sitting on the reference surface. When P is smaller than Psl the ratio is less than one and height is positive, which is the usual mountain, ridge, or aircraft case.

When P is larger than Psl the formula returns a negative height, which is physical in basins, mines, and Dead Sea stations below the sea-level datum.

Field use, the eleven-kilometre ceiling, and searches this page is not answering

Hikers and survey crews use a hypsometric altitude calculator when they have a handheld barometer and a nearby METAR QNH and want a height in metres without assuming the 1013.25 hPa standard day that a pressure-altitude converter hard-wires. Weather-station technicians check that a newly installed transducer sitting at a known bench mark returns an altitude consistent with the local altimeter setting; a few tens of metres of disagreement usually means a clogged port or a wrong unit, not a new mountain.

Classroom and exam-prep generators need a deterministic oracle for the standard-atmosphere inversion so a grader can mark both the zero-height case P equals Psl and the rejection of a non-positive pressure instead of silently returning NaN. Prefer this capability when you already have both P and Psl and only need the standard-atmosphere height.

Trail and survey height from a handheld barometer

Combine a field pressure reading with a nearby METAR QNH or altimeter setting to get geometric altitude in metres and feet without assuming a 1013.25 hPa standard day.

Weather-station bench-mark checks

Confirm that a newly installed transducer at a known elevation returns an ISA hypsometric height consistent with the local sea-level pressure used by the network.

What happens if either pressure is zero or negative?

The hypsometric power law is not defined for a non-positive static pressure, and the failure is not billed.

Which sea-level pressure should I send?

Use the QNH or altimeter setting that applies to the column you are measuring — a METAR, a local analysis, or 1013.25 hPa for a standard-day pressure altitude.

How is this different from a pressure-altitude unit converter?

A unit converter maps one value between hPa and metres with a fixed 101325 Pa sea-level standard. This calculator takes two pressures — the reading and your chosen sea-level reference — which is the actual hypsometric / barometric-altimeter problem.

Can the calculated altitude be negative?

Yes. If your measured pressure is higher than the sea-level pressure, the result lies below the reference surface, which is real in basins, mines and stations near the Dead Sea. Equal pressures always give exactly zero.

Is the result accurate high in the atmosphere?

Only up to about eleven kilometres. The formula models a single troposphere layer with a steady drop in temperature; above that height the real standard atmosphere changes its lapse rate and a multi-layer calculation is needed.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/earth/altitude-from-pressure-barometric

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/earth/altitude-from-pressure-barometric \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pressure":900,"sea_level_pressure":1013.25}'
{
  "pressure": 900,
  "sea_level_pressure": 1013.25
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "earth.altitude_from_pressure_barometric",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

This calculator takes the pressure you measured and the sea-level pressure you are reducing against — a METAR QNH, an altimeter setting, or a 1013.25 hPa standard-day field — and evaluates h = (T0 / L) × [1 − (P / Psl)^(R L / g)] with the ICAO constants T0 = 288.15 K, L = 0.0065 K/m, specific gas constant 287.05287 J K−1 kg−1 and g = 9.80665 m s−2. Zero or negative values on either pressure are rejected as invalid_input because the power is not defined there.

What the hypsometric equation of the standard atmosphere actually computes

Both pressures must be strictly positive: a zero or negative reading would take a non-positive base of a fractional power, which is not a physical static pressure and is rejected as invalid_input. This single-layer troposphere inversion is the formula used by consumer barometric altimeters and by most altitude-from-pressure classroom problems; above about eleven kilometres the real ICAO atmosphere changes lapse rate and a multi-layer inversion is required.

Input contract, units, response shape, and error behaviour

Both values share that unit; the hypsometric ratio is dimensionless, so mixing hectopascals with inches of mercury in the same request is a client error, not something the solver silently repairs. If either pressure is zero or negative the task fails with a message that the hypsometric equation is not defined for zero or negative pressure — those failures are not billed. POST a JSON body with two required finite numbers: pressure, the measured station or sensor reading (aliases measured_pressure, station_pressure, p, p_station, and observed_pressure); and sea_level_pressure, the reference you are reducing against (aliases slp, p0, p_sea, qnh, and sea_level). An optional pressure_unit field accepts the closed set hpa, pa, kpa, mbar, inhg, mmhg, atm, or psi and defaults to hpa, the unit METAR QNH and most MEMS barometers already use. Each numeric field may arrive as a JSON number or as a strict numeric string; missing fields, empty strings, non-finite values, and magnitudes above 1e15 fail with invalid_input naming the field. On success the body echoes pressure, sea_level_pressure, and the resolved pressure_unit; it then publishes pressure_pa and sea_level_pressure_pa, the dimensionless pressure_ratio, altitude_m, altitude_ft, altitude_km, result as an alias of altitude_m, method set to isa_hypsometric, model set to ICAO_ISA_troposphere, plus formula and equation strings filled with the rounded numbers. Pricing is a flat $0.002 per successful request with unit item; failed validation does not consume prepaid balance.

Field use, the eleven-kilometre ceiling, and searches this page is not answering

Keep both readings inside the published open interval above zero, prefer JSON numbers over pre-formatted strings, and remember that this single-layer model approaches 44330 metres as station pressure tends toward zero — that ceiling is the tropopause-scale height of the ISA troposphere, not a claim that the stratosphere has been inverted. This page targets people searching for an altitude from pressure hypsometric calculator, a barometric height from station pressure and sea-level pressure, or the ISA power-law altimeter formula online. It is not a pressure-unit converter, not a cabin-altitude solver from differential pressure, and not a station-pressure reduction to sea level. Round-trip checks are easy: form the ratio, raise it to 0.190263169, subtract from one, multiply by 44330.76923076923, and confirm altitude_m matches within the same twelve-decimal rounding.

Classroom ISA and exam auto-grading

Mark hypsometric-equation items with a deterministic oracle that returns zero height when P equals Psl and rejects zero or negative pressures as invalid_input.

How do I compute altitude from measured pressure and sea-level pressure?

Send finite positive numbers pressure and sea_level_pressure in the same unit (default hPa). The API returns geometric height from the ISA hypsometric inversion h = (T0/L)·[1 − (P/Psl)^(R L / g)] in metres, feet and kilometres.

What does the hypsometric altitude calculator cost?

The browser tool is free. API requests use prepaid KIT balance at $0.002 per successful call; invalid input is not billed.

Read the full KIT documentation →