365Lab CalendarCalendar Design & Print

Home › Guides › How lunar dates and solar terms are computed

How lunar dates and solar terms are computed

Coverage 1901–2099, verified against almanacs; no holiday swaps.

  1. The lunar month table

    Month lengths (29 or 30 days) and the position of the leap month come from the Shouxing astronomical algorithm (new moons and mid-qi in Beijing time). The page only looks values up at runtime. Browser Intl’s chinese calendar is off by one day in years such as 1999, 2012, 2018, 2027 and 2030, so it is not used.

  2. The 24 solar terms

    A term begins every 15 degrees of solar longitude, dated in Beijing time. Their Gregorian dates are fairly stable — Spring Equinox around 20 March, Winter Solstice around 21 December.

  3. Festivals

    Four groups: fixed solar dates (New Year, Labour Day, National Day…), fixed lunar dates (Spring Festival, Dragon Boat, Qixi, Mid-Autumn, Chongyang, Laba…), term-based ones (Qingming, Winter Solstice) and nth-weekday ones (Mother’s, Father’s, Thanksgiving). New Year’s Eve is the last day of the lunar year, so it lands correctly even when the twelfth month has no 30th.

  4. Not included

    The yearly public-holiday and make-up-workday arrangement announced by the State Council is an administrative decision, not a calendar computation, so it is not predicted here.

  5. Sexagenary year and animal

    The header follows the common almanac convention where a Gregorian year carries the sexagenary name of its lunar year (2026 = Bing-Wu, Horse). Cells switch strictly at the lunar new year, so the day before still shows the previous year’s twelfth month.

Open the calendar maker

More guides