The year does not fit into whole days

A seasonal year is approximately 365.2422 days long. A calendar must assign a whole number of dates to each year, so always using 365 days leaves a fraction unaccounted for. Repeated across many years, that difference would move calendar dates away from the seasons. The Gregorian calendar handles it by inserting February 29 in selected years. [1]

The fraction is about 5 hours, 48 minutes and 46 seconds using that rounded year length. It is tempting to call it exactly six hours, because four six-hour pieces make a day. But the difference between that convenient approximation and the astronomical value is the reason the calendar needs a more careful rule.

Apply three tests in the right order

A Gregorian year divisible by four is normally a leap year. A year divisible by one hundred is an exception, unless it is also divisible by four hundred. That final exception restores the leap day. Thus 2000 was a leap year, while 1900 was not; 2100 will be common under the same calendar rule. [1][2]

Test 2028: dividing by four leaves no remainder, and it is not a century year, so February has twenty-nine days. Test 2100: it passes the four-year test but fails the four-hundred-year test, so February has twenty-eight days. Test 2400: it passes the four-hundred-year test and receives the extra day.

For a quick decision, start with the strongest test. If divisible by 400, answer yes. Otherwise, if divisible by 100, answer no. Otherwise, if divisible by 4, answer yes. All remaining years are common. This order prevents the familiar mistake of stopping after the first divisible-by-four result.

Count the correction over four centuries

In four hundred consecutive years, the simple four-year rule would add one hundred days. The Gregorian century rule removes three of them, leaving ninety-seven. Therefore the total is 400 × 365 + 97 = 146,097 days. Dividing by 400 gives an average of 365.2425 days per calendar year.

Using the rounded seasonal value above, that average exceeds 365.2422 by 0.0003 day, or about twenty-six seconds. This arithmetic explains the improvement without promising a perfectly permanent match. A calendar is a practical approximation to astronomical cycles; a rounded mean value is not a guarantee about every individual year.

Use the rule when counting real dates

From February 28 to March 1 there is one midnight-to-midnight date step in a common year and two in a leap year. February 29 lies between them only in the latter case. A date calculator should therefore use the actual year, not merely the month and day.

If an annual reminder starts on February 29, decide how it should behave in common years. February 28 and March 1 are two possible conventions; neither follows automatically from the astronomical reason for leap years. State the chosen convention in the reminder so future readers do not have to infer it.

Finally, distinguish a leap day from a leap second. A leap day adjusts the calendar’s relationship with the seasonal year. A leap second concerns the relationship between precision timekeeping and Earth’s rotation. Their similar names do not make them interchangeable corrections.

Sources & further reading

  1. US Naval Observatory: Leap Years
  2. Royal Museums Greenwich: Leap years