← Back to blog
Zi WeiSingapore10 min read

How Do You Calculate the Five Element Bureau in Zi Wei Dou Shu?

The Five Element Bureau (五行局) is set by the Na Yin (纳音, "sound element") of the Life Palace (命宫) stem-branch pair. First you use the heavenly stem of the birth year to derive the heavenly stem of the Life Palace, then you pair it with the Life Palace's earthly branch, and finally you look up the Na Yin element. Water gives Bureau 2, Wood Bureau 3, Metal Bureau 4, Earth Bureau 5, and Fire Bureau 6.

Let's start with where the Five Element Bureau sits in the chart-building process. The Life Palace comes first, worked out from the lunar month and the birth hour. Only once the Life Palace is fixed can you calculate the bureau. Once you have the bureau number, it does two jobs. One is setting the starting age of the luck periods: the age at which your first decade period begins depends on it. The other, combined with the lunar day of birth, is deciding which palace Zi Wei (紫微, the Emperor star) lands in. Only once Zi Wei is placed can the other main stars be laid out. I began studying Zi Wei with a teacher in Taiwan in 2020, so this is my sixth year. Later I wrote the whole chart-building logic into a program, which is what FateStar is today. When I got to this part of the code, it was very clear to me that the Five Element Bureau is the first critical link in a chain that runs through the whole chart. If it's off by one cell, the entire chart after it goes crooked.

So let's calculate from the beginning. Step one: confirm the earthly branch of the Life Palace. Start the first lunar month at the Yin (寅) palace and count forward to your birth month. Treat the palace you land on as the Zi (子) hour. From that palace, count backward to your birth hour, and where you stop is the Life Palace. There are two easy traps in this step. The first is the year stem. In Zi Wei, the year stem changes on lunar New Year's Day (the first day of the first lunar month), not at Li Chun (立春, the Start of Spring). It's the year pillar in Ba Zi (八字, Four Pillars) that changes at Li Chun, so don't mix the two systems. For example, someone born after Li Chun but before lunar New Year's Day already has the new year pillar in Ba Zi, while Zi Wei still uses the previous year's stem. If the year stem falls into a different group, the stems derived by the Five Tigers method will be different, and the bureau may change with them. The second trap is the birth hour. The hour should be based on true solar time, and every degree of longitude makes a four-minute difference. The farther your birthplace is from the center of its time zone, the bigger the gap, and the birth hour may cross into the next slot. To correct for it, look up the longitude of your birthplace, then convert at four minutes per degree. Once you've done that, check which of the twelve double-hours your birth time falls into. Once the hour is fixed, the earthly branch of the Life Palace is fixed too.

Curious about your own chart? Cast it free in 30 seconds →

With the Life Palace branch in hand, the next thing is the heavenly stem. Step two uses the Five Tigers method (五虎遁). The rhyme splits the year stems into five groups, and each group determines which heavenly stem the Yin palace starts with.

Birth year stem Yin palace starts with
Jia (甲) and Ji (己) years Bing Yin (丙寅)
Yi (乙) and Geng (庚) years Wu Yin (戊寅)
Bing (丙) and Xin (辛) years Geng Yin (庚寅)
Ding (丁) and Ren (壬) years Ren Yin (壬寅)
Wu (戊) and Gui (癸) years Jia Yin (甲寅)

Once the Yin palace is set, continue forward in order. Go Yin, Mao, Chen, Si all the way to Hai, then on to Zi and Chou, giving each of the twelve palaces one heavenly stem. The stems follow the order Jia, Yi, Bing, Ding, and after Gui they wrap back to Jia. Take a Jia year: the Yin palace is Bing Yin, the Mao palace is Ding Mao, the Chen palace is Wu Chen, and so on all the way to Ding Chou in the Chou palace. Whichever earthly branch your Life Palace falls on, read the heavenly stem in that cell. Put the stem and the branch together and you have the Life Palace stem-branch pair.

Why do Jia and Ji years start with the same stem? It comes down to how many months and how many stems there are. A year has twelve months, but there are only ten heavenly stems. The previous year runs from Yin to Chou and uses up twelve stems, so by the Yin palace of the next year the stem has moved two places further on. Jia years start the Yin palace on Bing, Yi years on Wu, Bing years on Geng, Ding years on Ren, and Wu years on Jia. By Ji years it's back to Bing. The cycle repeats every five years, so the year stems pair up, and the rhyme only needs five lines.

This leads to a corollary. People born in Jia years and Ji years who have their Life Palace on the same earthly branch will have the same Life Palace stem-branch pair, and therefore the same bureau. The same goes for Yi and Geng, Bing and Xin, Ding and Ren, Wu and Gui. That's why the lookup table further down only needs five groups of year stems.

With the stem-branch pair assembled, one step is left. Step three is looking up the Na Yin. Na Yin works in groups of two stem-branch pairs, and each pair of pairs shares one element. Bing Yin and Ding Mao are Fire in the Furnace (炉中火). Bing Xu and Ding Hai are Earth on the Rooftop (屋上土). Whichever group your Life Palace stem-branch falls in, take that group's element. Then convert the element to a bureau number as follows.

Na Yin element Five Element Bureau
Water Water Bureau 2
Wood Wood Bureau 3
Metal Metal Bureau 4
Earth Earth Bureau 5
Fire Fire Bureau 6

Memorize these five numbers. You'll need them for the starting age of the luck periods and again for placing Zi Wei, and both use this same number. There's also an easy point of confusion here. The stem-branch of the birth year has its own Na Yin too, but it plays no part in calculating the bureau. The Na Yin you need is the one for the Life Palace stem-branch. Using the year pillar's Na Yin to get the bureau is a very common beginner's mistake.

Working it out step by step isn't hard, but doing it from scratch every time takes a while. Here is the complete lookup table. The rows are the five year-stem groups and the columns are six pairs of palaces. The palaces go in pairs because the stem-branches of two neighboring palaces always land in the same Na Yin group. For instance, the Zi palace gets a yang stem and the Chou palace gets a yin stem, and those two consecutive stem-branches share the same Na Yin. You only need two pieces of information to use the table: the birth year stem and the Life Palace branch.

Year stem Zi Chou Yin Mao Chen Si Wu Wei Shen You Xu Hai
Jia Ji Water 2 Fire 6 Wood 3 Earth 5 Metal 4 Fire 6
Yi Geng Fire 6 Earth 5 Metal 4 Wood 3 Water 2 Earth 5
Bing Xin Earth 5 Wood 3 Water 2 Metal 4 Fire 6 Wood 3
Ding Ren Wood 3 Metal 4 Fire 6 Water 2 Earth 5 Metal 4
Wu Gui Metal 4 Water 2 Earth 5 Fire 6 Wood 3 Water 2

Let's test one cell. Born in a Jia year, Life Palace in the Zi palace. Find the Jia Ji row, then the Zi Chou column, and the cell says Water 2. Now check it with the Five Tigers method. In a Jia year the Yin palace is Bing Yin; counting forward, the Xu palace is Jia Xu, the Hai palace is Yi Hai, and the Zi palace is Bing Zi. The Na Yin of Bing Zi is Water, which gives exactly Water Bureau 2. The table matches the calculation, so from here on you can just look it up.

If you spread the table out and read it across, a pattern shows up. Each row has six cells, and all five bureaus appear in every row. The Yin Mao and Xu Hai cells always fall on the same bureau. So for each year-stem group, one bureau covers four palaces and the other four bureaus cover two palaces each. Jia Ji years lean toward Fire, Yi Geng years toward Earth, Bing Xin years toward Wood, Ding Ren years toward Metal, and Wu Gui years toward Water. You can't see this pattern just by memorizing the rhyme. It only appears once you lay out the whole table cell by cell.

Go one layer further and there's another pattern. Five year-stem groups times twelve palaces gives sixty Life Palace stem-branch pairs. Jia Ji years run from Bing Yin to Ding Chou. Yi Geng years run from Wu Yin to Ji Chou. Bing Xin years run from Geng Yin to Xin Chou. Ding Ren years run from Ren Yin to Gui Chou. Wu Gui years run from Jia Yin to Yi Chou. The five runs of twelve join up end to end. After Ding Chou comes Wu Yin, after Ji Chou comes Geng Yin, and after Yi Chou it wraps back to Bing Yin. Every pair in the sixty-pair cycle appears exactly once. Split them further by Na Yin element and each bureau corresponds to twelve Life Palace stem-branch pairs.

Not one more, not one less.

Now that you have the bureau number, the first use is setting the starting age. The first decade period begins in the year matching the bureau number. Water Bureau 2 runs from age 2 to 11, Wood Bureau 3 from 3 to 12, Metal Bureau 4 from 4 to 13, Earth Bureau 5 from 5 to 14, and Fire Bureau 6 from 6 to 15. These are all nominal ages (虚岁). In nominal age you count as one in the year you're born, and you add a year every lunar New Year. So someone in Water Bureau 2 enters their first decade period after their first lunar New Year. Someone in Fire Bureau 6 has to wait until age six. The larger the bureau number, the later the luck periods start. The first decade period runs through the Life Palace. Which direction it moves after that depends on gender and whether the year stem is yin or yang. Jia, Bing, Wu, Geng and Ren are yang stems; Yi, Ding, Ji, Xin and Gui are yin stems. Yang men and yin women move forward; yin men and yang women move backward. Moving forward means going to the next palace in branch order, and moving backward means stepping back to the previous one. With the same bureau, a different direction changes the order in which each palace comes up. If you want to know the age at which each of the twelve palaces comes around, read At what age does each of the twelve palaces' decade periods arrive next.

The second use of the bureau number is placing the Zi Wei star. The rule sounds a bit convoluted when written out, but it's simple once you break it down. Divide the lunar day of birth by the bureau number. If it divides evenly, the quotient is the number of cells to count: start at the Yin palace, and wherever you land is where Zi Wei goes. The added amount is zero, so no further adjustment is needed. If it doesn't divide evenly, add the smallest number to the lunar day that makes it divide evenly. Divide using that new number, take the quotient, and again count from the Yin palace. Once you've landed, look at the amount you added. If it's odd, step backward from that palace by that many cells. If it's even, step forward from that palace by that many cells. The most common mistake in this step is the direction. Odd goes back, even goes forward; fix that in your head before you start.

Once you've written the procedure, you can check it against the first day of the lunar month. On day one, Zi Wei lands as follows for each bureau: Water Bureau 2 in Chou, Wood Bureau 3 in Chen, Metal Bureau 4 in Hai, Earth Bureau 5 in Wu, and Fire Bureau 6 in You. Take Wood Bureau 3 as an example: one plus two is three, three divided by three gives one, so count one cell from the Yin palace and you stop at Yin. The added amount, two, is even, so move forward two cells and land in Chen. The other four bureaus follow the same procedure. Water Bureau 2 adds one, the quotient one stops at Yin, one is odd, so step back one cell to Chou. Metal Bureau 4 adds three, the quotient one stops at Yin, step back three cells, Chou, Zi, Hai, and land in Hai. Earth Bureau 5 adds four, the quotient one stops at Yin, four is even, so move forward four cells, Mao, Chen, Si, Wu, and land in Wu. Fire Bureau 6 adds five, the quotient one stops at Yin, step back five cells, Chou, Zi, Hai, Xu, You, and land in You. Whether you calculate by hand or in code, check these five points first. If all five match, your procedure is basically on track.

Now let's walk through a full worked example. Suppose a man born in a Geng Wu (庚午) lunar year, on the twelfth day of the third lunar month, in the Wu (午) hour. These are hypothetical birth details and don't belong to any real person. First, the Life Palace. The first month is at Yin, the second at Mao, the third at Chen. Treat the Chen palace as the Zi hour and count backward: Chou hour at Mao, Yin hour at Yin, Mao hour at Chou, Chen hour at Zi, Si hour at Hai, Wu hour at Xu. The Life Palace falls in the Xu palace. Next, the heavenly stem. Geng belongs to the Yi Geng group, so the Yin palace starts with Wu Yin. Counting forward, the Mao palace is Ji Mao, the Chen palace is Geng Chen, and so on until the Xu palace, whose stem is Bing. The Life Palace stem-branch is Bing Xu. The Na Yin of Bing Xu is Earth on the Rooftop, so this chart is Earth Bureau 5. Checking against the table above, the Yi Geng row under Xu Hai also says Earth 5, so the results agree.

With the bureau fixed, we can work out its two uses. In Earth Bureau 5, the first decade period runs from age 5 to 14 and passes through the Life Palace in Xu. Geng is a yang stem, so this is a yang year, and a yang man moves forward. The second decade period moves forward one palace to Hai, which is the Parents Palace (父母宫). Next, Zi Wei. The lunar day is twelve, and twelve doesn't divide evenly by five. Add three to make fifteen. Fifteen divided by five is three. Count three cells from the Yin palace, Yin, Mao, Chen, and stop at Chen. The added amount, three, is odd, so step back three cells from Chen, Mao, Yin, Chou, and Zi Wei lands in the Chou palace. Apart from gender, which matters only for the direction of the decade periods, we used just four pieces of information: the year stem, the month, the hour and the day.

Change the same details to a woman and only one thing differs. The bureau is still Earth Bureau 5 and Zi Wei still lands in Chou, since neither depends on gender. The difference is the direction of the decade periods. Geng is a yang year, a yang woman moves backward, so the second decade period steps back to the You palace, which is the Siblings Palace (兄弟宫).

Looking back over this example, you can see one feature of the Five Element Bureau. It's determined only by the year stem, the lunar month and the birth hour, and has nothing to do with the lunar day. The lunar day only comes into play when placing Zi Wei, where it's used together with the bureau number. Put the other way round, a one-day difference in the lunar day doesn't affect the bureau; only Zi Wei's placement moves. That's why the birth hour is the thing to watch closely. If the hour is off by one slot, the Life Palace may shift by one palace. When the Life Palace shifts, its branch changes, its stem changes with it, and the bureau may be completely different. The starting age and Zi Wei's placement will both change along with it. This is also why people born in the same double-hour share the same natal Zi Wei chart: everything within those two hours is identical. If your birth time sits right on the boundary between two double-hours, be especially careful. A few minutes either side of the boundary can move the Life Palace to a different palace. If you're unsure of your birth hour, correct it to true solar time first, then calculate the bureau.

After all that, let's come back to your own chart. The Five Element Bureau is usually written in the middle square of the chart, the central palace, along with the birth details. Some charts write "Earth Bureau 5", others just "Bureau 5"; they mean the same thing. You can check it with the table in this article. Find the row for your year stem, then the column for your Life Palace branch, and see whether the bureau in that cell matches what's in the central palace. You can also skip the table: use the Five Tigers method to count forward once from the Yin palace, read off the stem at your Life Palace, then look up the Na Yin. If both methods give the same bureau, you can read on with confidence. If they don't match, check three things first. One, the year stem: see whether your birthday falls around lunar New Year's Day. Two, the birth hour: see whether your birth time is close to the boundary between two double-hours, and whether it has been corrected to true solar time. Three, the Life Palace branch: see whether you counted the month or the hour in the wrong direction. As for what the Life Palace, Parents Palace and the other palaces each govern, once your chart is laid out you can go through it palace by palace by name. If you don't have a chart yet, you can make one first with the free chart calculator. See which bureau you are, at what age your first decade period begins, and which palace Zi Wei lands in.

⚠️ FateStar generates and interprets your chart based on the traditional Chinese discipline of Zi Wei Dou Shu (紫微斗数). All content is for informational and reflective purposes only.

About the Author

Louis
Louis

Founder of FateStar. He began structured study of San He Zi Wei Dou Shu in 2020 and is responsible for product method, source organization, and content review. Personal experience is not presented as scientific proof.

More about Louis →