Skip to content
CALX
Appearance

Appearance

Light or dark

Colour
Accessibility

Keplerian orbit: position, velocity and the law of areas

The exact state of a body on its ellipse at time t: Kepler’s equation, vis-viva, apsides, law of areas and the invariants h and ε.

Elements

The ellipse
kgExample value: solar GM / G ≈ 1.9884 × 10³⁰ kg (nominal solar GM, IAU 2015 B3; G, CODATA 2018).
Example value: 0.38709927 au, Mercury’s semi-major axis (Standish table, JPL, 1800-2050).
From 0 (circle) to 0.95 (documented display bound). Example value: 0.20563593, Mercury’s eccentricity (same table). The empty focus on the figure can also be dragged, mouse or keyboard.
The observed time
sCounted from a periapsis passage. Beyond T, the orbit repeats.
The figure

Orbit

position and velocity
M 1.99 × 10³⁰ kg · a 0.387 au · e 0.206t = 0 srperi = 4.6 × 10⁷ kmrapo = 6.98 × 10⁷ kmempty focusv = 59 km/s1 px = 0.983 km/s1 px = 0.00165 m/s²00.250.50.75100.791.2time (T)r / aT = 7.6 × 10⁶ s
t = 0 s

Playback covers one revolution in ten seconds; one screen second is 760 060 s of orbit.

Kepler’s equation
M = 2π t/T = 0 rad; E − e·sin E = M → E = 0 rad
Radius
r = a (1 − e·cos E) = 4.6001 × 10⁷ km
Vis-viva
v = √(μ (2/r − 1/a)) = 58.977 km/s

the geometry of the orbitthe radius vector r at the observed time

Result

continuous computation
At time t
r4.6001 × 10⁷kmat periapsis
Speed
58.977 km/s
Acceleration
0.062 716 m/s²
Area swept since periapsis
0 km²
Mean anomaly
0 rad
Eccentric anomaly
0 rad
What the ellipse fixes
Period
7.6006 × 10⁶ s
Periapsis
4.6001 × 10⁷ km
Speed at periapsis
58.977 km/s
Apoapsis
6.9817 × 10⁷ km
Speed at apoapsis
38.858 km/s
Specific angular momentum
2.713 × 10⁹ km²/s
Specific orbital energy
−1.1459 × 10⁹ J/kg
Areal velocity
1.3565 × 10⁹ km²/s

One revolution lasts 87.969 days; this duration depends on the semi-major axis alone (third law).

Calculation, assumptions and sources

Provisional · Physical model · 1 source · reviewed on 25 August 2026

OverviewThe central mass, the semi-major axis, the eccentricity and the instant give, through Kepler’s equation, the position on the ellipse, the speed (vis-viva), the acceleration towards the occupied focus, the two apsides and the invariants h and ε.

The central mass, the semi-major axis, the eccentricity and the instant give, through Kepler’s equation, the position on the ellipse, the speed (vis-viva), the acceleration towards the occupied focus, the two apsides and the invariants h and ε. The “law of areas” view cuts the ellipse into twelve sectors of equal duration and equal area.

Method & formulasM = 2π t / T
M = 2π t / TE − e·sin E = M (Kepler’s equation)x = a (cos E − e), y = b sin E, b = a √(1 − e²)v² = μ (2/r − 1/a) (vis-viva), μ = G·Mh = √(μ a (1 − e²)), ε = −μ/(2a)T = 2π √(a³/μ), dA/dt = πab/T

Kepler’s equation has no solution in elementary functions: the solver applies Newton’s method down to a residual below 10⁻¹² (nine iterations at worst at e = 0.95). Speed, apsides, swept area and invariants follow in closed form. G is the CODATA 2018 value, the one used by the gravitation and orbits tool.

Semi-major axis (a)
half the major axis of the ellipse. It alone sets the period (third law) and the energy ε = −μ/(2a).
Eccentricity (e)
the flattening of the orbit: 0 for a circle, close to 1 for a very elongated ellipse. The foci sit at distance a·e from the centre.
Anomalies (M and E)
two angles that locate the body on its orbit. M, the mean angle, grows linearly with time; E locates the true position on the ellipse. Kepler’s equation ties them together.
Periapsis and apoapsis
the two ends of the major axis: r_peri = a(1−e), the closest and fastest point; r_apo = a(1+e), the farthest and slowest. Conservation of h imposes r_peri·v_peri = r_apo·v_apo.
Areal velocity (dA/dt)
the area swept by the radius vector per unit time. It is constant and equals πab/T = h/2 (Kepler’s second law).
AssumptionsTest body: m ≪ M, the central body is point-like and fixed at the occupied focus.
  • Test body: m ≪ M, the central body is point-like and fixed at the occupied focus. The motion of both masses about the barycentre is not handled.
  • Newtonian two-body gravitation: no J2 flattening, no atmospheric drag, no third body, no relativity.
Validity domain1 validity limit; the calculation refuses values outside 1 of them

Mercury’s perihelion advance, 43″ per century (Le Verrier, 1859), explained by general relativity (Einstein, 1915), is outside this model. The conversion 1 au = 149,597,870,700 m is exact by definition (IAU 2012 B2); the uncertainty of the results comes from G and from the inputs.

  • 0 ≤ e ≤ 0.95practical · refusal

    The eccentricity is bounded between 0 (circle) and 0.95, the limit of the display and of the solver tests.

    Instead · For a near-circular orbit, enter e = 0; a near-parabolic or hyperbolic trajectory is outside this model.

The time plot and the law of areasOn the chronicle, r/a runs from 1 − e to 1 + e; its amplitude is the eccentricity.

On the chronicle, r/a runs from 1 − e to 1 + e; its amplitude is the eccentricity. The body spends most of its period far from the focus, where it moves slowly. For an equal duration T/12, the arc covered is long at periapsis and short at apoapsis, for the same area πab/12.

Example: MercuryWith the mean elements of Mercury proposed by the form (Standish table, JPL, valid 1800-2050) and M = GM of the Sun / G, the model gives T = 87.969 days, the observed period of Mercury, v_peri ≈ 59 km/s and v_apo ≈ 39 km/s.

With the mean elements of Mercury proposed by the form (Standish table, JPL, valid 1800-2050) and M = GM of the Sun / G, the model gives T = 87.969 days, the observed period of Mercury, v_peri ≈ 59 km/s and v_apo ≈ 39 km/s.

SourcesIAU
  1. IAU, Resolution B2 on the re-definition of the astronomical unit of length, 2012.

    Location: Resolution B2 (2012): 1 au = 149 597 870 700 m exactly · accessed 2026-08-25

Scientific validationProvisional, reviewed on 25 August 2026

Provisional · Sources and assumptions are provided; the documentary review is incomplete.

Physical model. The result follows the significant figures of the least precise input.

revision 1 · reviewed on 25 August 2026

Revision log

  1. revision 1 · 2026-08-25 · scope change

    Tool creation: exact orbital state at time t on the elliptical branch (Kepler’s equation solved by Newton, residual below 10⁻¹²), apsides, invariants h and ε, acceleration μ/r², law of areas in twelve equal-duration sectors.

    First published result of the tool, with no earlier value to compare against.