A free Chinese calendar for every day of 1901-2100. Each of its 73,049 rows gives the lunar date and leap month, the year, month and day in the 60-term cycle, the zodiac animal and any solar term that falls that day. We computed it from astronomy. Download it as CSV or JSON under CC BY 4.0.
Download the files
The data comes as 21 CSV files, one for each decade, and as one JSON file for each year. The 1900s file starts in 1901 and the 2100s file holds only 2100. Both hold the same rows with the same 21 columns, one row per day.
The CSV files are UTF-8 with a byte-order mark, use CRLF line endings and have one header row, so they open cleanly in Excel. Yes-or-no columns are 1 or 0 in CSV and true or false in JSON. An empty solar-term cell means no solar term falls that day.
Three summary files sit beside them. new-years.json gives the date of every Chinese New Year. lunar-months.json gives every lunar month with its start, its length and the instant of its new moon in UTC, to the second. solar-terms.json gives all 4,800 solar terms with their instants in UTC, to the second. The manifest, index.json, gives the dataset version and a SHA-256 hash for every file, so you can check a download.
The v1 in each path is the schema version. It changes only if the columns change. A data correction raises the dataset version in the manifest and in the changelog below, and the paths stay the same.
| CSV file | Years | Size |
|---|---|---|
| 1900s.csv | 1901–1909 | 330 KB |
| 1910s.csv | 1910–1919 | 362 KB |
| 1920s.csv | 1920–1929 | 360 KB |
| 1930s.csv | 1930–1939 | 361 KB |
| 1940s.csv | 1940–1949 | 364 KB |
| 1950s.csv | 1950–1959 | 366 KB |
| 1960s.csv | 1960–1969 | 366 KB |
| 1970s.csv | 1970–1979 | 363 KB |
| 1980s.csv | 1980–1989 | 360 KB |
| 1990s.csv | 1990–1999 | 361 KB |
| 2000s.csv | 2000–2009 | 364 KB |
| 2010s.csv | 2010–2019 | 366 KB |
| 2020s.csv | 2020–2029 | 366 KB |
| 2030s.csv | 2030–2039 | 363 KB |
| 2040s.csv | 2040–2049 | 360 KB |
| 2050s.csv | 2050–2059 | 361 KB |
| 2060s.csv | 2060–2069 | 364 KB |
| 2070s.csv | 2070–2079 | 366 KB |
| 2080s.csv | 2080–2089 | 366 KB |
| 2090s.csv | 2090–2099 | 362 KB |
| 2100s.csv | 2100 | 38 KB |
- One year as JSON:
/data/chinese-calendar/v1/years/YYYY.json, for example /data/chinese-calendar/v1/years/2027.json. Each file has acolumnslist and onerowsarray per day. - The manifest, with the version and a size and SHA-256 hash for every file: /data/chinese-calendar/v1/index.json.
- new-years.json (36 KB)
- lunar-months.json (449 KB)
- solar-terms.json (917 KB)
What each row contains
Every row is one Gregorian day. The table lists the 21 columns in the order they appear in the CSV header and in the columns list of each JSON file.
Two columns name the year, and they change on different days. year_ganzhi and zodiac_animal change at Chinese New Year, the year most people mean by their zodiac sign. solar_year_ganzhi changes at Lichun (Start of Spring, 3-5 February), the year pillar used in Four Pillars (BaZi). Someone born between the two dates belongs to different years under the two conventions. On 2027-02-05, for example, year_ganzhi is still 丙午, the Horse, while solar_year_ganzhi is already 丁未.
month_ganzhi changes on the date of each jie, the solar terms that open a solar month. Lichun is one of them, so solar_year_ganzhi changes the same way. Strictly, the new pillar starts at the instant of the term, and before that instant the previous pillar still applies. A row covers a whole day and cannot be split, so it shows the new pillar for all of that day. For a birth on a jie day, compare the birth time with the instant in solar-terms.json.
For background, see how the lunar calendar works and how the Heavenly Stems and Earthly Branches make up the 60-term cycle.
| Column | Meaning |
|---|---|
date | Gregorian date, YYYY-MM-DD. Dates are reckoned at UTC+8, except 1914-1928 at Beijing local mean time. |
weekday | Day of the week in English, Monday to Sunday. |
lunar_year | The lunar year the day belongs to, named by the Gregorian year in which it starts. It changes at Chinese New Year. |
lunar_month | Lunar month number, 1 to 12. A leap month repeats the number of the month before it. |
is_leap_month | 1 (true) if the day is in a leap month, otherwise 0 (false). |
lunar_day | Day of the lunar month, 1 to 30. Day 1 is the date of the new moon. |
year_cycle | Position of the lunar year in the 60-year cycle, from 1 (甲子) to 60 (癸亥). |
year_ganzhi | Stem-branch name of the lunar year in Chinese characters, such as 丙午. |
year_ganzhi_pinyin | The same name in pinyin with tone marks, such as bǐng wǔ. |
zodiac_animal | Zodiac animal of the lunar year in lowercase English: rat, ox, tiger and so on. It changes at Chinese New Year. |
year_element | Element of the lunar year's heavenly stem: wood, fire, earth, metal or water. |
solar_year_cycle | Position in the 60-year cycle of the solar year, which starts at Lichun. |
solar_year_ganzhi | Stem-branch name of the solar year: the Four Pillars year pillar. It changes on the date of Lichun. |
month_cycle | Position of the solar month in the 60-term cycle. It changes on the date of each jie term. |
month_ganzhi | Stem-branch name of the solar month: the Four Pillars month pillar. |
day_cycle | Position of the day in the 60-day cycle, which runs without a break. |
day_ganzhi | Stem-branch name of the day: the Four Pillars day pillar. |
solar_term | English name of the solar term the issued calendar gives on this date, such as Start of Spring. Empty on other days. |
solar_term_chinese | The solar term's name in Chinese characters, such as 立春. Empty on other days. |
solar_term_pinyin | The solar term's name in pinyin, such as Lìchūn. Empty on other days. |
is_new_year | 1 (true) on Chinese New Year, the first day of a lunar month 1 that is not a leap month, otherwise 0 (false). |
Sample: Chinese New Year 2027
These 20 rows run from 2027-01-27 to 2027-02-15 and cross both year boundaries. Lichun falls on 2027-02-04 and Chinese New Year on 2027-02-06.
Read solar_year_ganzhi and year_ganzhi side by side. From 2027-02-04 the solar year is 丁未, the Goat, and the month pillar changes to 壬寅. year_ganzhi stays 丙午, the Horse, until 2027-02-06, when lunar_month goes back to 1 and is_new_year is 1. For the festival itself, see Chinese New Year. For the animal of every year, see the zodiac years table.
| date | lunar_month | is_leap_month | lunar_day | year_ganzhi | zodiac_animal | solar_year_ganzhi | month_ganzhi | day_ganzhi | solar_term | is_new_year |
|---|---|---|---|---|---|---|---|---|---|---|
| 2027-01-27 | 12 | 0 | 20 | 丙午 | horse | 丙午 | 辛丑 | 丙午 | 0 | |
| 2027-01-28 | 12 | 0 | 21 | 丙午 | horse | 丙午 | 辛丑 | 丁未 | 0 | |
| 2027-01-29 | 12 | 0 | 22 | 丙午 | horse | 丙午 | 辛丑 | 戊申 | 0 | |
| 2027-01-30 | 12 | 0 | 23 | 丙午 | horse | 丙午 | 辛丑 | 己酉 | 0 | |
| 2027-01-31 | 12 | 0 | 24 | 丙午 | horse | 丙午 | 辛丑 | 庚戌 | 0 | |
| 2027-02-01 | 12 | 0 | 25 | 丙午 | horse | 丙午 | 辛丑 | 辛亥 | 0 | |
| 2027-02-02 | 12 | 0 | 26 | 丙午 | horse | 丙午 | 辛丑 | 壬子 | 0 | |
| 2027-02-03 | 12 | 0 | 27 | 丙午 | horse | 丙午 | 辛丑 | 癸丑 | 0 | |
| 2027-02-04 | 12 | 0 | 28 | 丙午 | horse | 丁未 | 壬寅 | 甲寅 | Start of Spring | 0 |
| 2027-02-05 | 12 | 0 | 29 | 丙午 | horse | 丁未 | 壬寅 | 乙卯 | 0 | |
| 2027-02-06 | 1 | 0 | 1 | 丁未 | goat | 丁未 | 壬寅 | 丙辰 | 1 | |
| 2027-02-07 | 1 | 0 | 2 | 丁未 | goat | 丁未 | 壬寅 | 丁巳 | 0 | |
| 2027-02-08 | 1 | 0 | 3 | 丁未 | goat | 丁未 | 壬寅 | 戊午 | 0 | |
| 2027-02-09 | 1 | 0 | 4 | 丁未 | goat | 丁未 | 壬寅 | 己未 | 0 | |
| 2027-02-10 | 1 | 0 | 5 | 丁未 | goat | 丁未 | 壬寅 | 庚申 | 0 | |
| 2027-02-11 | 1 | 0 | 6 | 丁未 | goat | 丁未 | 壬寅 | 辛酉 | 0 | |
| 2027-02-12 | 1 | 0 | 7 | 丁未 | goat | 丁未 | 壬寅 | 壬戌 | 0 | |
| 2027-02-13 | 1 | 0 | 8 | 丁未 | goat | 丁未 | 壬寅 | 癸亥 | 0 | |
| 2027-02-14 | 1 | 0 | 9 | 丁未 | goat | 丁未 | 壬寅 | 甲子 | 0 | |
| 2027-02-15 | 1 | 0 | 10 | 丁未 | goat | 丁未 | 壬寅 | 乙丑 | 0 |
How the calendar is computed
The dataset gives the calendar as it was officially issued: the dates printed in the calendars of each year. We computed every date ourselves from astronomy, following the published rules of the Chinese calendar, and then matched the conventions the issuing authorities used. No date in the dataset was copied from another table.
China's national standard for the calendar is GB/T 33661-2017, Calculation and promulgation of the Chinese calendar [2]. We worked from Helmer Aslaksen's English account of the rules, a 2010 draft that predates the standard [3].
A month starts on the local date of its new moon, whatever the time of day. The month that contains the December solstice is month 11. If there are 12 complete months between one month 11 and the next, the year has a leap month: the first month with no major solar term (zhongqi) is the leap month, and it repeats the number of the month before it [3]. The lunar year number changes only at a month 1 that is not a leap month, and that day is Chinese New Year.
The Sun's position, which fixes the 24 solar terms, comes from the VSOP87 planetary theory. New moons come from the method in chapter 49 of Jean Meeus's Astronomical Algorithms. Both give instants in Terrestrial Time, a uniform astronomical time scale. A ΔT model converts them to Universal Time, which follows the rotation of the Earth.
A date depends on where midnight falls, so the calendar needs a meridian. From 1914-01-01 to 1928-12-31 we reckon dates at Beijing local mean time (UTC+7:45:40), and at China Standard Time (UTC+8) at all other times. Aslaksen records the Beijing meridian, 116°25′ E, before 1929 and the 120° E meridian after China adopted a standard time zone in 1928 [3]. Yuk Tung Liu's comparison of the issued calendars with modern computation shows Beijing mean time in use from 1914 [4]. The Qing calendars, to 1911, were computed for Beijing apparent solar time with an 18th-century method, so no meridian describes how they were made. UTC+8 is the rule that reproduces what the 1901-1913 calendars printed: Liu lists no issued solar term of 1901-1913 that differs from a modern computation shown at UTC+8, apart from the two 1912-1913 corrections below, and his calendar data starts the fourth month of 1906 on the UTC+8 date [4]. For four dates (Major Cold 1909, Start of Summer 1911, and Minor Cold and Cold Dew 1912) that is an inference from the absence of an entry, not a reading of the printed almanac.
In three cases the issued calendar printed a solar term on a different day from the one modern astronomy gives, and no meridian explains it: Minor Snow in 1912, the Autumn Equinox in 1913 and Major Cold in 1979. The dataset gives the issued date for each, and keeps the computed instant in solar-terms.json. The table below lists all three with their sources [4].
| Solar term | Computed date | Issued date (in the dataset) | Source |
|---|---|---|---|
| Minor Snow (小雪) | November 22, 1912 (11.88 minutes before local midnight) | November 23, 1912 | The calendar issued by the Chinese government for 1912 gave Minor Snow on 23 November (00:39), per the table of issued-calendar discrepancies in Y. T. Liu, "Computation of the Chinese calendar", https://ytliu0.github.io/ChineseCalendar/computation.html |
| Autumn Equinox (秋分) | September 23, 1913 (7.23 minutes before local midnight) | September 24, 1913 | The calendar issued by the Chinese government for 1913 gave the Autumn Equinox on 24 September (00:48), per the table of issued-calendar discrepancies in Y. T. Liu, "Computation of the Chinese calendar", https://ytliu0.github.io/ChineseCalendar/computation.html |
| Major Cold (大寒) | January 20, 1979 (2 seconds before local midnight) | January 21, 1979 | Purple Mountain Observatory, 一九七九年中国天文年历 (Chinese Astronomical Almanac for 1979), lists Major Cold at 00:00 UTC+8 on 21 January; cited by Y. T. Liu, "Computation of the Chinese calendar", https://ytliu0.github.io/ChineseCalendar/computation.html |
How it was tested
We checked the dates against an independent published table, against an independent astronomical ephemeris and against the calendar code behind the rest of this site. The table comparison covers all 73,049 days, every lunar date and every solar term.
The independent table is the Hong Kong Observatory's Gregorian-Lunar Calendar Conversion Tables for 1901-2100 [1]. We used it only as a test. None of its data is in this dataset, and we have no permission to redistribute it.
The dataset agrees with the Observatory's table on all 73,049 days and all 4,800 solar terms. The first version we computed did not: it used Beijing mean time for every year before 1929 and modern astronomy throughout, and differed on one month of 1906 and seven solar terms. We traced each difference to the calendar that was issued at the time, from Liu's published comparison, and changed the rules to follow the issued calendars, as described above. For four terms of 1909-1912 the issued date is inferred, as explained above. No date was taken from the Observatory's table.
We also recomputed every new moon and solar term with NASA's DE440 ephemeris, independent of our own code [5]. The two agree to within about two minutes on every event. They give the same local date for every event up to 2056, apart from the three issued dates above, where the dataset follows the issued calendar on purpose. After 2056, three events fall within 90 seconds of midnight: the new moons of 2057-09-28 and 2097-08-07 and the Spring Equinox of 2084-03-19. DE440 would put each one a day later. All three depend on how much the Earth's rotation slows by then, which no one can yet predict to the minute, and the 2057 new moon also on the small error of the lunar method we use.
The day, month and solar-year pillars match the site's birth chart (Four Pillars) engine on all 73,049 days. That comparison is made at midday, and on a jie day at midday of the next day, so the instant of the term never decides it. That also means it cannot see the two 1914-1928 jie days listed under Caveats. The 200 Chinese New Year dates and the 200 Lichun dates match the site's own tables. The site's New Year table is generated from this dataset, so that match shows only that the site prints the dataset's dates; it is not a further independent check. The JavaScript and Python readers produce identical rows for every day.
Caveats
Three things can move a date in this dataset by one day: the time zone, the precision of the astronomy and the meridian used in 1914-1928. Each one matters only for an event close to midnight.
The dates are dates in China. A new moon or solar term near midnight falls on a different date elsewhere. The new moon that starts lunar year 2027 is at 15:56:02 UTC on 2027-02-06. In China Standard Time that is 23:56:02 on 2027-02-06, so Chinese New Year 2027 is 2027-02-06 in this dataset. At UTC+9, the time used in Japan and Korea, the same instant is 00:56:02 on 2027-02-07, and a calendar reckoned at UTC+9 would start that month a day later.
A different astronomical model, or a different ΔT value, would put each new moon and term at a slightly different instant. That changes a date only when the event falls very near local midnight. The first table lists the ten events of 1901-2100 that come closest to midnight. For future years the dates are a forecast: the calendar for each year is issued shortly before it, and an event within a minute or two of midnight could be printed on the other day.
In 1914-1928, two jie terms fall on a different date at Beijing local mean time than they would at UTC+8. On those days this dataset starts the new solar month one day earlier than a calendar reckoned at UTC+8. The list below gives the two days. For a birth near one of them, the site's birth chart tool works from the exact birth time instead.
The ten events closest to midnight, 1901-2100
| Event | Instant (UTC) | Date in the dataset | From local midnight |
|---|---|---|---|
| Solar term | 1979-01-20 15:59:58 | 1979-01-21 (issued calendar) | 2 s before |
| Solar term | 1951-12-22 16:00:02 | 1951-12-23 | 2 s after |
| New moon | 2057-09-28 15:59:57 | 2057-09-28 | 3 s before |
| New moon | 2097-08-07 15:59:39 | 2097-08-07 | 21 s before |
| Solar term | 1911-05-06 16:00:28 | 1911-05-07 | 28 s after |
| Solar term | 2021-12-21 15:59:12 | 2021-12-21 | 48 s before |
| Solar term | 1950-04-20 15:59:10 | 1950-04-20 | 50 s before |
| Solar term | 2084-03-19 15:59:03 | 2084-03-19 | 57 s before |
| Solar term | 2008-05-20 16:00:58 | 2008-05-21 | 58 s after |
| Solar term | 2051-03-20 15:58:57 | 2051-03-20 | 63 s before |
Jie days in 1914-1928 that moved with the meridian
- December 7, 1917
- September 8, 1927
Licence and citation
The data is free to use, share and adapt for any purpose, including commercial use, under the Creative Commons Attribution 4.0 licence (CC BY 4.0). The one condition is credit to chinesezodiac.com.
Use this credit line, or one with the same information: Chinese calendar data by chinesezodiac.com, CC BY 4.0, https://chinesezodiac.com/data/chinese-calendar. The licence text sits beside the files as LICENSE.txt, and every JSON file carries the credit line in its attribution field.
The JavaScript and Python packages that read the data are released under the MIT licence. To cite the dataset in a paper or a report, use the box below.
Cite this data (CC BY 4.0)
This compilation is published under a Creative Commons Attribution 4.0 license. Journalists, researchers, and educators are free to reuse the dataset, every file listed on this page and the tables. We ask for one thing: credit ChineseZodiac.com with a link to this page, so readers can check the sources behind every number.
Suggested citation
ChineseZodiac.com (2026). "Open Chinese Calendar Data, 1901-2100." https://chinesezodiac.com/data/chinese-calendar. Underlying data: our own astronomical computation (VSOP87 for the Sun, Meeus for the Moon), matched to the calendars as issued.Ready-to-paste HTML (with link)
<a href="https://chinesezodiac.com/data/chinese-calendar">Open Chinese Calendar Data, 1901-2100</a> — ChineseZodiac.com (2026), compiled from our own astronomical computation (VSOP87 for the Sun, Meeus for the Moon), matched to the calendars as issued.Code packages
Two small packages read the dataset offline, one for JavaScript and one for Python. Each bundles the full data and needs nothing beyond its own language and standard library.
Neither package is published on npm or PyPI yet. The examples show the names they will use once published. Until then, use the files above.
The JavaScript package, chinese-calendar-data, is an ES module for Node.js 20.10 or later. The Python package has the same name, is imported as chinese_calendar_data and needs Python 3.9 or later. Both look up one day, a whole Gregorian year, the Chinese New Year date of a lunar year, the solar terms of a year and the months of a lunar year. Rows use the column names above. A date outside 1901-2100 returns null in JavaScript and None in Python. The output in the comments is what each example printed when we ran it.
JavaScript
// Not yet on npm. Node.js 20.10 or later.
import { getDay, newYearDate, solarTerms, lunarMonths } from 'chinese-calendar-data';
const day = getDay('2027-02-05');
console.log(day.lunar_year, day.lunar_month, day.lunar_day, day.zodiac_animal, day.year_ganzhi, day.solar_year_ganzhi);
// 2026 12 29 horse 丙午 丁未
console.log(newYearDate(2027));
// 2027-02-06
const lichun = solarTerms(2027).find((t) => t.key === 'lichun');
console.log(lichun.date, lichun.instantUtc);
// 2027-02-04 2027-02-04T01:46:12Z
console.log(lunarMonths(2027)[0].newMoonUtc);
// 2027-02-06T15:56:02Z
console.log(getDay('1899-12-31'));
// nullPython
# Not yet on PyPI. Python 3.9 or later.
from chinese_calendar_data import get_day, new_year_date, solar_terms, lunar_months
day = get_day("2027-02-05")
print(day["lunar_year"], day["lunar_month"], day["lunar_day"], day["zodiac_animal"], day["year_ganzhi"], day["solar_year_ganzhi"])
# 2026 12 29 horse 丙午 丁未
print(new_year_date(2027))
# 2027-02-06
lichun = next(t for t in solar_terms(2027) if t["key"] == "lichun")
print(lichun["date"], lichun["instantUtc"])
# 2027-02-04 2027-02-04T01:46:12Z
print(lunar_months(2027)[0]["newMoonUtc"])
# 2027-02-06T15:56:02Z
print(get_day("1899-12-31"))
# NoneChangelog
Every release has a dataset version number, which also appears in the manifest and in both packages. Each correction to the data will be listed here with its version and date.
A correction raises the dataset version and keeps the v1 paths, so existing links keep working. To see whether your copy is current, compare its version with the one in index.json.
- Version 1.0.0, November 23, 2026: first release.
Sources & References
- Hong Kong Observatory — Gregorian-Lunar Calendar Conversion Table (1901–2100)
- Standardization Administration of China — GB/T 33661-2017, 农历的编算和颁行 (Calculation and promulgation of the Chinese calendar), issued 2017-05-12
- Helmer Aslaksen, National University of Singapore — "The Mathematics of the Chinese Calendar" (draft of 17 July 2010; sections 4.2 and 4.6)
- Yuk Tung Liu — Computation of the Chinese calendar (calendar conversion notes, discrepancies between the issued calendars and modern calculation)
- NASA Jet Propulsion Laboratory — Planetary and Lunar Ephemerides DE440 and DE441 (Park et al. 2021, The Astronomical Journal 161:105)