How to use this calculator
Convert WGS84 geodetic latitude, longitude, and ellipsoidal height to Earth-centered Cartesian coordinates or invert a supplied exterior ECEF point.
- Enter Forward geodetic latitude (degrees), Forward longitude (degrees east), Forward ellipsoidal height (m), Inverse ECEF X Y Z (m), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
WGS84 geodetic ECEF coordinate conversion explained
Use Forward geodetic latitude (degrees) with Forward longitude (degrees east) to reproduce the sample calculation, then review the stated limits before carrying the result into another scenario.
A numerical walkthrough
Forward geodetic latitude (degrees) = 49.84; Forward longitude (degrees east) = 24.03; Forward ellipsoidal height (m) = 300; Inverse ECEF X Y Z (m) = 6378137,0,0; Conversion direction = forward.
- Geocentric radius: 6365990.43805139 m
- ECEF X Y Z: 3764458.64335003, 1678407.31114663, 4851559.98393903 m
- Geodetic latitude: 49.84 degrees
- Geodetic longitude: 24.03 degrees
- Ellipsoidal height: 300 m
The forward example places a point three hundred metres above the ellipsoid at the supplied latitude and longitude. The inverse default is the equatorial reference point on the positive X axis.
The model behind the numbers
N=a/√(1−e²sin²φ); X=(N+h)cosφcosλ; Y=(N+h)cosφsinλ; Z=[N(1−e²)+h]sinφ.
Use WGS84 a=6378137 m and inverse flattening 298.257223563. Forward mode uses geodetic latitude, not geocentric latitude. Inverse mode iterates latitude and calculates height by projection onto the ellipsoid normal, avoiding a polar division by cosine.
What to enter
lat— Forward geodetic latitude (degrees)- Angle in degrees, converted internally to radians.
lon— Forward longitude (degrees east)- Forward longitude (degrees east). This is a dimensionless model parameter unless the label explicitly states a unit.
height— Forward ellipsoidal height (m)- Height along the reference ellipsoid normal, not mean-sea-level elevation.
xyz— Inverse ECEF X Y Z (m)- Earth-centered Earth-fixed X,Y,Z in metres for inverse mode. The near-surface/exterior inverse domain is documented below. Use comma-separated values in the stated order.
mode— Conversion direction- Forward uses latitude, longitude, height and ignores xyz. Inverse uses xyz and ignores the three forward values. Choose forward, inverse.
Interpreting the result
Fixed WGS84 reference ellipsoid, not a time-dependent terrestrial frame transformation. Height is ellipsoidal, not elevation above mean sea level. Deep interior inverse points are excluded; longitude on the exact polar axis is conventionally zero.
Reading the outputs
ECEF distances and all height quantities are metres. A geoid correction is needed to relate ellipsoidal height to an orthometric elevation.
Frequently asked questions
Is geodetic latitude the angle from Earth’s center?
No. It is defined by the ellipsoid normal.
Can I paste mean-sea-level altitude as height?
Only after accounting for the appropriate geoid separation.
Does this convert between national datums?
No. It changes coordinates within the specified fixed ellipsoid model.
How do I use the WGS84 geodetic ECEF coordinate conversion calculator?
Enter Forward geodetic latitude (degrees), Forward longitude (degrees east), Forward ellipsoidal height (m), Inverse ECEF X Y Z (m), then complete the remaining labeled fields. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of WGS84 geodetic ECEF coordinate conversion?
Forward geodetic latitude (degrees) = 49.84; Forward longitude (degrees east) = 24.03; Forward ellipsoidal height (m) = 300; Inverse ECEF X Y Z (m) = 6378137,0,0; Conversion direction = forward. Geocentric radius: 6365990.43805139 m ECEF X Y Z: 3764458.64335003, 1678407.31114663, 4851559.98393903 m Geodetic latitude: 49.84 degrees Geodetic longitude: 24.03 degrees Ellipsoidal height: 300 m The forward example places a point three hundred metres above the ellipsoid at the supplied latitude and longitude. The inverse default is the equatorial reference point on the positive X axis.
Background or definition reference: GeographicLib coordinate-system documentation.
Read our calculation methodology.