BaZi Chart

Hidden stems: what each Earthly Branch contains

Quick answer: In BaZi, each of the twelve Earthly Branches "contains" one to three Heavenly Stems, called hidden stems (藏干). The first is the branch's main qi (本氣). Any others are its middle and residual qi. Hidden stems are how a branch adds elements beyond its own to the chart, and they decide whether your Day Master has roots, one of the main tests of strength.

A note on names: the stem 戊 and the branch 午 are both written "Wu" in pinyin. On this page, the branch is always "Wu (Horse)".

The hidden-stem table

This is the table our calculator uses, with the main qi listed first:

The hidden stems of the twelve Earthly Branches, as used by our calculator
BranchAnimalBranch elementMain qiMiddle qiResidual qi
子 ZiRatWater癸 Gui (Water)——
丑 ChouOxEarth己 Ji (Earth)癸 Gui (Water)辛 Xin (Metal)
寅 YinTigerWood甲 Jia (Wood)丙 Bing (Fire)戊 Wu (Earth)
卯 MaoRabbitWood乙 Yi (Wood)——
辰 ChenDragonEarth戊 Wu (Earth)乙 Yi (Wood)癸 Gui (Water)
巳 SiSnakeFire丙 Bing (Fire)庚 Geng (Metal)戊 Wu (Earth)
午 Wu (Horse)HorseFire丁 Ding (Fire)己 Ji (Earth)—
未 WeiGoatEarth己 Ji (Earth)丁 Ding (Fire)乙 Yi (Wood)
申 ShenMonkeyMetal庚 Geng (Metal)壬 Ren (Water)戊 Wu (Earth)
酉 YouRoosterMetal辛 Xin (Metal)——
戌 XuDogEarth戊 Wu (Earth)辛 Xin (Metal)丁 Ding (Fire)
亥 HaiPigWater壬 Ren (Water)甲 Jia (Wood)—

Some patterns are worth noticing:

  • The four mid-season branches, Zi, Mao, Wu (Horse) and You, sit at the heart of each season. Zi, Mao and You hold a single stem; Wu (Horse) holds Ding fire with a little Ji earth.
  • The four Earth branches, Chen, Wei, Xu and Chou, close each season. Each holds a trace of the season that is ending: Chen holds Yi wood at the end of spring, Wei holds Ding fire at the end of summer, Xu holds Xin metal at the end of autumn, and Chou holds Gui water at the end of winter. Classical writers call these branches storehouses (墓庫).
  • The four "starting" branches, Yin, Si, Shen and Hai, open each season. Each holds a stem of the element of the next season: Yin (spring) holds Bing fire, Si (summer) holds Geng metal, Shen (autumn) holds Ren water, and Hai (winter) holds Jia wood.

Where the table comes from

The stems in our table match, branch for branch, the verse on hidden stems in the Yuanhai Ziping (淵海子平), the "Song of what the branches store" (地支藏遁歌):

子宮癸水在其中,丑癸辛金己土同;寅宮甲木兼丙戊,卯宮乙木獨相逢。 辰藏乙戊三分癸,巳中庚金丙戊叢;午宮丁火並己土,未宮乙己丁共宗。 申位庚金壬水戊,酉宮辛金獨豐隆;戌宮辛金及丁戊,亥藏壬甲是真蹤。

"In the palace of Zi lies Gui water; Chou holds Gui, Xin metal and Ji earth together. The Yin palace has Jia wood along with Bing and Wu; in the Mao palace, Yi wood is met alone. Chen stores Yi and Wu, with a share of Gui; in Si, Geng metal gathers with Bing and Wu. The Horse palace has Ding fire together with Ji earth; in Wei, Yi, Ji and Ding share one source. The Shen position has Geng metal, Ren water and Wu; the You palace has Xin metal alone, rich and full. The Xu palace has Xin metal with Ding and Wu; Hai stores Ren and Jia, and that is the true trace." provisional translation

— Yuanhai Ziping, 地支藏遁歌. Text as transcribed on Wikisource, which gives it in simplified characters and marks the transcription as of unknown source; quoted here in traditional characters. Translation: Editorial team.

The verse lists the stems in whatever order fits the rhyme, so it doesn't tell you which one is the main qi. Our ordering (main, middle, residual) follows common practice. The same table is used by the open-source calendar library lunar-javascript, which we use in our tests as an independent check.

Our weighting is a convention

To count elements, our calculator gives each branch 1 point and divides it among its hidden stems:

Hidden stems in the branch Split
One (Zi, Mao, You) 1
Two (Wu (Horse), Hai) 0.7 / 0.3
Three (all others) 0.6 / 0.3 / 0.1

These numbers are ours, not a classical rule. They express the general idea that the main qi dominates, the middle qi is secondary and the residual qi is a trace. Other calculators use other percentages, or count only the main qi. The month branch gets three times the weight in our strength score, because it represents the season. For the full method, see How we calculate your chart.

Where schools differ

Not every classical text agrees with the Yuanhai Ziping verse. The Sanming Tonghui (三命通會) has a chapter called "On the human element in charge" (論人元司事), which divides each month among stems by number of days instead of listing a fixed set. As transcribed on Wikisource, it includes:

Month branch Sanming Tonghui (Wikisource transcription) Our table (Yuanhai Ziping)
寅 Yin Gen earth (艮土) 5 days · Bing fire 5 days · Jia wood 20 days Jia, Bing, Wu
辰 Chen Yi wood 7 days · Ren water 5 days · Wu earth 18 days Wu, Yi, Gui
丑 Chou Gui water 7 days · Geng metal 5 days · Ji earth 18 days Ji, Gui, Xin
子 Zi Ren water 7 days · Gui water 23 days Gui only

Two differences stand out. The approach is different: days in charge versus a fixed list. And for some branches the content is different: Ren rather than Gui in Chen, Geng rather than Xin in Chou, and Ren as well as Gui in Zi. We have checked these readings only against the Wikisource transcription, not a printed edition, so treat the exact characters with caution.

The practical lesson is simple. If two calculators show different hidden stems, both may be following a real tradition. Ours follows the Yuanhai Ziping verse and says so.

Roots: why hidden stems matter for strength

A Day Master is said to be "rooted" when its own element appears among the hidden stems of the branches. Roots are one of the three main tests of whether a Day Master is weak or strong, alongside the season and the visible stems. Ziping Zhenquan (子平真詮) ranks roots above visible support:

天干得一比肩,不如得支中一墓庫……干多不如根重,理固然也。

"Gaining one companion among the stems is not as good as gaining one storehouse among the branches… Many stems are not as good as deep roots, and this is simply how it is." provisional translation — Shen Xiaozhan, Ziping Zhenquan, "論十干得時不旺失時不弱" (ctext.org; 天干 and 干多 corrected from transcription errors). Translation: Editorial team.

For example, a Yi wood Day Master is rooted most firmly in Mao (Yi as main qi), and more lightly in Chen (Yi as middle qi) and Wei (Yi as residual qi). Some readers also count Yin and Hai, which hold Jia, Yi's yang partner. A Geng metal Day Master finds roots in Shen (main qi), in Si (middle qi) and in the metal stored in Chou and Xu.

Hidden stems carry Ten Gods too

On our chart, each hidden stem is labelled with its Ten God relative to your Day Master, just like the visible stems. A Jia wood Day Master with the branch Si, for instance, sees Bing as Eating God, Geng as Seven Killings and Wu as Indirect Wealth. Readers use these hidden relationships to judge what a branch brings to the chart, beyond its surface element. The Ten Gods names follow the Yuanhai Ziping. See What are the Ten Gods? and How we calculate your chart for the full list.

Common misconceptions

  • "Hidden stems are your secret personality." Some modern guides read them that way. Classically they are about how much of each element a branch contributes and whether the Day Master is rooted. Any personality reading is interpretation.
  • "Every branch has three hidden stems." Zi, Mao and You have one; Wu (Horse) and Hai have two; the rest have three.
  • "The branch's animal decides its element." The branch's element and its main qi decide it. The animal is a label.
  • "The residual qi doesn't matter." It carries little weight in counts, but for roots even a small hidden stem of the Day Master's element is noted. Other methods may weight it differently from our 0.1.

Frequently asked questions

Which branches have three hidden stems?

Chou, Yin, Chen, Si, Wei, Shen and Xu. Wu (Horse) and Hai have two. Zi, Mao and You have one.

Why do calculators show different hidden stems?

Classical texts don't all agree. Our table follows the Yuanhai Ziping verse. The Sanming Tonghui, as transcribed online, assigns stems to each month by days and lists some different stems. Calculators also differ in how they weight hidden stems.

Does the order of hidden stems matter?

Yes. The main qi (listed first) is the branch's dominant element and gets the most weight. The middle and residual qi count for less. The order affects element counts and strength, not the list of stems itself.

What is the main qi of a branch?

It is the hidden stem that shares the branch's own element. In Yin (Tiger, a Wood branch) it is Jia wood. In Xu (Dog, an Earth branch) it is Wu earth.


See the hidden stems in your own chart: Calculate your BaZi chart. Every pillar shows its hidden stems with their Ten Gods labels, plus a weighted Five Elements count.

Related: Learn BaZi · Ten Gods · Five Elements

Sources

Translations: Editorial team.

BaZi is a traditional Chinese cultural practice. This page describes what classical texts and practitioners say; it is for reflection, education and entertainment, and is not medical, legal, financial or psychological advice. Different schools may read the same chart differently.

Last updated: 2026-10-02