Dihé 地和 Request a diagnosis

Blog / Calendar and time, 7 min read

Heavenly stems and earthly branches

The two-wheel code of the Chinese calendar: ten stems and twelve branches that combine into 60 pairs, found on every day of the almanac.

In short
  • The Chinese calendar combines two series: ten heavenly stems (天干) and twelve earthly branches (地支, the animals).
  • The pairs combine a stem and a branch of the same polarity: there are 60, which gives the cycle of 60 days or 60 years.
  • Every year, month, day and hour carries a pair: this is the “pillar” the almanac shows.

A two-wheel code

Imagine two cogwheels, one with ten teeth and the other with twelve, turning together: at each notch you read a combination. That is exactly the principle of the Chinese calendar. Instead of numbering years or days continuously, ancient China named them with a pair of two characters, one taken from a series of ten, the other from a series of twelve.

The system is old: it is found carved on the oracle bones of the Shang dynasty, more than three thousand years ago, originally to count days. It later spread to months, years and hours, and is still used in the almanac and in feng shui calculations.

The ten heavenly stems

The ten stems (tiān gān) are a series of ten signs. They go in twos and correspond to the five elements: for each element, a yang stem then a yin stem.

StemCharacterElementPolarity
Jia甲Woodyang
Yi乙Woodyin
Bing丙Fireyang
Ding丁Fireyin
Wu戊Earthyang
Ji己Earthyin
Geng庚Metalyang
Xin辛Metalyin
Ren壬Wateryang
Gui癸Wateryin

The order is that of the generating cycle: Wood, Fire, Earth, Metal, Water. These ten signs reappear in the 24 mountains of the compass, where eight of them serve as markers.

The ten heavenly stemsA wheel of ten sectors: Jia, Yi, Bing, Ding, Wu, Ji, Geng, Xin, Ren, Gui. 甲 乙 丙 丁 戊 己 庚 辛 壬 癸 十干
The ten heavenly stems, from Jia to Gui. They go in pairs: two per element.

The twelve earthly branches

The twelve branches (dì zhī) are the signs whose popular names are the zodiac animals, presented in the article on the twelve animals. They too alternate yang and yin: Zi (Rat) is yang, Chou (Ox) yin, Yin (Tiger) yang, and so on. They are used to count years, months, days and hours. They also correspond to the elements: Zi and Hai to Water, Yin and Mao to Wood, Si and Wu to Fire, Shen and You to Metal, Chen, Xu, Chou and Wei to Earth.

Why 60 pairs and not 120?

A naive calculation would give 10 × 12 = 120 combinations. Yet the Chinese cycle has only 60. The reason is a simple rule: a yang stem is only paired with a yang branch, and a yin stem with a yin branch. Jia (yang) goes with Zi (yang), never with Chou (yin). This rule halves the number of pairs.

You get the sequence by moving the two series forward together: Jia-Zi, Yi-Chou, Bing-Yin, Ding-Mao, Wu-Chen, Ji-Si, Geng-Wu, Xin-Wei, Ren-Shen, Gui-You. At the eleventh pair, the stem series comes back to Jia while the branches carry on: Jia-Xu, Yi-Hai, Bing-Zi, and so on, up to the sixtieth pair, Gui-Hai. The next one is Jia-Zi again, and the cycle starts over.

Did you know? The first pair, Jia-Zi (甲子), gave its name to the whole cycle: people speak of the “jiazi cycle”. Sixty years is the age of a “great loop” in the tradition: celebrating your sixtieth birthday means coming back to the pair of your birth.

Reading a pair: the pillar

A pair of two characters applied to a moment in time is called a pillar. Four pillars name an instant: the year, the month, the day and the hour. Since each has two characters, you get eight signs, hence the Chinese name of this system, bazi (八字), “eight characters”, widely used for birth astrology.

Some examples of years, according to the tool's calculation:

And two examples of days the almanac shows in November 2026: 2 November is a Geng Chen day (庚辰), yang Metal and Dragon; 7 November is a Yi You day (乙酉), yin Wood and Rooster. In both cases, stem and branch do have the same polarity.

What the day's pillar says in the almanac

On a day's sheet, two pieces of information come from the pillar. The animal of the day (the branch) is used to spot broken days, allies and opposites. The element of the day (that of the stem) links the day to the five elements: 7 November 2026 is a yin Wood day, which with the Rooster (Metal) reads as Wood meeting Metal.

The cycle of days is a strict cycle of 60, which has been turning without interruption for more than three thousand years. Calculating a day's pillar therefore means counting the number of days since a reference date, modulo 60: this is what the tool does, with a known day as its reference.

Try it with the tool

In the almanac, open a day's sheet and spot the animal and the element at the top of the page. Move forward day by day: the animal comes back every 12 days, the stem every 10, and the full pair every 60.

Online almanac: a day's sheet with its animal and its element

Open the almanac

The hours too

Each two-hour slot also carries a branch (from Zi, 11 pm to 1 am, to Hai, 9 pm to 11 pm) and receives a stem according to the day's stem, by a rule of correspondence. This detail is only used in birth calculations; for the feng shui of a home, the pillars of the year, month and day are mostly used.

What to remember

Further reading

This article is educational. It presents a traditional dating system without guaranteeing any result. For any decision about health, law or finance, consult a qualified professional.