The actual sequence from birth data to a twelve-palace chart — and the calendar conventions that make two calculators hand you two different charts.
Zi Wei Dou Shu has a reputation for being hard to learn. Most of that difficulty is not in the stars; it is in the construction. Before a single interpretation can happen, a chart has to be built, and the building relies on a handful of calendar decisions that different software makes differently and usually does not show you.
This is the sequence we apply, in order, with the points where schools diverge flagged rather than hidden. If your chart from another tool looks different from ours, the cause is almost always in steps two to four.
Zi Wei needs a date and a two-hour period. Two hours is the resolution of the system, which is why two people born the same day but three hours apart can have materially different charts.
If the birth time is unknown, a chart can still be produced but it should be presented as provisional rather than as a chart. A tool that quietly assumes noon and says nothing is giving you a confident answer to a question you did not ask.
The chart is built on the lunisolar calendar: the month is a lunar month, and the year is the sexagenary year. That means the Gregorian date has to be converted, and the conversion is where disagreements start.
The first disagreement is the day boundary. As with BaZi, the day often begins at 23:00 rather than at midnight, so a birth at 23:40 belongs to the following day's branch. Tools that roll at midnight will assign a different 命宫 and therefore a different chart to anyone born in that hour.
The second is the leap month. A lunar year with an intercalated month has no solar-term equivalent, and classical sources do not agree on which month a birth inside one should be counted as. Some traditions treat the leap month as the month it follows; others split it at the midpoint and assign the two halves to different months. This affects the month number, which then feeds every subsequent step.
Two numbers drive everything else: the lunar month and the birth hour branch. From those, the 命宫 (Life Palace) is located by counting backwards from the Yin branch, and the 身宫 (Body Palace) is located by counting forwards from the same point.
The Life Palace position fixes the whole grid: once you know which branch the Life Palace occupies, the remaining eleven palaces fall into their fixed clockwise order around it. This is why an error in the month number does not corrupt one part of the chart — it rotates the entire thing.
The 五行局 (Five Element Bureau) is derived from the stem and branch of the Life Palace, which in turn come from the sexagenary year of birth. It produces one of five values: Water Two, Wood Three, Metal Four, Earth Five, or Fire Six.
The bureau sets two things used later: the age at which the first ten-year period begins, and the direction those periods run. It looks like a small technical detail. It is actually the clock the entire timing layer reads from, so an error here produces a chart that looks right and predicts the wrong decades.
The fourteen major stars are placed by rule, not by judgment. Zi Wei itself is positioned from the bureau and the lunar day of the month; the remaining thirteen are positioned relative to Zi Wei in fixed series, and Tian Fu is positioned by its own formula and anchors the second series.
After the majors, the auxiliary stars are placed: the Four Transformations, the Six Auspicious and Six Inauspicious stars, the symbolic stars like 天马 and 桃花, and the minor stars. The order matters because the transformers attach to whichever star already carries them, not to a palace.
If you compare two charts and they differ, check in this order: the day-boundary convention, the leap-month rule, whether true solar time was applied before the hour branch was taken, and the bureau derivation. In our experience that accounts for nearly all disagreements, and each is a documented choice rather than a bug.
The reasonable standard to hold a tool to is not that it agrees with every other tool. It is that it tells you which conventions it used. A chart is only as good as its stated assumptions.
Four pillars, ten gods, five elements and eight ten-year luck cycles — calculated from your exact birth data.
Calculate my chart