Climate Change: Simple, Serious, Solvable
Milankovitch Cycles: Earth's Orbit and Sunlight
Earth's orbit changes slowly as the other planets tug on it. The changes move Sunlight between seasons and latitudes, and they set the rhythm of the ice ages. Use the three views to see how.
Loading the orbital data…
Earth's orbit through time
Move over the graph, or select it and use the arrow keys, to read values.
The bottom graph is the daily-average Sunlight at the top of the atmosphere at 65 °N in mid-July, the measure used in Figures 5.13 and 5.15 of the book. Northern ice sheets grow when these summers are weak, because winter snow survives the summer.
Sunlight by latitude and season at two times
Move over a map to read values.
Change the orbit yourself
Move over a map to read values.
About this model
Gravity from the other planets and the Moon slowly changes three things about Earth's orbit. The eccentricity is how stretched the orbit is; it rises and falls about every 100,000 and 400,000 years. The tilt of Earth's axis (its obliquity) swings between about 22° and 24.5° every 41,000 years. And the axis wobbles like a top, so the season when Earth is closest to the Sun drifts through the year about every 23,000 years (precession). The Serbian mathematician Milutin Milankovitch proposed in the early 1900s that these cycles pace the ice ages.
The cycles barely change the total Sunlight Earth receives in a year. They move Sunlight between seasons and between latitudes.
How to use this page
The first three tabs are three views of the same orbit.
- Through time graphs the eccentricity, the tilt, the precession index and mid-July Sunlight at 65 °N. Set the start and the length, or pick one of the quick choices. Move over the graph to read the values, or select the graph and step through time with the left and right arrow keys. The "Download these data (CSV)" button saves the numbers in a file that opens in any spreadsheet.
- Compare two times maps Sunlight by latitude and season at the first time, and the change from the first time to the second. The times can be up to a million years from today, either way. Move over a map to read the values.
- Change the orbit lets you set the eccentricity, the tilt and the longitude of perihelion yourself. The maps show Sunlight with today's orbit, and the change your orbit makes. The small drawing shows your orbit from above the North Pole.
Under every graph and map, a few lines say in words what it shows. The address in your browser changes as you move the controls, so you can bookmark a view or send it to someone. Everything is calculated in your browser, from a table of Earth's orbit every 1,000 years.
This page is part of the website for Climate Change: Simple, Serious, Solvable, an open textbook by Scott Denning. It goes with Chapter 5, "Past Climate Change".
The equations
You don't need any of this to use the page. But the model is small, and you can follow all of it with a calculator. It's six short steps of trigonometry.
Every graph and map on this page answers one question, many times over. On a given day, at a given latitude, how much Sunlight reaches the top of the atmosphere, averaged over the 24 hours?
You choose two things:
- φ (phi) is the latitude. North is positive and south is negative.
- λ (lambda) is the season, as an angle: how far around the Sun Earth has gone since the March equinox. It's 0° at the March equinox, 90° at the June solstice, 180° at the September equinox and 270° at the December solstice.
Four numbers describe the orbit and the Sun:
| Letter | What it is | Today |
|---|---|---|
| e | Eccentricity: how stretched the orbit is. A circle has 0. | 0.0167 |
| ε (epsilon) | Tilt of Earth's axis. | 23.44° |
| ϖ (a form of pi) | Longitude of perihelion. Perihelion is the point on the orbit where Earth comes closest to the Sun. This angle says where that point is, counted from Earth's place at the September equinox, the way Earth moves. At 90°, Earth is closest at the December solstice. At 270°, it's closest at the June solstice. Today it's closest in early January. | 102.9° |
| S | The Sun's brightness at Earth's average distance (the solar constant). | 1,361 W/m² |
1. How far away is the Sun?
Take the season angle, add half a turn and subtract the longitude of perihelion. The answer, θ (theta), is how far Earth has gone past its closest point to the Sun, as an angle seen from the Sun. The 180° is there because λ and ϖ are counted from starting points half a turn apart.
Here a is Earth's average distance from the Sun, halfway between its closest and its farthest, and r is its distance on the day you chose. When θ is zero, Earth is at its closest. Half an orbit later it's at its farthest. Sunlight spreads out as it travels, so its strength goes as (a/r)².
Today Earth is 1.7% closer than average in early January and 1.7% farther in early July. That makes Sunlight about 7% stronger in early January than in early July, for the planet as a whole.
2. Where is the Sun overhead?
δ (delta) is the latitude where the Sun is straight overhead at noon. Astronomers call it the Sun's declination. It's zero at the equinoxes. At the June solstice it equals the tilt, so the Sun is overhead at 23.44 °N, the Tropic of Cancer. At the December solstice the Sun is overhead at 23.44 °S.
3. How high is the Sun?
Z is the Sun's angle from straight overhead, and h is the angle Earth has turned since noon. Slanting Sunlight is spread over a bigger patch of level ground, so each square meter gets the beam's strength times cos Z. At noon h is zero, and Z is just the difference between your latitude and δ.
4. How long is the day?
The Sun sets when Z reaches 90°, where cos Z is zero. Put zero into the last equation and you get:
h0 is the angle Earth turns between noon and sunset. Earth turns 15° an hour, so divide h0 by 15 to get the hours from noon to sunset. Daylight lasts twice that.
Near the poles the right side can fall outside the range from −1 to 1. Below −1, the Sun never sets and h0 is 180°. Above 1, the Sun never rises and h0 is zero. At the equator tan φ is zero, so h0 is 90° and every day lasts 12 hours.
5. Add up the day
C is the average of cos Z over the whole 24 hours, counting zero while the Sun is down. Here h0 is in radians: degrees × π ÷ 180. This is the one step that takes calculus. It adds up cos Z from sunrise to sunset.
6. Put it together
Q is the daily-average Sunlight on a level surface at the top of the atmosphere, in watts per square meter. It's what the maps show. Three things multiply: how bright the Sun is, how close it is, and how long and how high it stands in the sky.
Averaged over the whole globe, C is exactly one quarter on any day of the year. That's the factor of four in Chapter 3 of the book that turns 1,361 W/m² into 340.
A worked example
Take 65 °N in mid-July with today's orbit, so φ = 65° and λ = 120°. The six lines follow the six steps.
- θ = 120° + 180° − 102.9° = 197.1°. Then a/r = (1 + 0.0167 × cos 197.1°) ÷ (1 − 0.0167²) = 0.9843, and (a/r)² = 0.969. Earth is near its farthest, and Sunlight is about 3% weaker than at the average distance.
- sin δ = sin 23.44° × sin 120° = 0.3445, so δ = 20.15°. The Sun is overhead at about 20 °N.
- At noon the Sun is 65° − 20.15° = 44.85° from overhead, about halfway up the sky.
- cos h0 = −tan 65° × tan 20.15° = −0.787, so h0 = 141.9°. Daylight lasts 2 × 141.9 ÷ 15 = 18.9 hours.
- In radians, h0 = 141.9 × π ÷ 180 = 2.477. Then C = (2.477 × sin 65° × sin 20.15° + cos 65° × cos 20.15° × sin 141.9°) ÷ π = (0.773 + 0.245) ÷ π = 0.324.
- Q = 1,361 × 0.969 × 0.324 = 427 W/m². That's the number Through time gives for today.
A few details
- Mid-July here means λ = 120°, a third of the way around the orbit from the March equinox. That's about July 22 on today's calendar. It's the marker Berger and Loutre (1991) used for their July values.
- The precession index graphed on Through time is e sin ϖ. It's above zero when Earth is far from the Sun in northern summer, as it is today (+0.016). It's lowest when Earth is closest to the Sun at the June solstice, which last happened about 11,500 years ago.
- The orbit table has one row every 1,000 years, so times are rounded to the nearest thousand years. The maps are computed every 2° of latitude and every 2° of λ.
- Seasons are measured by Earth's position in its orbit, so the solstices and equinoxes stay at fixed places on the maps.
- The maps show the top of the atmosphere. They leave out clouds, air and ice.
See the equations at work
Open Change the orbit and try these three. Press "Back to today's orbit" before each one. The lines under the maps give the numbers.
- Set the eccentricity to 0. The orbit is now a circle, so a/r is always 1. Move the perihelion slider and the maps don't change, because a circle has no closest point. At their summer solstices, 65 °N and 65 °S both get 494 W/m². Today they get 478 and 510.
- Raise the tilt from 23.44° to 24.6°, the top of the slider. At their summer solstices, 65 °N and 65 °S both gain about 20 W/m², and both lose in winter. At the equinoxes nothing changes anywhere, because sin λ is zero there and the tilt drops out of step 2. Tilt works the same way in both hemispheres at once.
- Move the longitude of perihelion from 102.9° to 270°. Earth is now closest to the Sun at the June solstice instead of in early January. 65 °N gains about 33 W/m² at the June solstice, and 65 °S loses as much at the December solstice. Precession gives to one hemisphere's summer what it takes from the other's.
Ten thousand years ago the real orbit had both: more tilt (24.23°) and Earth closest to the Sun in July. Pick "Today and 10,000 years ago" on Compare two times to see the two add up. At 65 °N on the June solstice, Sunlight was 48 W/m² stronger than it is today.
Where the orbit comes from
The orbit is the solution of Laskar and colleagues, who computed the motion of the Solar System for millions of years into the past and future. This page uses their values every 1,000 years, from 20 million years ago to 20 million years from now. Beyond a few tens of millions of years the orbit can't be computed reliably.
The timing of tilt and precession is less certain than the shape of the orbit, because it also depends on how fast the tides have slowed Earth's spin. For the last few million years that hardly matters. Ten million years from today, the date of a given cycle may be off by a few thousand years. Twenty million years from today, it may be off by as much as half a cycle. The rhythm and the size of the cycles are still right.
Laskar, J., Robutel, P., Joutel, F., Gastineau, M., Correia, A. C. M., and Levrard, B. (2004). A long-term numerical solution for the insolation quantities of the Earth. Astronomy & Astrophysics 428, 261–285. doi:10.1051/0004-6361:20041335
How it was checked
Mid-July Sunlight at 65 °N from this page matches the series of Berger and Loutre (1991), the one in the book's Figures 5.13 and 5.15, to within about 3 W/m² over the last 400,000 years. The small gap comes from the inputs, not the equations: the two use slightly different orbits, and Berger and Loutre set the Sun's brightness at 1,360 W/m². Given their orbit and their Sun, the equations above return their Sunlight to within 0.02 W/m².
The calendar is a second check. Earth moves fastest when it's closest to the Sun, so the seasons aren't equally long. Counting from the March equinox, this page's orbit makes them 92.76, 93.65, 89.84 and 88.99 days long. The US Naval Observatory's dates for 2026 and 2027 make them 92.73, 93.65, 89.86 and 88.98 days.
Berger, A., and Loutre, M. F. (1991). Insolation values for the climate of the last 10 million years. Quaternary Science Reviews 10(4), 297–317. doi:10.1016/0277-3791(91)90033-Q
The code
The model is small enough to read. Two files do all the work, and they use no outside software.
model.js is the science: the equations above, in a short file you can read from top to bottom.
app.js is the page: the graphs, the maps and the controls.
To keep a copy, save model.js or app.js.
All of the model's code is on GitHub, at github.com/airscottdenning/climate-models. You're free to use it, change it and teach with it.
Credits
By Scott Denning, for Climate Change: Simple, Serious, Solvable.