E6B Flight Computer
POST/api/v1/e6b/pressure-altitude/calculateCommercial Pilot

Calculate Pressure Altitude

Calculates pressure altitude from field elevation and altimeter setting.

Code Examples

curl \
  -X POST \
  -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "fieldElevationFt": 0,
  "altimeterInHg": 0
}' \
  "https://api.preflightapi.io/api/v1/e6b/pressure-altitude/calculate"

Description

Pressure altitude is the altitude in the standard atmosphere where the pressure equals the current pressure at your location. It is the starting point for density altitude, TAS, and performance chart calculations.

*Formula:*PA = FieldElevation + (29.92 - Altimeter) * 1000

Response Fields

  • PressureAltitudeFt — the calculated pressure altitude (feet)
  • AltimeterCorrectionFt — the deviation from standard pressure expressed in feet (positive = lower pressure than standard, negative = higher)

*Note:* The 1 inHg = 1000 ft approximation is most accurate near sea level and diverges slightly at higher elevations and extreme altimeter settings.

Request BodyPressureAltitudeRequestDto

fieldElevationFtnumber

Field elevation in feet MSL

altimeterInHgnumber

Altimeter setting in inches of mercury (must be between 25.0 and 35.0 inHg)

Response Schema

200Returns the pressure altitude calculationPressureAltitudeResponseDto
pressureAltitudeFtnumber

Calculated pressure altitude in feet

altimeterCorrectionFtnumber

Altimeter correction — deviation from standard pressure expressed in feet

fieldElevationFtnumber

Field elevation used in calculation (feet MSL)

altimeterInHgnumber

Altimeter setting used in calculation (inHg)

400The altimeter setting is outside the valid range (25.0 - 35.0 inHg)ApiErrorResponse
codestring

Machine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").

messagestring

Human-readable error message suitable for display.

detailsstringnullable

Additional error details (only included in development environment).

servicestringnullable

Name of the external service that failed (only included for 503 errors).

validationErrorsRecord<string, string[]>nullable

Field-level validation errors (only for validation failures).

timestampstring

UTC timestamp when the error occurred.

traceIdstringnullable

Correlation ID for tracing the request.

pathstringnullable

Request path that generated the error.

Search Documentation

Search docs, endpoints, and schemas