Lunar Calendar Converter

What this lunar calendar converter offers

Two-way conversion

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.

Automatic leap months

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.

Full stems and branches

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.

24 solar terms

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.

Lunar festivals

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.

Festival countdown

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.

How to use the lunar calendar converter

1

Choose a direction

The two tabs at the top switch between Gregorian to lunar and lunar to Gregorian. Each panel keeps its own selection.

2

Gregorian to lunar

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.

3

Lunar to Gregorian

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.

4

Check the countdown and the table

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.

Where a lunar date converter helps

Lunar birthdays

When the family celebrates a birthday by the lunar date, find out which Gregorian day it lands on this year before booking anything.

Records and paperwork

Old registers, genealogies and deeds often record lunar dates. Convert them one by one when entering data into a modern system.

Choosing an auspicious day

Wedding and moving dates are often picked against both calendars while avoiding specific terms and festivals, so having both dates side by side helps.

History and genealogy

Reconstructing a chronology from inscriptions and family records means turning stems-and-branches years and lunar dates into exact Gregorian days.

Seasonal marketing

Plan Spring Festival, Mid-Autumn and Dragon Boat promotions by first converting the festival to its Gregorian date, then working back to stocking deadlines.

Teaching and explainers

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.

How the Chinese calendar actually works

Why it is a lunisolar calendar

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.

How a leap month is chosen

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.

Where the zodiac boundary really sits

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.

Why solar terms line up with Gregorian dates

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.

Why a lookup table beats a formula

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.

Spring Festival dates, 2021 to 2030

Lunar year Spring Festival (1st day, 1st month) Weekday Stems & branches Zodiac
2021February 12, 2021FridayXin-ChouOx
2022February 1, 2022TuesdayRen-YinTiger
2023January 22, 2023SundayGui-MaoRabbit
2024February 10, 2024SaturdayJia-ChenDragon
2025January 29, 2025WednesdayYi-SiSnake
2026February 17, 2026TuesdayBing-WuHorse
2027February 6, 2027SaturdayDing-WeiGoat
2028January 26, 2028WednesdayWu-ShenMonkey
2029February 13, 2029TuesdayJi-YouRooster
2030February 3, 2030SundayGeng-XuDog

Frequently asked questions

Q: Is the Chinese lunar calendar the same as a lunar calendar?
A: Not exactly. A pure lunar calendar follows only the moon and drifts against the seasons. The Chinese calendar is lunisolar: months follow the new moon, but leap months keep the average year close to the tropical year, which is why the new year stays in late winter.
Q: Why do some years have a leap month?
A: Twelve lunar months total about 354 days, roughly 11 short of a tropical year. The month holding the winter solstice is month 11, and if 13 new moons fall between two month 11s, the first month without a middle term becomes the leap month.
Q: How do people born in a leap month celebrate their birthday?
A: Some celebrate only in years with that leap month, some use the ordinary month of the same number, and some just use the Gregorian date. Legally the birth date is always the Gregorian one. This tool shows both so you can compare.
Q: Does the zodiac change at the Spring Festival or at the Start of Spring?
A: Both conventions exist. Folk and holiday practice switch on the first day of the lunar year, while stems-and-branches astrology switches the year pillar at the Start of Spring, so the days between them disagree by one animal. This tool computes the year pillar from the Start of Spring and the zodiac from the lunar new year.
Q: How are the 24 solar terms determined?
A: By dividing the ecliptic into 24 arcs of 15 degrees, so each term falls on nearly the same Gregorian date every year. Twelve section terms define the stems-and-branches months and twelve middle terms decide leap months. Term dates here come from a year-by-year table.
Q: What date range is supported?
A: 31 January 1900 to 31 December 2100. The lower bound is the first day of lunar year 1900, which is where the data table begins; anything outside the window reports as unsupported.
Q: Is anything uploaded when I convert?
A: No. The lunar and solar term tables ship inside the local script, so all conversion runs in your browser. Nothing is uploaded and the tool works offline.