← Back to calculator

Qi Men Dun Jia Calculator

Calculate your Qi Men Dun Jia chart for free. See your QMDJ chart with rule-based interpretation. Compare with your Bazi to find the best timing for decisions.

YYYY-MM-DD

One-click chart with full reading

Enter date, hour and optional location to cast a complete QMDJ chart — nine palaces, nine stars, eight doors, eight spirits, heaven/earth stems, void, and spirited horse. Tap any palace to see its star-palace relation, door clash, stem response, and overall reading.

  • •True solar time: location → longitude → auto offset
  • •Maoshan rotating method: full heaven/earth, stars, doors, spirits
  • •Palace-level reading: relations, door clash, stem responses, void, horse
  • •Global formations: Green Dragon, Bird-in-Nest, Five-Misfits, Fu/Fan Yin
Chart generated!

What is Qi Men Dun Jia?

Qi Men Dun Jia (奇门遁甲) is an ancient Chinese divination system that arranges the Eight Doors (八门), Nine Stars (九星), Eight Spirits (八神), and Heaven/Earth stems into a 9-palace grid for a specific moment in time.

While Bazi reads the destiny encoded in your birth moment, QMDJ reads the energy landscape of a specific hour, day, or month — making it the classic tool for choosing timing (择时) and direction (择方).

Each of the nine palaces combines a door, a star, and a spirit to reveal which actions are favored in that window. The 值符 (Chief Star) and 值使 (Chief Door) anchor the reading.

Qi Men Dun Jia vs Bazi

Bazi answers "who you are" — your talents, cycles, and life tendencies from the birth chart. QMDJ answers "when to act" — the best moment and direction for a specific decision.

Used together, Bazi shows the potential and QMDJ pinpoints the timing. This combined reading is something single-tool competitors cannot offer.

How to Read a Qi Men Dun Jia Chart

A QMDJ chart looks dense because every palace carries four layers at once. Read it in this order and it becomes manageable.

1. The nine palaces (九宫)

The chart sits on the Luoshu square: eight outer palaces around a centre. Each palace maps to a direction (north, northeast, east…) and holds a door, a star, a spirit and a pair of stems. Which palace you read depends on the direction you are asking about and on the matter itself.

2. Three Marvels and Six Rites (三奇六仪)

Nine stems are distributed across the palaces. 乙 丙 丁 are the Three Marvels (sun, moon and star); 戊 己 庚 辛 壬 癸 are the Six Rites. Which stem starts the arrangement depends on the current solar term and on whether the chart is 阳遁 (yang escape) or 阴遁 (yin escape) — that is what the 局数 (chart number) in your result refers to.

3. 值符 and 值使 (Chief Star and Chief Door)

Every hour chart has one leading star and one leading door. They mark where the command of that hour sits. Practitioners usually locate them first, then read every other palace relative to them.

4. Where the answer comes from (用神)

QMDJ never returns one verdict for the whole hour. You first pick the 用神 — the “useful god” for your question: 开门 for career and official matters, 生门 for money, 六合 for a partner, 玄武 for a lost object. Then you read only the palace holding it, and how it relates to the palace holding you.

The Eight Doors (八门) at a Glance

Doors describe what kind of action a palace favours. They matter more directly than the stars or spirits.

DoorNatureFavours
休门RestAuspiciousRest, recovery, private meetings, de-escalating a negotiation
生门LifeAuspiciousStarting something, investing, seeking profit, treatment and recovery
开门OpenAuspiciousOfficial business, job applications, opening a business, asking for favours
景门SceneMixedVisibility, promotion, pitches, documents — good for being seen, bad for keeping secrets
杜门BlockMixedConcealment, avoiding attention, defensive moves, closing something off
伤门HarmInauspiciousCompetition, confrontation, surgery — only once you are already committed
惊门FearInauspiciousDisputes, litigation, panic; usable mainly to expose something
死门DeathInauspiciousEndings, funerals, cutting ties; never for launching or travelling

The Nine Stars (九星)

Each star keeps a home palace; where it lands in the chart tells you which kind of energy is active in that palace.

StarHome palaceNatureGoverns
天蓬Tian Peng坎 · NorthInauspiciousWater. Adventure, secrecy, loss — good for hidden moves, bad for anything public.
天芮Tian Rui坤 · SouthwestInauspiciousEarth. Illness, and also study. Favourable for seeking treatment or a teacher, not for signing.
天冲Tian Chong震 · EastAuspiciousWood. Motion, competition, speed. Favours acting first rather than waiting.
天辅Tian Fu巽 · SoutheastAuspiciousWood. Culture, education, a patron who helps.
天禽Tian Qin中 · CentreAuspiciousEarth. Stability and coordination; it sits in the centre and moderates the other palaces.
天心Tian Xin乾 · NorthwestAuspiciousMetal. Strategy, medicine, planning and leadership.
天柱Tian Zhu兑 · WestInauspiciousMetal. Argument, litigation, demolition. Good for holding a position, bad for reconciliation.
天任Tian Ren艮 · NortheastAuspiciousEarth. Ground, property, patience, steady accumulation.
天英Tian Ying离 · SouthInauspiciousFire. Fame and brilliance, but also impatience and attention that burns out fast.

The Eight Spirits (八神)

Spirits describe the hidden tone of a palace — how things tend to happen there. They occupy the eight outer palaces only; the centre carries no spirit.

SpiritNatureGoverns
值符ChiefAuspiciousAuthority, a senior backer, legitimate process. Almost always the best spirit to act under.
腾蛇Coiling SnakeInauspiciousFalse alarms, strangeness, entanglement. Anything started here tends to drag on.
太阴Great YinAuspiciousConcealment and quiet protection. Good for private matters, bad for publicity.
六合Six HarmoniesAuspiciousAlliance, marriage, brokerage, deals. The spirit to look for in a negotiation.
白虎White TigerInauspiciousForce, injury, confrontation. Only appropriate for what has to be pushed through.
玄武Black TortoiseInauspiciousDeception, theft, loss. For a missing object, this is the palace to read.
九地Nine EarthMixedGrounding, staying put, property. Good for defence and storage, bad for launching.
九天Nine HeavenAuspiciousHeight, publicity, travel, promotion. Good for anything that needs to be seen.

Three Worked Examples

The same chart is read differently depending on the question. In an hour chart 日干 (the day stem) stands for the person asking, 时干 (the hour stem) for the matter asked about.

Signing a contract

Read — 开门 for the deal itself, 六合 for whether the two sides actually combine, 值符 for whether the counterparty is legitimate, and the 日干 palace for your own position.

Avoid — 惊门 (disputes), 玄武 (deception), 天柱 (litigation). If the deal palace holds any of them, re-time the signing.

Travelling or moving house

Read — 九天 for the journey, 生门 for the outcome, and the palace matching your destination direction — that palace is read as the place itself.

Avoid — 死门 and 杜门 (closed doors), plus any palace sitting in 空亡 (void).

A job interview

Read — 开门 for the position, 值符 for the interviewer, 天心 for strategy. Compare the strength of the 开门 palace against the 日干 palace to see who holds the advantage.

Avoid — 伤门 (open conflict) or 白虎 (pressure) landing in your own 日干 palace.

What QMDJ Can and Cannot Tell You

It is good at

  • •Choosing between two times for the same action — signing, travelling, an interview, a first meeting.
  • •Choosing a direction to face, sit or travel once you already know what you are doing.
  • •Showing whether the palace of “you” and the palace of “the matter” support each other for one specific question.

It does not do

  • •Predict fixed events. A chart reads the quality of a window, not a guaranteed outcome.
  • •Replace medical, legal or financial advice — a favourable 开门 does not make a contract sound.
  • •Work from a guessed time. The chart is hour-based: if the time is wrong, every door, star and spirit shifts with it.

Keep Reading

Qi Men Dun Jia FAQ

Is this Qi Men Dun Jia calculator free?

Yes. You can build an unlimited number of hour charts with no account and no payment. The chart is computed in your browser and is not uploaded to a server.

Which QMDJ method does this tool use?

It builds an hour chart (时家奇门) with the rotating-plate method (转盘) of the Mao Shan lineage — the same arrangement used by most Chinese QMDJ software since the 1980s. Day, month and year charts are not offered; timing questions need the hour chart.

How exact does the time need to be?

The chart is built for a two-hour period (时辰), so an error of more than about an hour moves every door, star and spirit. If you enter a city or a longitude, the calculator applies a true-solar-time correction so the 时辰 follows local solar time rather than clock time.

What is the 局数 (chart number) in my result?

It is the 阳遁 or 阴遁 sequence number from 1 to 9, derived from the current solar term. It decides which palace the first stem lands in, and therefore where every door, star and spirit ends up.

Why do two questions at the same hour give different answers?

Because the 用神 differs. The grid is identical, but a career question is read from 开门 or 值符, a money question from 生门, a partner question from 六合. Same chart, different palace to read.

Can QMDJ predict lottery numbers or guaranteed results?

No. It ranks the quality of a time window for a chosen action. Treat it as a decision aid and a traditional framework, not as a prediction of fixed outcomes.