BaZi hidden stems (藏干, cang gan) are the one to three heavenly stems stored inside each earthly branch of your chart. Zi, Mao and You hold a single stem, the other nine branches hold two or three, and every one of them counts when a calculator works out the five-element percentages of your chart.
If you have ever looked at a chart whose top row has no Metal at all while the calculator still reports Metal at 7.5%, this layer is where that number comes from. Below you'll find what each of the 12 branches holds, how SPYLL's calculator weights them, and one chart worked through from pillars to percentages. If pillars, stems and branches are still new to you, start with the beginner's guide to BaZi.
Why earthly branches carry other stems inside
Every BaZi pillar has two floors: a heavenly stem on top that carries one element, and an earthly branch below that stands for one month of the year, and a month rarely holds a single pure element. Take Chen (辰, Dragon), the last month of spring, which still carries Wood left over from the Mao month before it. Chen is also where Water is stored, so it holds Wu (戊, Yang Earth), Gui (癸, Yin Water) and Yi (乙, Yin Wood).
The tradition records these contents in the dizhi canggan table (地支藏干, stems stored in the earthly branches), and each stem inside a branch behaves like any heavenly stem, with its own element, its own Yin or Yang, and its own relationship to your Day Master, which BaZi labels with the Ten Gods. The difference is that these stems never appear on the top row, so anyone who counts only the eight visible characters misses part of the chart.
Main qi, middle qi and residual qi
Inside one branch the stems are not equally strong, and each position has a name. The first is the main qi (本气, ben qi), the strongest stem and usually the same element as the branch, like Ji (己, Yin Earth) inside Chou (丑, Ox). The second is the middle qi (中气, zhong qi), and in the four Earth branches this slot holds the element that branch stores, so Chen stores Water, Xu stores Fire, Chou stores Metal and Wei stores Wood.
The third layer is the residual qi (余气, yu qi), a faint trace that in the Earth branches comes from the month before, such as the Yi inside Chen carried over from the Mao (卯, Rabbit) month. Zi, Mao and You hold only a main qi, Wu (午, Horse) and Hai (亥, Pig) hold two layers, and the remaining seven branches hold three.
Yin (寅, Tiger), Si (巳, Snake) and Shen (申, Monkey) each carry Wu (戊, Yang Earth) as their residual qi, and Wu (午, Horse) carries Ji as its middle qi, so with the four Earth branches added, Earth sits inside eight of the twelve branches. That count of eight is why the way you weight hidden stems changes the final percentages so much.
BaZi hidden stems table for all 12 earthly branches
This table matches the one SPYLL's engine uses. The last column shows how the calculator splits a branch's 1 point across the stems inside it, main qi first.
| Branch (animal) | Main qi | Middle qi | Residual qi | SPYLL weight |
|---|---|---|---|---|
| Zi 子 (Rat) | Gui 癸, Water | - | - | 1 |
| Chou 丑 (Ox) | Ji 己, Earth | Xin 辛, Metal | Gui 癸, Water | 0.6 / 0.3 / 0.1 |
| Yin 寅 (Tiger) | Jia 甲, Wood | Bing 丙, Fire | Wu 戊, Earth | 0.6 / 0.3 / 0.1 |
| Mao 卯 (Rabbit) | Yi 乙, Wood | - | - | 1 |
| Chen 辰 (Dragon) | Wu 戊, Earth | Gui 癸, Water | Yi 乙, Wood | 0.6 / 0.3 / 0.1 |
| Si 巳 (Snake) | Bing 丙, Fire | Geng 庚, Metal | Wu 戊, Earth | 0.6 / 0.3 / 0.1 |
| Wu 午 (Horse) | Ding 丁, Fire | Ji 己, Earth | - | 0.7 / 0.3 |
| Wei 未 (Goat) | Ji 己, Earth | Yi 乙, Wood | Ding 丁, Fire | 0.6 / 0.3 / 0.1 |
| Shen 申 (Monkey) | Geng 庚, Metal | Ren 壬, Water | Wu 戊, Earth | 0.6 / 0.3 / 0.1 |
| You 酉 (Rooster) | Xin 辛, Metal | - | - | 1 |
| Xu 戌 (Dog) | Wu 戊, Earth | Ding 丁, Fire | Xin 辛, Metal | 0.6 / 0.3 / 0.1 |
| Hai 亥 (Pig) | Ren 壬, Water | Jia 甲, Wood | - | 0.7 / 0.3 |
Five stems are Yang (Jia, Bing, Wu, Geng, Ren) and five are Yin (Yi, Ding, Ji, Xin, Gui). Wu 戊 in the stem columns is Yang Earth, while Wu 午 in the branch column is the Horse, so check the Chinese character when the romanization looks the same.
How hidden stems change the element percentages in your chart
SPYLL's calculator gives each heavenly stem 1 point and splits each branch's 1 point across its hidden stems. A branch with one stem gives it the full point, a branch with two splits it 0.7 and 0.3, and a branch with three splits it 0.6, 0.3 and 0.1. A complete pillar is therefore worth 2 points, four pillars are worth 8, and each element's percentage is its points divided by that total.
The weights exist because a flat count, one point for every hidden stem, hands Earth the win on paper, since Earth sits inside eight branches. When I tested that flat count on a sample of charts spanning a decade of births, Earth averaged 27.5% of a chart against Water's 15.1%, Earth came out as the dominant element for 38% of people, and Water was labelled the weakest for 48%. That many labels came from the counting method, which is why SPYLL moved to weighting by qi layer.
Worked example: born 4 February 2000 at 10:00 in Jakarta
This chart has Ji Mao (己卯) as the year pillar, Ding Chou (丁丑) as the month pillar, Ren Chen (壬辰) as the day pillar and Yi Si (乙巳) as the hour pillar, with a Ren, Yang Water Day Master. The year pillar is still Ji Mao because Li Chun, the start of the BaZi year, arrived at 19:40 Jakarta time (WIB) later that same day. Here is the count, row by row:
| Source | Wood | Fire | Earth | Metal | Water |
|---|---|---|---|---|---|
| Heavenly stems: Ji, Ding, Ren, Yi | 1 | 1 | 1 | 0 | 1 |
| Mao 卯: Yi | 1 | 0 | 0 | 0 | 0 |
| Chou 丑: Ji, Xin, Gui | 0 | 0 | 0.6 | 0.3 | 0.1 |
| Chen 辰: Wu, Gui, Yi | 0.1 | 0 | 0.6 | 0 | 0.3 |
| Si 巳: Bing, Geng, Wu | 0 | 0.6 | 0.1 | 0.3 | 0 |
| Total of 8 points | 2.1 (26.3%) | 1.6 (20%) | 2.3 (28.8%) | 0.6 (7.5%) | 1.4 (17.5%) |
All the Metal in this chart lives inside branches, as the Xin in Chou and the Geng in Si, and both sit in the middle qi slot. Compare four ways of counting the same chart:
| Element | Stems only | Branch read as one element | Flat hidden-stem count | SPYLL weights |
|---|---|---|---|---|
| Wood | 25% | 25% | 21.4% | 26.3% |
| Fire | 25% | 25% | 14.3% | 20% |
| Earth | 25% | 37.5% | 28.6% | 28.8% |
| Metal | 0% | 0% | 14.3% | 7.5% |
| Water | 25% | 12.5% | 21.4% | 17.5% |
Read only the stems and Metal disappears while the other four look perfectly balanced. Read each branch as its animal's element and Earth jumps to 37.5% while Water drops to 12.5%, and give every hidden stem one flat point and Metal climbs to 14.3%, close to double the 7.5% you get once the layers are weighted. What each element means and how they feed each other is covered in the 5 elements in BaZi.
Hidden stems as roots for the Day Master
Hidden stems also tell you whether the Day Master has roots, meaning stems of its own element stored in the branches. In the example, Ren sits on Chen, which holds Gui (Yin Water) as its middle qi, so this Day Master is rooted in its own day branch, and Chen is also the Water storage branch, a topic covered at length in wealth storage in BaZi.
The Gui inside Chou is only residual qi, and SPYLL's engine counts a branch as a root only when the Day Master's element sits in its main or middle qi. Chou still adds 0.1 points of Water to the percentages, while the root count takes only Chen.
SPYLL's calculator weighs all four pillars equally for the element percentages, whereas its reading of Day Master strength also weighs the birth season and gives the month branch the most weight, so the two figures can point in different directions. The 7.5% Metal matters for Ren too, because Metal produces Water, so this Day Master has support even though that support is small and hidden. What each Day Master is like, Ren included, is in the 10 Day Masters directory.
Common mix-ups about hidden stems
The zodiac animal's element is the whole branch
The element people attach to an animal sign is the main qi, so the Ox reads as Earth. Chou itself holds three stems, Ji (Earth), Xin (Metal) and Gui (Water), so someone with several Ox branches carries more Metal and Water than the sign's name suggests.
A different order in another app means one of them is wrong
Many tables list Chou as Ji, Gui, Xin, while SPYLL lists it as Ji, Xin, Gui. SPYLL puts the element an Earth branch stores in the middle qi and the leftover from the previous month in the residual qi, so Xin (the Metal that Chou stores) gets 0.3 and Gui (left over from the Zi month) gets 0.1. The contents match and only the weights swap, which is why Metal and Water percentages can differ slightly between calculators.
Hidden stems are a hidden fate
The BaZi tradition reads hidden stems as a quieter layer that shows less on the surface and tends to come forward when something triggers it, such as a clash with another branch or a luck pillar carrying the same element. That layer describes a pattern you can check against your own experience, and the decisions about your life stay yours.
FAQ
Do hidden stems matter as much as heavenly stems?
In SPYLL's count, one branch is worth the same as one heavenly stem: 1 point. The branch's point is split across two or three stems, so a single hidden stem is worth at most 0.7, except in Zi, Mao and You, which hold one stem that takes the full point.
What does it mean if my Eating God only appears in hidden stems?
This came up in the comments of an Indonesian BaZi account on Threads, where a reader wrote "Punya saya EG-nya di hidden stem semua 😂", roughly "my EG is all in hidden stems". An Eating God (食神, Shi Shen) that lives only in branches still counts at its layer's weight, and the tradition reads it as a talent that shows less often and comes out when something triggers it. The Eating God profile is on The Artist (Shi Shen) page.
Why do other calculators give different element percentages?
The three most common causes are the order of middle and residual qi in the Earth branches, the weighting used (flat or by layer), and whether hidden stems are counted at all. The 4 February 2000 example above shows Metal coming out at 0%, 7.5% or 14.3% from the same chart depending on the method.
What happens to hidden stems if I don't know my birth time?
Without a birth time the hour pillar is left out, so SPYLL's calculator adds up three pillars for a total of 6 points and the hour branch's stems drop out. Why the hour changes a chart's reading is explained in why your birth hour matters in BaZi.
If you want to see which Metal or Water is tucked away in your own chart, enter your birth date, time and city in the SPYLL BaZi calculator and match each pillar's branch against the table above. An element with a small but nonzero percentage usually comes from a middle or residual qi. The order for reading the rest of the chart, from pillars to the element card, is in how to read your BaZi calculator chart.
Akhmad Erlangga
· Founder & Framework ArchitectSystems builder focused on personality analytics and self-discovery frameworks. He synthesizes established psychometric models and behavioral dynamics to create structured reflection tools at Spyll.

