The observed sky

A year that is not a whole number of days

The tropical year is 365.24219 days, so every calendar is a fraction chosen to approximate 0.24219. The continued fraction says which fractions are best, and the one in use is not among them.

Assumes Timescales and Seasons.

A calendar has one job, and it is arithmetical rather than astronomical: to keep a whole number of days in step with a quantity that is not a whole number of days. The tropical year — the interval between successive March equinoxes, which is what the seasons run on — is 365.24219 days. The fractional part is the entire problem, and every calendar ever kept is a proposal about how to approximate it with a rule a person can apply.

Which raises a question with a clean answer. Given that the target is 0.24219, what are the best fractions? And is the one in use one of them?

Five rules, and how fast each one leaves the seasons behind. The accumulated difference between a calendar and the seasons, for five leap-year rules, over 4000 years. Each is a straight line whose slope is the rule's fraction minus the tropical year's 0.2421897, and nothing else about a calendar matters to this plot — not which months are long, not where the year starts, not what anything is called. The Julian quarter is out by 11.25 minutes a year, which is one day every 128 years and is why ten days had to be removed in 1582. The Gregorian rule takes 3223 years to lose a day and the Persian 4264, in the other direction — the older rule is the better one, at a denominator of 33 against 400. The 128-year rule is level on this scale: 454545 years to a day, which is longer than any calendar has been kept — and it is not a separate invention but the Julian rule with its own error subtracted, since 1/4 − 1/128 = 31/128 exactly and the Julian drift is exactly one day per 128 years. What the figure cannot show is that the tropical year is itself shortening, by about half a second a century, so the slopes drawn here are the ones at the present epoch and every line is very slightly curved.
Fig. 1 Five leap-year rules, and how fast each leaves the seasons behind over four thousand years. Each is a straight line whose slope is the rule’s fraction minus 0.2421897, and nothing else about a calendar matters to this plot — not which months are long, not where the year starts, not what anything is called. The Julian quarter is out by 11.25 minutes a year, one day every 128 years, which is why ten days had to be removed in 1582. The Gregorian rule takes 3,222 years to lose a day and the Persian 4,264, in the other direction: the older rule is the better one, at a denominator of 33 against 400.

The fraction, and what a good one means

Approximating a real number by a fraction has a complete theory, and it is one of the few places where “best” is not a matter of taste.

The continued-fraction expansion of 0.24218970.2421897 begins [0;4,7,1,3,24,][0; 4, 7, 1, 3, 24, \ldots], and truncating it at each step gives the convergents:

14,729,833,31128,8453489.\frac14,\quad \frac{7}{29},\quad \frac{8}{33},\quad \frac{31}{128},\quad \frac{845}{3489}.

The theorem that makes these interesting is that each convergent is a best approximation in the strong sense: no fraction with a denominator less than or equal to its own is closer to the target. That is not an asymptotic statement or a generic one — it is a guarantee about every competing fraction.

The best fractions, and the one that was adopted instead. The error of a leap-year rule against the denominator it needs, on logarithmic axes. The marked points are the continued-fraction convergents of 0.2421897 — 1/4, 7/29, 8/33, 31/128 — and each is a best approximation in the strict sense: no fraction with a denominator that small is closer, which is checked here by enumerating every one of them rather than by appeal to the theorem. The Gregorian 97/400 is drawn apart from the staircase because it is not on it. It is beaten by 8/33, which is 1.32 times closer at 12.1 times the denominator, and which the Persian calendar had been using for five hundred years when the Gregorian reform was made. The reason for choosing it anyway is in the shape of the rule and not in this plot: 400 is four centuries, and "drop the leap day in three century years out of four" is a rule a clerk can apply from the digits of the year, while "eight leap years in thirty-three" requires knowing where in a 33-year cycle the year falls.
Fig. 2 The error of a leap-year rule against the denominator it needs, on logarithmic axes. The marked points are the convergents, and the check that each is a best approximation is done here by enumerating every fraction with a smaller denominator rather than by appeal to the theorem. The Gregorian 97/400 is drawn apart from the staircase because it is not on it: it is beaten by 8/33, which is 1.32 times closer at a twelfth of the denominator. There is no arithmetical defence of the Gregorian rule, and its actual defence is in the shape of the rule rather than in this plot.

Each convergent is a recognisable calendar.

  • 14\tfrac14 is Julian: one leap year in four. Adopted 45 BC.
  • 729\tfrac{7}{29} is nobody’s, and it errs the other way.
  • 833\tfrac{8}{33} is the Persian calendar, in use since 1079 and still the civil calendar of Iran and Afghanistan.
  • 31128\tfrac{31}{128} is a rule proposed in the nineteenth century and never adopted anywhere: drop one Julian leap day every 128 years. Its error is one day in 455,000 years.

That last one is not a separate invention. The Julian error is exactly one day per 128 years, and 141128=31128\tfrac14 - \tfrac1{128} = \tfrac{31}{128}: the 128-year rule is the Julian rule with its own drift subtracted, which is why it is so much better and why it is so tempting.

Why 97/400 anyway

The Gregorian rule is: every fourth year is a leap year, except century years, except that century years divisible by 400 are leap years after all. That is 97 leap days in 400 years.

It is not a convergent and it was not chosen to be. It was chosen because a clerk in 1582 could apply it from the digits of the year, with no table and no memory of where in a cycle the current year falls. “Divisible by 4” is a glance at the last two digits; “divisible by 100” and “by 400” are glances at the trailing zeros. The Persian rule requires knowing the year’s position in a 33-year cycle, which requires either a table or a reference epoch, and in an institution running on parish registers that is a different order of difficulty.

The commission also had a second constraint that the arithmetic alone does not show: the reform had to restore the equinox to 21 March, which is where it had been at the Council of Nicaea in AD 325 rather than where it had been at the calendar’s adoption. Ten days were dropped in October 1582 for that reason, and the choice of which historical date to restore is not a question the continued fraction has an opinion about.

The other calendar problem, and it is worse

Everything above concerns the year. A lunisolar calendar has to match two incommensurable periods at once — the synodic month of 29.530589 days and the tropical year — and there is no exact solution to that either.

The nearest miss is the Metonic cycle: 235 synodic months is 6,939.688 days and 19 tropical years is 6,939.602. The two agree to two hours in nineteen years, which is one of the sharper coincidences in the solar system, and it is the basis of the Hebrew calendar, of the computation of Easter, and of the Greek and Babylonian calendars before them — every one of them a scheme for inserting a thirteenth month in seven years out of nineteen.

Two hours in nineteen years is one day in about 219 years, so the Metonic cycle drifts — and the ecclesiastical rules that compute Easter from it inherit the drift, which is why the ecclesiastical full moon is now up to two days away from the astronomical one.

The calendar that gave up on the year

There is one widely used calendar that declines the problem altogether, and it is worth looking at because it shows what the problem costs.

The Islamic calendar counts twelve lunar months and stops. Twelve synodic months is 354.367 days, so its year is about 10.88 days short of the tropical year and its months move steadily backwards through the seasons, completing a circuit in roughly 33 years. Ramadan falls in every season in the course of a lifetime.

That is not a failure of the calendar; it is a decision about which period is authoritative. A calendar that tracks the Moon exactly is one whose months begin at the correct phase, which is what a lunar calendar is for, and the price is that it says nothing about when to plant. A calendar that tracks the Sun exactly — the Gregorian, the Persian, the Julian — has months that are pure bookkeeping and have not corresponded to the Moon for two thousand years. Every calendar is a choice of which of two incommensurable periods to keep, and the lunisolar ones are the attempt to keep both.

The arithmetic bears the decision out. Matching the year alone needs a fraction near 0.2422 and there are excellent ones. Matching year and month together needs a pair of integers (m,y)(m, y) with m×29.530589y×365.2422m \times 29.530589 \approx y \times 365.2422, and the best small solution is Meton’s 235/19 — with a residual of two hours, which is a hundred times worse in relative terms than 8/33 is for the year alone.

What was actually measured

Two quantities underlie everything above, and both are measurements with histories.

The tropical year. Hipparchus obtained 365.24667 days around 130 BC, by comparing his own equinox timings with those recorded 150 years earlier — a difference method, and the error in it is one part in 4,000 across a baseline he did not control. The Gregorian commission used 365.2425, from the Alfonsine tables. The modern value at J2000 is 365.242190, and it is not a constant: it shortens by about half a second per century, so the “year” the Gregorian rule was fitted to is not quite the one it is now approximating. The shortening is a consequence of the same lunisolar torque that turns the pole, acting on the rate at which the equinox slips.

Worse, there is not one tropical year. The interval from March equinox to March equinox differs from the December-solstice interval by about eight minutes, because the Earth’s orbital speed varies round its eccentric orbit while the equinoxes precess. The 365.24219 figure is an average over the four cardinal points, and a calendar tied to the March equinox — which the Gregorian rule effectively is — is approximating 365.242374 instead. The target the rule is aimed at is itself uncertain at the level of the rule’s own error. The eight minutes between one cardinal interval and another are the same non-uniformity that makes the Sun a bad clock within a single year, read over a year rather than over a day.

The day. The mean solar day is not constant either. Tidal friction lengthens it by about 1.8 milliseconds per century, which is the same braking torque that is pushing the Moon away and which will eventually make a day five hours long into a day fifty hours long, and irregular exchanges of angular momentum with the atmosphere and core move it by a millisecond either way on decade timescales.

Five rules, and how fast each one leaves the seasons behind. The accumulated difference between a calendar and the seasons, for five leap-year rules, over 12000 years. Each is a straight line whose slope is the rule's fraction minus the tropical year's 0.2421900, and nothing else about a calendar matters to this plot — not which months are long, not where the year starts, not what anything is called. The Julian quarter is out by 11.25 minutes a year, which is one day every 128 years and is why ten days had to be removed in 1582. The Gregorian rule takes 3226 years to lose a day and the Persian 4269, in the other direction — the older rule is the better one, at a denominator of 33 against 400. The 128-year rule is level on this scale: 400000 years to a day, which is longer than any calendar has been kept — and it is not a separate invention but the Julian rule with its own error subtracted, since 1/4 − 1/128 = 31/128 exactly and the Julian drift is exactly one day per 128 years. What the figure cannot show is that the tropical year is itself shortening, by about half a second a century, so the slopes drawn here are the ones at the present epoch and every line is very slightly curved.
Fig. 3 The same comparison run out twelve thousand years. The Julian rule drifts a day every 128 years and reaches three months by the end; the Gregorian rule drifts a day every 3,200 years and is still within a day at the far edge. Neither is exact and neither can be — the year is not a rational number of days — so a calendar is a choice of which approximation to be wrong by, and how slowly.

What a rule is worth, in one number

It is worth putting the whole comparison on one line, because the numbers are more surprising than the argument.

Rule Fraction Error, days per year One day in
Egyptian, no leap day 00 0.2422 4 years
Julian 1/41/4 0.00781 128 years
Gregorian 97/40097/400 0.00031 3,222 years
Persian 8/338/33 0.00023 4,264 years
Revised Julian 218/900218/900 0.000032 30,700 years
The 128-year rule 31/12831/128 0.0000022 455,000 years

The Revised Julian rule, adopted by several Orthodox churches in 1923, is the interesting entry: it keeps century years leap only when the year divided by 900 leaves 200 or 600, which is nearly as digit-friendly as the Gregorian rule and ten times more accurate. It agrees with the Gregorian calendar until 2800, at which point the two diverge — and there is a date, four centuries off, when a difference that has been purely notional becomes a difference of one day.

Below the 128-year rule the exercise stops meaning anything, because the tropical year’s own drift of half a second per century is 0.0000058 days per year — larger than the 31/128 rule’s error. A calendar accurate to one day in 455,000 years is approximating a target that will have moved by then, which is the point at which the arithmetic hands the problem back to the astronomy.

The best fractions, and the one that was adopted instead. The error of a leap-year rule against the denominator it needs, on logarithmic axes. The marked points are the continued-fraction convergents of 0.2421897 — 1/4, 7/29, 8/33, 31/128, 845/3489, 1721/7106 — and each is a best approximation in the strict sense: no fraction with a denominator that small is closer, which is checked here by enumerating every one of them rather than by appeal to the theorem. The Gregorian 97/400 is drawn apart from the staircase because it is not on it. It is beaten by 8/33, which is 1.32 times closer at 12.1 times the denominator, and which the Persian calendar had been using for five hundred years when the Gregorian reform was made. The reason for choosing it anyway is in the shape of the rule and not in this plot: 400 is four centuries, and "drop the leap day in three century years out of four" is a rule a clerk can apply from the digits of the year, while "eight leap years in thirty-three" requires knowing where in a 33-year cycle the year falls.
Fig. 4 The continued-fraction convergents taken much further. After 97/400 the next good approximations are 8/33 and then denominators in the thousands, and none of them is a rule anybody could operate: a leap rule with a 3,200-year cycle requires a civilisation to agree about a date three millennia out. The Gregorian rule is not the best available approximation; it is the best one that fits in a century-based counting scheme, which is a constraint about people rather than about arithmetic.

The reform that took three hundred and forty years

A calendar is not adopted by being correct, and the Gregorian reform’s history is the clearest demonstration of it in the record.

The bull was issued in 1582 and took effect immediately in the Catholic states: Spain, Portugal, the Italian states and Poland dropped ten days that October. The Protestant and Orthodox states did not, and the reason was not arithmetical — it was that the reform came from a papal decree, and accepting it was a political act.

Britain and its colonies changed in 1752, by which time the discrepancy had grown to eleven days. Sweden attempted a gradual transition, skipping leap days one at a time over forty years, abandoned it partway through after a war interrupted the schedule, and had to insert a 30 February in 1712 to get back onto the Julian calendar before switching properly in 1753. Russia changed in 1918, by which time the gap was thirteen days — which is why the October Revolution is commemorated in November.

The practical consequence for anybody reading historical records is a persistent trap. A date in a document between 1582 and 1918 is ambiguous unless the calendar is specified, and correspondence between countries on different calendars routinely carried both. Newton was born on 25 December 1642 in England and on 4 January 1643 in most of Europe, and both are correct.

There is a second ambiguity in the same period that has nothing to do with the reform. England began its legal year on 25 March rather than 1 January until 1752, so a date in January, February or most of March carried a year number one lower than the modern convention. That is why historical dates from that period are often written with a double year.

A calendar’s job is agreement, and the interval during which the world did not agree lasted longer than the interval since it did, which is a reasonable measure of how much a calendar is a social object rather than an astronomical one.

Where the model stops

A leap-year rule is an approximation to an average, and it says nothing about any individual year. The equinox in the Gregorian calendar wanders over about 53 hours — from late on 19 March to early on 21 March — because the rule corrects in whole days and the error accumulates and is discharged in lumps. A calendar in perfect long-term agreement still has an equinox that moves around, and the two are different properties.

Nor does any of the above touch the daily problem: a calendar fixes which day it is and a clock fixes the time within it, and the two are joined by the mean solar day, which is a fiction. The Sun does not cross the meridian at the same interval on successive days. There is a smaller consequence that still causes trouble. Astronomers avoid the whole problem by counting days rather than dating them: the Julian day number is a continuous count from a fixed epoch in 4713 BC, with no months, no years and no reform in it, and every observation in every catalogue is timestamped that way. A difference between two observations is then a subtraction rather than a calendrical computation, which is the only reliable way to do it across a period in which the calendar changed and the countries disagreed about when.

The Metonic cycle slips a day in 219 years, and the next rule needs 334. Accumulated disagreement between a lunisolar rule and the sky, against elapsed time, for the continued-fraction convergents of the 12.368266 synodic months in a tropical year. Each line is one historical cycle: 2 years to 25 months, 3 years to 37 months, 8 years to 99 months, 11 years to 136 months, 19 years to 235 months, 334 years to 4131 months. Every line has slope exactly 1, because an error made once per cycle accumulates linearly, so the only thing that distinguishes the rules is where they start. The two that were actually used are the octaeteris — eight years, 1.59 days out per cycle, useless within a generation — and Meton's nineteen, which is out by 2.1 hours per cycle and therefore takes 219 years to slip a single day. The reason nineteen is so much better than eleven is a number in the continued fraction rather than anything about the Moon: the partial quotient that follows 235/19 is 17, and a convergent's error is bounded by one over the next quotient times the square of its denominator — so a large quotient there is exactly a good approximation here, and the next improvement costs 334 years of cycle for a rule nobody could keep. What follows from the 219 years is the whole character of a lunisolar calendar: it is a table rather than an observation. The ecclesiastical moon that fixes Easter is computed from a Metonic cycle, not looked at, and the Julian version of that computus — still used to date Easter in the Eastern churches — has slipped four to five days from the sky since it was fixed in the fourth century, exactly as this plot says it must. A calendar's job is agreement, and agreement and accuracy are different requirements that diverge at a rate the arithmetic predicts.
Fig. 5 And the harder version of the same problem. A lunisolar calendar has to reconcile two incommensurable periods rather than one with a whole number — the month and the year — and the best short cycle, nineteen years of 235 months, is accurate to two hours a cycle and drifts a day in about two centuries. Every calendar in this essay is one continued fraction; this one is two, and that is why lunisolar calendars need a table where solar ones need a rule.

Both halves of the arithmetic are worth reading over shorter spans, because a calendar rule is judged by the error it accumulates within a civilisation’s memory rather than over ten thousand years.

Five rules, and how fast each one leaves the seasons behind. The accumulated difference between a calendar and the seasons, for five leap-year rules, over 1000 years. Each is a straight line whose slope is the rule's fraction minus the tropical year's 0.2421897, and nothing else about a calendar matters to this plot — not which months are long, not where the year starts, not what anything is called. The Julian quarter is out by 11.25 minutes a year, which is one day every 128 years and is why ten days had to be removed in 1582. The Gregorian rule takes 3223 years to lose a day and the Persian 4264, in the other direction — the older rule is the better one, at a denominator of 33 against 400. The 128-year rule is level on this scale: 454545 years to a day, which is longer than any calendar has been kept — and it is not a separate invention but the Julian rule with its own error subtracted, since 1/4 − 1/128 = 31/128 exactly and the Julian drift is exactly one day per 128 years. What the figure cannot show is that the tropical year is itself shortening, by about half a second a century, so the slopes drawn here are the ones at the present epoch and every line is very slightly curved.
Fig. 6 The five rules over one millennium rather than four. Over this span the Julian rule has already drifted by more than a week and the Gregorian by under a day, which is the comparison that actually mattered in 1582 — nobody was arguing about the year 5000.
The best fractions, and the one that was adopted instead. The error of a leap-year rule against the denominator it needs, on logarithmic axes. The marked points are the continued-fraction convergents of 0.2421897 — 1/4, 7/29, 8/33, 31/128 — and each is a best approximation in the strict sense: no fraction with a denominator that small is closer, which is checked here by enumerating every one of them rather than by appeal to the theorem. The Gregorian 97/400 is drawn apart from the staircase because it is not on it. It is beaten by 8/33, which is 1.32 times closer at 12.1 times the denominator, and which the Persian calendar had been using for five hundred years when the Gregorian reform was made. The reason for choosing it anyway is in the shape of the rule and not in this plot: 400 is four centuries, and "drop the leap day in three century years out of four" is a rule a clerk can apply from the digits of the year, while "eight leap years in thirty-three" requires knowing where in a 33-year cycle the year falls.
Fig. 7 The continued-fraction convergents with denominators up to five hundred. The 97/400 rule that was adopted is not a convergent at all; 8/33 is, and is better, and needs a thirty-three-year cycle that no administration was willing to operate.

The one cycle with nothing behind it

Every period in this essay corresponds to something in the sky. There is one unit of calendrical time that does not, and its persistence is worth a section because it is the exception that shows what the others are.

The week has no astronomical basis whatever. It does not divide the year, it does not divide the month, and it corresponds to no motion of anything. Seven days is about a quarter of a synodic month, which is the usual explanation offered, and the correspondence is poor: a quarter of 29.53 days is 7.38, so four weeks fall a day and a half short of a lunation and the two drift apart within a couple of months.

What the week does have is a continuous count. The cycle of days has run without interruption for at least two thousand years and probably longer — through the Gregorian reform, which removed ten calendar days and did not disturb the sequence of weekdays at all. The Thursday after 4 October 1582 was 15 October, and it was a Friday.

That is a deliberate choice and an informative one. The reform’s designers could have adjusted the week to keep some correspondence with the date; they did not, because the week’s whole function is that it is uninterrupted. A cycle used for scheduling obligations is useful in proportion to its never having a gap.

The consequence is that the day of the week is the one calendrical quantity that can be computed backwards indefinitely without knowing anything about which calendar was in force. Everything else — the date, the month, the year — requires knowing which rules a place was using, and the weekday does not.

A unit with no natural period behind it turns out to be the most stable one in the system, precisely because there is nothing for it to drift against.

One more consequence follows from the week having no astronomical anchor, and it is the reason the twentieth century’s several attempts at calendar reform all failed. Every proposal that made the year tidy — thirteen months of twenty-eight days, or twelve months of thirty with five days left over — had to insert days belonging to no week in order to close the year. That is arithmetically trivial and was, every time, the objection that sank the proposal: a scheme that is better in every respect except that it interrupts a cycle with no astronomical content is a scheme nobody adopts.

And the lunisolar problem over a shorter span, since it is the one whose residual is large enough to matter within a single lifetime.

The Metonic cycle slips a day in 219 years, and the next rule needs 334. Accumulated disagreement between a lunisolar rule and the sky, against elapsed time, for the continued-fraction convergents of the 12.368266 synodic months in a tropical year. Each line is one historical cycle: 2 years to 25 months, 3 years to 37 months, 8 years to 99 months, 11 years to 136 months, 19 years to 235 months. Every line has slope exactly 1, because an error made once per cycle accumulates linearly, so the only thing that distinguishes the rules is where they start. The two that were actually used are the octaeteris — eight years, 1.59 days out per cycle, useless within a generation — and Meton's nineteen, which is out by 2.1 hours per cycle and therefore takes 219 years to slip a single day. The reason nineteen is so much better than eleven is a number in the continued fraction rather than anything about the Moon: the partial quotient that follows 235/19 is 17, and a convergent's error is bounded by one over the next quotient times the square of its denominator — so a large quotient there is exactly a good approximation here, and the next improvement costs 334 years of cycle for a rule nobody could keep. What follows from the 219 years is the whole character of a lunisolar calendar: it is a table rather than an observation. The ecclesiastical moon that fixes Easter is computed from a Metonic cycle, not looked at, and the Julian version of that computus — still used to date Easter in the Eastern churches — has slipped four to five days from the sky since it was fixed in the fourth century, exactly as this plot says it must. A calendar's job is agreement, and agreement and accuracy are different requirements that diverge at a rate the arithmetic predicts.
Fig. 8 The Metonic cycle and its competitors over five thousand years. Nineteen years is very nearly two hundred and thirty-five lunations, and the residual accumulates to a day in about two and a half centuries — which is why every lunisolar calendar in use has been corrected by hand at least once.

Where this ladder goes next

This rung is about matching a count to a period. The rungs above it ask what happens when the period being matched is not stable, and what is done then.

The nearest is the leap second, and the argument now under way about abolishing it. Since 1972, UTC has been kept within 0.9 s of the Earth’s rotation by inserting seconds on an announced schedule; the schedule is irregular because the Earth’s rotation is irregular, and irregularity is expensive for computer systems in a way that a calendar’s is not. The decision taken in 2022 was to stop inserting them by 2035 and let the difference accumulate — which is exactly the Julian calendar’s strategy, and it will need exactly the Julian calendar’s eventual reform.

Beyond it lies the question of what a “day” and a “year” even are for a body that is not the Earth, where the tidally locked and the resonantly locked cases make the ordinary definitions come apart, and where a calendar would have to choose which of several incompatible periods to count.

What this makes readable

Essays that name this one as a prerequisite.

What links here

Essays that link to this one from their own argument.

The objects this essay names

Each one links to every other essay that touches it.

Best approximationCalendar driftContinued fractionGregorian reformIntercalationLeap year ruleMean solar dayMetonic cycleSynodic monthTropical year