The Celestial Math Behind Leap Year

### You can thank the stars for the extra day today.

The number 2016 divided by 4 equals 504, exactly—with no remainder, which makes the year 2016, like the upcoming years 2020, 2024 and 2028 (and beyond), a leap year. We will get an "extra" day, February 29.

This pattern will repeat until 2100, when the cycle breaks. Though 2100 is exactly divisible by 4, there is an exception—for years whose number is exactly divisible by 100. (On top of that, there's another exception, for years exactly divisible by 400. So 2400 will be a leap year. Mark your calendars now.)

Where do these quadrennial liberties with our calendar originate?

In the stars, of course.

Celestial Rhythms

Watching the stars, night after night, month after month, year after year, they become old friends. They stay for a season, and then move on. Or rather, we move on—ever advancing around the sun toward next week's deadlines and new constellations.

I imagine myself late one night, eight months from now, standing outside at midnight. There striding over the eastern skyline is Orion. Back again is my ancient friend, telling me that winter is near, and that I have ridden this miraculous rock almost another full lap around my home star. Rigel, Orion's brightest star, shimmers its blue-white light, the twinkle in the eye (the knee, actually) of a companion who has visited me, annually, every place on Earth I have lived since childhood. Even to the Southern Hemisphere, the steady Orion came for a summer visit—cartwheeling upside down, feet over hands.

It is from these celestial cycles that our concepts of time originate, and, ultimately, from which we gain the leap day.

The "sidereal year" is the length of time it takes for the Earth to return to the same place with respect to the "fix'd" and "constant" stars, so that Orion appears exactly in the same place in the sky, at exactly midnight, 365.2563 days later. Stellar friends like that don't stand you up; they keep their appointments to seven-digit precision (and more).

Our Western calendar is tied to the "tropical year"—the time between one vernal equinox and the next. At that moment, the sun's position in the sky is exactly where the ecliptic (the path the planets take as they move through the constellations) crosses the celestial equator (the projection of the Earth's own equator onto the celestial sphere). Straddling the celestial equator, the sun splits its time exactly between the day side and the night side of the Earth. It returns to that place again in roughly 365.24219 days. Roughly.

Now you can see where those alternating "divisible by 4, 100 and 400" leap year rules originate.

Making Up the Differences

At the end of 365 days, there are still 0.24219 days (just shy of six hours) to go before Earth gets back to the equinox line.

After four years, however, this fractional 0.24219 of a day adds up to 0.96876, which is pretty close to one full day. If we were using only a 365-day calendar, the stars, and more importantly the months, corresponding to the seasons would slip behind. Eventually the summer months would fall during winter and vice versa, throwing aspects of society like agriculture into chaos. This was apparent to the Romans in the first century, as well as to the Olmecs and the Maya on the other side of the world.

Thus Julius Caesar decreed in 46 B.C. that every four years an extra day would be added to February. It was called the Julian calendar. But adding one day every four years, in order to make up for that 0.96876 of a day in orbital spare change, is overcompensating. Caesar's "every four" leap year prescription adds 0.03124 of a day too much. This makes the Julian calendar run fast by just over 600 seconds per year.

Like with the spare coin jar in our house, small change like that takes a while to add up. It wasn't until the age of Pope Gregory XIII, in 1582, that this mismatch was becoming a problem. After consultation, presumably with God, but particularly with his astronomer, Christopher Clavius, the pope adopted Clavius' clever solution.

The Julian calendar runs fast by 0.03124 of a day every four years; multiply both sides by 100, and you'll see an excess of about three days after 400 years. Clavius' solution was to make centuries exceptions—but that would lose too much, four days in 400 years, not three. So Clavius added one back, once every 400 years, starting in 1600.

This Gregorian calendar, which we use today, has the following rules:

• Every year divisible by 4: add February 29
• Every century (1800, 1900, 2000, 2100): do not add February 29
• Every century divisible by 400: add February 29

Still Finer Measurements

Even with this refinement, there is some orbital change left over. But now we are talking about temporal shavings that are quite small. At this level of precision, other wobbles in the relation of the Earth's rotational period (the day) and its revolution period (the year) have to be taken into account.

When a leap second is added, digital clocks tick past 23:59:59 but don't go directly to 00:00:00. Image: Wikimedia

Keeping track of minute effects like this is the job of the International Earth Rotation and Reference Systems Service, which controls the addition (or deletion) of leap seconds. For example, a second was added to Coordinated Universal Time by the service on June 30, 2015, due largely to the slowing of the Earth's rotation by the gravitational pull of the moon.

There are other sources of calendar slip: the 8.9 magnitude earthquake that triggered the Japanese tsunami on March 11, 2011, for example, shifted the planet's mass distribution enough to decrease the length of a day by 1.8 microseconds. This will add up to about a second after 1,500 years.

Using That 'Extra' Time

Personally, I think we should make February 29, leap day, a global holiday. It should be considered a gift to ourselves, like taking that accumulated spare change to the grocery store coin-counting machine, and trading it for some easier-to-spend bills. It should be a day of celebration, a reward for saving that quarter of a day over the last four years, to be spent on something frivolous. Or it could be a special day to realign our sense of hourly routines, weekly trash pickups, the race to fulfill monthly quotas, to the celestial schedule.

Without that extra day every fourth year, our ancient friends would begin to miss their annual appointments, and start to fall behind in wishing us prompt birthday greetings. Without February 29, roughly, every four years, the "constant stars" would cease to be constant.

James Hetrick is professor of physics and analytics at the University of the Pacific. This article originally appeared on The Conversation.