Before a single gate, star or deity is placed, a Qi Men chart needs a board to sit on. That board is the nine palaces (九宫 jiǔ gōng): a fixed 3×3 grid built on the 洛书 Luo Shu (Luò Shū) magic square. Everything in Qi Men Dun Jia (奇门遁甲 qí mén dùn jiǎ) is arranged around these nine cells, so understanding the qi men nine palaces is the first thing worth doing. Nothing else in the system makes sense until this grid is clear.
If you have read our plain guide to Qi Men Dun Jia, you already know it is the strategy-and-timing board of the 三式 (sān shì, Three Cosmic Boards). This page zooms in on its skeleton.
The Luo Shu behind the board
The Luo Shu is an old numerical arrangement of the digits 1 through 9 laid out on a square so that every row, column and diagonal sums to 15. Qi Men borrows this square directly. Each of the nine cells is a palace, and each palace carries four fixed attributes: a number, a trigram (卦 guà), a compass direction, and one of the five elements (五行 wǔ xíng).
The eight outer palaces surround a ninth in the middle, Palace 5. The center is the pivot the whole grid turns around. In most schools the center palace has no gate or deity of its own; its star is 借宫 (jiè gōng, “borrowed”) out to Palace 2 in the southwest. Schools differ on the exact handling of the center, but the borrowing convention is the common one.
八字 · Four Pillars
Start with your own chart. Plot your Ba Zi free — exact solar-term accuracy, in your browser. The birth chart is where every reading begins.
Here is the board as it is actually laid out, copied straight from our reference. Read it as a compass map: south sits at the top, north at the bottom, in the traditional Chinese orientation.
Palace
Trigram
Direction
Element
1
坎 Kan
N (North)
Water
2
坤 Kun
SW (Southwest)
Earth
3
震 Zhen
E (East)
Wood
4
巽 Xun
SE (Southeast)
Wood
5
中 (Center)
C (Center)
Earth
6
乾 Qian
NW (Northwest)
Metal
7
兑 Dui
W (West)
Metal
8
艮 Gen
NE (Northeast)
Earth
9
离 Li
S (South)
Fire
Laid out in grid form, the same nine palaces read like this, with the Luo Shu numbers in their fixed positions:
SE
S
SW
4 巽 Xun (Wood)
9 离 Li (Fire)
2 坤 Kun (Earth)
3 震 Zhen (Wood)
5 中 (Earth)
7 兑 Dui (Metal)
8 艮 Gen (Earth)
1 坎 Kan (Water)
6 乾 Qian (Metal)
The rows, columns and diagonals of this grid each add to 15 — that is the Luo Shu constant, and it is why the numbers cannot be shuffled. The number is not decorative; it is the address a palace answers to when the chart is cast.
Why the board is fixed
This is the point most beginners miss. The nine palaces never move. Their numbers, trigrams, directions and elements are constant on every chart, for every question, in every century. Palace 9 is always south, always Fire, always 离. What changes from moment to moment is only what gets placed onto the palaces.
Think of it the way a Ba Zi (八字 bāzì) reader thinks of the sixty pillars: the alphabet of stems and branches is fixed, and a birth chart is just which of them land where. If you want the underlying grammar of elements that both systems lean on, our note on the five elements in Ba Zi covers the same Water-Wood-Fire-Earth-Metal cycle that gives each palace its nature. A palace’s element decides whether a benefic gate landing there is supported or undercut — an Open Gate on a palace whose element is thriving for the season reads very differently from the same gate on a palace whose element is exhausted.
What rides on the palaces
The fixed board is layer zero. Qi Men then stacks four moving layers on top of it, each occupying the same nine cells:
Earth Plate (地盘 dì pán) — nine stems, the Three Wonders and Six Yi (三奇六仪 sān qí liù yí), distributed across the palaces by the chart’s formation number (局 jú).
Heaven Plate (天盘 tiān pán) and Nine Stars (九星 jiǔ xīng) — stems and the nine stars rotating over the fixed Earth Plate.
Eight Gates (八门 bā mén) — the action layer you move through, one gate per outer palace. See our page on the eight gates of Qi Men.
Eight Deities (八神 bā shén) — the unseen-influence layer, whose order varies by school.
How those layers are seeded is a matter of casting, not of the board itself. In principle the moment’s solar term selects Yang Dun (阳遁 yáng dùn) or Yin Dun (阴遁 yīn dùn), a formation number is derived, and the Chief (值符 zhí fú) and Duty Gate (值使 zhí shǐ) rotate to their palaces from there — the deterministic work of a plate engine, not something to eyeball. The board simply holds still while all of it lands.
So when a practitioner reads a chart, direction comes straight off the board: the auspicious gate’s palace is its compass direction, because Palace 6 always means northwest and Palace 3 always means east. The qi men nine palaces are what make Qi Men legible as a map of terrain rather than a heap of symbols.
Qi Men and Ba Zi share this element grammar, so the same chart-reading instinct carries across. Plot your own four pillars free with our Ba Zi calculator and get comfortable reading a fixed board before the moving layers arrive.