1. What is in an hour-based Qimen chart
A Qimen Dunjia chart has nine squares called the Nine Palaces. Each palace holds a Door from the Eight Doors, a Star from the Nine Stars, a Spirit from the Eight Spirits, and Heavenly Stems on two layers: the Heaven Plate and the Earth Plate.
Hour-based Qimen makes a new chart every two-hour period. Morning and afternoon charts on the same day differ. There are two main ways to arrange a chart: rotating-plate and flying-plate. Chengshi uses rotating-plate. There are also two methods for setting up the chart, Chaibu and Zhirun. They produce different charts for more than 30% of two-hour periods. Chengshi defaults to Chaibu, and you can switch to Zhirun in Settings.
You don’t need to memorize everything at once. Follow these four steps to get a general picture of a two-hour period.
I’m Sona Orbit, the solo developer of Chengshi. The reference tables in this article follow traditional descriptions and use the same material as the “Learn with Xiaoqi” lessons in Chengshi. Where I discuss adding or subtracting points, I’ll identify that as Chengshi’s own scoring method. Updated November 2026.
2. Step 1: Find the directions of the Nine Palaces
In a traditional chart, south is at the top, north at the bottom, east on the left, and west on the right. That is the reverse of the usual map orientation. Each palace has a number, a name, and an element.
| Xun 4 Southeast · Wood | Li 9 South · Fire | Kun 2 Southwest · Earth |
| Zhen 3 East · Wood | Center 5 Center · Earth | Dui 7 West · Metal |
| Gen 8 Northeast · Earth | Kan 1 North · Water | Qian 6 Northwest · Metal |
The numbers follow the Lo Shu arrangement. Every row, column, and diagonal adds up to 15. A traditional mnemonic puts 9 above 1, 3 to the left of 7, 2 and 4 at the shoulders, 6 and 8 at the feet, and 5 in the center. The elements shown here are what you use to see how two palaces relate to each other.
3. Step 2: Look at the Eight Doors

Think of the Eight Doors as eight kinds of situations. Each Door has a home palace and an element. Every two-hour period, all eight Doors rotate together to new positions.
| Door | Home palace | Traditional category | Chengshi’s score |
|---|---|---|---|
| Open Door | Qian, northwest · Metal | Favorable | +2 |
| Rest Door | Kan, north · Water | Favorable | +2 |
| Life Door | Gen, northeast · Earth | Favorable | +2 |
| View Door | Li, south · Fire | Neutral (some consider it mildly favorable) | 0 |
| Block Door | Xun, southeast · Wood | Neutral (some consider it mildly unfavorable) | −2 |
| Harm Door | Zhen, east · Wood | Unfavorable | −2 |
| Fear Door | Dui, west · Metal | Unfavorable | −2 |
| Death Door | Kun, southwest · Earth | Unfavorable | −2 |
Traditional descriptions often group three Doors as favorable and three as unfavorable, with View and Block usually treated as neutral. Chengshi puts Block in the Avoid group because it represents obstruction and makes it harder to move forward. That is a choice in Chengshi’s scoring method. The Door carries the most weight in a palace, so start there for a general sense of it.
4. Step 3: Find the Chief and other signs
The Nine Stars are Tianpeng, Tianrui, Tianchong, Tianfu, Tianqin, Tianxin, Tianzhu, Tianren, and Tianying. The Eight Spirits are Chief, Serpent, Moon, Six Harmony, White Tiger, Black Tortoise, Nine Earth, and Nine Heaven. To get started, learn to spot the Chief and these five other signs.
| Sign | Meaning | How to find it |
|---|---|---|
| Chief | First of the Eight Spirits. The palace it occupies has more influence over the pace. | Marked directly on the chart. |
| Void | Less ability to act. | Find the cycle that contains this two-hour period. The two Earthly Branches without matching Heavenly Stems are Void. For example, Xu and Hai are unmatched in the Jiazi cycle. |
| Horse Star | Quick movement. | Use the period’s Earthly Branch: Shen, Zi, Chen point to Yin; Yin, Wu, Xu point to Shen; Si, You, Chou point to Hai; and Hai, Mao, Wei point to Si. |
| Door Clash | Reduces the benefit of a favorable Door or adds to the difficulty of an unfavorable one. | The Door’s element restrains the element of its palace. For example, Open Door (Metal) in Zhen palace (Wood). |
| Punishment | Things may get stuck. | One of the six markers reaches a palace with which it has a punishment relationship. For example, Wu (戊, standing for Jiazi) in Zhen palace (Mao), where Zi and Mao punish each other. |
| Tomb | Harder to move a matter forward. | A Heavenly Stem enters its Tomb palace: Yi, Bing, and Wu (戊) in Qian; Ding, Ji, and Geng in Gen; Xin and Ren in Xun; Gui in Kun. |
Traditional descriptions include Fanyin (reversal), Door Control, and Five Unmet Hours. Chengshi currently uses only the signs above to adjust the score: Chief +1, Void −1, Horse Star +0.5, and Door Clash, Punishment, and Tomb −1 each.
5. Step 4: Find your palace
Which palace represents you? Use your birth-year stem, the Heavenly Stem of the year you were born. The year changes at Lichun, a solar term around February 4. If you were born in January or early February, check whether your birthday fell before Lichun. If it did, use the previous year. Your birth-year stem is not your zodiac animal or your Day Master. You only need the year’s Heavenly Stem.
If that stem is Jia, there is one extra step. Jia does not appear directly on the chart. It is hidden beneath one of six markers. This is where the name “Dunjia” comes from.
| Jiazi | Jiaxu | Jiashen | Jiawu | Jiachen | Jiayin |
|---|---|---|---|---|---|
| Wu 戊 | Ji 己 | Geng 庚 | Xin 辛 | Ren 壬 | Gui 癸 |
For example, 1984 was a Jiazi year. To find your palace, look for Wu (戊) on the chart. Then look at that palace’s Door and signs to get a sense of the period. If your birth-year stem lands in the center, it is called “entering the center.” The center has no Door. Its Tianqin Star is lodged in the palace that holds the Tianrui Star. Chengshi places your birth-year stem there too when calculating the score.
Do this for each period, and you can color all twelve periods of the day. I explain how Chengshi turns the points into green, yellow, and red in the guide to the twelve two-hour periods.
6. View a chart on your iPhone
Making a chart by hand takes several steps. First come the solar term, the Yin or Yang arrangement, and the chart number. Then you place the Earth Plate, Heaven Plate, Nine Stars, Eight Doors, and Eight Spirits. Chengshi handles those steps in software. I compared the Four Pillars, solar terms, and Qimen chart arrangements against the original program and public calendar libraries, chart by chart. The results matched across more than 220,000 charts.
- The chart follows the traditional orientation, with south at the top. Color blocks follow the Eight Doors’ categories. A star marks the Chief, and 空 and 馬 mark Void and the Horse Star (the chart keeps the traditional characters in every language).
- Tap a palace to see its Door, Star, Spirit, and Heavenly Stems on the Heaven and Earth Plates. Each item has a plain-language explanation.
- You and any person you select are marked in your respective palaces.
- Charts for today and tomorrow are free, and you can switch between their two-hour periods. Other dates are available with Pro.

To learn from the beginning, open “Learn with Xiaoqi” in Chengshi. It has 17 lessons. The chart cards use the chart for the moment you view them. The first 5 lessons are free and cover the Nine Palaces, Eight Doors, and picking a time. For an example of using a chart to choose a time for a matter, read how to pick a time for moving or signing. You can find Chengshi’s other features on the Chengshi home page and see the app in the screen guide.
7. Common questions
How are Qimen Dunjia and BaZi different?
BaZi uses a person’s birth year, month, day, and time to describe that person. Hour-based Qimen uses the chart for a particular two-hour period to describe that point in time. Chengshi uses both: BaZi for daily energy and hour-based Qimen for each two-hour period’s Smooth, So-so, or Avoid label.
How often does an hour-based Qimen chart change?
Every two-hour period. That makes twelve charts a day.
Should I choose Chaibu or Zhirun?
Both methods are used, and they produce different charts for more than 30% of two-hour periods. If you’re unsure, use Chaibu, Chengshi’s default. To switch, go to “Settings → Advanced → How charts are made.”
My birth-year stem is Jia. Why can’t I find it on the chart?
Jia is hidden beneath one of six markers: Jiazi uses Wu, Jiaxu uses Ji, Jiashen uses Geng, Jiawu uses Xin, Jiachen uses Ren, and Jiayin uses Gui. Find the cycle for your birth year, then look for its marker.
Is Qimen Dunjia useful?
That depends on what useful means to you. Chengshi shows each point it adds or subtracts. If you make an optional nightly check-in about your day, “Track Record” puts the app’s suggestions next to your notes and compares them with a random baseline. You can review the match rate using your own records.
