Chengshi: Qimen Timing

Chengshi: Qimen Timing · Articles

Qimen Dunjia Nine Palaces: Bagua Directions, Numbers, Elements

The Nine Palaces place the eight trigrams around a center, then assign the Lo Shu numbers 1 through 9. Remember that south is at the top, east is on the left, and west is on the right. That lets you line up each palace’s direction, number, and element.

· About 8 min read

繁體中文简体中文EnglishEspañolDeutschFrançaisPortuguês日本語한국어Tiếng Việt

Illustration: Xiaoqi, a small character with a teal square body, stands in the center of a colorful three-by-three grid mat holding a compass

1. The Nine Palaces at a glance

The nine squares of a Qimen chart are called the Nine Palaces (九宮). Eight trigrams sit around the outside, with one palace in the center. Each palace has a fixed number, direction, and element. The Doors, Stars, Spirits, and Heavenly Stems placed in them can change.

巽4XunSoutheastWood 木離9LiSouthFire 火坤2KunSouthwestEarth 土震3ZhenEastWood 木中5CenterCenterEarth 土兌7DuiWestMetal 金艮8GenNortheastEarth 土坎1KanNorthWater 水乾6QianNorthwestMetal 金

The fixed Nine Palaces layout, with south at the top. Large text names the trigram. Below it are the Lo Shu (洛書) number, direction, and element.

PalaceDirectionCompass bearingElementThree solar terms (節氣)
Kan 1 (坎1)North337.5°–22.5°WaterWinter Solstice, Minor Cold, Major Cold
Gen 8 (艮8)Northeast22.5°–67.5°EarthStart of Spring, Rain Water, Awakening of Insects
Zhen 3 (震3)East67.5°–112.5°WoodSpring Equinox, Clear and Bright, Grain Rain
Xun 4 (巽4)Southeast112.5°–157.5°WoodStart of Summer, Grain Full, Grain in Ear
Li 9 (離9)South157.5°–202.5°FireSummer Solstice, Minor Heat, Major Heat
Kun 2 (坤2)Southwest202.5°–247.5°EarthStart of Autumn, End of Heat, White Dew
Dui 7 (兌7)West247.5°–292.5°MetalAutumn Equinox, Cold Dew, Frost’s Descent
Qian 6 (乾6)Northwest292.5°–337.5°MetalStart of Winter, Minor Snow, Major Snow
Center 5 (中5)CenterNo directionEarthNo assigned solar terms

Divide a 360-degree circle into eight equal parts and each direction covers 45 degrees. The assignment of three solar terms to each palace appears in the Northern Song text Wujing Zongyao (武經總要). This is what Yanbo Diaosou Ge (煙波釣叟歌) calls “one qi governs three” (一氣統三). Solar terms determine the chart number (局數). I cover the details in how to determine the chart number.

I’m Sona Orbit, the solo developer of Chengshi: Qimen Timing (乘時). This article introduces traditional practices. I draw mainly on historical texts available to read online and link each one when I first name it. Where texts differ, I set out their accounts without choosing one. This is cultural background, not advice on what to do. Written in December 2026.

2. Where the directions come from: Later Heaven bagua

The eight trigrams have two arrangements. Qimen uses the Later Heaven bagua (後天八卦). Its textual basis is chapter 5 of the Shuogua Zhuan (說卦傳). Starting with “the sovereign emerges in Zhen” (帝出乎震), the passage moves through Zhen, Xun, Li, Kun, Dui, Qian, Kan, and Gen. It also describes directions.

TrigramWhat the text saysDoes it state a direction?
Zhen (震)“Zhen is the east”Yes
Xun (巽)“Xun is the southeast”Yes
Li (離)“The trigram of the south”Yes
Kun (坤)“Kun is the earth”No; it falls between south and west in the sequence
Dui (兌)“Dui is mid-autumn”It gives a season; autumn corresponds to west
Qian (乾)“The trigram of the northwest”Yes
Kan (坎)“The trigram of due north”Yes
Gen (艮)“The trigram of the northeast”Yes

Six of the eight directions are stated directly. Kun and Dui require the sequence or seasonal association. Draw this circle and you have the outer ring of the Nine Palaces.

Yanbo Diaosou Ge describes the element assignments in three lines. In short, Kan is Water and Li is Fire. The center, Kun, and Gen are Earth; Qian and Dui are Metal; and Zhen and Xun are Wood. Of the eight outer palaces, Water and Fire have one each. Wood, Metal, and Earth have two each, with another Earth palace in the center.

3. Where the numbers come from: the Lo Shu

The arrangement of the nine numbers is called the Lo Shu. Its mnemonic says, “Wear 9 above and step on 1 below; 3 on the left and 7 on the right; 2 and 4 at the shoulders, 6 and 8 at the feet; 5 in the center” (戴九履一,左三右七,二四為肩,六八為足,五居中央). Every row, column, and diagonal adds up to 15. Opposite outer palaces add up to 10.

This number arrangement appears in early texts. Da Dai Liji, “Mingtang” (大戴禮記・明堂) describes the nine rooms of the Bright Hall and gives the sequence “2, 9, 4, 7, 5, 3, 6, 1, 8” (二九四七五三六一八). Write it in rows of three, following the old right-to-left reading order, and you get today’s Nine Palaces layout.

LeftCenterRight
492
357
816

The mnemonic appears in a commentary on Shushu Jiyi (數術記遺). The Sui-era Wuxing Dayi (五行大義) sets out the number-to-trigram pairing: Kan 1, Kun 2, Zhen 3, Xun 4, Center 5, Qian 6, Dui 7, Gen 8, and Li 9. It is the same pairing used in Qimen.

There is a historical distinction here. In their summary of Dunjia Yanyi (遁甲演義), the editors of the Complete Library of the Four Treasuries wrote that before the Han dynasty, the Lo Shu was a text rather than a diagram. They dated the later dot diagram to after the Song dynasty. In their view, the Nine Palaces method came from the Bright Hall numbers and the Taiyi passage through the Nine Palaces in the Yiwei Qian Zao Du (易緯乾鑿度). On that account, linking the name “Lo Shu” to this diagram came later.

4. Why south is at the top, and how to use a compass

In the traditional layout, the Li trigram sits at the top. South is up, north is down, east is left, and west is right. Compared with a north-up phone map, the chart is turned halfway around. Shuogua Zhuan calls Li the trigram of the south, then refers to a sage facing south to govern. When you face south, south is ahead and east is on your left, just as on the chart.

There are two simple ways to line the chart up with your surroundings.

  • Face south and hold the chart in front of you. The top of the chart points straight ahead, and its left side is east.
  • If you use a map, find the compass bearing and check the table in section 1. For example, a bearing of 100 degrees falls between 67.5 and 112.5 degrees, in Zhen 3.

Remember that east is on the chart’s left, and you can keep the two sides straight.

5. Two ways to move through the Nine Palaces

When learning to build a chart, it helps to separate two paths through the same layout. One follows the numbers from 1 to 9. The other circles the outer palaces without entering the center.

By number492357816Around the ring492357816

The path on the left follows the numbers from 1 to 9 across the chart. The path on the right circles the outside. Clockwise, it goes Kan, Gen, Zhen, Xun, Li, Kun, Dui, Qian.

PathOrderWhat follows it in the rotating-plate method (轉盤)
Number order1→2→3→4→5→6→7→8→9; reverse for Yin Dun (陰遁)The Three Wonders (三奇) and Six Instruments (六儀) on the Earth Plate (地盤), and the palace where the Duty Door (值使) lands
Outer ring1→8→3→4→9→2→7→6The Nine Stars (九星), Eight Doors (八門), Eight Spirits (八神), and stems on the Heaven Plate (天盤)

Knowing which layer follows the numbers and which circles the outside can help you avoid mistakes when laying out a chart by hand. In the flying-plate method (飛盤), the Nine Stars and Eight Doors also follow the numbers. That is a key difference from the rotating-plate method. Qimen Baojian Yuding (奇門寶鑑御定) criticizes placing a Star in the center by the “flying palm” method. The two approaches were debated in earlier texts.

6. The center has no Door. Where does it lodge?

The center palace has no direction or Door of its own. When laying out a chart, its stem and the Tianqin (天禽) Star are assigned to an outer palace. This is called lodging (寄宮). Historical texts give more than one account of where they lodge.

AccountSources
Always lodge in Kun 2 (坤2), for both Yang Dun (陽遁) and Yin Dun (陰遁)Wujing Zongyao places Tianqin in Kun 2. Dunjia Yanyi gives an example with Yang Dun chart number 1: Jia (甲) Chen (辰) is in palace 5 and lodges in Kun 2. Yixue Xiangshu Lun, “Chaoshen Jieqi Zhizhi” (易學象數論・超神接氣直指) gives an example with Yin Dun chart number 4 that also lodges in Kun
Yang Dun lodges in Kun 2; Yin Dun lodges in Gen 8 (艮8)Qimen Dunjia Tongzong (奇門遁甲統宗) first gives the rule of always lodging in Kun, then notes that another edition gives this version. Qimen Baojian Yuding also records this account
Yang Dun lodges in Xun (巽); Yin Dun lodges in Zhen (震)Qimen Baojian Yuding records this account and its reasoning, but says older editions mostly use Kun and follows them

Why is Kun commonly used? Qimen Baojian Yuding explains that the center is Earth and has no Door. Kun, in the southwest, is also Earth. It sits between Fire in the south and Metal in the west, linking the traditional element sequence of Fire producing Earth and Earth producing Metal. Many rotating-plate layouts now lodge in Kun 2. That is the method I use in Chengshi: Qimen Timing.

7. Using the layout to read a chart

When you open a chart, start with the fixed layout. Then look at what has been placed in each palace.

  • Find a direction: If you are looking at a particular direction, find its palace.
  • Compare elements: Doors and Stars have their own elements. Traditionally, readers compare them with the element of the palace they occupy. The full Door-to-palace reference is in my Eight Doors guide.
  • Compare two palaces: When two people are assigned different palaces, a traditional reading also compares how those palaces’ elements relate.

To practice, open today’s chart in Chengshi: Qimen Timing. It also has south at the top. Tap a palace to see its Door, Star, Spirit, and the stems on its Heaven Plate and Earth Plate. For a fuller reading sequence, see my introduction to Qimen Dunjia. I cover the Stars and Spirits in Nine Stars and Eight Spirits.

8. Common questions

Does Qimen Dunjia use Earlier Heaven or Later Heaven bagua?

The directions of the Nine Palaces in hour-based Qimen use Later Heaven bagua (後天八卦): Kan in the north, Li in the south, Zhen in the east, and Dui in the west. The textual basis is chapter 5 of Shuogua Zhuan (說卦傳).

Why do the rows, columns, and diagonals add up to 15?

The numbers 1 through 9 total 45, and the three rows each add up to 15. The Lo Shu arrangement also makes each column and both diagonals add up to 15. Opposite outer palaces add up to 10.

Why is south at the top of a Qimen chart?

That is the traditional directional layout, with the southern Li trigram at the top. If you face south, the chart’s top points ahead of you. East is on your left and west is on your right.

Does the center palace have a Door?

No. The eight Doors occupy the eight outer palaces. The center’s stem and Tianqin Star lodge in another palace, most commonly Kun 2. Other accounts place them in Kun for Yang Dun and Gen for Yin Dun.

Are the Qimen Nine Palaces the same as the nine flying stars in feng shui?

They share the fixed Lo Shu directions and numbers, but differ in what is placed on them. Qimen places Doors, Stars, Spirits, the Three Wonders, and the Six Instruments. This article covers only the shared layout.

← Back to articles