Skip to content

Documentation / @interstellar-tools/equations / keplerPeriod

Function: keplerPeriod() ​

ts
function keplerPeriod(a: number, mu: number): number;

Defined in: orbits/kepler-period.ts:59

Kepler's 3rd law - orbital period (T) from semi-major axis (a) and gravitational parameter (μ).

Definition

T=2πa3μ

Units

  • Inputs: (a) in meters (m), (μ) in m³/s².
  • Output: (T) in seconds (s).

INFO

  • Valid for Keplerian (two-body) bound orbits with (a>0) (ellipses). Not defined for parabolic/hyperbolic trajectories.
  • (μ) is the standard gravitational parameter of the central body (e.g., Earth (≈3.986004418×1014 m3/s2)).
In practiceGeostationary orbit

23.93 h

Orbital period 42 164 km from Earth's centre

That's one sidereal day, the time Earth takes to turn once relative to the stars, so a satellite there stays over the same spot on the equator.

ts
keplerPeriod(42164e3, 3.986004418e14); // ≈ 86 164 s

Parameters ​

ParameterTypeDescription
anumberSemi-major axis (m), must be finite and > 0.
munumberGravitational parameter (m³/s²), must be finite and > 0.

Returns ​

number

Orbital period (T) (s).

Throws ​

Error If inputs are non-finite or out of domain.

Examples ​

ts
// GEO: a ≈ 42,164 km → T ≈ 86,164 s (one sidereal day)
const a = 42164e3; // m
const muEarth = 3.986004418e14; // m³/s²
const T = keplerPeriod(a, muEarth); // ≈ 86164 s
ts
// LEO-ish circular: a ≈ Earth radius + 400 km
const a = 6378e3 + 400e3; // m
const muEarth = 3.986004418e14; // m³/s²
const T = keplerPeriod(a, muEarth); // ≈ 5550 s (~92.5 min)