Back to the calendar rules page


Why Do the Rules for the Chinese Calendar Work?

First draft: October, 2018       Last major update: April, 2019


Matching Two Cycles

Remember that the goal for a luni-solar calendar is to take into account both the cycle of seasons and cycle of the moon phases. It should be obvious that Rule 3 is designed to accommodate the lunar cycle. By fixing the first day of a month to the day of the new moon, days in a Chinese month are closely related to the moon phases. For example, a full month occurs on the 16th day of a month, give or take one day. Rules 4 and 5 are designed to accommodate the cycle of seasons. Since month 11 must contain the winter solstice, it is winter time in month 11. In fact, month 11 is sometimes referred to as the winter month (冬月). However, winter solstice is not fixed with respect to the lunation cycle. It can occur on the day of a new moon in one year and on the day before a new moon in another year. This means, according to Rule 3, that winter solstice can be the first day of month 11 or the last day of month 11. This is a much larger variation compared to the Gregorian calendar in which winter solstice is on Dec. 22 give or take one day every year.

Before the calendar reform in 1645, each regular month in the Chinese calendar contained a major solar term (see the discussion near the bottom of the solar terms page). For example, month 11 must contain Z11, month 12 must contain Z12, month 1 must contain Z1 and so on. After the calendar reform, this is still true most of the time but can fail on rare occasions. However, even on those rare occasions the major terms miss the associated months only by one day. Hence we can say that the 12 major solar terms are (almost always) contained in the associated 12 regular months. They can vary up to about 30 days in the calendar from years to years. This is again a larger variation compared to the Gregorian calendar in which each of the 24 solar terms is fixed to within three days from years to years. This is the price the Chinese calendar pays in order to accommodate both the lunar cycle and cycle of seasons.


Myth of the 19-Year Cycle

It was known in China around 600 BCE that the period of 235 (= 12×19 + 7) synodic months is close to the period of 19 tropical years. This was known as the Metonic cycle in ancient Greece. In the past, the Chinese used this 19-year cycle to insert leap months in the calendar. Perhaps this is why some articles still say that 7 leap months are inserted to the Chinese calendar every 19 years today. They then explain how a leap month is to be inserted in the Chinese calendar: the rule is to designate the month that does not contain a major solar term a leap month. This is known as the no zhōngqì rule. People reading the articles may wonder why this rule guarantees 7 leap months being inserted in the calendar every 19 years. The answer is that it doesn't! For one thing, not every month without a major solar term is a leap month. It can be a fake leap month although it is very rare (see the discussion near the bottom of the example page). For another, the 19-year cycle is only an approximation. The period of 19 tropical years is about two hours shorter than the period of 235 synodic months. A calendar based on the 19-year cycle, such as the Jewish calendar, will have the year falling behind the mean tropical year by about one day in 228 years. This is, however, not the case for the Chinese calendar. The 19-year cycle was abandoned in China since the 6th century.

Before 7th century, Chinese used the píngshuò rule and pínqì rule to calculate lunar conjunctions and solar terms, which assumed that the motions of the Sun and Moon in the sky were uniform. The time interval between two successive lunar conjunctions and the time interval between two successive major solar terms were constants and were equal to the lunar and solar cycles used by the astronomical system. Before the 5th century, the lunar and solar cycles were chosen so that the ratio of the two cycles was 235:19. Since 19 solar years contained 19×12=228 major solar terms and 235=228+7, there were exactly 7 months in 19 years without a major solar term. As a result, the no zhōngqì rule guaranteed exactly 7 leap months appearing in 19 years.

It was later realized that the 235:19 ratio for the solar to lunar cycle was not very accurate. It was no longer enforced since the 5th century. For example, the Dàmíng astronomical system (大明曆) developed by Zǔ Chōngzhī (祖沖之) in 462 inserted 144 leap months in 391 years. The way to do it was to choose the ratio of solar cycle to lunar cycle to be 4836:391. Since 4836 = 391×12 + 144, the no zhōngqì rule resulted in inserting 144 leap months in 391 years. This was called the pòzhāng method (破章法), literally meaning a method that breaks the 19-year cycle. The first calendar that broke the 19-year cycle was based on the Xuánshǐ system (玄始曆), which inserted 221 leap months in 600 years. It was adopted by the Northern Liang dynasty from 412 to 439 and Northern Wei dynasty from 452 to 522 in northern China.

Since the 7th century, the píngshuò rule was abandoned in favor of the díngshuò rule (which takes into account the non-uniform motion of the Sun and Moon) to calculate the conjunctions. The time interval between two successive conjunctions was no longer constant. After 1644, the pínqì rule was abandoned in favor of the dínqì rule to calculate the solar terms, and the no zhōngqì rule was modified to the current Rule 5. Now even the time interval between two successive major solar terms is no longer constant. Hence, the 19-year cycle is long gone.

Even though the 19-year cycle is not used in arranging leap months in the Chinese calendar, the cycle is still apparent. The following table shows the leap months from N1930 to N2498 arranged in 30 rows and 7 columns. Each row represents an approximate 19-year cycle. The notation NY: m means that there is a leap month after month m in the Chinese year NY.

CycleYear: leap
1N1930: 6N1933: 5N1936: 3N1938: 7N1941: 6N1944: 4N1947: 2
2N1949: 7N1952: 5N1955: 3N1957: 8N1960: 6N1963: 4N1966: 3
3N1968: 7N1971: 5N1974: 4N1976: 8N1979: 6N1982: 4N1984: 10
4N1987: 6N1990: 5N1993: 3N1995: 8N1998: 5N2001: 4N2004: 2
5N2006: 7N2009: 5N2012: 4N2014: 9N2017: 6N2020: 4N2023: 2
6N2025: 6N2028: 5N2031: 3N2033: 11N2036: 6N2039: 5N2042: 2
7N2044: 7N2047: 5N2050: 3N2052: 8N2055: 6N2058: 4N2061: 3
8N2063: 7N2066: 5N2069: 4N2071: 8N2074: 6N2077: 4N2080: 3
9N2082: 7N2085: 5N2088: 4N2090: 8N2093: 6N2096: 4N2099: 2
10N2101: 7N2104: 5N2107: 4N2109: 9N2112: 6N2115: 4N2118: 3
11N2120: 7N2123: 5N2126: 4N2128: 11N2131: 6N2134: 5N2137: 2
12N2139: 7N2142: 5N2145: 4N2147: 11N2150: 6N2153: 5N2156: 3
13N2158: 7N2161: 6N2164: 4N2166: 10N2169: 6N2172: 5N2175: 3
14N2177: 7N2180: 6N2183: 4N2186: 2N2188: 6N2191: 5N2194: 3
15N2196: 7N2199: 6N2202: 4N2204: 9N2207: 6N2210: 4N2213: 3
16N2215: 7N2218: 5N2221: 4N2223: 9N2226: 7N2229: 5N2232: 3
17N2234: 8N2237: 5N2240: 4N2242: 11N2245: 6N2248: 5N2251: 3
18N2253: 7N2256: 6N2259: 5N2262: 1N2264: 7N2267: 5N2270: 3
19N2272: 8N2275: 6N2278: 4N2281: 2N2283: 6N2286: 5N2289: 3
20N2291: 7N2294: 6N2297: 4N2300: 2N2302: 6N2305: 5N2308: 3
21N2310: 7N2313: 6N2316: 4N2318: 10N2321: 7N2324: 5N2327: 3
22N2329: 8N2332: 6N2335: 4N2338: 3N2340: 7N2343: 5N2346: 4
23N2348: 8N2351: 6N2354: 5N2357: 1N2359: 7N2362: 5N2365: 4
24N2367: 8N2370: 6N2373: 5N2376: 2N2378: 7N2381: 5N2384: 4
25N2386: 10N2389: 6N2392: 4N2395: 2N2397: 6N2400: 5N2403: 3
26N2405: 8N2408: 6N2411: 5N2414: 2N2416: 7N2419: 5N2422: 3
27N2424: 8N2427: 6N2430: 4N2433: 3N2435: 7N2438: 5N2441: 4
28N2443: 8N2446: 7N2449: 5N2452: 3N2454: 8N2457: 5N2460: 4
29N2462: 8N2465: 6N2468: 5N2471: 3N2473: 7N2476: 5N2479: 4
30N2481: 10N2484: 6N2487: 5N2490: 3N2492: 7N2495: 5N2498: 4

The table shows that the 19-year cycle is quite accurate but clearly not exact. The years in each column are separated by 19 years most of the time. The pink cells indicate that the leap months occur in the "wrong" years. For example, the last column in cycle 3 was supposed to be 19 years after N1966, but the leap month occurred a few months earlier. In each column, the leap months mostly occur after the same month, give or take one month. The yellow cells indicate that the leap months occur after the "wrong" months. For example, in cycle 6 the leap month in N2033 is supposed to occur after month 8, give or take one month, but it will occur after month 11. It is also interesting to see that in column 4 the leap months usually occur after month 8 (±1) before cycle 17, but it will change to after month 2 (±1) after cycle 17. These "anomalies" indicate that the 19-year cycle is a good approximation in the Chinese calendar but not an exact rule.

We see from the table that N2262 will be the first year after 1930 that a leap month will occur after month 1. It is actually the first time a leap month will occur after month 1 since the calendar reform in 1645, as pointed out in Aslaksen's article. My independent calculation confirms his result.

Finally, it should be noted that it is currently impossible to calculate the times (in UTC+8) of lunar conjunctions and 24 solar terms to high precision several hundred years from now. This is due to the irregularity of Earth's rotation, which causes difficulty in predicting the number of leap seconds that will be added to UTC several hundred years from now. The times for the events after 2200 have an estimated uncertainty of a few minutes. If a lunar conjunction (or major solar term) occurs within a few minutes from midnight, the first day of the associated month (or the date of the solar term) may be off by one day. Most of the time the one-day difference will not affect the leap months, but sometimes it will. As a result, one or several of the data shown in the table might turn out to be incorrect. However, the overall pattern of the leap months will remain unchanged.


Average Length of Chinese Month and Year

What are the average length of a month and average length of a year in the Chinese calendar? You might think that they are not easy to calculate because of the complicated rules. However, it is in fact quite easy to guess the approximate values. The average length of a year should be close to the tropical year 365.242 days and the average length of a month should be close to the synodic month 29.5306 days. We can argue by contradiction. If the average length of a month deviates significantly from the synodic month, there will be a secular drift in the time of the new moon from months to months in the Chinese calendar. It will eventually drift away from the first day of a month, but this is impossible because of Rule 3. So we conclude that the average length of a month should be close to the synodic month. A similar argument works for the average of a year. If the average length of a year is significantly different from the tropical year, there will be a secular drift of the winter solstice in the calendar from years to years and eventually the winter solstice will drift away from month 11, which contradicts Rule 4. These arguments only establish approximate values because of the subtle issue of taking averages and the fact that both the synodic month and tropical year are slowly changing with time.

Here is a better argument. Let FY+k (k is an integer) be the Julian date number at UTC noon on the New Year day of NY+k (so FY+k is an integer). Let WY+k be the Julian date number of the time of winter solstice in Gregorian year Y+k (WY+k is in general not an integer). Let ΔFY+k = FY+k - WY+k-1 be the number of days between the winter solstice in year Y+k-1 and the New Year day of NY+k at UT noon. Then the number of days in a Chinese year averaged over the years from NY to NY+n is

Y = (FY+n+1 - FY) / n = (WY+n - WY-1) / n + (ΔFY+n+1 - ΔFY) / n

The term (WY+n - WY-1) / n is the number of days between two successive winter solstices averaged over n years, which is close to a tropical year. Since the New Year day is either the second or third new moon after the winter solstice, |ΔFY+n+1 - ΔFY| < U for some constant U. We know the New Year day fluctuates between Jan. 20 and Feb. 20 each year, and the winter solstice is usually between Dec. 21 and Dec. 23. So U is probably about 30 days. The exact value of U is not important. The important thing is that U is a finite number. So as n increases, the term |ΔFY+n+1 - ΔFY| / n drops to 0 and the number of days in a Chinese year averaged over n years approaches the period between two successive winter solstices averaged over n years, which is close to a tropical year. Similar analysis can be used to argue that the average number of days in a Chinese month is close to a synodic month.

How are the guesses above compared to the actual data? Let's calculate the averages over the years from N1929 to N2200. As mentioned above, Rule 1 was imposed after 1928. That is why I start the year in N1929 to ensure consistent rules over these years. In the 272 years from N1929 to N2200, my calculation shows that there are 99340 days. Hence the average length of a year over this period is 99340/272 = 365.22 days, which differs from the tropical year by about half an hour. However, the length of a year ranges from 353 days to 385 days with a standard deviation of 14.31 days. This means that the average changes slightly depending on how many years are averaged over. For example, the average between the 271 years from N1929 to N2199 is 365.262 days; the average over the 270 years from N1929 to N2198 is 365.1926 days. We are mainly picking up the variation from the term (ΔF1930+n - ΔF1929) / n as we change n. The variation will decrease to zero as we increase the number of years. The following plot shows the length of a Chinese year averaged from N1929 to NY for Y from 2150 to 2200.

Average length of a Chinese year

It is seen that the averages vary from 365.16 days to 365.28 days for these 50 years. This tells us the uncertainty of taking averages over about 270 years. To obtain a tighter bound on the average, we need to average over more years. The following plot shows the length of a Chinese year averaged from N1929 to NY for Y from 2878 to 2928. The average is taken over up to 1000 years.

Average length of a Chinese year

We see that the averages over about 1000 years have values between 365.224 days to 365.255 days. The variation is about 4 times smaller. This is expected since the variation should scale with 1/n, where n is the number of years averaged over. As expected, the averages are all close to the tropical year 365.242 days.

Let's now look at the average length of a Chinese month. There are 3364 months (including leap months) from N1929 to N2200 and the total number of days is 99340 days. Hence the average length of a month over these 3364 months is 99340/3364 = 29.5303 days. To see the variations of the averages, I plot the following graph showing the averages from month 1 to the month M with M from 3300 to 3364, where the month number M is counted from N1929 with leap months included.

Average length of a Chinese year

We see that the averages show much less variations compared to the averages of a year. It is because the number of days in a month has less variation (29 days or 30 days) and we are taking averages over several thousand numbers instead of several hundred numbers. The averages vary between 29.5300 days to 29.5306 days. These are quite close to the synodic month 29.530589 days.


Back to the calendar rules page