Zi Wei Dou Shu Star Placement Formulas: How the 14 Main Stars Are Positioned

The placement rules behind the chart, worked through on one example — including the points where published tables legitimately differ.

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.

What a placement formula needs

Every landing position in the chart is computed from a small number of inputs. Nothing is randomized, and nothing is interpreted:

InputComes fromUsed for
Five Element Bureau numberLife Palace stem and branchZi Wei placement
Lunar day of birthCalendar conversionZi Wei placement
Lunar month of birthCalendar conversionLife and Body Palaces, month-based stars
Birth double-hour (时辰)Clock time, corrected if the method says soLife and Body Palaces, hour-based stars
Birth-year stem and branchThe lunar yearStem- 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.

Formula 1 — locating Zi Wei (紫微)

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.

The worked example

Bureau: Fire Six (火六局) · Lunar day: 16
  1. 16 ÷ 6 does not divide evenly (remainder 4). Borrow 1: 17, still not divisible. Borrow 2: 18 ÷ 6 = 3.
  2. Quotient = 3. Count 3 palaces from the Yin (寅) palace: Yin, Mao, Chen — the third is Chen (辰).
  3. The borrow was 2, an even number, so move forward 2 palaces from Chen: Si, Wu (午).
  4. Zi Wei sits in Wu (午).

Where the Zi Wei tables differ

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.

Formula 2 — locating Tian Fu (天府)

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:

The worked example

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.

Formula 3 — the two star groups

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.

The Zi Wei group — counted in reverse

StarSteps 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.

The Tian Fu group — counted forward

StarSteps 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

The worked example, resolved

With Zi Wei in Wu and Tian Fu in Xu, applying both sequences gives the complete main-star layer of the example chart:

PalaceMain 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.

Formula 4 — the main auxiliary stars

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 byRule (classical form)
Zuo Fu 左辅 / You Bi 右弼Lunar monthZuo Fu counts forward through the months starting from Chen (辰); You Bi counts backward through the months starting from Xu (戌)
Wen Chang 文昌 / Wen Qu 文曲Birth hourWen Chang counts backward through the double-hours starting from Xu (戌); Wen Qu counts forward starting from Chen (辰)
Tian Kui 天魁 / Tian Yue 天钺Year stemFixed pairs by stem (for example, a Jia year places them in Chou and Wei)
Lu Cun 禄存, with Qing Yang 擎羊 and Tuo Luo 陀罗Year stemLu Cun is fixed by stem; Qing Yang sits one palace ahead of it and Tuo Luo one palace behind
Tian Ma 天马Year branchFixed by the branch's three-harmony (三合) group
Huo Xing 火星 / Ling Xing 铃星Year branch group, then hourEach year-branch group has a fixed starting palace for each star; both then advance by the birth double-hour
Di Kong 地空 / Di Jie 地劫Birth hourOne counts backward and the other forward from the same starting palace

Three observations about this layer are worth carrying forward:

What changes a placement

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.

How to check a placement by hand

  1. Start from the bureau. If you cannot reproduce the Life Palace and the bureau, stop — everything downstream inherits them.
  2. Compute Zi Wei, then confirm it two ways. Do the division once and look at the table once. If the two disagree, you have found a table variant, which is itself useful information.
  3. Mirror for Tian Fu. Confirm the mirror before you use Tian Fu to place anything.
  4. Place one star from each group and check the directions. If both groups appear to run the same way, the sequence has been applied in the wrong direction.
  5. Only then look at the auxiliary layer. It is the largest layer and the least standardised; it is a poor place to start a dispute.

Where this fits

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.

FAQ

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.

Ready to see your own chart?

✦ Generate Your Chart — It's Free
Free chart · Readings pay per use