The manual · Every table

How to calculate a zi wei dou shu chart

A zi wei dou shu chart is calculated from four facts: your lunar birth month, your lunar birth day, the two-hour branch you were born in, and the heavenly stem of your birth year, plus your sex for the direction of the decade limits. Everything else is counting around a ring of twelve. The month and hour fix the Life Palace; the Life Palace fixes a number from two to six called the bureau; the bureau and the birth day fix the Emperor star; and the Emperor fixes the other thirteen major stars. Nine steps, no judgment calls.

The rules below are the ones set out in the Ziwei Doushu Quanshu, the Ming compilation whose preface is dated 1550, and every table is printed straight from the code that runs our zi wei dou shu calculator, so you can cast a chart by hand and check your arithmetic against it. One chart is cast start to finish as we go. Where the old books disagree with each other, which happens in three places, the page says so instead of picking a side quietly.

A ring of small black lacquer dishes on a walnut table, jade counters in a few of them, and a hand placing one more counter, with a scroll tied in red cord and a small bronze armillary behind.
Places in a ring and a counter moving between them. Every step of a zi wei chart is a version of this. Illustration.

The board you count on

Draw a square of twelve boxes around an empty middle. Each box is one of the twelve earthly branches, and the branches never move: the Tiger sits at the lower left and the order runs clockwise from there, up the left side, across the top and down the right. Throughout this page, forward means clockwise, to the next branch in order (Rat, Ox, Tiger, Rabbit…), and backward means counterclockwise. When a rule says "count five from the Tiger", the Tiger itself is one.

The Tiger, outlined, is where almost every count starts.

Step 0

Convert the birth to the lunar calendar

Zi wei dou shu does not use the Western date at all. It wants the lunar month and lunar day, and the year's heavenly stem, all of which you can read off the Chinese calendar converter. Then turn the clock time into one of twelve two-hour branches. This calculator reads the clock hour you enter; some schools correct to local solar time first, which can move a birth near an hour boundary into the next branch. Two small traps: a birth between 11pm and midnight is in the Rat hour, and most modern charts, ours included, count it with the following lunar day. And if the converter says your month is a leap month, keep reading to the section on disagreements before you go on.

The twelve birth hours
Clock timeBranchHour count
23:00–01:00Rat · Zi 子Rat hour = start (0)
01:00–03:00Ox · Chou 丑1 after the Rat
03:00–05:00Tiger · Yin 寅2 after the Rat
05:00–07:00Rabbit · Mao 卯3 after the Rat
07:00–09:00Dragon · Chen 辰4 after the Rat
09:00–11:00Snake · Si 巳5 after the Rat
11:00–13:00Horse · Wu 午6 after the Rat
13:00–15:00Goat · Wei 未7 after the Rat
15:00–17:00Monkey · Shen 申8 after the Rat
17:00–19:00Rooster · You 酉9 after the Rat
19:00–21:00Dog · Xu 戌10 after the Rat
21:00–23:00Pig · Hai 亥11 after the Rat

The example chart

A woman born on 30 November 1985 at 4pm. That is lunar month 10, day 19, in a Yi (yin Wood) Ox year, and 4pm falls in the Monkey hour, 8 after the Rat.

Step 1

Find the Life Palace and the Body Palace

Start on the Tiger and call it the first month. Count forward to your birth month. From there, call that box the Rat hour and count backward to your birth hour: where you stop is the Life Palace. Go back to the birth-month box and count forward by the hour instead, and you land on the Body Palace. The Quanshu puts it in one sentence and then checks itself: born in the first month at the Rat hour, both palaces sit on the Tiger; at the Ox hour, the Life Palace moves back to the Ox and the Body Palace forward to the Rabbit. Or skip the counting and use the grid.

Life Palace by lunar month (rows) and birth hour (columns)
MonthRatOxTigerRabbitDragonSnakeHorseGoatMonkeyRoosterDogPig
1 TigerOxRatPigDogRoosterMonkeyGoatHorseSnakeDragonRabbit
2 RabbitTigerOxRatPigDogRoosterMonkeyGoatHorseSnakeDragon
3 DragonRabbitTigerOxRatPigDogRoosterMonkeyGoatHorseSnake
4 SnakeDragonRabbitTigerOxRatPigDogRoosterMonkeyGoatHorse
5 HorseSnakeDragonRabbitTigerOxRatPigDogRoosterMonkeyGoat
6 GoatHorseSnakeDragonRabbitTigerOxRatPigDogRoosterMonkey
7 MonkeyGoatHorseSnakeDragonRabbitTigerOxRatPigDogRooster
8 RoosterMonkeyGoatHorseSnakeDragonRabbitTigerOxRatPigDog
9 DogRoosterMonkeyGoatHorseSnakeDragonRabbitTigerOxRatPig
10 PigDogRoosterMonkeyGoatHorseSnakeDragonRabbitTigerOxRat
11 RatPigDogRoosterMonkeyGoatHorseSnakeDragonRabbitTigerOx
12 OxRatPigDogRoosterMonkeyGoatHorseSnakeDragonRabbitTiger

The example chart

Month 10: count 10 from the Tiger and you reach the Pig. Back 8 for the Monkey hour puts the Life Palace on the Rabbit; forward 8 puts the Body Palace on the Goat, which will turn out to be her Career palace.

Step 2

Name the other eleven palaces

From the Life Palace, write the remaining names backward around the board, one per box, in a fixed order: Siblings, Spouse, Children, Wealth, Health, Travel, Friends, Career, Property, Fortune, Parents. The Quanshu's instruction is blunt about the direction, for men and women alike: backward, and never forward. The board doesn't move; the labels rotate with the Life Palace, which is why two people born two hours apart have their Spouse palace in different branches. What each palace covers is listed on the calculator page.

The example chart

Life on the Rabbit, so Siblings on the Tiger, Spouse on the Ox, Children on the Rat, Wealth on the Pig, and on around to Parents on the Dragon.

Step 3

Give every palace a stem

Each box also carries one of the ten heavenly stems, and the birth year decides them. The rule is the Five Tigers, which the Quanshu gives as a single five-part rule and which bazi readers use for month pillars too: the year stem tells you which stem goes on the Tiger, and the stems then run forward in order (Jia, Yi, Bing, Ding, Wu, Ji, Geng, Xin, Ren, Gui, and round again) to the Ox. Ten stems on twelve boxes means the Rat and Ox repeat the stems of the Tiger and Rabbit.

The Five Tigers: the stem on the Tiger palace
Birth year stemTiger palace stem
Jia or Ji 甲己Bing (yang Fire) 丙
Yi or Geng 乙庚Wu (yang Earth) 戊
Bing or Xin 丙辛Geng (yang Metal) 庚
Ding or Ren 丁壬Ren (yang Water) 壬
Wu or Gui 戊癸Jia (yang Wood) 甲

The example chart

A Yi year puts Wu on the Tiger. Counting on, the Rabbit (her Life Palace) takes Ji (yin Earth).

Step 4

Work out the five element bureau

The Life Palace now has a stem and a branch, which together make one of the sixty pairs of the Chinese cycle. Every pair has a nayin, a "sound" element with a poetic name ("metal in the sea", "fire in the furnace"), and the element picks the bureau: Water 2, Wood 3, Metal 4, Earth 5 or Fire 6. The number is used twice more, to place the Emperor star and to start the decade limits.

The Quanshu's own example is the one to remember: someone born in a Jia year with the Life Palace on the Tiger gets Bing on that box, Bing-Tiger is "fire in the furnace", so the chart is a Fire 6. Because neighboring boxes always share a nayin, the whole thing fits in a five-by-six table.

Bureau by birth year stem (rows) and Life Palace branch (columns)
Year stemRat / OxTiger / RabbitDragon / SnakeHorse / GoatMonkey / RoosterDog / Pig
Jia or Ji Water 2Fire 6Wood 3Earth 5Metal 4Fire 6
Yi or Geng Fire 6Earth 5Metal 4Wood 3Water 2Earth 5
Bing or Xin Earth 5Wood 3Water 2Metal 4Fire 6Wood 3
Ding or Ren Wood 3Metal 4Fire 6Water 2Earth 5Metal 4
Wu or Gui Metal 4Water 2Earth 5Fire 6Wood 3Water 2

The example chart

Ji on the Rabbit gives a nayin of earth, so the chart is Earth 5.

Step 5

Place the Emperor star

This is the step people search for, and the only one with real arithmetic in it. Take the lunar birth day and the bureau number. Add the smallest number (zero or more) that makes the day divide evenly by the bureau, and remember what you added. Divide. Count the quotient from the Tiger, the Tiger being one. Then move again by the number you added: forward if it is even, backward if it is odd. That box holds Zi Wei, the Emperor, the pole star the system is named after.

The Quanshu's check: a Fire 6 chart born on the first day. Add 5 to make 6, divide to get 1, so you start on the Tiger itself, and 5 is odd, so step back five to the Rooster. The text says the Rooster, and adds the old proverb about a hair's error at the start becoming a thousand miles at the end. It is right to worry, because every major star hangs off this one. The table gives the answer for every day and bureau.

Where the Emperor star goes, by lunar birth day and bureau
DayWater 2Wood 3Metal 4Earth 5Fire 6
1 OxDragonPigHorseRooster
2 TigerOxDragonPigHorse
3 TigerTigerOxDragonPig
4 RabbitSnakeTigerOxDragon
5 RabbitTigerRatTigerOx
6 DragonRabbitSnakeGoatTiger
7 DragonHorseTigerRatDog
8 SnakeRabbitRabbitSnakeGoat
9 SnakeDragonOxTigerRat
10 HorseGoatHorseRabbitSnake
11 HorseDragonRabbitMonkeyTiger
12 GoatSnakeDragonOxRabbit
13 GoatMonkeyTigerHorsePig
14 MonkeySnakeGoatRabbitMonkey
15 MonkeyHorseDragonDragonOx
16 RoosterRoosterSnakeRoosterHorse
17 RoosterHorseRabbitTigerRabbit
18 DogGoatMonkeyGoatDragon
19 DogDogSnakeDragonRat
20 PigGoatHorseSnakeRooster
21 PigMonkeyDragonDogTiger
22 RatPigRoosterRabbitGoat
23 RatMonkeyHorseMonkeyDragon
24 OxRoosterGoatSnakeSnake
25 OxRatSnakeHorseOx
26 TigerRoosterDogPigDog
27 TigerDogGoatDragonRabbit
28 RabbitOxMonkeyRoosterMonkey
29 RabbitDogHorseHorseSnake
30 DragonPigPigGoatHorse

The example chart

Day 19, Earth 5. Add 1 to make 20. 20 ÷ 5 = 4, and counting 4 from the Tiger reaches the Snake. 1 is odd, so step back 1. The Emperor goes on the Dragon.

Step 6

Mirror the Treasury, then place the other twelve

The Treasury star, Tian Fu, is the Emperor's reflection across the line that runs from the Tiger to the Monkey. If the Emperor is on the Tiger or the Monkey, the two share a box; otherwise, swap sides: Rabbit and Ox, Dragon and Rat, Snake and Pig, Horse and Dog, Goat and Rooster.

The remaining twelve major stars come in two families, and the Quanshu fixes both in a four-line verse. Five follow the Emperor backward, with gaps: the Strategist next door, skip one, then the Sun, the General and the Child together, skip two, the Enforcer, and an empty stretch of three before you would reach the Emperor again. Seven follow the Treasury forward in an unbroken run (the Moon, the Wolf, the Great Gate, the Minister, the Elder, the Seven Killings), then three empty boxes, then the Army-Breaker. Because the spacing never changes, the fourteen always sit in the same arrangement relative to each other; only the rotation differs from chart to chart.

The fourteen major stars, counted from their anchor
StarFamilyPositionIn the example
the Emperor Zǐwēi 紫微 Emperor the anchor itself Dragon
the Strategist Tiānjī 天机 Emperor 1 palace back Rabbit
the Sun Tàiyáng 太阳 Emperor 3 palaces back Ox
the General Wǔqǔ 武曲 Emperor 4 palaces back Rat
the Child Tiāntóng 天同 Emperor 5 palaces back Pig
the Enforcer Liánzhēn 廉贞 Emperor 8 palaces back Monkey
the Treasury Tiānfǔ 天府 Treasury the anchor itself Rat
the Moon Tàiyīn 太阴 Treasury 1 palace forward Ox
the Wolf Tānláng 贪狼 Treasury 2 palaces forward Tiger
the Great Gate Jùmén 巨门 Treasury 3 palaces forward Rabbit
the Minister Tiānxiàng 天相 Treasury 4 palaces forward Dragon
the Elder Tiānliáng 天梁 Treasury 5 palaces forward Snake
the Seven Killings Qīshā 七杀 Treasury 6 palaces forward Horse
the Army-Breaker Pòjūn 破军 Treasury 10 palaces forward Dog

The example chart

Emperor on the Dragon, so the Treasury goes on the Rat. Her Life Palace on the Rabbit ends up holding the Strategist and the Great Gate.

Step 7

Add the four support stars

Two literary stars go by the hour and two assistants by the month. They are four of the many minor stars a full chart carries, and our calculator places them because the next step needs them: five of the ten transformation rows name one of these four.

The support stars
StarRuleIn the example
Literary Brilliance 文昌Rat hour on the Dog, then backward by the birth hourTiger
Literary Arts 文曲Rat hour on the Dragon, then forward by the birth hourRat
The Left Assistant 左辅First month on the Dragon, then forward by the birth monthOx
The Right Assistant 右弼First month on the Dog, then backward by the birth monthOx

Step 8

Mark the four transformations

Nothing moves in this step. The birth year's stem picks four stars already on the board and gives each a second reading: prosperity, power, repute, affliction. The Quanshu's verse opens with the Jia row (Enforcer, Army-Breaker, General, Sun) and spells that row out as its worked example. Here is the full table our calculator uses.

The four transformations by birth year stem (rows marked * differ between sources, see below)
Year stemProsperityPowerReputeAffliction
Jia 甲 the Enforcerthe Army-Breakerthe Generalthe Sun
Yi 乙 the Strategistthe Elderthe Emperorthe Moon
Bing 丙 the Childthe StrategistLiterary Brilliancethe Enforcer
Ding 丁 the Moonthe Childthe Strategistthe Great Gate
Wu * 戊 the Wolfthe Moonthe Right Assistantthe Strategist
Ji 己 the Generalthe Wolfthe ElderLiterary Arts
Geng * 庚 the Sunthe Generalthe Moonthe Child
Xin 辛 the Great Gatethe SunLiterary ArtsLiterary Brilliance
Ren * 壬 the Elderthe Emperorthe Left Assistantthe General
Gui 癸 the Army-Breakerthe Great Gatethe Moonthe Wolf

The example chart

A Yi year: the Strategist takes prosperity in her Life palace; the Elder takes power in her Fortune palace; the Emperor takes repute in her Parents palace; the Moon takes affliction in her Spouse palace.

Step 9

Set the decade limits

The first decade begins in the Life Palace at the age the bureau names: a Water 2 chart at two, a Fire 6 chart at six. Each palace then governs ten years. A man born in a yang year (Jia, Bing, Wu, Geng, Ren) or a woman born in a yin year runs forward; the other two run backward. That is how Wang Tingzhi's lecture notes put it, and it is what our calculator does.

The example chart

Yi is a yin stem and she is a woman, so her limits run forward from age 5: Life 5–14, Parents 15–24, Fortune 25–34, Property 35–44, and so on round the board.

The finished example chart

Everything from the nine steps on one board. Cast the same birth in the calculator and you get this chart; the page is built from the same code, so they cannot drift apart.

Fortune

Snake

25–34 · Xin

  • the ElderPower

Property

Horse

35–44 · Ren

  • the Seven Killings

Career· Body

Goat

45–54 · Gui

  • empty

Friends

Monkey

55–64 · Jia

  • the Enforcer

Parents

Dragon

15–24 · Geng

  • the EmperorRepute
  • the Minister

Middle of the chart

30 Nov 1985, 4pm, female

Lunar month 10, day 19, Monkey hour

Earth 5 · limits run forward

Travel

Rooster

65–74 · Yi

  • empty

Life

Rabbit

5–14 · Ji

  • the StrategistProsperity
  • the Great Gate

Health

Dog

75–84 · Bing

  • the Army-Breaker

Siblings

Tiger

115–124 · Wu

  • the Wolf
  • Literary Brilliance

Spouse

Ox

105–114 · Ji

  • the Sun
  • the MoonAffliction
  • the Left Assistant
  • the Right Assistant

Children

Rat

95–104 · Wu

  • the General
  • the Treasury
  • Literary Arts

Wealth

Pig

85–94 · Ding

  • the Child

Where the books disagree

Most of the procedure is settled; every source we read gives the same Life Palace rule, the same bureau, the same Emperor arithmetic and the same star spacing. Three things are not, and a hand-cast chart that differs from an app's is usually differing on one of these.

Three rows of the transformation table. For seven year stems everyone agrees. For Wu, Geng and Ren years, the repute star depends on which book you open, and the difference is often one written character: the Quanshu's Ren line reads "fu", which is the Treasury, while the Quanji puts the Left Assistant, whose name is also pronounced fǔ. Our calculator follows the Quanshu for Wu and Geng and the Quanji for Ren. That is a choice, not a verdict, and nobody should pretend the question is closed.

The repute transformation in the three disputed years
Year stemQuanshu (Wikisource text)QuanjiWang Tingzhi (Zhongzhou)Our calculator
Wu 戊 the Right Assistant the Right Assistant the Sun the Right Assistant
Geng 庚 the Moon the Moon the Treasury the Moon
Ren 壬 the Treasury the Left Assistant the Treasury the Left Assistant

In a Geng year the affliction moves with it: where the Treasury takes repute, as in Wang Tingzhi's notes, the Child takes affliction and the Moon gets nothing. Chinese Wikipedia's comparison table prints the Quanshu's Geng row with the Moon and the Child the other way round, which only shows that editions of the Quanshu differ too.

Leap months. The Quanshu is explicit: someone born in a leap first month sets up the chart in the second month, and every leap month follows that example. Our calculator instead counts a leap month as the month it is numbered, and when you were born in one, the result page shows what a split at the fifteenth day would do. That makes three rules in circulation, and the arithmetic says what each one does. Since the Life Palace is counted forward from the Tiger palace by the month and back by the hour, the Quanshu rule always moves it one palace forward, and the Body Palace, the Left and Right Assistants and possibly the bureau with it. The split at the fifteenth leaves a birth on days 1 to 15 exactly as our calculator has it and treats days 16 onward the way the Quanshu does.

Where the first decade starts. The Quanshu's line on decade limits names the Parents palace for a yang man or yin woman and the Siblings palace for the others. Those are the two neighbors of the Life Palace, so the line certainly fixes the direction; read literally, it could also mean the count begins one palace along. The modern teaching starts the first decade in the Life Palace itself.

A smaller one: a birth between 11pm and midnight. Chinese Wikipedia notes that rolling it into the next day is now the mainstream practice, and our calculator does that, but some schools keep it on the calendar day, which can move the Emperor star.

Check your own chart

Cast yours by hand with the tables, then put the same birth into the calculator and compare box by box. If they differ, the first suspect is the lunar conversion, the second is the hour, and the third is one of the disagreements above.

Open the calculator

Questions people ask

How do you calculate a zi wei dou shu chart step by step?

Convert the birth to a lunar month, lunar day and two-hour branch. Count from the Tiger palace forward to the birth month, then back by the hour, to find the Life Palace, and name the other eleven palaces backward from it. Give each palace a heavenly stem from the birth year by the Five Tigers rule. The Life Palace’s stem and branch give the five element bureau, a number from two to six. Divide the lunar birth day by the bureau to place the Emperor star, mirror it to place the Treasury star, and count the other twelve major stars off those two. Add the four support stars from the hour and month, mark the four transformations from the year stem, and start the decade limits at the age the bureau names.

Can you calculate a zi wei dou shu chart manually?

Yes. Nothing in the natal chart needs a computer, and for centuries it was cast on paper or on the fingers of one hand: every step is a count around a ring of twelve branches plus a few short lookups. The only step that really needs a reference is the first one, converting a Western birth date to the lunar calendar, because lunar months follow the moon and cannot be worked out by an offset. The tables on this page cover everything after that.

How is the position of the Zi Wei star calculated?

From the lunar birth day and the bureau number. Find the smallest number you can add to the birth day to make it divide evenly by the bureau. Divide, and count that many palaces from the Tiger palace, starting with the Tiger palace as one. Then move again by the number you added: forward if it was even, backward if it was odd. That palace holds Zi Wei, the Emperor star. Born on day 19 with an Earth 5 bureau, you add 1 to reach 20, divide by 5 to get 4, count four palaces from Tiger to the Snake, and step one back because 1 is odd, which leaves the Emperor in the Dragon palace.

How do I find my five element bureau?

You need two things: the branch your Life Palace sits in and the heavenly stem of your birth year. The year stem sets the stem of the Tiger palace (Jia and Ji years start Bing, Yi and Geng start Wu, and so on), and the stems run on around the ring from there. The Life Palace’s own stem and branch make a pair from the sixty-pair cycle, and that pair’s nayin element gives the bureau: Water 2, Wood 3, Metal 4, Earth 5 or Fire 6. The table on this page skips the arithmetic: find your year stem’s row and your Life Palace’s column.

Why do zi wei dou shu calculators give different four transformations?

Because the sources do. For seven of the ten year stems every text agrees, but the Wu, Geng and Ren rows differ between the Ming-dynasty Quanshu, the Quanji, and modern teachers such as Wang Tingzhi, whose Zhongzhou school gives the repute transformation to the Treasury star in Geng and Ren years. Two apps can therefore both be computing correctly and still disagree on one star if you were born in one of those years. Ask which table a calculator follows; ours is printed on this page.

What if I was born in a leap month?

Then the books disagree about which month number you use, and since the month moves the Life Palace, the choice can move every palace label. The Quanshu itself says to treat a leap-month birth as belonging to the following month. Our calculator counts it as the month it is numbered, and the result page shows what a split at the fifteenth day would give instead. The arithmetic settles what each rule does. The Life Palace is counted forward from the Tiger palace by the month and back by the hour, so under the Quanshu rule a leap-month birth always moves the Life Palace one palace forward, and with it the Body Palace, the Left and Right Assistants and possibly the bureau. The split at the fifteenth leaves days 1 to 15 exactly as our chart has them and moves days 16 onward the same way the Quanshu rule does.

Sources

  • • 《紫微斗數全書》卷二「安身命例」 (Ziwei Doushu Quanshu, vol. 2, "Setting the Life and Body Palaces"): the Life/Body rule, the Five Tigers stems, the nayin bureau with its Jia-year Fire example, the star-placement verse, the support-star rules, the transformation verse, the leap-month rule and the decade-limit line: source
  • • 《紫微斗數全書》卷一, preface by Luo Hongxian dated the Geng-xu year of Jiajing (1550), and the attribution to Chen Tuan: source
  • • 王亭之《紫微斗数初级讲义》「安星口诀、图表及掌诀」 (Wang Tingzhi, Zhongzhou school lecture notes): decade limits start in the Life Palace at the bureau’s age; the Zhongzhou transformation verse: source
  • • Chinese Wikipedia, 紫微斗數 (casting order, the Emperor-star arithmetic, the late Zi hour, and a side-by-side table of the Quanji and Quanshu transformation verses): source

The tool

Zi wei dou shu calculator

The same nine steps, done for you, with what each palace and star means.

The other system

Bazi vs zi wei dou shu

Same birth moment, a different machine, and what each is built to answer.

Stay in the loop.

Chinese mythology, the zodiac, and the meaning behind names and symbols, rooted in the classics and read back to you. No spam. Unsubscribe anytime.