Simutory Solar System — notes on the calculations
How the Simutory Solar System simulation computes where the bodies are and which way they face, and how accurate it is. It is an approximate model for introductory learning; do not use it for research, observation planning or navigation.
1. Planet positions (NASA JPL approximate formulas)
Source: E. M. Standish & J. G. Williams (1992), NASA JPL “Approximate Positions of the Planets”. J2000 ecliptic coordinates.
- From the Julian date (JD), the number of centuries since J2000 is T = (JD − 2451545.0) ÷ 36525.
- Each planet has six orbital elements: semi-major axis a, eccentricity e, inclination I, mean longitude L, longitude of perihelion ϖ and longitude of the ascending node Ω. Each element = base value + rate × T. Table 1 is used for 1800–2050, Table 2a for 3000 BC–AD 3000.
- Argument of perihelion ω = ϖ − Ω; mean anomaly M = L − ϖ (+ Table 2b’s terms for Jupiter–Neptune, b·T² + c·cos(f·T) + s·sin(f·T)), brought into −180°…180°.
- Kepler’s equation E − e·sin E = M is solved by Newton’s method (error below 10⁻¹⁰ radians).
- The orbital-plane position x′ = a(cos E − e), y′ = a√(1 − e²)·sin E is turned by ω, I and Ω into ecliptic coordinates.
Earth’s centre comes from the table’s Earth–Moon barycentre: barycentre − Moon (from Earth) × 0.0121506 (the Moon’s share of the mass). The two are about 4,700 km apart.
2. Accuracy
Largest errors against JPL Horizons (DE441) precise positions (longitude / distance).
| Planet | 1800–2050 | 3000 BC–AD 3000 |
|---|---|---|
| Mercury | 10″ / 0.4 thousand km | 30″ / 1 thousand km |
| Venus | 15″ / 4 thousand km | 31″ / 6 thousand km |
| Earth–Moon barycentre | 5″ / 4 thousand km | 47″ / 14 thousand km |
| Mars | 59″ / 33 thousand km | 152″ / 51 thousand km |
| Jupiter | 371″ / 1,396 thousand km | 510″ / 1,074 thousand km |
| Saturn | 588″ / 905 thousand km | 952″ / 3,031 thousand km |
| Uranus | 114″ / 773 thousand km | 923″ / 7,622 thousand km |
| Neptune | 7″ / 242 thousand km | 336″ / 4,608 thousand km |
- 600″ (10 arcminutes) is about a third of the Full Moon’s width.
- Jupiter–Neptune are compared with positions relative to the Solar System’s barycentre. The view draws everything around the Sun, so the outer planets can be off by up to about 0.01 AU.
- Known facts checked: Earth’s perihelion (early January) and aphelion (early July), and the oppositions of Mars (2003-08-28, 2018-07-27, 2020-10-13) and Jupiter (2023-11-03), all within a day.
3. The Moon
The lunar theory of Meeus, Astronomical Algorithms, chapter 47 (the truncated ELP-2000/82 of Chapront-Touzé and Chapront: 60 terms in longitude and distance, 60 in latitude, plus corrections), carried from the mean ecliptic of date to the J2000 ecliptic by rigorous ecliptic precession (Meeus ch. 21). Against JPL Horizons at 11 dates in 1900–2050 the direction is at most 6.2 arcseconds off and the distance at most 8.8 km. The short theory used before (3.1 arcminutes, 532 km) could misjudge the type of a borderline eclipse. The coefficients were checked against the tables of astronomia (MIT licence, Sonia Keys and commenthol). The Moon’s orbit line is the mean-element ellipse; the Moon stays within 15,000 km of it.
4. Axes and rotation (IAU)
Source: International Astronomical Union rotational elements, NASA NAIF pck00011. For each body: the right ascension α and declination δ of its pole (with change per century) and the prime-meridian angle W = W₀ + Ẇ·d (d days since J2000). Equatorial coordinates are turned into J2000 ecliptic coordinates (obliquity 23.43928°) to give the directions of the north pole and of longitude 0°.
- Earth, the Moon and Mars use the IAU 2009 values. The Moon includes thirteen periodic terms that follow the 18.6-year turn of its orbit.
- Checks: the angle between each axis and its orbit matches the NASA axial tilts (Earth 23.4°, Mars 25.2°, Uranus 97.8°, Venus 177.4° and others) within 0.5°. At noon UTC on 20 March 2026 the Sun is overhead at about 1.9° east, and on 21 June at about 23.4° north — as in reality.
5. Size views
| View | Planet and Moon radius | Sun radius | Moon distance | Planet–Sun distance |
|---|---|---|---|---|
| Layout | 0.03 AU × √(radius ÷ Earth’s) | same rule | ×28 | shrunk to √(distance) AU |
| Layout — Motion through the Galaxy, Kepler’s 1st and 2nd laws | ×1,000 | ×20 | ×40 | unchanged |
| Compare sizes | ×450 | ×50 | ×20 | unchanged |
| True scale | ×1 | ×1 | ×1 | unchanged |
To fit every planet on one screen, the layout view shrinks the distance from the Sun r (AU) to √r AU (Earth 1 → 1, Neptune 30.07 → 5.48). Sizes follow the square root of the diameter, so neighbouring planet systems (moons and rings included) never overlap. With ‘Motion through the Galaxy’ and for Kepler’s 1st and 2nd laws — where the Galaxy’s trails and Kepler’s areas need real distances — it uses real distances and the factors in the next row.
6. Time and calendar
- Dates are counted in UTC on the Gregorian calendar (also before 1582).
- The difference between the formulas’ dynamical time and universal time (ΔT) follows Espenak & Meeus (2006, the polynomials of NASA’s eclipse canons), with observed values (IERS) for 2000–2025. Positions, events, phenomena and the other bodies’ rotations are computed in dynamical time. Earth’s spin alone follows universal time: its axis precesses and it turns by Greenwich mean sidereal time (Meeus), so the Sun crosses Greenwich’s meridian when the US Naval Observatory says (nine dates of 2026, mean within 0.12°) and day and night fall in the right places on old dates too. ΔT is about 69 seconds today, about 3 hours around AD 1 and about 20 hours around 3000 BC, and the further back, the more uncertain the estimate itself (hours).
7. Other moons and dwarf planets
- Fifteen moons (Phobos, Deimos; Io, Europa, Ganymede, Callisto; Enceladus, Rhea, Titan, Iapetus; Miranda, Titania, Oberon; Triton; Charon): starting from NASA JPL’s mean satellite elements, the mean longitude, mean motion and plane precession were refitted to 7,300 JPL Horizons positions over 1900–2100, because JPL’s table alone drifts by up to 175° in 50 years for Jupiter’s moons. After the fit the errors are 2.1° for Phobos, 1.8° for Miranda and below 0.5° for the rest. Outside 1900–2100 the same formulas are extended and can be far off.
- Tidal locking: every moon except ours turns once per orbit with longitude 0° facing its planet.
- Pluto: the Pluto row of JPL’s older “Approximate Positions” table (1800–2050; within 10″ relative to the solar-system barycenter). Ceres: mean elements fitted to Horizons elements over 1800–2200 (within 0.6°).
- Five more moons: Mimas, Tethys, Dione (Saturn), Ariel and Umbriel (Uranus) are fitted the same way. Mimas and Tethys are in a 4:2 orbital resonance that rocks their place on their orbits back and forth over about 71 years (±43° for Mimas, ±2° for Tethys), so their mean longitude carries a sine term. Errors: Tethys 0.09°, Dione, Ariel and Umbriel below 0.7°, Mimas 3.3° (its 0.02 eccentricity is not captured). The Tethys and Dione maps are USGS (Cassini) mosaics.
- Haumea, Makemake, Eris: mean elements fitted to Horizons barycentric elements over 1800–2200 (within 0.03°). Their spin axes are unknown, so the pole is that of their orbit (cards say ‘unknown’), and Haumea, an elongated body (about 2,322 × 1,704 × 1,026 km), is drawn as a sphere of its mean radius.
- Moon distances in “Layout” and “Compare sizes”: our Moon ×28 (layout, square-root distances), ×40 (layout, real distances) or ×20 (sizes); other moons at c + 0.15 + 0.4·ln(a/a₀) planet radii (a₀ the planet’s innermost moon here; c the room outside the rings: Mars 1.2, Jupiter 1.85, Saturn 2.35, Uranus 2.05, Neptune 2.6, Pluto 1.8). The order is kept; only the spacing shrinks.
8. The Sun’s surface
Sunspots change every day, so there is no fixed map of the Sun; the simulation draws an illustration: granulation, sunspots and faculae in the active belts (8–32° latitude), a flare patch and two prominence arches, with limb darkening I(μ) = 1 − 0.6(1 − μ) computed in the shader (μ is the cosine of the angle between the line of sight and the surface normal). It turns at the IAU rate (W = 84.176° + 14.1844°/day, about 25.4 days); faster turning at the equator is left out.
9. Asteroid belt, Kuiper belt, Oort cloud
Seeded clouds of points: 5,000 in the asteroid belt (2.1–3.3 AU, Kirkwood gaps at 2.50, 2.82, 2.95 and 3.27 AU left empty), 4,000 in the Kuiper belt (30–55 AU, the classical belt at 42–47.5 AU and the plutinos at 39.4 AU) and 6,000 in the Oort cloud (2,000–100,000 AU). Asteroid- and Kuiper-belt points move by Kepler’s equation (mean motion n = 0.9856°/day ÷ a^1.5); the Oort cloud stands still. The dots show how such bodies are spread, not real objects. The Oort cloud has never been observed directly; it is inferred from the orbits of long-period comets.
10. Frames, events and Kepler’s laws
- Frames: (Since 2026-10-20 the screen offers the Sun-centred frame and ‘Motion through the Galaxy’; the Earth-centred computation is kept for another simulation.) positions never change; only the path drawn behind each body (its trail) does. An Earth-centred trail is P(t) − E(t) (E being the Earth–Moon barycentre) drawn round Earth now; a galactic trail is P(t) − V·(now − t) drawn round the Sun now. V is 230 km/s (48.52 AU a year) toward galactic longitude 90°, latitude 0°: the second row of the Hipparcos equatorial-to-galactic rotation, (0.4941094279, −0.4448296300, 0.7469822445), turned by the obliquity 23.43928° (ecliptic latitude about 59.6°). The galactic plane is tilted 60.2° to the ecliptic. The Sun’s motion among nearby stars (about 20 km/s) is left out. Trails are sampled every fortieth of the body’s period (and, Earth-centred, of the year); the older part of a trail longer than 10 years is cut to at most 600 points.
- Apparent path and retrograde motion: a body goes retrograde while its longitude seen from Earth, λ = atan2(y, x) of its Earth-centred position, decreases. The sky sphere’s radius is 1.5 × (the body’s aphelion distance + Earth’s), so the body is always inside it.
- Events: a day-by-day scan finds where a quantity changes sign and 17 bisections (about a second) pin it down. Opposition and conjunction: the planet’s longitude seen from Earth minus the Sun’s is 180° or 0°. Inferior and superior conjunction: at the same longitude, the planet nearer or farther than the Sun. Retrograde start and end: stations, where the rate of change of longitude (a difference over ±0.5 day) is zero. Perihelion and aphelion: extremes of the Earth–Sun distance. Light time and aberration are ignored, so the hour may be off by a few hours and only the date is shown. The oppositions of Mars (2003, 2018, 2020), of Jupiter and Saturn (2023) and the inferior conjunctions of Venus (2023, 2025) agree with the almanac within a day; the starts and ends of Mars’s retrograde loops (2020, 2022, 2024) and Earth’s 2026 perihelion and aphelion within two days.
- Kepler’s laws: from the orbital elements comes the unit vector P toward perihelion; the empty focus is −2ae·P, the centre −ae·P, perihelion a(1 − e)·P and aphelion −a(1 + e)·P. The 2nd law’s wedges cut the mean anomaly into twelve and place each point by Kepler’s equation (areas within 0.5 %); speeds use the vis-viva equation v² = GM☉(2/r − 1/a), GM☉ = 1.32712440018 × 10¹¹ km³/s². The 3rd law’s periods come from how fast the mean longitude grows, so T²/a³ ≈ 1 (within 1 % for the eight planets, Ceres and Pluto) is a result of the data.
11. Phenomena: seasons, Moon phases, eclipses
- Seasons: the Sun’s apparent longitude = its geometric longitude from Earth’s centre + precession (J2000 → date) + nutation (four main terms) − aberration (20.49″ ÷ distance in AU). The moments it reaches 0°, 90°, 180° and 270° are the March equinox, June solstice, September equinox and December solstice. The 16 of 2024–2027 agree with the US Naval Observatory (USNO) within 15 minutes.
- Moon phases: elongation = the Moon’s longitude − the Sun’s apparent longitude; 0°, 90°, 180°, 270° = new moon, first quarter, full moon, last quarter; lit fraction = (1 + cos phase angle) ÷ 2 (the phase angle is the angle at the Moon between the Sun and Earth). All 50 principal phases of 2026 agree with USNO within 10 minutes.
- Eclipses: within 6 hours of each new and full moon, the moment the shadow’s axis (Sun → Moon, Sun → Earth) passes closest to Earth’s centre (the Moon’s centre) is found by golden-section search. Radii: Earth 6,378.14 km (a sphere), Moon 1,737.4 km, Sun 696,000 km; Earth’s shadow uses Danjon’s rule (Earth’s radius enlarged by 1/85).
- Solar: when the axis’s distance from Earth’s centre γ (in Earth radii) is below 1 the eclipse is central — total if the Moon covers the whole Sun where the axis meets the surface, annular if not, hybrid if total there but annular at the ends of the path (at the fundamental plane’s distance). Above 1 it is partial if the penumbra still touches Earth. Magnitude: for central eclipses the ratio of the Moon’s and the Sun’s apparent diameters; for partial ones (penumbra radius − distance to Earth’s surface) ÷ (penumbra radius − umbra radius).
- Lunar: umbral magnitude = (umbra radius + Moon radius − the Moon’s distance from the axis) ÷ the Moon’s diameter; total from 1, partial between 0 and 1, penumbral if only the penumbra reaches it.
- All 22 solar and 22 lunar eclipses of 2021–2030 in NASA’s tables (Espenak) are found with the same types (the 2023-04-20 hybrid included), times within about a minute and magnitudes within 0.007.
- Shadows on screen: each point of Earth’s and the Moon’s surface loses the share of sunlight equal to the part of the Sun’s disc the Moon (Earth) covers there (two overlapping discs). Computed from the true geometry, the shadow falls where it really does whatever the size view. The Moon in Earth’s umbra is drawn dim copper (sunlight reddened through Earth’s air), and the shadow’s edges (where the penumbra begins, the umbra’s border) as orange lines.
- Seasons compared: the Earth at that year’s June and December solstices, on its real direction, drawn 0.22 times the orbit’s radius for clarity.
- Where on Earth a solar eclipse can be seen, and its local times, are not computed.
12. Sources
- NASA JPL Solar System Dynamics, “Approximate Positions of the Planets”
- NASA JPL Horizons (DE441) — reference positions
- NASA Planetary Fact Sheet (updated March 2025) — diameters, masses, periods, axial tilts, moon counts
- NASA NAIF pck00011 — IAU rotational elements
- Jean Meeus, Astronomical Algorithms (2nd ed., 1998) — lunar theory (ch. 47, truncated Chapront ELP-2000/82), ecliptic precession (ch. 21), nutation (ch. 22); coefficients checked against astronomia (MIT, Sonia Keys and commenthol)
- F. Espenak & J. Meeus (2006), NASA “Polynomial Expressions for Delta T”; IERS observed values — ΔT
- US Naval Observatory astronomical data API — seasons and Moon phases for comparison
- NASA eclipse website (F. Espenak, eclipse.gsfc.nasa.gov) — the eclipses of 2021–2030 for comparison
- Planet maps: NASA Visible Earth (Blue Marble, Earth), NASA SVS CGI Moon Kit (LRO, Moon), NASA/JHUAPL/Carnegie (MESSENGER, Mercury), USGS Astrogeology (Viking, Mars), NASA/JPL/SSI (Cassini, Jupiter)
- Moon orbits: NASA JPL mean satellite elements, JPL Horizons (refitted to positions over 1900–2100). Moon sizes and masses: NASA NAIF pck00011, JPL satellite physical parameters
- Moon and dwarf-planet maps: USGS Astrogeology public mosaics (Io, Europa, Ganymede, Callisto: Galileo/Voyager; Phobos: Viking, DLR; Ceres: Dawn, DLR; Pluto and Charon: New Horizons)
Try it in the simulation →All concept cardsDownload the Markdown original