ECI vs ECEF: coordinate frames and leap seconds

The ECI X axis is fixed while the ECEF X axis rotates with Earth by angle θ; 2026 time ruler: GPS time leads UTC by 18 s, TAI by 37 s, TT by 69.184 s
Download SVG
Embed

Copy this HTML to use the diagram on your site (CC BY 4.0, keep the credit line):

<figure><img src="https://cosmicaxis.space/img/he-toa-do-eci-ecef-en.svg" alt="The ECI X axis is fixed while the ECEF X axis rotates with Earth by angle θ; 2026 time ruler: GPS time leads UTC by 18 s, TAI by 37 s, TT by 69.184 s" width="600" height="620"><figcaption>Source: <a href="https://cosmicaxis.space/en/eci-vs-ecef/">CosmicAxis</a> · CC BY 4.0 · Based on: IERS Conventions 2010 ch. 5, IERS Bulletin C 72, IS-GPS-200N, NIMA TR8350.2</figcaption></figure>
Source

IERS Conventions 2010 ch. 5, IERS Bulletin C 72, IS-GPS-200N, NIMA TR8350.2

ECI has its origin at Earth's center and axes fixed to distant stars; ECEF is attached to Earth and rotates at 7.292115 × 10⁻⁵ rad/s (WGS 84). Converting between them needs precise time: in 2026 TAI leads UTC by 37 s and GPS time leads UTC by 18 s (IERS Bulletin C 72).

01Knowledge

What is an inertial frame, and why does a spacecraft need several coordinate frames?

An inertial frame does not rotate or accelerate, so Newton’s laws hold in their plain form. A spacecraft needs several coordinate frames because each question is easiest to answer in its own frame.

  • Orbit calculation: the equations of motion are written in an Earth-centered inertial frame.
  • Position over the ground: ground stations, maps and GPS use a frame attached to Earth, a rotating frame.
  • Pointing antennas and engines: these use a frame attached to the spacecraft body.

A rotating frame needs extra centrifugal and Coriolis forces, so engineers integrate the orbit in an inertial frame and convert afterwards. The conversion is a rotation matrix that changes with time, so the foundations stage treats coordinate frames and time scales together.

How do the ECI and ECEF coordinate frames differ?

ECI and ECEF share the origin at Earth’s center and the Z axis toward the north pole; the ECI X axis is fixed to distant stars, while the ECEF X axis is attached to the prime meridian and turns with Earth.

  • ECI, Earth-Centered Inertial: the familiar version is J2000 (EME2000), whose X axis points to the mean equinox at the J2000 epoch. The current standard is GCRS, with axes from the ICRS (IERS Conventions 2010). The J2000 pole differs from the GCRS pole by 16.617 and 6.819 milliarcseconds, under 1 m in low orbit (calculated by CosmicAxis). TEME, the frame of TLE data, is also a version of ECI.
  • ECEF, Earth-Centered, Earth-Fixed: the standard version is the IERS ITRF; ground stations have nearly constant coordinates in it.

IERS links the two frames with three rotations: [GCRS] = Q(t) · R(t) · W(t) · [ITRS], where Q is precession and nutation, R is the daily spin and W is polar motion (equation 5.1). R is a rotation about Z by the Earth Rotation Angle (ERA).

Earth rotates at 7.292115 × 10⁻⁵ rad/s (WGS 84), so a point on the equator moves at 465 m/s in ECI (calculated by CosmicAxis). A rocket launched east gets that speed for free in its delta-v budget, and a 1 s time error means almost half a kilometer of position error.

What is WGS 84, and what are longitude, latitude and altitude measured against?

WGS 84 (World Geodetic System 1984) is the ECEF frame used by GPS, together with a reference ellipsoid: semi-major axis a = 6,378,137.0 m and inverse flattening 1/f = 298.257223563 (NIMA TR8350.2).

  • Geodetic latitude: the angle between the equatorial plane and the normal to the ellipsoid, not the line to the center. At 45° latitude the two differ by 0.19° (calculated by CosmicAxis).
  • Longitude: the angle about the Z axis from the prime meridian.
  • Altitude: the distance along the normal to the ellipsoid surface, which is not height above sea level.

NIMA states that WGS 84 version G873 agrees with ITRF to about 10 cm.

What are the body frame and the LVLH frame used for?

The body frame is attached to the hull to describe where sensors and engines sit; the LVLH frame (local vertical, local horizontal) is attached to the orbit, with one axis up and one along the flight direction.

  • Body frame: an IMU measures in this frame, so its output must be rotated into ECI before it is added to the orbit. A Kalman filter then uses the IMU for the high-rate prediction step and a slower source such as GPS for the update step.
  • LVLH frame: it turns once per orbit. An imaging satellite keeps its camera pointing down in LVLH; a spacecraft docking with a station computes relative position in the station’s LVLH frame.

The angle between the body frame and ECI or LVLH is called attitude. A wrong inertial frame is expensive: on Ariane 5 flight 501, both inertial reference systems stopped because of a software error in the alignment function, the step that fixes their inertial frame from gravity and Earth’s rotation.

How do UTC, TAI, GPS time and TT differ?

TAI, GPS time and TT run continuously from atomic clocks, while UTC (Coordinated Universal Time) gets leap seconds to follow Earth’s rotation. Since 1 January 2017, TAI has led UTC by exactly 37 s (IERS Bulletin C 72).

Scale Definition Offset from UTC in 2026 (s) Source, date accessed
TAI, International Atomic Time Computed by BIPM from atomic clocks in many laboratories +37 IERS Bulletin C 72, BIPM Circular T 464, 2026-10-04
GPS time Equal to UTC at 0h on 6 January 1980, no leap seconds +18 IS-GPS-200N + IERS, calculated by CosmicAxis, 2026-10-04
TT, Terrestrial Time TAI + 32.184 s, used for astronomical ephemerides +69.184 IERS Conventions 2010, 2026-10-04
UT1 Follows the real rotation of Earth differs by under 0.9 NIST, 2026-10-04

CosmicAxis derived the 18 s figure: on 1 January 1980, TAI − UTC was 19 s (IERS), so GPS time = TAI − 19 s; with TAI − UTC now 37 s, GPS time leads UTC by 18 s. Far from Earth there is no GPS signal, so the Deep Space Network tracks a probe from the ground with two-way Doppler, ranging and delta-DOR, against a station reference clock.

The Julian date counts days continuously from noon, so two instants subtract without regard to months and years. J2000 is 12h TT on 1 January 2000 = JD 2451545.0 TT (IERS Conventions 2010).

What is a leap second, and why will it be dropped before 2035?

A leap second is 1 extra second inserted into UTC, so the clock reads 23:59:59 → 23:59:60 → 00:00:00, to keep UTC within 0.9 s of Earth time UT1 (NIST). TAI − UTC was 10 s in 1972 and is 37 s now, so 27 leap seconds have been inserted; the latest came at the end of 31 December 2016 (IERS).

CGPM 2022, Resolution 4, states that leap-second discontinuities risk damaging digital infrastructure, including GNSS, and that each operator handles leap seconds in its own way.

  • Decision: increase the allowed UT1 − UTC difference in or before 2035, so UTC runs continuously for at least a century.
  • Negative leap second: CGPM notes a first negative leap second may be needed, a case that has never been anticipated or tested; NIST describes a negative leap second as skipping 23:59:59.
  • Now: IERS Bulletin C 72 announced no leap second at the end of 2026.

02Practice

How do you convert ECI coordinates to longitude and latitude in Python?

Converting ECI coordinates to longitude and latitude takes three steps: calculate the Julian date, rotate the vector about Z by the ERA to get ECEF, then solve for latitude, longitude and altitude on the WGS 84 ellipsoid. The code writes all three in plain numpy, then compares with astropy.

ERA = 2π · (0.7790572732640 + 1.00273781191135448 · Tu), where Tu is the UT1 Julian date minus 2451545.0 (IERS Conventions 2010, equation 5.14). The satellite position is chosen by CosmicAxis; the code treats UT1 = UTC.

from datetime import datetime, timedelta
import numpy as np

TAI_UTC, TAI_GPS, TT_TAI = 37, 19, 32.184        # s: IERS Bulletin C 72, IS-GPS-200, IERS 2010
A, F = 6378137.0, 1 / 298.257223563              # m, WGS 84 ellipsoid

def jd(t):
    return (t - datetime(2000, 1, 1, 12)).total_seconds() / 86400 + 2451545.0

def era(jd_ut1):                                 # IERS 2010 (5.14)
    return 2 * np.pi * ((0.7790572732640 + 1.00273781191135448 * (jd_ut1 - 2451545.0)) % 1)

def r3(a):
    c, s = np.cos(a), np.sin(a)
    return np.array([[c, s, 0], [-s, c, 0], [0, 0, 1]])

def geodetic(r):                                 # ECEF → latitude, longitude, altitude
    x, y, z = r
    e2, p = F * (2 - F), np.hypot(x, y)
    lat = np.arctan2(z, p * (1 - e2))
    for _ in range(5):
        n = A / np.sqrt(1 - e2 * np.sin(lat) ** 2)
        h = p / np.cos(lat) - n
        lat = np.arctan2(z, p * (1 - e2 * n / (n + h)))
    return np.degrees(lat), np.degrees(np.arctan2(y, x)), h

utc = datetime(2026, 10, 4)
week, sow = divmod((utc + timedelta(seconds=TAI_UTC - TAI_GPS) - datetime(1980, 1, 6)).total_seconds(), 604800)
print(f"JD {jd(utc):.1f} | GPS = UTC + {TAI_UTC - TAI_GPS} s | TT = UTC + {TAI_UTC + TT_TAI} s")
print(f"GPS week {week:.0f}, 10-bit message broadcasts {week % 1024:.0f}, seconds of week {sow:.0f}")

r_eci = np.array([3.0e6, 4.0e6, 4.5e6])          # m, example satellite in ECI
lat, lon, h = geodetic(r3(era(jd(utc))) @ r_eci)
print(f"ERA {np.degrees(era(jd(utc))):.3f}° → lat {lat:.3f}°, lon {lon:.3f}°, alt {h / 1e3:.1f} km")

for name, dt in [("UT1−UTC maximum", 0.9), ("GPS for UTC", 18), ("TAI for UTC", 37), ("TT for UTC", 69.184)]:
    lon2 = geodetic(r3(era(jd(utc) + dt / 86400)) @ r_eci)[1]
    km = np.radians(abs(lon2 - lon)) * A * np.cos(np.radians(lat)) / 1e3
    print(f"{name:15s} {dt:6.3f} s → longitude shift {lon2 - lon:+.4f}°, {km:5.2f} km")

import astropy.units as u, erfa                 # check against astropy
from astropy.coordinates import GCRS, ITRS, CartesianRepresentation
from astropy.time import Time
t = Time(utc, scale="utc")
ref = GCRS(CartesianRepresentation(r_eci * u.m), obstime=t).transform_to(ITRS(obstime=t))
ref = ref.cartesian.xyz.to_value(u.m)
q = erfa.c2i06a(jd(utc) + (TAI_UTC + TT_TAI) / 86400, 0)   # precession-nutation
print(f"vs astropy: ERA rotation alone is off by {np.linalg.norm(r3(era(jd(utc))) @ r_eci - ref) / 1e3:.1f} km, "
      f"adding precession-nutation leaves {np.linalg.norm(r3(era(jd(utc))) @ q @ r_eci - ref):.0f} m")

Result with Python 3.14.6, numpy 2.5.3, astropy 8.0.1:

JD 2461317.5 | GPS = UTC + 18 s | TT = UTC + 69.184 s
GPS week 2439, 10-bit message broadcasts 391, seconds of week 18
ERA 12.357° → lat 42.168°, lon 40.773°, alt 358.3 km
UT1−UTC maximum   0.900 s → longitude shift -0.0038°,  0.31 km
GPS for UTC      18.000 s → longitude shift -0.0752°,  6.20 km
TAI for UTC      37.000 s → longitude shift -0.1546°, 12.75 km
TT for UTC       69.184 s → longitude shift -0.2891°, 23.85 km
vs astropy: ERA rotation alone is off by 14.2 km, adding precession-nutation leaves 3 m
Bar chart: the sub-satellite point of the example satellite, at latitude 42.2°, shifts in longitude when the wrong time scale is fed into the rotation: ignoring UT1−UTC of 0.9 s gives 0.31 km, GPS time in place of UTC 6.20 km, TAI in place of UTC 12.75 km, TT in place of UTC 23.85 km
Source

calculated by CosmicAxis from IERS Conventions 2010 (5.14) and WGS 84

  1. The wrong time scale is the wrong place: using GPS time for UTC shifts the sub-satellite point by 6.20 km; using TT shifts it by 23.85 km.
  2. One rotation is not enough: Earth’s axis has precessed since J2000, so the ERA rotation alone is off from astropy by 14.2 km; adding the IAU 2006/2000A precession-nutation matrix leaves 3 m, the rest being polar motion and UT1 − UTC from IERS tables.
  3. For real flights, use a library: astropy, Orekit and NASA’s GMAT include IERS models; write your own to understand each step.

03Reality

What are the GPS week rollovers of 1999, 2019 and 2038?

A GPS week rollover is when the 10-bit week counter in the legacy GPS message wraps to 0 after 1,024 weeks, about 19.7 years; the first was in August 1999 and the second at 23:59:42 UTC on 6 April 2019 (GPS.gov).

IS-GPS-200N expresses GPS time as a week number (604,800 s per week) plus seconds in the week, and the legacy LNAV message broadcasts the week modulo 1024. A receiver must infer which 1,024-week cycle it is in; a wrong guess gives the wrong date.

  • 2019: GPS.gov states that many badly designed devices failed on that day, some months earlier or later, and needed software patches.
  • Next: devices that use only the C/A signal and LNAV message meet the rollover on 20 November 2038; the CNAV message uses 13 bits and does not overflow until 2137 (GPS.gov).
  • Today: the Python above gives GPS week 2439, but the 10-bit message broadcasts only 391.

A CubeSat’s GNSS receiver often flies for years without a firmware update, so ask the manufacturer how a module handles the 2038 rollover and leap seconds.

04Milestone

Milestone: check yourself

If you can do all of these, move on to the next article in this phase.

  • Can you explain why orbits are integrated in the ECI frame?
  • Can you convert a UTC instant to TAI, GPS time and TT?
  • Can you convert an ECI position to longitude, latitude and altitude in Python?
  • Can you calculate the GPS week number and the 10-bit value the LNAV message broadcasts?

Frequently asked questions

What do ECI and ECEF stand for?

ECI is Earth-Centered Inertial, a non-rotating frame centered on Earth; ECEF is Earth-Centered, Earth-Fixed, a frame centered on Earth that rotates with it.

When is the next leap second?

IERS Bulletin C 72 (6 July 2026) announced no leap second at the end of 2026. Leap seconds are only inserted at the end of June or December, announced in advance by Bulletin C every 6 months.

What is today's Julian date?

The Julian date at 0h UTC on 4 October 2026 is 2461317.5 (calculated by CosmicAxis). The Julian day starts at noon, so midnight ends in .5.

References

  1. IERS Bulletin C 72 (6 July 2026) — accessed
  2. IERS — Leap_Second.dat (TAI−UTC since 1972) — accessed
  3. IERS Conventions 2010, chapter 5 (updated 10 August 2012) — accessed
  4. BIPM — Circular T 464 (9 September 2026) — accessed
  5. BIPM — CGPM 2022, Resolution 4 — accessed
  6. NIST — Leap Seconds FAQs — accessed
  7. NIMA TR8350.2 — WGS 84, Amendment 1 (2000), web.archive.org copy — accessed
  8. IS-GPS-200N, web.archive.org copy — accessed
  9. GPS.gov — GPS Week Number Rollover, web.archive.org copy — accessed
  10. Astropy — Coordinate frames (astropy.coordinates) — accessed

Cite this article

CosmicAxis. (2026). ECI vs ECEF: Frames, Leap Seconds, UTC, TAI and GPS Time. https://cosmicaxis.space/en/eci-vs-ecef/