Qi Men Dun Jia Calculator · 3D chart

A free online Qimen Dunjia chart: converts your local clock time to true solar time, casts the nine palaces by the Hour-based Rotating Plate (Chai-bu) method, and then explains what is on the chart in plain language.

Cast a chart No sign-in needed to cast. Works in any browser on phone or desktop, nothing to install. Casting, per-palace imagery, and pattern analysis are free forever.
Learn more ↓

What it actually computes

Qimen Dunjia is the most structurally intricate of the Chinese divinatory arts: the moment is converted to stems and branches, the yin/yang cycle and the chart number are fixed, and then the nine stars, eight gates, eight deities, and the heaven/earth stems are laid into the nine palaces by rule. The whole derivation is deterministic — same moment, same longitude, same chart, for anyone.

This site uses the Hour-based · Rotating Plate · Chai-bu school, rolls the day at 23:00, and corrects clock time to true solar time by longitude (the clock face only — solar-term boundaries are untouched). Flying Plate, Yin Plate, and intercalation rules from other schools are deliberately kept out: mixing schools is the single most common error here, and once mixed, charts can no longer be compared against each other.

You can check whether the casting is right

11,868 cellscompared cell by cell against 297 charts printed in published casebooks — 100% agreement
2,600 chartsexhaustive property check of the placement rules — 0 discrepancies

There is no “close enough” in casting: it is either right or wrong. So it is pinned down in tests — the nine-palace diagrams from the books, one cell at a time. If a change to the engine puts a single cell out of place, the code does not ship.

The reading is a perspective, not a prediction

Once the chart is cast, something still has to decide which palace answers your question. Get that wrong and every sentence afterwards is describing a different matter.

We publish that number, and we publish both measures: the loose one — the main palace lands somewhere within the set the author used — hits 68.8% across 321 casebook examples; the strict one — the same palace the author reaches for first — hits 43.2% across the 266 examples where that comparison is meaningful. So it is usually in the right neighborhood, but picking the author's own opening palace happens less than half the time.

Why both: the loose measure alone flatters us, since it counts “roughly right” as right; the strict one alone understates, since casebooks themselves often read several palaces for one question. A loose measure makes you optimize the wrong thing, so we read both — and publish both. Not a flattering number, but the real one, and we keep working on it.

Why the two denominators differ: 55 of those 321 transcriptions open with the chart header (“the Chief lands in palace N, the Envoy in palace M…”). That is our transcription habit, not the author's chosen palace, and leaving it in would count the Chief's palace as his pick — so the strict measure excludes them and is computed over the remaining 266 (on that same subset the loose measure reads 71.4%). One more caveat: the strict measure compares against whichever palace appears first in our transcription, and transcription order is not necessarily the author's own order — so read it as a sign of where our own work needs to go, not as an absolute accuracy figure.

The reading text is generated by an AI from the cast chart. It is for reflection only and is not medical, financial, legal, or psychological advice, nor a substitute for a doctor, a lawyer, or a financial adviser. For decisions that matter, come back to the real world and talk to a professional.

How to ask a useful question

  • Ask about one concrete thing. “How am I doing lately” cannot be read; “should I take this job next month” can.
  • One matter, one casting. Asking the same thing over and over does not make the chart truer — it only makes you more unsettled. That is this tradition's own rule, not a house rule we invented.
  • No question, no casting. If nothing is actually being decided, the chart has nowhere to land.

First time looking at one of these? Start with How to read a chart: the nine palaces, the five symbols in each cell, and which cell is “you”. The app has a one-minute version too.

What is free and what is not

Casting, the 3D nine palaces, per-palace imagery, pattern analysis, and multi-palace combinations — free forever, no account needed.

Only the AI reading is metered, because each one is a real call to a language model. Signing in gives you 1 free reading (free readings are limited per network per day; the app says so when they run out); after that:

$0.993 readings
$2.9910 readings

Readings live on your account — switch devices or browsers and they are still there, and they do not expire. Payments are handled by Stripe; we never see your card number. Crisis responses, safety messages, and any attempt where the AI did not come through are never charged.

Frequently asked questions

How is a Qimen Dunjia chart cast?
The moment of asking is converted into stems and branches; the solar term and its three periods fix the yin/yang cycle and the chart number; then the nine stars, eight gates, eight deities, and the heaven/earth stems are laid into the nine palaces by rule. The whole derivation is deterministic — same moment, same longitude, same chart for everyone. This calculator does the entire conversion from your time and longitude.

Which Qimen school does this site use?
Hour-based, Rotating Plate, Chai-bu method, with the day rolling at 23:00. Rules from other schools — Flying Plate, Yin Plate, day/month/year charts, the Zhi-run intercalation — are never mixed in: once schools are mixed, charts can no longer be compared against each other.

What is the difference between Chai-bu and Zhi-run?
Both answer the same question: how to assign the chart number when the leader day and the solar term fall out of step. Chai-bu splits and patches at the nearest leader day; Zhi-run inserts a leap chart number around certain solar terms. This site uses Chai-bu only, with no toggle.

Do I need true solar time?
Yes. Clock time in a unified time zone can differ from the actual solar time at your longitude by more than an hour — enough to cross an hour boundary and change the whole chart. This site corrects the clock face by longitude; solar terms are still judged by the real astronomical moment, unaffected by that shift.

Can I cast repeatedly for the same question?
Not recommended. One matter, one casting is this discipline's own rule: asking the same thing again does not make the chart more accurate, only the decision harder.

Is the chart casting verified?
Yes. The casting layer is compared cell by cell against 297 charts printed in classical masters' books — 11,868 cells, 100% match — plus an exhaustive 2,600-chart check of the plate rules with zero mismatches. These comparisons live in the test suite: if one cell disagrees after an engine change, the code cannot ship.

Is this a Qimen Dunjia chart generator I can use online for free?
Yes. Casting the chart, the 3D nine palaces, per-palace imagery and pattern analysis are free and need no account; only the AI reading is paid per use. It runs in the browser on a phone or a desktop — there is no software to install.

New to Qimen Dunjia — where should a beginner start?
Start with the one-minute guide: the nine palaces and their directions, the five symbols in a cell, and which cell is you. Once those three make sense, come back and cast; everything on the chart will have a name.

Is it free?
Casting, the 3D nine palaces, per-palace imagery, pattern analysis, and multi-palace combinations are free forever, no account needed. Only the AI reading is metered, because each one is a real call to a language model; signing in gives you one free reading (gifts are limited per network per day; the app says so when they run out). Crisis responses, safety messages, and any attempt the AI failed to deliver are never charged.

About your data

Location is used only to compute true solar time and to show your city name. Casting happens entirely on your device and works offline. Only when you tap Get reading do your question and a summary of the chart go to the reading service, to write that one reply — not stored, not tied to your identity. A safety check runs first, even when no reading is produced. Signing in uses your email solely to remember your reading balance: no ads, never shared. See the Privacy Policy.