What is Qi Men Dun Jia? Complete Beginner's Guide to the Ancient Chinese Strategy System
A 90-second history
The legend traces Qi Men Dun Jia (QMDJ) to the Yellow Emperor (黃帝), who is said to have received it as a divine gift to defeat Chi You at the Battle of Zhuolu, ~2700 BCE. The system was then refined over millennia by:
- Jiang Ziya (姜子牙) — the military strategist who used QMDJ to win the Zhou dynasty.
- Zhang Liang (張良) — the master strategist who used it to help Liu Bang found the Han dynasty.
- Zhuge Liang (諸葛亮) — the most famous QMDJ practitioner; his "Empty Fort Strategy" (空城計) and "Borrowing Arrows from the East Wind" are classical case studies.
- Liu Bowen (劉伯溫) — Ming dynasty advisor who used it to help build the imperial capital.
QMDJ shares the same root philosophy as BaZi (八字) — both are applied I Ching (易經) — but they answer different questions:
| BaZi | Qi Men Dun Jia | |
|---|---|---|
| Question | "Who am I and what's my life pattern?" | "What's the best moment, direction, and method for THIS specific decision?" |
| Time scale | Lifetime (10-year DaYun cycles) | Hour-specific (4-hour windows) |
| Output | 8 characters describing your nature | 9-palace map describing the moment's qi |
| Use case | Self-knowledge, career, marriage | Contracts, launches, meetings, travel, conflict |
How does QMDJ actually work?
Every moment in time can be mapped onto a 3×3 grid of nine palaces — a Luo Shu Square (洛書), the same magic square that grounds Chinese cosmology since the Xia dynasty:
┌─────────┬─────────┬─────────┐ │ 4 SE │ 9 S │ 2 SW │ ├─────────┼─────────┼─────────┤ │ 3 E │ 5 ★ ★ │ 7 W │ ├─────────┼─────────┼─────────┤ │ 8 NE │ 1 N │ 6 NW │ └─────────┴─────────┴─────────┘
Each palace gets populated with four symbolic layers:
Layer 1 — The 8 Doors (八門)
The doors describe how to act:
- 生門 Birth (Sheng) — NE. Best door overall. New beginnings, growth, fertility.
- 休門 Rest (Xiu) — N. Diplomacy, healing, gentle influence.
- 開門 Open (Kai) — NW. Authority, official matters, contracts that need approval.
- 杜門 Block (Du) — SE. Concealment, defense, study, hiding.
- 景門 Light (Jing) — S. Visibility, fame, presentations, advertising.
- 死門 Death (Si) — SW. Endings, closing deals, demolition, anything you want to terminate.
- 驚門 Fright (Jing) — W. Disputes, lawsuits, gossip, anything noisy.
- 傷門 Harm (Shang) — E. Confrontation, hunting, debt collection — also competition.
Layer 2 — The 9 Stars (九星)
The stars describe what kind of energy is present:
天蓬 (Tian Peng) — Water of Hardship — North native. 天任 (Tian Ren) — Earth of Anchoring — NE native. 天衝 (Tian Chong) — Wood of Aggression — East native. 天輔 (Tian Fu) — Wood of the Scholar — SE native. 天英 (Tian Ying) — Fire of Performance — South native. 天芮 (Tian Rui) — Earth of Convalescence — SW native. 天柱 (Tian Zhu) — Metal of Destruction — West native. 天心 (Tian Xin) — Metal of the Doctor — NW native. 天禽 (Tian Qin) — Earth of the Center — center native.
When a star rotates out of its native palace, the question is whether it lands in a "happy" or "uncomfortable" location — that affects how cleanly its energy expresses.
Layer 3 — The 8 Deities (八神)
The deities describe the witness to the action:
值符 (Zhi Fu — Direct Officer) — the guardian, the most auspicious deity. 螣蛇 (Teng She — Slithering Snake) — illusion, deception, nightmares. 太陰 (Tai Yin — Greater Yin) — secrecy, intuition, women's matters. 六合 (Liu He — Six Harmonies) — relationships, marriage, partnerships. 勾陳 (Gou Chen — Hooked Sequence) — bureaucracy, paperwork, delays. 朱雀 (Zhu Que — Vermilion Bird) — communication, news, gossip. 九地 (Jiu Di — Nine Earths) — protection, foundation, hiding. 九天 (Jiu Tian — Nine Heavens) — boldness, risk-taking, "the sky is the limit."
Layer 4 — The 10 Stems (十干)
The same Heavenly Stems used in BaZi (甲乙丙丁戊己庚辛壬癸) populate each palace at two levels:
- Earth Plate (地盤) — static, the underlying terrain.
- Heavenly Plate (天盤) — rotated, the moving energy on top.
How to read a QMDJ chart in 5 minutes
Suppose you want to ask: "Should I sign this partnership contract today at 3 PM?"
Step 1 — Generate the chart for the exact moment
QMDJ uses **time-based charts** (時家奇門), recalculated every 2 hours. So 3 PM is in the 申 (Shen / Monkey) hour. Your tool should generate a fresh chart for "today, 15:00–16:59" with your local lat/lng.Step 2 — Locate the palace that matches your question
For partnerships, look at:- Palace 4 (SE) — for binding agreements (Sheng energy).
- Palace 6 (NW) — for authority/approval (Kai door).
- The palace where 六合 (Liu He) deity lands — partnership guardian.
Step 3 — Check the door, star, and deity in that palace
- If you see 生門 + 天輔 + 六合 in Palace 4 → green light, sign now.
- If you see 死門 + 天蓬 + 螣蛇 in Palace 4 → wait. The qi favors closing things, not starting them. Try a different hour.
Step 4 — Cross-check with global structures
- Is 空亡 (Void) active on the relevant palace? (The qi is hollow — the action lacks weight.)
- Is 入墓 (Tomb Entry) active? (The energy is buried — outcomes won't materialize.)
- Is 三奇 (Three Marvels: Yi-Bing-Ding) present? (Bonus auspicious indicator.)
Step 5 — Decide
QMDJ doesn't make the decision for you. It tells you what the qi favors. If everything aligns and you also have business reasons to sign, sign. If you see "wait" indicators **and** your gut says wait, the qi is confirming what you already sense. If they conflict — that's the most useful information of all.Famous QMDJ case studies
Zhuge Liang's "Borrowing Arrows from the East Wind" (借東風)
In the Battle of Red Cliffs (208 CE), Zhou Yu's fleet needed an east wind to ignite Cao Cao's ships. The wind was blowing west. Zhuge Liang predicted (using QMDJ + meteorology) the exact moment when the wind would shift east — a brief window of about 6 hours. The fleet sailed in that window. Cao Cao's fleet burned. The Three Kingdoms era was decided.
The Empty Fort Strategy (空城計)
When Sima Yi's army of 150,000 marched on Xicheng (defended by only 2,500 of Zhuge Liang's troops), Zhuge Liang opened the city gates, sat on the wall playing his guqin, and let Sima Yi see exactly that. Sima Yi, knowing Zhuge Liang's QMDJ skill, assumed the unmoving qi indicated a hidden ambush — and retreated. The "Empty Fort" worked because Sima Yi knew QMDJ too and trusted the energy reading over what his eyes told him.
These stories may be partly mythological, but they encode real QMDJ doctrine: the system works on the gap between what is seen and what is energetically true.
Modern uses of QMDJ
Today, QMDJ practitioners and Chinese entrepreneurs use it for:
- Date selection (擇日) — wedding dates, business launches, contract signings, real estate purchases, surgery dates.
- Direction-finding (方位學) — which direction to face for negotiations, which seat to take in a meeting, which exit to use leaving an interview.
- Negotiation strategy — knowing whether the qi favors aggressive (傷門), patient (杜門), or transparent (景門) approaches.
- Conflict timing — when to escalate vs when to wait.
- Recovery from setbacks — using 太陰 (Greater Yin, secrecy) windows for regrouping.
- Travel — choosing departure times and directions when meaning matters (job interviews, deals, exams).
- Health decisions — using 天心 (Heavenly Doctor) windows for surgery or major medical interventions.
How to start practicing QMDJ today
1. Generate your first chart — pick a real upcoming decision (a meeting, a launch, a conversation), enter the time + place, and read the door + star + deity in the relevant palace. 2. Track outcomes — write down what QMDJ said and what actually happened. Build your own correlation database. After 20–30 trackable decisions you'll have a sense of how the system maps to your reality. 3. Don't over-rely on it — QMDJ is a decision-aid, not a fortune-teller. The best practitioners use it to inform decisions made on business/relationship/health grounds, not to replace them. 4. Pair with BaZi — your natal BaZi tells you what qi you're naturally compatible with. A QMDJ chart that favors Yin Wood when you're a Yin Wood Day Master is double-strong for you specifically.
Frequently Asked Questions
Is Qi Men Dun Jia the same as feng shui?
No. Feng shui (風水) is about spatial qi — how energy flows in a building or land. QMDJ is about temporal qi — how energy structures change moment to moment. They share roots in the same Luo Shu and 8 Trigrams, but feng shui asks "where should I put my desk?" and QMDJ asks "what time should I sign?".
Is QMDJ scientifically validated?
QMDJ is a decision framework, not a physics theory. It maps temporal patterns onto symbolic structures that practitioners find correlate with outcomes. There is no peer-reviewed RCT validating it. Use it the same way a chess player uses opening theory — as a structured way to think about a complex situation, not as a guarantee.
Can I use QMDJ for trading?
Some practitioners do. The market obviously moves on news, fundamentals, and order flow — QMDJ adds an additional timing layer. Be skeptical of anyone selling a "QMDJ trading signal." Use it for personal trade timing within a strategy that already works on its own merits, not as the strategy itself.
How long does it take to learn QMDJ?
Reading basic charts: a weekend. Reading them well: 3–6 months of daily practice. Becoming a working consultant: 2–5 years with a teacher. Joey Yap's QMDJ Academy is the most accessible English curriculum; serious students often go to Taiwanese or mainland masters for deeper transmission.
What's the difference between time-based and Year/Month/Day QMDJ?
Time-based (時家奇門) is for hour-specific decisions and is what most modern practitioners use. Day-based (日家奇門) is for daily themes. Month-based and Year-based have specialized uses — but if you're starting out, time-based is what matters.
Why do different QMDJ tools give different charts?
Three reasons: (1) timezone bugs — most calculators read your input as if it were Beijing time, which is wrong outside China; (2) school differences — Yin Dun deities can be 8 different ways depending on lineage (Joey Yap / Taiwan / Hong Kong / SEA Yan Bo); (3) the Chai Bu Fa (拆補法) vs Zhi Run Fa (置閏法) dispute about how to assign Ju numbers to in-between dates. Our calculator uses Chai Bu Fa + the Joey Yap deity convention.
---
Ready to read your first chart?
Generate a QMDJ chart for a decision you're making →
Free. No signup. Picks the right ju number for your moment with timezone correctness.
---