Convert between the Chinese lunar calendar and the Gregorian calendar in both directions. Leap months are detected automatically, with the zodiac, stems-and-branches date, 24 solar terms, lunar festivals and a festival countdown alongside.
Turn a Gregorian date into a lunar year, month and day, or look up the Gregorian date and weekday for any lunar date. Both directions run on the same kernel.
The lunar month dropdown only inserts a leap month when that year actually has one, marks it as "Leap", and rejects a leap month that does not exist.
The year pillar is bounded by the Start of Spring, the month pillar by the section term of that month, and the day pillar by a continuous 60-day cycle, each computed separately.
Term dates come from a year-by-year table covering 1900 to 2100 rather than an approximation, and the term in effect is highlighted separately.
Spring Festival, Lantern, Dragon Head Raising, Dragon Boat, Qixi, Ghost, Mid-Autumn, Double Ninth, Laba, Little New Year and New Year's Eve, matched on the exact lunar date and never on a leap month.
The top of the tool always shows how many days remain until the next Spring Festival, Mid-Autumn Festival and Dragon Boat Festival, or that the day is today.
The two tabs at the top switch between Gregorian to lunar and lunar to Gregorian. Each panel keeps its own selection.
Pick a date in the field or press Today. The result below immediately shows the lunar date, zodiac, stems and branches, solar term and festival.
Select the lunar year, month and day. A leap month only appears when that year has it, and the day list adjusts to the length of the chosen month.
The countdown row is always visible at the bottom of the tool, and the reference table further down lists the Gregorian date of the Spring Festival for ten years, with the current year highlighted.
When the family celebrates a birthday by the lunar date, find out which Gregorian day it lands on this year before booking anything.
Old registers, genealogies and deeds often record lunar dates. Convert them one by one when entering data into a modern system.
Wedding and moving dates are often picked against both calendars while avoiding specific terms and festivals, so having both dates side by side helps.
Reconstructing a chronology from inscriptions and family records means turning stems-and-branches years and lunar dates into exact Gregorian days.
Plan Spring Festival, Mid-Autumn and Dragon Boat promotions by first converting the festival to its Gregorian date, then working back to stocking deadlines.
Convert a few dates live to show how a leap month is inserted and why solar terms stay pinned to nearly the same Gregorian date.
Months follow the moon strictly: the new moon is day one, the full moon falls around day fifteen, and a mean synodic month is 29.53 days, so months have either 29 or 30 days. But twelve such months total about 354 days, roughly 11 short of a tropical year. If the calendar only followed the moon, the new year would drift into summer within a couple of decades. Keeping lunar months while pulling the year back to the seasons is what makes the system lunisolar rather than purely lunar.
The rule is "no middle term, insert a leap month". The month containing the winter solstice is month 11. If 13 new moons fall between one month 11 and the next, that span needs a leap month, and the first month inside it that contains no middle term becomes the leap month, taking the name of the month before it. Middle terms are the twelve terms that sit mid-month, such as Rain Water, Spring Equinox and Grain Rain. The rule took shape over the Han dynasty and the modern form follows the true-solar-term method in use since 1645.
The stems and branches combine ten heavenly stems with twelve earthly branches into a 60-step cycle. The year pillar has two competing boundaries: folk custom and the public holiday calendar switch the animal on the first day of the lunar year, while astrology and BaZi switch the year pillar at the Start of Spring. In 2026 the Start of Spring falls on 4 February and the Spring Festival on 17 February, so for those two weeks the two conventions disagree. This tool computes the year pillar from the Start of Spring and the zodiac from the lunar new year, and shows both instead of picking one quietly.
Solar terms divide the sun's ecliptic longitude, which is a solar measure, so each term lands on almost the same Gregorian date every year, give or take a day. Seen from the lunar side the same term wanders across different lunar months. That is why Qingming always falls between 4 and 6 April while its lunar date changes every year. The twelve section terms, from Start of Spring and Awakening of Insects through to Minor Cold, define the stems-and-branches months; the other twelve middle terms decide leap months.
New moons and leap months are not a simple periodic function. They come from astronomical observation plus the rules fixed by the official calendar in each era, and the calendar has been revised many times. An approximation formula drifts by a day within a few decades. The robust approach is to pre-encode the leap month positions, the long and short month pattern and the solar term dates for every year from 1900 to 2100, then look them up instead of computing them. This tool does exactly that, and before release every one of the 73,000 days was compared day by day against a reference implementation.
| Lunar year | Spring Festival (1st day, 1st month) | Weekday | Stems & branches | Zodiac |
|---|---|---|---|---|
| 2021 | February 12, 2021 | Friday | Xin-Chou | Ox |
| 2022 | February 1, 2022 | Tuesday | Ren-Yin | Tiger |
| 2023 | January 22, 2023 | Sunday | Gui-Mao | Rabbit |
| 2024 | February 10, 2024 | Saturday | Jia-Chen | Dragon |
| 2025 | January 29, 2025 | Wednesday | Yi-Si | Snake |
| 2026 | February 17, 2026 | Tuesday | Bing-Wu | Horse |
| 2027 | February 6, 2027 | Saturday | Ding-Wei | Goat |
| 2028 | January 26, 2028 | Wednesday | Wu-Shen | Monkey |
| 2029 | February 13, 2029 | Tuesday | Ji-You | Rooster |
| 2030 | February 3, 2030 | Sunday | Geng-Xu | Dog |