Density altitude calculator: formula and worked example
Density altitude is pressure altitude corrected for nonstandard temperature, and it tells how the air makes an airplane perform. The calculator converts the altimeter setting to station pressure, builds a virtual temperature that includes the dew point, and applies the NWS equation. With a field at 5,000 ft, an altimeter of 30.02 inHg, 30 degrees Celsius and a dew point of 10, the result is about 7,888 ft.
Key points
- Density altitude is pressure altitude corrected for nonstandard temperature variations, per the FAA.
- The calculator uses station pressure, derived from the altimeter setting and the field elevation, not the altimeter setting directly.
- Humidity enters through the virtual temperature when a dew point is entered; the FAA says humidity is not generally a major factor.
- The tool also shows pressure altitude, ISA temperature and a rule of thumb result of 120 ft per degree Celsius.
- Higher density altitude means a longer takeoff roll, a lower climb rate and a higher true airspeed for the same indicated speed.

What the calculator does
The calculator on this page returns the density altitude for a field from four inputs: the field elevation in feet, the altimeter setting in inches of mercury, the air temperature in degrees Celsius and, optionally, the dew point in degrees Celsius. It also shows the pressure altitude, the ISA temperature at that pressure altitude, the station pressure and a rule of thumb value. Temperature and dew point can be taken from a METAR, which is decoded on the temperature and dew point page, and the altimeter setting from the altimeter setting page.
The definitions
The FAA publication FAA-P-8740-02 defines density altitude as pressure altitude corrected for nonstandard temperature variations. Pressure altitude is the indicated altitude with the altimeter set to 29.92 inHg (1013 hPa). The publication adds that an airport at 500 ft with a reported density altitude of 5,000 ft gives the airplane the performance it would have at 5,000 ft. The performance figures in an airplane handbook are based on standard sea level conditions, which the publication gives as 59 degrees Fahrenheit or 15 degrees Celsius and 29.92 inHg.
The formula in the code
The code follows the National Weather Service method, in five steps.
- Station pressure: the altimeter setting is multiplied by
((288 - 0.0065 x h) / 288)^5.2561, where h is the elevation in meters (feet times 0.3048). This is the NWS station pressure equation. - Vapor pressure: from the dew point,
e = 6.11 x 10^(7.5 x Td / (237.3 + Td))in hPa, the NWS formula. It is set to zero when no dew point is given. - Virtual temperature:
Tv = T / (1 - (e / p) x (1 - 0.622)), with T in kelvin and p in hPa (station pressure in inHg times 33.8639), then converted to degrees Rankine. - Density altitude:
DA = 145366 x (1 - ((17.326 x P) / Tv)^0.235), with P the station pressure in inHg and Tv in degrees Rankine. - Pressure altitude:
elevation + (29.92 - altimeter) x 1000, and ISA temperature15 - 1.98 x PA / 1000in degrees Celsius.
The rule of thumb result is PA + 120 x (T - ISA), with T and ISA in degrees Celsius.
Differences from the NWS equations
The vapor pressure formula and the constant of 145366 are the ones printed on the NWS page, so a result from this calculator can be checked against the NWS calculator with the same inputs. Other sources use a Magnus type vapor pressure or a constant of 145442, which is the ISA sea level temperature divided by the lapse rate in feet. On the default case these variants move the result by a few feet, about 0.05 percent, far less than the uncertainty of the inputs.
A worked example
The tool defaults are a field elevation of 5,000 ft, an altimeter setting of 30.02 inHg, a temperature of 30 degrees Celsius and a dew point of 10 degrees Celsius.
- Station pressure: 24.975 inHg.
- Pressure altitude: 5,000 + (29.92 minus 30.02) x 1,000 = 4,900 ft.
- ISA temperature at 4,900 ft: 15 minus 1.98 x 4.9 = 5.3 degrees Celsius, so the air is ISA plus 24.7.
- Density altitude: 7,888 ft.
- Rule of thumb: 4,900 + 120 x 24.7 = 7,864 ft.
The density altitude is nearly 2,900 ft above the field elevation, which is the effect of warm air at a high field.
Sensitivity
Other runs of the same code, with a field at 5,000 ft and an altimeter of 30.02 inHg unless noted:
| Case | Density altitude |
|---|---|
| 30 degrees Celsius, no dew point | 7,710 ft |
| 30 degrees Celsius, dew point 10 | 7,888 ft |
| 30 degrees Celsius, dew point 22 | 8,098 ft |
| 15 degrees Celsius, dew point 5 | 6,190 ft |
| 10 degrees Celsius, dew point 0 | 5,577 ft |
| 30 degrees Celsius, dew point 10, altimeter 29.92 | 8,001 ft |
| 30 degrees Celsius, dew point 10, altimeter 29.42 | 8,547 ft |
Humidity shifts the result by a few hundred feet in these cases, while temperature and pressure shift it by more.
How to read the result
A density altitude above the field elevation means the airplane performs as if the field were higher. The FAA publication lists the effects: a longer takeoff distance, a reduced rate of climb, and, on approach and landing, the same indicated airspeed but a higher true airspeed and a longer landing roll. It adds that for power settings below 75 percent or a density altitude above 5,000 ft, normally aspirated engines are leaned for takeoff. The publication gives an example chart for a reference of the effect: at 100 degrees Fahrenheit and a pressure altitude of 6,000 ft, takeoff distance increases by 230 percent and climb rate falls by 76 percent. These are typical values for personal airplanes, and long grass, sand, mud or deep snow can double the takeoff distance. The actual performance must be taken from the flight manual of the airplane.
Limits of the method
- Accuracy depends on the inputs. A temperature from a report is a point value at the station.
- The altimeter setting and the elevation must refer to the same airport.
- The rule of thumb is an approximation. In a hot and humid case with a field near sea level (13 ft elevation, 29.92 inHg, 35 degrees Celsius, dew point 25), the equation gives 2,708 ft and the rule of thumb 2,416 ft.
- The calculator gives an altitude, not a performance figure.
A schematic report
METAR LXXX 191750Z 18008KT 9999 FEW050 30/10 A3002
For a field at 5,000 ft, the temperature of 30 and the dew point of 10 degrees Celsius with an altimeter setting of 30.02 inHg give the default case above: a density altitude of about 7,888 ft. The station code, the elevation and the report are schematic. The cloud height of the same kind of report can be estimated with the cloud base calculator, and the humidity with the relative humidity tool. The pressure units are covered by the pressure converter.
In real reports
A METAR gives the temperature and the dew point in whole degrees Celsius, and the altimeter setting as an A group in inHg or a Q group in hPa. A Q group must be converted before use, since the calculator takes inches of mercury. The elevation of the field is not in the report and must come from another source. Reports from high and hot airports often show a large gap between temperature and dew point, which is the situation where density altitude matters most.
Method and limits
The equations in the code were compared with the NWS Weather Forecast Office El Paso documents for density altitude and station pressure, and with FAA-P-8740-02 for the definitions and the effects. The station pressure equation matches the NWS one. The vapor pressure formula and the final constant are the NWS ones. The FAA publication says humidity is not generally a major factor, while the NWS equation includes it. The rule of thumb of 120 ft per degree Celsius and the ISA lapse of 1.98 degrees Celsius per 1,000 ft were not found in the FAA publication read; the lapse is consistent with the 0.0065 degrees per meter used in the NWS station pressure equation, but no primary FAA text on the 120 ft rule was verified because the chapter of the Pilot's Handbook of Aeronautical Knowledge could not be downloaded in full. A dry ISA sea level case (0 ft, 29.92 inHg, 15 degrees Celsius, no dew point) gives 18 ft with the NWS constants, so the result is not exactly zero. The site is a learning resource and is not an operational weather source.
Source code of this tool (MIT)
// Tafrob calculators - pure functions, MIT licence (c) Tafrob.
// Every formula is documented on the tool page with its source.
const rad = (d: number) => (d * Math.PI) / 180;
/** Wind components on a runway. dir/heading in degrees (same reference: both true or both magnetic). */
export function windComponents(windDir: number, speed: number, runwayHeading: number) {
const angle = ((windDir - runwayHeading + 540) % 360) - 180; // -180..180, + = from the right
const cross = speed * Math.sin(rad(angle));
const head = speed * Math.cos(rad(angle));
return { angle, cross, head }; // cross > 0: from the right; head < 0: tailwind
}
/** Saturation vapour pressure (hPa), Magnus formula with Alduchov & Eskridge (1996) coefficients. */
export const satVap = (tC: number) => 6.1094 * Math.exp((17.625 * tC) / (tC + 243.04));
/** Relative humidity (%) from temperature and dew point (deg C). */
export const relHumidity = (tC: number, tdC: number) => (100 * satVap(tdC)) / satVap(tC);
/** Dew point (deg C) from temperature (deg C) and relative humidity (%). */
export function dewPoint(tC: number, rh: number) {
const g = Math.log(rh / 100) + (17.625 * tC) / (243.04 + tC);
return (243.04 * g) / (17.625 - g);
}
/** Convective cloud base estimate above ground (ft) from the temperature/dew point spread (deg C). */
export const cloudBaseFt = (tC: number, tdC: number) => ((tC - tdC) / 2.5) * 1000;
/** Pressure altitude (ft) from field elevation (ft) and altimeter setting (inHg). FAA rule: 1,000 ft per inHg. */
export const pressureAltitude = (elevFt: number, altInHg: number) => elevFt + (29.92 - altInHg) * 1000;
/** ISA temperature (deg C) at a pressure altitude (ft). */
export const isaTemp = (paFt: number) => 15 - (1.98 * paFt) / 1000;
/** Station pressure (inHg) from altimeter setting (inHg) and elevation (m), NWS formula. */
export const stationPressure = (altInHg: number, elevM: number) => altInHg * Math.pow((288 - 0.0065 * elevM) / 288, 5.2561);
/**
* Density altitude (ft), NWS method (WFO El Paso): station pressure and virtual temperature (humidity included).
* e = 6.11 * 10^(7.5 * Td / (237.3 + Td)) hPa; DA = 145366 * (1 - (17.326 * P / Tv)^0.235), P in inHg, Tv in degrees Rankine.
* Same constants as the NWS page, so results can be checked against it (a dry ISA sea level case gives about 18 ft, not 0).
*/
export function densityAltitude(elevFt: number, altInHg: number, tC: number, tdC?: number) {
const p = stationPressure(altInHg, elevFt * 0.3048); // inHg
const pHpa = p * 33.8639;
const e = tdC === undefined ? 0 : 6.11 * Math.pow(10, (7.5 * tdC) / (237.3 + tdC)); // NWS vapour pressure
const tK = tC + 273.15;
const tvK = tK / (1 - (e / pHpa) * (1 - 0.622));
const tvR = tvK * 1.8;
const da = 145366 * (1 - Math.pow((17.326 * p) / tvR, 0.235));
const pa = pressureAltitude(elevFt, altInHg);
const thumb = pa + 120 * (tC - isaTemp(pa)); // rule of thumb: 120 ft per deg C above ISA
return { da, pa, thumb, isa: isaTemp(pa), stationInHg: p };
}
/** Pressure conversions. */
export const HPA_PER_INHG = 33.8639;
export const HPA_PER_MMHG = 1.333224;
export const hpaToInhg = (h: number) => h / HPA_PER_INHG;
export const inhgToHpa = (i: number) => i * HPA_PER_INHG;
/** METAR A group: hundredths of inHg rounded down (FMH-1 11.5.1); the epsilon absorbs float error (29.92 -> 2991.9999...). */
export const aGroup = (hpa: number) => 'A' + String(Math.floor(hpaToInhg(hpa) * 100 + 1e-6)).padStart(4, '0');
/** Pressure altitude offset (ft) from 1013.25 hPa with the AIM rule of 1,000 ft per inHg (about 29.5 ft per hPa). */
export const pressureOffsetFt = (hpa: number) => ((1013.25 - hpa) / HPA_PER_INHG) * 1000;
export type Category = 'VFR' | 'MVFR' | 'IFR' | 'LIFR';
/** US flight category (NWS / Aviation Weather Center definitions). ceiling in ft AGL (Infinity if none), visibility in statute miles. */
export function flightCategory(ceilingFt: number, visSm: number): { cat: Category; byCeiling: Category; byVis: Category } {
const c: Category = ceilingFt < 500 ? 'LIFR' : ceilingFt < 1000 ? 'IFR' : ceilingFt <= 3000 ? 'MVFR' : 'VFR';
const v: Category = visSm < 1 ? 'LIFR' : visSm < 3 ? 'IFR' : visSm <= 5 ? 'MVFR' : 'VFR';
const rank: Category[] = ['LIFR', 'IFR', 'MVFR', 'VFR'];
const cat = rank[Math.min(rank.indexOf(c), rank.indexOf(v))];
return { cat, byCeiling: c, byVis: v };
}
/** Speed conversions (from knots). */
export const KT = { mps: 0.514444, kmh: 1.852, mph: 1.150779 };
/** Interpret a METAR/TAF day-time group DDHHMMZ relative to a reference date (UTC). */
export function dayTimeGroup(group: string, ref = new Date()) {
const m = group.trim().toUpperCase().match(/^(\d{2})(\d{2})(\d{2})Z?$/);
if (!m) return null;
const [d, h, mi] = [Number(m[1]), Number(m[2]), Number(m[3])];
if (d < 1 || d > 31 || h > 23 || mi > 59) return null;
// Choose the month that puts the date closest to the reference date.
let best: Date | null = null;
for (const off of [-1, 0, 1]) {
const c = new Date(Date.UTC(ref.getUTCFullYear(), ref.getUTCMonth() + off, d, h, mi));
if (c.getUTCDate() !== d) continue;
if (!best || Math.abs(+c - +ref) < Math.abs(+best - +ref)) best = c;
}
return best;
}
Training and reference only. For flight planning, always use official briefing sources (your national weather service, AIS or approved provider).
Frequently asked questions
What is density altitude?
The FAA defines it as pressure altitude corrected for nonstandard temperature variations. An airplane at a field with a density altitude of 5,000 ft performs as if it were at 5,000 ft in standard conditions, even if the field elevation is much lower. Hot air, high elevation and low pressure all raise it.
Does the calculator use the altimeter setting or station pressure?
It converts the altimeter setting to station pressure with the NWS equation and the field elevation, then uses station pressure. The NWS page for its density altitude calculator states that station pressure, not the altimeter setting, must be used. The result is therefore tied to the elevation entered.
Does humidity change density altitude?
The NWS equation includes water vapor through the virtual temperature, and the tool adds it when a dew point is entered. The FAA publication on density altitude says humidity is not generally considered a major factor. It advises adding 10 percent to the computed takeoff distance when humidity is high.
What is the 120 feet per degree rule?
The tool shows a rule of thumb: pressure altitude plus 120 ft for each degree Celsius above the ISA temperature. This rule was not found in the FAA publication read for this article, so its source is not verified here. In the default example it gives 7,864 ft against 7,888 ft from the equation.
How does density altitude affect takeoff?
According to the FAA, it increases the takeoff distance and reduces the rate of climb. Indicated airspeed stays the same on approach but true airspeed is higher, which lengthens the landing roll. The tool shows only the altitude, and the airplane flight manual gives the performance values.
Sources
- National Weather Service, Weather Forecast Office El Paso. Density Altitude (calculator page)
- National Weather Service, Weather Forecast Office El Paso. Density Altitude (equation, PDF)
- National Weather Service, Weather Forecast Office El Paso. Station Pressure (equation, PDF)
- Federal Aviation Administration, copy hosted by EASA (2008). Density Altitude (FAA-P-8740-02)
- Federal Aviation Administration (2024). Aviation Weather Handbook (FAA-H-8083-28A)