⭐ Support Time.now: Join our Premium Plan for an ad-free experience! ⭐ Support Us: Go Premium Ad-Free!

Chinese Calendar Calculator

Category: Date-Time Format Converters

Gregorian Date

Enter the Western calendar date

Conversion Mode

Choose conversion direction

Chinese Calendar Result

Converted date and zodiac information
--
Chinese Date
Chinese Year: --
Zodiac Animal: --
Element: --
Yin/Yang: --
🐭
-- --
Gregorian Date: --
Time Format:
Current Time: --:--:--
🐉 Chinese calendar is lunisolar based on moon phases and solar terms

Chinese Calendar Information & Zodiac Guide

What is the Chinese Calendar?

The Chinese calendar is a lunisolar calendar system based on the cycles of the moon and sun. It includes a 12-year cycle of zodiac animals, 24 solar terms, and incorporates leap months to stay synchronized with the solar year. This calendar system has been used for over 4,000 years.

The 12 Zodiac Animals

🐭 Rat - Quick-witted, resourceful, versatile
🐂 Ox - Diligent, dependable, strong
🐅 Tiger - Brave, competitive, unpredictable
🐰 Rabbit - Quiet, elegant, kind
🐉 Dragon - Confident, intelligent, enthusiastic
🐍 Snake - Wise, enigmatic, intuitive
🐎 Horse - Animated, active, energetic
🐐 Goat - Calm, gentle, sympathetic
🐒 Monkey - Sharp, smart, curious
🐓 Rooster - Observant, hardworking, courageous
🐕 Dog - Loyal, responsible, reliable
🐷 Pig - Compassionate, generous, diligent

Five Elements Cycle

🌳 Wood: Growth, creativity, flexibility
🔥 Fire: Energy, passion, transformation
🌍 Earth: Stability, practicality, nurturing
⚪ Metal: Strength, determination, structure
💧 Water: Wisdom, flexibility, communication

Important Notes

• Chinese New Year dates vary each year (late January to mid-February)
• Each zodiac animal has a fixed element and cycles through all five elements
• The 60-year cycle combines 12 animals with 5 elements (12 × 5 = 60)
• Leap months are added approximately every 3 years to align with solar seasons
• 24 solar terms mark agricultural seasons and weather patterns

The Chinese Calendar Calculator converts between Gregorian and Chinese lunar dates using a fixed lookup table of Chinese New Year dates for 2020 through 2030, a 29.5-day average lunar month, and simple arithmetic. It also shows a zodiac animal, element, Yin/Yang label, and a formatted Gregorian string. The timezone dropdown changes only the live clock and the formatted Gregorian output; it does not change the lunar month, day, zodiac, element, or Yin/Yang result.

Key points:

  • Gregorian-to-Chinese mode compares the input date to the matching New Year date and estimates the lunar month and day with 29.5-day months.
  • Chinese-to-Gregorian mode adds an approximate number of days to the New Year date.
  • Zodiac animals cycle every 12 years starting from 1996, a known Rat year.
  • Elements cycle every two years inside a ten-year stem pattern starting from 1984, a known Wood year.
  • Even-numbered years are labeled Yang; odd-numbered years are labeled Yin.
  • The tool does not model leap months, solar terms, or actual lunar phases, so results can be a day or two off.
Jump to a section

Inputs and direction

The page has two radio buttons that pick the conversion direction. Gregorian to Chinese is selected by default.

  • Gregorian to Chinese reads the date from a native date picker and returns an approximate Chinese lunar date plus zodiac details.
  • Chinese to Gregorian reads three dropdowns for Chinese year, month, and day and returns an approximate Gregorian date plus zodiac details.

A timezone dropdown lists IANA-style labels such as UTC, America/New_York, and Asia/Shanghai. The default is UTC. The time format button starts as "12 Hour" and toggles the live clock only. The Chinese year dropdown is filled with years 1900 through 2100. The month dropdown lists the twelve lunar months, and the day dropdown lists days 1 through 30.

For other calendar systems, the Hebrew Calendar Converter and the Gregorian-Lunar Calendar Converter apply their own rule sets.

New Year lookup table

Only eleven New Year dates are hard-coded, covering 2020 through 2030. Each is created with the timezone-less Date(year, monthIndex, day) constructor, which is interpreted in the browser's local zone at that moment.

const chineseNewYearDates = {
  2020: new Date(2020, 0, 25), // Jan 25, 2020
  2021: new Date(2021, 1, 12), // Feb 12, 2021
  2022: new Date(2022, 1, 1),  // Feb 1, 2022
  2023: new Date(2023, 0, 22), // Jan 22, 2023
  2024: new Date(2024, 1, 10), // Feb 10, 2024
  2025: new Date(2025, 0, 29), // Jan 29, 2025
  2026: new Date(2026, 1, 17), // Feb 17, 2026
  2027: new Date(2027, 1, 6),  // Feb 6, 2027
  2028: new Date(2028, 0, 26), // Jan 26, 2028
  2029: new Date(2029, 1, 13), // Feb 13, 2029
  2030: new Date(2030, 1, 3)   // Feb 3, 2030
};

Dates outside 2020-2030 are not in the table. The fallback logic handles that gap, but the output there is far less reliable.

Gregorian-to-Chinese math

The function gregorianToChineseLunar runs five main steps:

  1. Read the year from the input Date.
  2. Look up that year's New Year date.
  3. If the input is before that New Year, subtract one from the Chinese year and use the earlier New Year as the reference. If that earlier year is missing, the fallback is February 1 of the adjusted Chinese year.
  4. Compute dayOfYear as the number of full days between the input date and the reference New Year date, plus one. A Math.max guard keeps it at least 1.
  5. Estimate lunarMonth = clamp(floor((dayOfYear - 1) / 29.5) + 1, 1, 12) and lunarDay = clamp(floor(((dayOfYear - 1) % 29.5) + 1), 1, 30).

All arithmetic happens on timezone-less Date objects, so subtraction is elapsed milliseconds in the browser's local zone. The selected timezone from the dropdown is never passed into this function.

Chinese-to-Gregorian math

The function chineseToGregorianApprox runs these steps:

  1. Look up the selected Chinese year's New Year date. Missing years fall back to February 1 of that year.
  2. Clamp the month to 1-12 and the day to 1-30.
  3. Compute daysFromNewYear = (month - 1) * 29.5 + day - 1.
  4. Add Math.floor(daysFromNewYear) whole days to the New Year date and return the result.

Again, the selected timezone is not used in the calculation. The returned value is a timezone-less Date, and the displayed day depends on the browser's local zone and the formatting options used.

If you need to convert between other calendar systems, tools like the Buddhist Calendar Converter or the Ethiopian Calendar Converter follow their own era offsets and do not share this code.

Zodiac and element rules

The zodiac animal uses 1996 as a Rat anchor and computes ((year - 1996) % 12 + 12) % 12 to keep the index in range. That index picks from Rat, Ox, Tiger, Rabbit, Dragon, Snake, Horse, Goat, Monkey, Rooster, Dog, Pig.

The element uses 1984 as a Wood anchor and computes Math.floor((Math.abs(year - 1984) % 10) / 2) % 5, which picks from Wood, Fire, Earth, Metal, Water. Pairing the 12 animals with the 5 elements creates a 60-year cycle, but the implementation here is a short rule-based mapping rather than a full sixty-year count.

Yin/Yang label

isYangYear(year) is a simple parity test. Even years are labeled Yang and odd years are labeled Yin. This is a code-level simplification, not a traditional stem-branch derivation.

Timezone, formatting and live clock

The timezone dropdown is used in two visible places, and both are display only:

  • updateLiveTime() calls toLocaleTimeString('en-US', { timeZone, hour12 }) once per second and writes to #current-time.
  • formatGregorianDate(date, timezone) calls toLocaleDateString with the selected zone to build the "Gregorian Date" line in the result panel.

Neither path feeds back into gregorianToChineseLunar or chineseToGregorianApprox. The lunar values, zodiac, element, and Yin/Yang label come from timezone-less arithmetic. Changing the zone changes the clock text and the long-formatted date string, not the conversion result. If you need a different calendar conversion entirely, the Buddhist Calendar Converter uses its own era offset.

Blank, malformed and out-of-range inputs

Blank inputs do not quietly do nothing. They trigger a blocking alert and stop the conversion:

  • Gregorian-to-Chinese with an empty date field shows "Please enter a Gregorian date".
  • An unparseable Gregorian value shows "Please enter a valid date".
  • Chinese-to-Gregorian with any of the three dropdowns empty shows "Please select Chinese year, month, and day".

Out-of-range years are blocked at the dropdown because only 1900 through 2100 are listed. In Chinese-to-Gregorian mode, a year outside the 2020-2030 lookup falls back to February 1 of that year. In Gregorian-to-Chinese mode, a date after 2030 with no lookup entry is treated as if the New Year were February 1 of the same year, and a date before 2020 that needs the previous year's New Year also uses that fallback. Negative years, months, or days cannot be entered through the UI; the code still clamps to 1-12 for month and 1-30 for day as a safety net.

Worked examples

The Chinese Calendar Calculator examples below follow the calculator's actual input and output path.

Example 1: Gregorian to Chinese, February 10 2024

Assume the browser's local zone matches UTC for this run so the parsed date aligns with the lookup table.

  1. Input date: 2024-02-10. Lookup finds new Date(2024, 1, 10).
  2. Input is not before New Year, so the Chinese year stays 2024.
  3. dayOfYear = floor((Feb 10 - Feb 10) / 86400000) + 1 = 1.
  4. lunarMonth = clamp(floor((1 - 1) / 29.5) + 1, 1, 12) = 1.
  5. lunarDay = clamp(floor(((1 - 1) % 29.5) + 1), 1, 30) = 1.
  6. Zodiac index = ((2024 - 1996) % 12 + 12) % 12 = 4, which is Dragon.
  7. Element index = floor((abs(2024 - 1984) % 10) / 2) % 5 = floor(40 % 10 / 2) % 5 = 0, which is Wood.
  8. 2024 is even, so the label is Yang.

Displayed result: 1st Month 1, 2024, Dragon, Wood, Yang, and the Gregorian string for February 10 2024 in the selected zone.

Example 2: Chinese to Gregorian, year 2023 month 1 day 30

Assume the browser's local zone again matches UTC.

  1. Lookup finds new Date(2023, 0, 22).
  2. Month and day are already in range.
  3. daysFromNewYear = (1 - 1) * 29.5 + 30 - 1 = 29.
  4. Result = January 22 2023 + 29 days = February 20 2023.
  5. Zodiac index = ((2023 - 1996) % 12 + 12) % 12 = 3, which is Rabbit.
  6. Element index = floor((abs(2023 - 1984) % 10) / 2) % 5 = floor(39 % 10 / 2) % 5 = 1, which is Fire.
  7. 2023 is odd, so the label is Yin.

The returned Date is timezone-less; the long-formatted Gregorian line uses the selected zone and can shift by a day only when the zone pushes the stored point across midnight.

Formulas actually used in the JavaScript
Quantity Formula
Lunar month (G to C) clamp(floor((dayOfYear - 1) / 29.5) + 1, 1, 12)
Lunar day (G to C) clamp(floor(((dayOfYear - 1) % 29.5) + 1), 1, 30)
Days from New Year (C to G) (month - 1) * 29.5 + day - 1, then Math.floor before adding
Zodiac index ((year - 1996) % 12 + 12) % 12
Element index floor((abs(year - 1984) % 10) / 2) % 5
Yin/Yang year % 2 === 0 ? 'Yang' : 'Yin'

Chinese Calendar Calculator Weekday Math

The calculator is a short-rule approximation, not an astronomical almanac. It does not add the annual leap month, does not consult solar terms, and does not model the true synodic month. The code comment itself calls the New Year table "approximate" and uses 29.5 days as a stand-in for the real lunar month. Dates that fall in a leap-month year, near a New Year boundary, or outside 2020-2030 are the cases where the output is most likely to differ from a published Chinese calendar.

The Gregorian side still follows its own rule alongside the tool: the U.S. Naval Observatory states that years divisible by 4 are leap years, except century years, which are leap years only if divisible by 400. The BIPM SI Brochure states that one day equals 24 hours and 86,400 seconds, which is the unit basis for the fixed-millisecond arithmetic in this script. Neither fact makes the lunar estimate more precise; they only describe the surrounding timekeeping frame.

Frequently asked questions about Chinese Calendar Calculator

Why does the Chinese New Year date change every year?

The Chinese calendar is lunisolar, so its months follow the moon while its years track the sun. That mismatch is why the tool ships a New Year table instead of a formula. Because only 2020-2030 are in the table, any other year uses the February 1 fallback and should be treated as a rough guess.

How does the tool decide my zodiac animal?

The code anchors on 1996, a known Rat year, and computes ((year - 1996) % 12 + 12) % 12. That result indexes the twelve-animal list. For 2024 the value is 4, which is Dragon.

Does the timezone dropdown affect the lunar conversion?

No. The dropdown feeds toLocaleTimeString and toLocaleDateString only. The lunar numbers, zodiac, element, and Yin/Yang label come from timezone-less math, so switching zones changes the clock and the printed date string but not the converted values.

Can I convert a date before 1900 or after 2100?

The Chinese year dropdown only lists 1900 through 2100. The Gregorian date picker is freer, but any year outside the 2020-2030 New Year table falls through to the February 1 fallback, so the answer is a coarse estimate, not a calendar-precise one.

Read next: Leap Year Math Accurate Calendar Age Counting