/api/v1/e6b/density-altitude/calculateCommercial PilotCalculate Density Altitude
Calculates density altitude from manually provided field elevation, altimeter setting, and temperature.
Calculate density altitude from field elevation, altimeter setting, and temperature — essential for aircraft performance calculations, especially at hot/high airports.
Density altitude is the altitude at which the air density matches standard atmosphere conditions. High density altitude means thinner air, which reduces engine power, propeller efficiency, and wing lift. On a hot day at a high-elevation airport, density altitude can be thousands of feet above field elevation.
Code Examples
curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fieldElevationFt": 748,
"altimeterInHg": 29.92,
"temperatureCelsius": 30
}' \
"https://api.preflightapi.io/api/v1/e6b/density-altitude/calculate"curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fieldElevationFt": 748,
"altimeterInHg": 29.92,
"temperatureCelsius": 30
}' \
"https://api.preflightapi.io/api/v1/e6b/density-altitude/calculate"{
"fieldElevationFt": 748,
"pressureAltitudeFt": 738,
"densityAltitudeFt": 2215,
"temperatureCelsius": 30,
"standardTempCelsius": 13.1,
"tempDeviationCelsius": 16.9,
"altimeterInHg": 29.92
}Field Reference
densityAltitudeFt- The effective altitude for aircraft performance. In this example, the air at 748 ft elevation performs like air at 2,215 ft on a standard day — expect reduced climb, longer takeoff roll, and lower engine power.
pressureAltitudeFt- Field elevation corrected for non-standard pressure. This is what your altimeter reads when set to 29.92 inHg.
tempDeviationCelsius- How much warmer (positive) or cooler (negative) than standard temperature for this altitude. Large positive deviations significantly degrade performance.
standardTempCelsius- The standard (ISA) temperature for this elevation. Standard sea-level temp is 15°C, decreasing 2°C per 1,000 ft.
Description
Provide your own values instead of relying on METAR data. Useful for any location, for planning with forecast temperatures, or when METAR data is not available.
Response Fields
DensityAltitudeFt— the effective altitude the aircraft "feels" based on air density
PressureAltitudeFt— field elevation corrected for non-standard pressure
IsaTemperatureCelsius— the standard (ISA) temperature expected at this pressure altitude
TemperatureDeviationCelsius— how far the actual temperature deviates from ISA (positive = hotter than standard)
*Formula:*DA = PA + 120 * (OAT - ISA_temp). This does not account for humidity, local pressure patterns, or non-standard lapse rates.
Request BodyDensityAltitudeRequestDto
Field elevation in feet MSL
Altimeter setting in inches of mercury (inHg)
Temperature in degrees Celsius
Response Schema
Airport identifier (for airport-based calculations)
Field elevation in feet MSL
Pressure altitude in feet
Density altitude in feet
Standard (ISA) temperature at this pressure altitude in Celsius
Actual temperature in Celsius
Temperature deviation from ISA in Celsius
Altimeter setting used in calculation (inHg)
Raw METAR text for reference (for airport-based calculations)
METAR observation time (for airport-based calculations)
Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").
Human-readable error message suitable for display.
Additional error details (only included in development environment).
Name of the external service that failed (only included for 503 errors).
Field-level validation errors (only for validation failures).
UTC timestamp when the error occurred.
Correlation ID for tracing the request.
Request path that generated the error.
Hot + high = reduced performance