Animate Mars's Moons
Interactive orbital animation of Phobos and Deimos around Mars using real Keplerian mechanics. Adjust speed, zoom, trails, and explore.
About
Mars has two small, irregularly shaped moons: Phobos (mean radius 11.267 km) and Deimos (mean radius 6.2 km). Phobos orbits at a semi-major axis of 9,376 km with a period of 7.66 hours. It orbits faster than Mars rotates, meaning it rises in the west and sets in the east. Deimos sits at 23,463 km with a period of 30.31 hours. Both orbits have low eccentricity (e ≈ 0.0151 for Phobos, 0.00033 for Deimos) and low inclination relative to Mars's equator. This tool solves Kepler's equation at each frame to compute true anomaly and radial distance, then projects the orbital ellipse onto a 2D canvas. It does not interpolate or fake positions. Phobos is tidally decelerating and will impact Mars or break apart in roughly 50 million years. Deimos is slowly spiraling outward.
Formulas
Moon positions are computed by solving Kepler's equation at each animation frame. Given mean anomaly M advancing linearly with time, the eccentric anomaly E is found iteratively:
Newton-Raphson iteration: En+1 = En โ En โ e โ sin(En) โ M1 โ e โ cos(En)
True anomaly ฮฝ is then:
Radial distance from Mars center:
Where M = mean anomaly (radians), E = eccentric anomaly, e = orbital eccentricity, ฮฝ = true anomaly, a = semi-major axis, r = radial distance. Mean anomaly advances as M(t) = 2ฯT โ t, where T is the orbital period.
Reference Data
| Property | Phobos | Deimos | Unit |
|---|---|---|---|
| Semi-major axis (a) | 9,376 | 23,463 | km |
| Orbital period (T) | 7.6562 | 30.312 | hours |
| Eccentricity (e) | 0.0151 | 0.00033 | - |
| Inclination (i) | 1.093 | 0.93 | ยฐ |
| Mean radius | 11.267 | 6.2 | km |
| Mass | 1.0659 ร 1016 | 1.4762 ร 1015 | kg |
| Surface gravity | 0.0057 | 0.003 | m/s2 |
| Escape velocity | 11.39 | 5.556 | m/s |
| Geometric albedo | 0.071 | 0.068 | - |
| Dimensions (tri-axial) | 26.8 ร 22.4 ร 18.4 | 15 ร 12.2 ร 10.4 | km |
| Orbital velocity (mean) | 2.138 | 1.3513 | km/s |
| Discovery year | 1877 | 1877 | - |
| Discoverer | Asaph Hall | Asaph Hall | - |
| Synchronous orbit? | Below (spiraling in) | Above (spiraling out) | - |
| Mars equatorial radius | 3,396.2 | km | |
| Mars rotation period | 24.6229 | hours | |