Every year in the traditional Chinese calendar carries a two-character name from the sexagenary cycle: a Heavenly Stem paired with an Earthly Branch. This tool converts any Gregorian year into that name, along with its zodiac animal, its five-element polarity, and where it sits in the 60-year cycle.
How it works
The cycle pairs 10 stems with 12 branches. Anchored on the known fact that 1984 is jiǎ-zǐ (the first position in the cycle), the indices are simple modular arithmetic:
stemIndex = (year − 4) mod 10
branchIndex = (year − 4) mod 12
cyclePos = ((year − 4) mod 60) + 1
The branch index selects both the branch character and its zodiac animal, while the stem index gives the element and yin/yang polarity. Because 10 and 12 have least common multiple 60, the full stem-branch pairing repeats every 60 years.
Example and tips
1984 is jiǎ-zǐ, a Yang Wood Rat year and the start of the cycle. 2025 is yǐ-sì, a Yin Wood Snake year, and 2026 is bǐng-wǔ, a Yang Fire Horse year. Remember that the Chinese year turns at the lunar New Year, not on 1 January — so someone born in late January or early February should confirm that year’s New Year date before assigning their stem-branch and animal.