How a Zi Wei Dou Shu Chart Is Built
A Zi Wei Dou Shu (ZWDS) chart is cast in a fixed order from five birth details: the lunar year's stem and branch, the lunar month, the day, the two-hour period of birth and your gender. The Life Palace comes first, then the other palaces, their stems and the five-element number, then the Emperor star and the other stars, and last the decade phases and the age phase.
By Sheng Pin Kai·Last updated
What casting needs
Casting takes five details:
- the lunar year's stem and branch;
- the lunar month, 1 to 12;
- the day of the lunar month, 1 to 30;
- the hour's branch: the day divides into twelve two-hour periods, each named by a branch, beginning with Zi (子) from 11 pm to 1 am;
- your gender.
A Four Pillars of Destiny (BaZi) chart is also cast from a year's stem and branch and an hour's branch. The month and the day enter a ZWDS chart as plain lunar numbers, not as pillars.
A birth in a leap month (闰月) is cast as the following month: a leap fourth month counts as the fifth.
The ten stems, in order, are Jia (甲), Yi (乙), Bing (丙), Ding (丁), Wu (戊), Ji (己), Geng (庚), Xin (辛), Ren (壬) and Gui (癸). The twelve branches, in forward order, are Zi, Chou (丑), Yin (寅), Mao (卯), Chen (辰), Si (巳), Wu (午), Wei (未), Shen (申), You (酉), Xu (戌) and Hai (亥). Each branch holds one palace on the chart; forward runs clockwise round the chart, backward the other way.
Example: a man born in a Jia Zi year, in the third lunar month, on day 15, in the Chen hour.
Finding the Life Palace and Body Palace
A chart has twelve palaces, one on each branch. The Life Palace (命宫, Ming Gong) is placed first, from the birth month and hour:
- Start at Yin as the first month and count forward one palace per month to your birth month.
- From that palace, count backward one palace per two-hour period, starting with the Zi hour, to your birth hour. That palace is the Life Palace.
The Body Palace (身宫, Shen Gong) is counted from the same month palace, forward instead of backward.
In the example, the third month lands on Chen. Counting backward from Chen, the Zi, Chou, Yin, Mao and Chen hours land on Chen, Mao, Yin, Chou and Zi, so the Life Palace is on Zi. Counted forward, the Body Palace is on Shen.
Laying out the twelve palaces
From the Life Palace, the other eleven palaces run backward, one per branch, in a fixed order: Siblings (兄弟宫, Xiong Di Gong), Marriage (夫妻宫, Fu Qi Gong), Children (子女宫, Zi Nu Gong), Wealth (财帛宫, Cai Bo Gong), Health (疾厄宫, Ji E Gong), Travel (迁移宫, Qian Yi Gong), Friends (交友宫, Jiao You Gong), Career (官禄宫, Guan Lu Gong), Property (田宅宫, Tian Zhai Gong), Fortune (福德宫, Fu De Gong) and Parents (父母宫, Fu Mu Gong). The order and the direction are the same for men and women, and the whole ring turns with the Life Palace.
In the example, with the Life Palace on Zi, Siblings falls on Hai, Wealth on Shen and Parents on Chou.
Setting the palace stems
Each palace also carries a stem. The year stem fixes the stem on the Yin palace; from there the stems run forward in their order, from Gui round to Jia again, through to the Chou palace.
In the example, a Jia year puts Bing on Yin, and counting forward, the Life Palace on Zi also carries Bing.
| Year stem | Stem on 寅 |
|---|---|
| 甲 or 己 | 丙 |
| 乙 or 庚 | 戊 |
| 丙 or 辛 | 庚 |
| 丁 or 壬 | 壬 |
| 戊 or 癸 | 甲 |
Finding the five-element number
The five-element number comes from the year stem and the Life Palace's branch. It is one of Water 2 (水二局), Wood 3 (木三局), Metal 4 (金四局), Earth 5 (土五局) and Fire 6 (火六局). It serves the casting only: several stars are placed from it, and it sets the age at which the first decade phase begins. It carries no meaning of its own.
In the example, a Jia year with the Life Palace on Zi gives Water 2.
Rows give the year stem; columns give the Life Palace's branch.
| Year stem / Life Palace | 子, 丑 | 寅, 卯 | 辰, 巳 | 午, 未 | 申, 酉 | 戌, 亥 |
|---|---|---|---|---|---|---|
| 甲 or 己 | Water 2 | Fire 6 | Wood 3 | Earth 5 | Metal 4 | Fire 6 |
| 乙 or 庚 | Fire 6 | Earth 5 | Metal 4 | Wood 3 | Water 2 | Earth 5 |
| 丙 or 辛 | Earth 5 | Wood 3 | Water 2 | Metal 4 | Fire 6 | Wood 3 |
| 丁 or 壬 | Wood 3 | Metal 4 | Fire 6 | Water 2 | Earth 5 | Metal 4 |
| 戊 or 癸 | Metal 4 | Water 2 | Earth 5 | Fire 6 | Wood 3 | Water 2 |
Placing the Emperor star
The Emperor (紫微, Zi Wei) is placed from the five-element number and the day of the month. The other thirteen main stars all follow from the Emperor's palace, so its twelve possible palaces give twelve basic layouts of the main stars.
In the example, Water 2 and day 15 put the Emperor on Shen.
| Day | Water 2 | Wood 3 | Metal 4 | Earth 5 | Fire 6 |
|---|---|---|---|---|---|
| 1 | 丑 | 辰 | 亥 | 午 | 酉 |
| 2 | 寅 | 丑 | 辰 | 亥 | 午 |
| 3 | 寅 | 寅 | 丑 | 辰 | 亥 |
| 4 | 卯 | 巳 | 寅 | 丑 | 辰 |
| 5 | 卯 | 寅 | 子 | 寅 | 丑 |
| 6 | 辰 | 卯 | 巳 | 未 | 寅 |
| 7 | 辰 | 午 | 寅 | 子 | 戌 |
| 8 | 巳 | 卯 | 卯 | 巳 | 未 |
| 9 | 巳 | 辰 | 丑 | 寅 | 子 |
| 10 | 午 | 未 | 午 | 卯 | 巳 |
| 11 | 午 | 辰 | 卯 | 申 | 寅 |
| 12 | 未 | 巳 | 辰 | 丑 | 卯 |
| 13 | 未 | 申 | 寅 | 午 | 亥 |
| 14 | 申 | 巳 | 未 | 卯 | 申 |
| 15 | 申 | 午 | 辰 | 辰 | 丑 |
| 16 | 酉 | 酉 | 巳 | 酉 | 午 |
| 17 | 酉 | 午 | 卯 | 寅 | 卯 |
| 18 | 戌 | 未 | 申 | 未 | 辰 |
| 19 | 戌 | 戌 | 巳 | 辰 | 子 |
| 20 | 亥 | 未 | 午 | 巳 | 酉 |
| 21 | 亥 | 申 | 辰 | 戌 | 寅 |
| 22 | 子 | 亥 | 酉 | 卯 | 未 |
| 23 | 子 | 申 | 午 | 申 | 辰 |
| 24 | 丑 | 酉 | 未 | 巳 | 巳 |
| 25 | 丑 | 子 | 巳 | 午 | 丑 |
| 26 | 寅 | 酉 | 戌 | 亥 | 戌 |
| 27 | 寅 | 戌 | 未 | 辰 | 卯 |
| 28 | 卯 | 丑 | 申 | 酉 | 申 |
| 29 | 卯 | 戌 | 午 | 午 | 巳 |
| 30 | 辰 | 亥 | 亥 | 未 | 午 |
Placing the Emperor series and the Duke
Six main stars are placed from the Emperor's palace: the Advisor (天机, Tian Ji), Sun (太阳, Tai Yang), Treasurer (武曲, Wu Qu), Prince (天同, Tian Tong), Envoy (廉贞, Lian Zhen) and Duke (天府, Tian Fu).
In the example, the Emperor on Shen puts the Duke on Shen as well, the Advisor on Wei and the Envoy on Zi.
| Emperor | Advisor | Sun | Treasurer | Prince | Envoy | Duke |
|---|---|---|---|---|---|---|
| 子 | 亥 | 酉 | 申 | 未 | 辰 | 辰 |
| 丑 | 子 | 戌 | 酉 | 申 | 巳 | 卯 |
| 寅 | 丑 | 亥 | 戌 | 酉 | 午 | 寅 |
| 卯 | 寅 | 子 | 亥 | 戌 | 未 | 丑 |
| 辰 | 卯 | 丑 | 子 | 亥 | 申 | 子 |
| 巳 | 辰 | 寅 | 丑 | 子 | 酉 | 亥 |
| 午 | 巳 | 卯 | 寅 | 丑 | 戌 | 戌 |
| 未 | 午 | 辰 | 卯 | 寅 | 亥 | 酉 |
| 申 | 未 | 巳 | 辰 | 卯 | 子 | 申 |
| 酉 | 申 | 午 | 巳 | 辰 | 丑 | 未 |
| 戌 | 酉 | 未 | 午 | 巳 | 寅 | 午 |
| 亥 | 戌 | 申 | 未 | 午 | 卯 | 巳 |
Placing the Duke series
The remaining seven main stars are placed from the Duke's palace: the Moon (太阴, Tai Yin), Patron (贪狼, Tan Lang), Courtier (巨门, Ju Men), Minister (天相, Tian Xiang), Elder (天梁, Tian Liang), Marshal (七杀, Qi Sha) and Army (破军, Po Jun).
| Duke | Moon | Patron | Courtier | Minister | Elder | Marshal | Army |
|---|---|---|---|---|---|---|---|
| 子 | 丑 | 寅 | 卯 | 辰 | 巳 | 午 | 戌 |
| 丑 | 寅 | 卯 | 辰 | 巳 | 午 | 未 | 亥 |
| 寅 | 卯 | 辰 | 巳 | 午 | 未 | 申 | 子 |
| 卯 | 辰 | 巳 | 午 | 未 | 申 | 酉 | 丑 |
| 辰 | 巳 | 午 | 未 | 申 | 酉 | 戌 | 寅 |
| 巳 | 午 | 未 | 申 | 酉 | 戌 | 亥 | 卯 |
| 午 | 未 | 申 | 酉 | 戌 | 亥 | 子 | 辰 |
| 未 | 申 | 酉 | 戌 | 亥 | 子 | 丑 | 巳 |
| 申 | 酉 | 戌 | 亥 | 子 | 丑 | 寅 | 午 |
| 酉 | 戌 | 亥 | 子 | 丑 | 寅 | 卯 | 未 |
| 戌 | 亥 | 子 | 丑 | 寅 | 卯 | 辰 | 申 |
| 亥 | 子 | 丑 | 寅 | 卯 | 辰 | 巳 | 酉 |
Placing the hour stars
Six of the supplementary stars are placed from the birth hour. The Scholar (文昌, Wen Chang), Artist (文曲, Wen Qu), Trickster (地空, Di Kong) and Usurper (地劫, Di Jie) depend on the hour alone.
| Hour | Scholar | Artist | Trickster | Usurper |
|---|---|---|---|---|
| 子 | 戌 | 辰 | 亥 | 亥 |
| 丑 | 酉 | 巳 | 戌 | 子 |
| 寅 | 申 | 午 | 酉 | 丑 |
| 卯 | 未 | 未 | 申 | 寅 |
| 辰 | 午 | 申 | 未 | 卯 |
| 巳 | 巳 | 酉 | 午 | 辰 |
| 午 | 辰 | 戌 | 巳 | 巳 |
| 未 | 卯 | 亥 | 辰 | 午 |
| 申 | 寅 | 子 | 卯 | 未 |
| 酉 | 丑 | 丑 | 寅 | 申 |
| 戌 | 子 | 寅 | 丑 | 酉 |
| 亥 | 亥 | 卯 | 子 | 戌 |
The Fiery (火星, Huo Xing) and Siren (铃星, Ling Xing) stars depend on the hour and on the year branch's group of three: Yin, Wu and Xu; Shen, Zi and Chen; Si, You and Chou; or Hai, Mao and Wei. In each cell, Fiery comes first and Siren second.
| Hour / year branch | 寅午戌 | 申子辰 | 巳酉丑 | 亥卯未 |
|---|---|---|---|---|
| 子 | 丑 · 卯 | 寅 · 戌 | 卯 · 戌 | 酉 · 戌 |
| 丑 | 寅 · 辰 | 卯 · 亥 | 辰 · 亥 | 戌 · 亥 |
| 寅 | 卯 · 巳 | 辰 · 子 | 巳 · 子 | 亥 · 子 |
| 卯 | 辰 · 午 | 巳 · 丑 | 午 · 丑 | 子 · 丑 |
| 辰 | 巳 · 未 | 午 · 寅 | 未 · 寅 | 丑 · 寅 |
| 巳 | 午 · 申 | 未 · 卯 | 申 · 卯 | 寅 · 卯 |
| 午 | 未 · 酉 | 申 · 辰 | 酉 · 辰 | 卯 · 辰 |
| 未 | 申 · 戌 | 酉 · 巳 | 戌 · 巳 | 辰 · 巳 |
| 申 | 酉 · 亥 | 戌 · 午 | 亥 · 午 | 巳 · 午 |
| 酉 | 戌 · 子 | 亥 · 未 | 子 · 未 | 午 · 未 |
| 戌 | 亥 · 丑 | 子 · 申 | 丑 · 申 | 未 · 申 |
| 亥 | 子 · 寅 | 丑 · 酉 | 寅 · 酉 | 申 · 酉 |
Placing the month stars
The Left Deputy (左辅, Zuo Fu), Right Deputy (右弼, You Bi) and Witch Star (阴煞, Yin Sha) are placed from the lunar month.
| Month | Left Deputy | Right Deputy | Witch Star |
|---|---|---|---|
| 1 | 辰 | 戌 | 寅 |
| 2 | 巳 | 酉 | 子 |
| 3 | 午 | 申 | 戌 |
| 4 | 未 | 未 | 申 |
| 5 | 申 | 午 | 午 |
| 6 | 酉 | 巳 | 辰 |
| 7 | 戌 | 辰 | 寅 |
| 8 | 亥 | 卯 | 子 |
| 9 | 子 | 寅 | 戌 |
| 10 | 丑 | 丑 | 申 |
| 11 | 寅 | 子 | 午 |
| 12 | 卯 | 亥 | 辰 |
Placing the year-stem stars and the Four Transformations
The year stem places the Crown (禄存, Lu Cun), Assassin (擎羊, Qing Yang), Bureaucrat (陀罗, Tuo Luo), Knight (天魁, Tian Kui) and Dame (天钺, Tian Yue).
| Year stem | Crown | Assassin | Bureaucrat | Knight | Dame |
|---|---|---|---|---|---|
| 甲 | 寅 | 卯 | 丑 | 丑 | 未 |
| 乙 | 卯 | 辰 | 寅 | 子 | 申 |
| 丙 | 巳 | 午 | 辰 | 亥 | 酉 |
| 丁 | 午 | 未 | 巳 | 亥 | 酉 |
| 戊 | 巳 | 午 | 辰 | 丑 | 未 |
| 己 | 午 | 未 | 巳 | 子 | 申 |
| 庚 | 申 | 酉 | 未 | 丑 | 未 |
| 辛 | 酉 | 戌 | 申 | 午 | 寅 |
| 壬 | 亥 | 子 | 戌 | 卯 | 巳 |
| 癸 | 子 | 丑 | 亥 | 卯 | 巳 |
The same year stem turns four stars into Hua Lu (化禄), Hua Quan (化权), Hua Ke (化科) and Hua Ji (化忌): the chart's natal Four Transformations.
Placing the Stallion
The Stallion (天马, Tian Ma) is placed from the year branch.
| Year branch | Stallion |
|---|---|
| 寅, 午 or 戌 | 申 |
| 申, 子 or 辰 | 寅 |
| 巳, 酉 or 丑 | 亥 |
| 亥, 卯 or 未 | 巳 |
Other stars placed during casting
Casting places 56 further minor stars, grouped by what each is placed from:
- the hour: 2;
- the month: 4;
- the day: 4, counted from the palaces of the Left Deputy, Right Deputy, Scholar and Artist, which is why the hour and month stars are placed first;
- the year stem: 4 single stars, plus a series of 12 that starts in the Crown's palace;
- the year branch: 14;
- the five-element number: a series of 12 stages;
- the Life Palace, the Body Palace with the year branch, or the year stem and branch together: 4.
Timing the decade phases
The first decade phase begins in the Life Palace at the age equal to the five-element number, from age 2 for Water 2 to age 6 for Fire 6, and each phase lasts ten years. Its direction depends on your gender and on the year stem's yin or yang: Jia, Bing, Wu, Geng and Ren are yang; Yi, Ding, Ji, Xin and Gui are yin.
- A man born in a yang year, or a woman born in a yin year, moves forward: Life, Parents, Fortune and on round the chart.
- A man born in a yin year, or a woman born in a yang year, moves backward: Life, Siblings, Marriage and on.
In the example, the man is born in a yang Jia year with Water 2, so his decade phases run Life Palace from 2 to 11, Parents from 12 to 21 and Fortune from 22 to 31. A woman born the same day moves backward: Siblings from 12 to 21, Marriage from 22 to 31.
Counting one palace per year of age
A single year is marked in two separate ways, each from its own palace. The annual phase (流年) follows the branch of the calendar year. The age phase (小限), cast at birth, follows your age: it moves one palace a year. Age here is the Chinese age (虚岁): the current year minus the birth year, plus one. Age 1 falls in a palace set by the year branch's group of three, the same for men and women. From there men move forward and women backward, one palace per year, so ages 1, 13, 25 and 37 share a palace.
In the example, a Zi year puts age 1 on Xu. The man reaches Hai at 2 and Zi at 3; a woman born that year reaches You at 2 and Shen at 3.
| Year branch | Age 1 |
|---|---|
| 寅, 午 or 戌 | 辰 |
| 申, 子 or 辰 | 戌 |
| 巳, 酉 or 丑 | 未 |
| 亥, 卯 or 未 | 丑 |
Sources: The Way of Heaven's Secrets (天机道) and Records of Heaven (天纪)
Try Our Four Pillars of Destiny (BaZi) Consultation
Get personalized, chart-grounded answers about your career, relationships, and timing.