Once a Zi Wei Dou Shu (紫微斗数) chart has a Life Palace (命宫) and a Five Element Bureau (五行局), the rest of the chart is arithmetic. Fourteen main stars are placed by a small set of rules, and every one of those rules takes its inputs from things that were already fixed: the bureau, the lunar day, the lunar month, the birth hour, and the birth-year stem and branch.
This page sets out those rules as rules — not as a list of star meanings. If you want the meaning of a star, that is a different page. If you want to know why a star is in that box, this is the page. Each section also flags where published tables differ, because this is the layer of chart building where two tools are most likely to diverge without either being wrong.
Every landing position in the chart is computed from a small number of inputs. Nothing is randomized, and nothing is interpreted:
| Input | Comes from | Used for |
|---|---|---|
| Five Element Bureau number | Life Palace stem and branch | Zi Wei placement |
| Lunar day of birth | Calendar conversion | Zi Wei placement |
| Lunar month of birth | Calendar conversion | Life and Body Palaces, month-based stars |
| Birth double-hour (时辰) | Clock time, corrected if the method says so | Life and Body Palaces, hour-based stars |
| Birth-year stem and branch | The lunar year | Stem- and branch-based stars, Four Transformations (四化) |
Two things follow from this table. First, the placement layer is fully determined by five values — you can reproduce it by hand. Second, if any one of those five values is different, stars move. Most disagreements between charts for "the same" birth data are disagreements about these inputs, not about the rules.
Zi Wei is the anchor of the whole chart. It is located from exactly two inputs: the Five Element Bureau number and the lunar day of birth.
The classical procedure is a division. Take the number of the bureau (2 to 6). Take the lunar day. If the day is not divisible by the bureau number, borrow forward — add 1, then 2, then 3, and so on — until the total is divisible. Divide, and you have a quotient. That quotient is counted out as palaces, and then the borrow you added is applied as a correction: counted forward if the borrow was an even number, counted backward if it was odd.
Written out like that it sounds fiddly. Tabulated, it is not — which is why most published versions of this rule appear as a ready-made table of "bureau × lunar day → palace". The table and the procedure are the same information in two shapes.
Bureau: Fire Six (火六局) · Lunar day: 16
This is the single most consequential place where published material drifts. Because the procedure can be written in more than one way, and because many texts print only the finished table without the borrow rule that generated it, a table copied from one lineage can carry an entry that a table from another lineage does not have — particularly for the later days of the lunar month and for the higher bureau numbers.
The practical consequence is worth stating plainly: one palace of difference here moves most of the chart. Zi Wei anchors the largest group of main stars, so an entry that differs by one shifts a whole side of the chart. If you are comparing two tools, check this position first — it is the cheapest single check and it explains a large share of disagreements.
None of this means one edition is fraudulent and another is honest. It means a table is a transcript of a rule, and transcripts vary. Our own position is simply that the rule we use is stated, so the position can be checked rather than trusted.
Tian Fu is not looked up. It is derived from Zi Wei by a mirror relationship.
The mirror runs about the Yin–Shen (寅–申) axis. Two consequences make the rule easy to remember and easy to verify:
Zi Wei is in Wu (午). Counting from the mirror axis, Tian Fu lands in Xu (戌) — which sits opposite Wu around the same axis. That single position then anchors the second group of main stars.
The fourteen main stars are placed as two sequences, one anchored on Zi Wei and one anchored on Tian Fu. That is why people talk about "the Zi Wei group" and "the Tian Fu group". The two sequences run in opposite directions, which is the reason two nearby anchors can produce stars that look scattered across the chart.
| Star | Steps from Zi Wei |
|---|---|
| Zi Wei 紫微 | anchor |
| Tian Ji 天机 | 1 back |
| Tai Yang 太阳 | 3 back |
| Wu Qu 武曲 | 4 back |
| Tian Tong 天同 | 5 back |
| Lian Zhen 廉贞 | 8 back |
The gaps in that list are not typos. The sequence is defined by fixed positions, not by consecutive ones — which is exactly why the offsets are 1, 3, 4, 5 and 8 rather than 1 through 6.
| Star | Steps from Tian Fu |
|---|---|
| Tian Fu 天府 | anchor |
| Tai Yin 太阴 | 1 forward |
| Tan Lang 贪狼 | 2 forward |
| Ju Men 巨门 | 3 forward |
| Tian Xiang 天相 | 4 forward |
| Tian Liang 天梁 | 5 forward |
| Qi Sha 七杀 | 6 forward |
| Po Jun 破军 | 10 forward |
With Zi Wei in Wu and Tian Fu in Xu, applying both sequences gives the complete main-star layer of the example chart:
| Palace | Main star(s) |
|---|---|
| Life 命宫 | Qi Sha (七杀) |
| Siblings 兄弟 | Tai Yang, Tian Liang (太阳、天梁) |
| Spouse 夫妻 | Wu Qu, Tian Xiang (武曲、天相) |
| Children 子女 | Tian Tong, Ju Men (天同、巨门) |
| Wealth 财帛 | Tan Lang (贪狼) |
| Health 疾厄 | Tai Yin (太阴) |
| Travel 迁移 | Lian Zhen, Tian Fu (廉贞、天府) |
| Friends 交友 | — |
| Career 官禄 | Po Jun (破军) |
| Property 田宅 | — |
| Fortune 福德 | Zi Wei (紫微) |
| Parents 父母 | Tian Ji (天机) |
Two palaces hold no main star. That is normal: fourteen stars cannot fill twelve palaces without some doubling up somewhere else. An empty palace is read through its opposite palace and the surrounding triangle, not treated as a blank.
After the fourteen main stars, the auxiliary (辅星) layer is added. These rules are simpler individually, but there are more of them, and this is the layer where tools differ most freely — some include a star, some do not.
| Star(s) | Anchored by | Rule (classical form) |
|---|---|---|
| Zuo Fu 左辅 / You Bi 右弼 | Lunar month | Zuo Fu counts forward through the months starting from Chen (辰); You Bi counts backward through the months starting from Xu (戌) |
| Wen Chang 文昌 / Wen Qu 文曲 | Birth hour | Wen Chang counts backward through the double-hours starting from Xu (戌); Wen Qu counts forward starting from Chen (辰) |
| Tian Kui 天魁 / Tian Yue 天钺 | Year stem | Fixed pairs by stem (for example, a Jia year places them in Chou and Wei) |
| Lu Cun 禄存, with Qing Yang 擎羊 and Tuo Luo 陀罗 | Year stem | Lu Cun is fixed by stem; Qing Yang sits one palace ahead of it and Tuo Luo one palace behind |
| Tian Ma 天马 | Year branch | Fixed by the branch's three-harmony (三合) group |
| Huo Xing 火星 / Ling Xing 铃星 | Year branch group, then hour | Each year-branch group has a fixed starting palace for each star; both then advance by the birth double-hour |
| Di Kong 地空 / Di Jie 地劫 | Birth hour | One counts backward and the other forward from the same starting palace |
Three observations about this layer are worth carrying forward:
Bringing the formulas together, a placed star moves for one of a small number of reasons:
Notice the shape of that list: it is about inputs and editions, not about interpretation. The stars are placed before any reading begins, and they are placed by rules that can be written down and checked.
Star placement is the third and fourth of the five steps that build a chart. The steps before it — converting the birth data and locating the Life Palace — decide the inputs, and the step after it is the reading itself. If you want the full sequence in one place, start with how a chart is calculated, step by step.
For the anchoring step in detail, see the Life Palace calculation. For what a chart calculator does with all of this — and why two calculators can return different charts — see what a calculator actually does. For the input stage, true solar time is the one correction most likely to move a chart.
For reference only.
How are the 14 main stars placed? By a small set of fixed rules once the Life Palace (命宫) and Five Element Bureau (五行局) are set. Each rule takes its inputs from the bureau, the lunar date, the birth hour, and the birth-year stem.
What inputs does a placement formula need? The bureau, the lunar day, the lunar month, the birth hour, and the birth-year stem or branch — all of which are fixed before any star is moved.
Is any placement random? No. Every landing position is computed from those inputs, so the same birth data always produces the same chart.
How can I check a placement by hand? Work from the bureau and the 紫微 position first, then apply the star-group rules in order. If your result differs from a tool, compare your inputs before your arithmetic.