曆

Open data · Version 1.0.0 · CC BY 4.0

Open Chinese Calendar Data, 1901-2100

ChineseZodiac.com

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 fileYearsSize
1900s.csv1901–1909330 KB
1910s.csv1910–1919362 KB
1920s.csv1920–1929360 KB
1930s.csv1930–1939361 KB
1940s.csv1940–1949364 KB
1950s.csv1950–1959366 KB
1960s.csv1960–1969366 KB
1970s.csv1970–1979363 KB
1980s.csv1980–1989360 KB
1990s.csv1990–1999361 KB
2000s.csv2000–2009364 KB
2010s.csv2010–2019366 KB
2020s.csv2020–2029366 KB
2030s.csv2030–2039363 KB
2040s.csv2040–2049360 KB
2050s.csv2050–2059361 KB
2060s.csv2060–2069364 KB
2070s.csv2070–2079366 KB
2080s.csv2080–2089366 KB
2090s.csv2090–2099362 KB
2100s.csv210038 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.

ColumnMeaning
dateGregorian date, YYYY-MM-DD. Dates are reckoned at UTC+8, except 1914-1928 at Beijing local mean time.
weekdayDay of the week in English, Monday to Sunday.
lunar_yearThe lunar year the day belongs to, named by the Gregorian year in which it starts. It changes at Chinese New Year.
lunar_monthLunar month number, 1 to 12. A leap month repeats the number of the month before it.
is_leap_month1 (true) if the day is in a leap month, otherwise 0 (false).
lunar_dayDay of the lunar month, 1 to 30. Day 1 is the date of the new moon.
year_cyclePosition of the lunar year in the 60-year cycle, from 1 (甲子) to 60 (癸亥).
year_ganzhiStem-branch name of the lunar year in Chinese characters, such as 丙午.
year_ganzhi_pinyinThe same name in pinyin with tone marks, such as bǐng wǔ.
zodiac_animalZodiac animal of the lunar year in lowercase English: rat, ox, tiger and so on. It changes at Chinese New Year.
year_elementElement of the lunar year's heavenly stem: wood, fire, earth, metal or water.
solar_year_cyclePosition in the 60-year cycle of the solar year, which starts at Lichun.
solar_year_ganzhiStem-branch name of the solar year: the Four Pillars year pillar. It changes on the date of Lichun.
month_cyclePosition of the solar month in the 60-term cycle. It changes on the date of each jie term.
month_ganzhiStem-branch name of the solar month: the Four Pillars month pillar.
day_cyclePosition of the day in the 60-day cycle, which runs without a break.
day_ganzhiStem-branch name of the day: the Four Pillars day pillar.
solar_termEnglish name of the solar term the issued calendar gives on this date, such as Start of Spring. Empty on other days.
solar_term_chineseThe solar term's name in Chinese characters, such as 立春. Empty on other days.
solar_term_pinyinThe solar term's name in pinyin, such as Lìchūn. Empty on other days.
is_new_year1 (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.

datelunar_monthis_leap_monthlunar_dayyear_ganzhizodiac_animalsolar_year_ganzhimonth_ganzhiday_ganzhisolar_termis_new_year
2027-01-2712020丙午horse丙午辛丑丙午0
2027-01-2812021丙午horse丙午辛丑丁未0
2027-01-2912022丙午horse丙午辛丑戊申0
2027-01-3012023丙午horse丙午辛丑己酉0
2027-01-3112024丙午horse丙午辛丑庚戌0
2027-02-0112025丙午horse丙午辛丑辛亥0
2027-02-0212026丙午horse丙午辛丑壬子0
2027-02-0312027丙午horse丙午辛丑癸丑0
2027-02-0412028丙午horse丁未壬寅甲寅Start of Spring0
2027-02-0512029丙午horse丁未壬寅乙卯0
2027-02-06101丁未goat丁未壬寅丙辰1
2027-02-07102丁未goat丁未壬寅丁巳0
2027-02-08103丁未goat丁未壬寅戊午0
2027-02-09104丁未goat丁未壬寅己未0
2027-02-10105丁未goat丁未壬寅庚申0
2027-02-11106丁未goat丁未壬寅辛酉0
2027-02-12107丁未goat丁未壬寅壬戌0
2027-02-13108丁未goat丁未壬寅癸亥0
2027-02-14109丁未goat丁未壬寅甲子0
2027-02-151010丁未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 termComputed dateIssued date (in the dataset)Source
Minor Snow (小雪)November 22, 1912 (11.88 minutes before local midnight)November 23, 1912The 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, 1913The 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, 1979Purple 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

EventInstant (UTC)Date in the datasetFrom local midnight
Solar term1979-01-20 15:59:581979-01-21 (issued calendar)2 s before
Solar term1951-12-22 16:00:021951-12-232 s after
New moon2057-09-28 15:59:572057-09-283 s before
New moon2097-08-07 15:59:392097-08-0721 s before
Solar term1911-05-06 16:00:281911-05-0728 s after
Solar term2021-12-21 15:59:122021-12-2148 s before
Solar term1950-04-20 15:59:101950-04-2050 s before
Solar term2084-03-19 15:59:032084-03-1957 s before
Solar term2008-05-20 16:00:582008-05-2158 s after
Solar term2051-03-20 15:58:572051-03-2063 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'));
// null

Python

# 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"))
# None

Changelog

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

  1. Hong Kong Observatory — Gregorian-Lunar Calendar Conversion Table (1901–2100)
  2. Standardization Administration of China — GB/T 33661-2017, 农历的编算和颁行 (Calculation and promulgation of the Chinese calendar), issued 2017-05-12
  3. Helmer Aslaksen, National University of Singapore — "The Mathematics of the Chinese Calendar" (draft of 17 July 2010; sections 4.2 and 4.6)
  4. Yuk Tung Liu — Computation of the Chinese calendar (calendar conversion notes, discrepancies between the issued calendars and modern calculation)
  5. NASA Jet Propulsion Laboratory — Planetary and Lunar Ephemerides DE440 and DE441 (Park et al. 2021, The Astronomical Journal 161:105)