Latitude & Longitude to Cartesian (XYZ) Converter
Convert Geodetic coordinates (Latitude, Longitude, Altitude) to Earth-Centered Earth-Fixed (ECEF) Cartesian coordinates (X, Y, Z) using WGS84 standards.
Input Coordinates
Cartesian Coordinates (ECEF)
About
This tool transforms Geodetic coordinates (Latitude φ, Longitude λ, and Height h) into Earth-Centered, Earth-Fixed (ECEF) Cartesian coordinates (X, Y, Z). This conversion is fundamental in Global Positioning Systems (GPS), geodesy, and navigation logic.
Unlike simple spherical models, this calculator utilizes the WGS84 Ellipsoid model, which accounts for the Earth's oblateness (flattening at the poles). This ensures high-precision results suitable for engineering and scientific applications. The output represents the 3D position relative to the Earth's center of mass.
Formulas
The transformation from Geodetic to Cartesian coordinates requires calculating the radius of curvature in the prime vertical, denoted as N(φ).
Legend:
- φ = Latitude (converted to radians)
- λ = Longitude (converted to radians)
- h = Height above ellipsoid (meters)
- a = Semi-major axis of the ellipsoid
- e2 = First eccentricity squared (2f − f2)
Reference Data
| Ellipsoid Model | Semi-Major Axis (a) | Inverse Flattening (1/f) | Use Case |
|---|---|---|---|
| WGS84 | 6378137.0 m | 298.257223563 | Global GPS Standard |
| GRS80 | 6378137.0 m | 298.257222101 | North American Datum (NAD83) |
| Airy 1830 | 6377563.4 m | 299.3249646 | Ordnance Survey (UK) |
| Clarke 1866 | 6378206.4 m | 294.9786982 | Old North American Datum (NAD27) |
| Sphere | 6371000.0 m | ∞ | Rough Estimates |