HomeBiology, Earth & Space › Orbital Period Calculator

Orbital Period Calculator

Computes the orbital period from the semi-major axis and the central body's gravitational parameter GM with Kepler's third law T = 2π√(a³/GM), plus the circular orbital speed √(GM/a), for the Sun, Earth, Moon, Mars, Jupiter or a custom mass.

When to use

You need the period or speed of a satellite, moon or planet from its orbit size (e.g. the ISS at 6,791 km from Earth's centre, or 1 AU around the Sun).

Do not use when: You need the speed to leave a body (use escape-velocity), a transfer orbit or the position along an elliptical orbit at a given time, or relativistic corrections.

Formula

T = 2π × √(a³ / GM); v_circular = √(GM / a); GM(custom) = 6.67430 × 10⁻¹¹ × central_mass_kg

Kepler's third law for a body of negligible mass in a two-body orbit. GM values (m³/s²): Sun 1.32712440018 × 10²⁰, Earth 3.986004418 × 10¹⁴, Moon 4.9048695 × 10¹², Mars 4.282837 × 10¹³, Jupiter 1.26686534 × 10¹⁷. For an elliptical orbit the speed output is the circular value at radius a, not the varying true speed.

Inputs

ParameterTypeUnitRequiredDescription
semi_major_axisnumberyesOrbit size a, measured from the centre of the central body (radius of a circular orbit), in the unit given by axis_unit. Range: > 0, ≤ 1000000000000000000
axis_unitenum: km | au | mdefault kmUnit of semi_major_axis.
central_bodyenum: sun | earth | moon | mars | jupiter | customdefault earthBody being orbited; its GM is taken from the JPL astrodynamic constants.
central_mass_kgnumberkgnoMass of the central body, only used when central_body is custom (GM = G × M with G = 6.67430 × 10⁻¹¹). Range: > 0, ≤ 1e+42

Outputs

OutputTypeUnitDescription
period_secondsnumbersT = 2π √(a³ / GM).
period_minutesnumberminT / 60.
period_hoursnumberhT / 3600.
period_daysnumberdaysT / 86,400.
period_yearsnumberyearsT / (365.25 × 86,400) (Julian years).
orbital_speed_km_snumberkm/s√(GM / a), the speed of a circular orbit of radius a.
semi_major_axis_kmnumberkmThe orbit size in kilometres.
gm_m3_s2numberm³/s²Standard gravitational parameter of the central body.

Example

Earth around the Sun (1 AU): {"semi_major_axis":1,"axis_unit":"au","central_body":"sun"}{"period_days":365.2569,"period_years":1.00002,"orbital_speed_km_s":29.785,"semi_major_axis_km":149597870.7}

ISS: 6,791 km from Earth's centre (about 420 km altitude): {"semi_major_axis":6791,"axis_unit":"km","central_body":"earth"}{"period_seconds":5569.44,"period_minutes":92.824,"orbital_speed_km_s":7.661}

GET https://tttkmbb.com/api/v1/calculate/orbital-period?semi_major_axis=1&axis_unit=au&central_body=sun

Machine access

Sources

FAQ

Is the semi-major axis the altitude?

No: it is measured from the centre of the central body, so add the body's radius to the altitude (ISS: 6,371 km + 420 km ≈ 6,791 km). A note is added when a is smaller than the body's radius.

Does the mass of the orbiting body matter?

Only when it is not negligible compared with the central body (e.g. binary stars, Pluto–Charon): then GM should be G × (M + m).

Why is the year 365.26 days rather than 365.24?

Kepler's law gives the sidereal year (365.256 days, one orbit relative to the stars); the calendar (tropical) year of 365.242 days is shorter because of the precession of the equinoxes.

Related calculators