Skip to content

Qimen Dunjia Glossary: Yin and Yang Dun, Formations, Stars, Doors, Spirits and Stems

Qimen Dunjia terms are the names you meet when reading a Qimen Dunjia (奇门遁甲) chart: the solar term, dun and yuan that select a formation, the earth and heaven stems in the nine palaces, the nine stars, eight doors and eight spirits, and the Xun leader, Zhi Fu and Zhi Shi. HeyFate uses hour-based Qimen on a rotating board with the chaibu (拆补) method. This glossary follows that one system. The Chinese column preserves the names output by the engine; romanizations are provided for reference. Each entry says what the word is and how it is derived, not whether anything is favourable.

Key numbers

  • 63 entries: 3 on the system, 8 on selecting a formation, 4 layers, 9 palaces, 9 stars, 8 doors, 8 spirits, 9 stems, and 5 on the Xun leader, Zhi Fu and Zhi Shi.
  • 18 formations (局, jú): 9 yang and 9 yin, numbered 1 to 9. The app prints them as “Formation n”; Which Method Fits Your Question calls the same 18 “charts”.
  • 24 solar terms, each with 3 yuan: the 12 terms from Winter Solstice to Grain in Ear are yang dun and the 12 from Summer Solstice to Major Snow are yin dun, so the table has 72 cells.
  • 5 days to a yuan: the Jia or Ji day on or just before the current day is the fu tou (符头), and its branch decides upper, middle or lower.
  • 1,080 configurations: each of the 18 formations pairs with 60 stem-branch hours, and the Dunjia Yanyi (juan 1) gives the same count.
  • 9 stars but only 8 doors: the central palace has no door.
  • Usually a new chart each double hour: the stars, doors and spirits turn with the hour, and when a solar term changes partway through a double hour, the formation can change too.

The system

Qimen has several systems, and two practitioners may draw different charts for the same moment. HeyFate uses only the following.

Term Chinese Meaning
Hour-based Qimen 时家奇门 Qimen cast by the double hour. Day, month and year systems are not implemented.
Rotating board 转盘 The stars and doors turn as a whole around the outer ring. The flying board (飞盘) is not implemented.
Centre lodged in Kun 2 中五寄坤二 The central palace’s star and earth stem are handled through palace 2. See the sections on stars and on Zhi Fu below.

Selecting a formation

Selecting a formation means working out which of the 18 applies at this moment: the solar term gives the dun, the fu tou gives the yuan, and a table gives the number.

Term Chinese Meaning
Solar term 节气 The term in force at the moment of casting, judged by the exact moment.
Yang dun 阳遁 The 12 terms from 冬至 to 芒种. Earth stems run forward through the nine palaces.
Yin dun 阴遁 The 12 terms from 夏至 to 大雪. Earth stems run backward through the nine palaces.
Fu tou 符头 The Jia or Ji day on or just before the current day. Its branch sets the yuan.
Upper yuan 上元 The fu tou’s branch is 子, 午, 卯 or 酉.
Middle yuan 中元 The fu tou’s branch is 寅, 申, 巳 or 亥.
Lower yuan 下元 The fu tou’s branch is 辰, 戌, 丑 or 未.
Formation number 局数 1 to 9, looked up from the solar term and yuan. It sets the palace where the earth stem 戊 starts.

The chaibu method reads the number from the table below; each cell gives upper, middle and lower yuan in that order. The zhirun (置闰) method has complex rules that vary by school, and HeyFate does not implement it.

Yang dun term Numbers Yin dun term Numbers
冬至 1, 7, 4 夏至 9, 3, 6
小寒 2, 8, 5 小暑 8, 2, 5
大寒 3, 9, 6 大暑 7, 1, 4
立春 8, 5, 2 立秋 2, 5, 8
雨水 9, 6, 3 处暑 1, 4, 7
惊蛰 1, 7, 4 白露 9, 3, 6
春分 3, 9, 6 秋分 7, 1, 4
清明 4, 1, 7 寒露 6, 9, 3
谷雨 5, 2, 8 霜降 5, 8, 2
立夏 4, 1, 7 立冬 6, 9, 3
小满 5, 2, 8 小雪 5, 8, 2
芒种 6, 3, 9 大雪 4, 7, 1

The four layers

“Heaven, earth, human and spirit layers” is the traditional way of describing the chart. The engine and the app do not label a human or spirit layer; they simply give each palace its door and spirit.

Term Chinese Meaning
Earth layer 地盘 The nine stems laid out by the formation number. It does not turn with the hour. On the chart it is written after the slash in each palace.
Heaven layer 天盘 The nine stars carrying the earth stems of their home palaces, turning around the outer ring with the hour. On the chart it is written before the slash.
Human layer 人盘 Traditionally, the layer of the eight doors, which turns with Zhi Shi.
Spirit layer 神盘 Traditionally, the layer of the eight spirits, which is laid out from Zhi Fu.

Nine palaces

The nine palaces are the nine cells of a Qimen chart, arranged in three rows as the Luoshu square. The centre is palace 5, and the outer eight run clockwise as 坎一, 艮八, 震三, 巽四, 离九, 坤二, 兑七, 乾六.

Palace Number Home star Home door
坎一 1 天蓬 休门
坤二 2 天芮 死门
震三 3 天冲 伤门
巽四 4 天辅 杜门
中五 5 天禽 None
乾六 6 天心 开门
兑七 7 天柱 惊门
艮八 8 天任 生门
离九 9 天英 景门

Nine stars

Each star has a fixed home and turns as a whole around the outer ring, carrying the earth stem of its home palace. This table gives the homes only and makes no claim about whether a star is favourable.

Term Chinese Home
Tian Peng 天蓬 坎一
Tian Rui 天芮 坤二; Tian Qin travels with it
Tian Chong 天冲 震三
Tian Fu 天辅 巽四
Tian Qin 天禽 中五; it holds no palace of its own, lands with Tian Rui and brings the central earth stem
Tian Xin 天心 乾六
Tian Zhu 天柱 兑七
Tian Ren 天任 艮八
Tian Ying 天英 离九

Eight doors

There are only 8 doors, because the central palace has none, and they turn around the outer ring. The names are traditional, and this table makes no claim about whether a door is favourable.

Term Chinese Home
Xiu Men 休门 坎一
Si Men 死门 坤二
Shang Men 伤门 震三
Du Men 杜门 巽四
Kai Men 开门 乾六
Jīng Mén 惊门 兑七
Sheng Men 生门 艮八
Jǐng Mén 景门 离九

Eight spirits

The eight spirits start from the palace of Zhi Fu and fill the outer ring in a fixed order, clockwise in yang dun and counterclockwise in yin dun. Some versions write the fifth and sixth as 勾陈 and 朱雀, in the same positions; HeyFate writes 白虎 and 玄武.

Term Chinese Order
Zhi Fu 值符 1st, on the palace where the Zhi Fu star lands
Teng She 螣蛇 2nd
Tai Yin 太阴 3rd
Liu He 六合 4th
Bai Hu 白虎 5th
Xuan Wu 玄武 6th
Jiu Di 九地 7th
Jiu Tian 九天 8th

Three wonders and six instruments

The nine stems on the earth layer are the three wonders (三奇) and the six instruments (六仪), laid out from the formation’s palace in the order 戊, 己, 庚, 辛, 壬, 癸, 丁, 丙, 乙. The stem 甲 does not appear on its own; it hides under one of the six instruments.

Term Group The 甲 it hides
戊 Six instruments 甲子
己 Six instruments 甲戌
庚 Six instruments 甲申
辛 Six instruments 甲午
壬 Six instruments 甲辰
癸 Six instruments 甲寅
丁 Three wonders None
丙 Three wonders None
乙 Three wonders None

Xun leader, Zhi Fu and Zhi Shi

These 5 terms decide how the chart turns in a given double hour, and all of them come from the hour pillar.

Term Chinese Meaning
Xun leader 旬首 The 甲 of the ten-hour run containing the hour pillar, with the instrument it hides under. There are 6, written like 甲戌己, meaning 甲戌 hides under 己.
Zhi Fu 值符 The home star of the Xun leader’s palace. It moves to the earth palace holding the hour stem; when the hour stem is 甲, it uses the Xun leader’s instrument.
Zhi Shi 值使 The home door of the Xun leader’s palace. From that palace it moves one palace per double hour through the nine palaces, forward in yang dun and backward in yin dun.
Hour stem 时干 The stem of the hour pillar, which decides where Zhi Fu goes.
Lodging 寄宫 When the Xun leader sits in the centre, Zhi Fu is 天禽 and Zhi Shi is the 死门 of palace 2. When Zhi Fu or Zhi Shi moves to the centre, the panel says palace 5 and the board lodges it in palace 2.

Judgements such as chart patterns (格局) and seasonal strength (旺相休囚) are not part of the engine. The model writes the reading from the chart, so this glossary leaves those words out.

How to use this glossary

Qimen has no term-by-term hover text yet, so this page is the reference to keep beside the chart. After casting, the chart appears in the conversation’s Facts panel. The labels are translated, but the values stay in Chinese characters, because that is what the engine outputs. As of October 2026, the desktop app works like this:

  1. Read the rows at the top: Solar term, Dun · Yuan · Ju, Xun leader, Zhi Fu and Zhi Shi.
  2. Read the nine-palace grid: three rows in Luoshu order. Each cell lists, from the top, the spirit, the star, the door, then the heaven and earth stems separated by a slash. The centre cell has only its earth stem.
  3. Check against this page: use “Selecting a formation” to see where the formation came from, then “Xun leader, Zhi Fu and Zhi Shi” to see how this hour turns.

A worked example: casting at 10:00 Beijing Time on 28 October 2026, the engine gives 霜降, 阴遁, 下元, Formation 2, Xun leader 甲戌己, Zhi Fu 天蓬 on palace 8 and Zhi Shi 休门 on palace 3. The day is 乙亥, so the fu tou is 甲戌, and 戌 means lower yuan; the table gives 2 for the lower yuan of 霜降. The hour is 辛巳, which sits in the 甲戌 run, so the Xun leader is 甲戌, hiding under 己.

The current interface casts for the moment you ask by default. To see which questions suit Qimen, read Which Method Fits Your Question. To see how a moment becomes stems and branches, read How a Bazi Chart Is Drawn. HeyFate is a desktop app for macOS and Windows: charts are built on your computer and read by your own AI subscription or API key. See the install guide.

Terms that are easy to mix up

Qimen’s terms depend on one another, and several share a name with terms from other methods.

Terms The difference
Zhi Fu the star, Zhi Fu the spirit The Zhi Fu row in the panel names the star on duty. The first of the eight spirits is also called 值符, and the two land on the same palace.
Zhi Fu, Zhi Shi Zhi Fu is a star and Zhi Shi is a door, both taken from the Xun leader’s palace.
Xun leader, Zhi Fu The Xun leader is a stem-branch pair with its instrument; Zhi Fu is one of the nine stars.
Stars, doors, spirits Three separate layers with 9, 8 and 8 names. Every star starts with 天 and every door ends in 门; 九天 and 九地 are spirits.
Palace, door A palace is a cell and a door is a name that lands in it. The centre has a palace but no door.
Tian Fu 天辅, Tian Fu 天府 天辅 is a Qimen star; 天府 is a Zi Wei major star.
Jīng Mén 惊门, Jǐng Mén 景门 Different tones, different doors, at 兑七 and 离九.
Palace number, formation number Both run from 1 to 9. One names a cell, the other the formation.
Heaven stem, earth stem The stem before the slash is the heaven stem and the one after is the earth stem. When Tian Qin travels with Tian Rui, a palace has two heaven stems.
Three wonders, Three Wonders Noble Qimen’s three wonders are the earth stems 乙, 丙 and 丁. Bazi’s Three Wonders Noble reads the order of the year, month and day stems, and has three sets.
Chaibu, zhirun Two ways of selecting a formation. Chaibu sets the yuan from the fu tou, and it is what HeyFate uses.
Rotating board, flying board Two different layouts of stars and doors. HeyFate uses only the rotating board.
太阴, 白虎, 玄武, 六合 They share names with Zi Wei’s 太阴, Liu Yao’s 白虎 and 玄武 and Bazi’s 六合, but here all four are spirits.

These terms come from a traditional divination practice. The explanations here only say what each word refers to; they are offered for cultural interest and self-reflection, and they are not verdicts on anything.

Sources

AI-generated content, for reference only; not medical, legal, financial or psychological advice. These methods come from cultural traditions, and HeyFate offers them for cultural interest, entertainment and self-reflection.

All articles