Skip to content
💡 When in doubt, consult the I Ching. Write down your current dilemma, and your AI Spirit Guide will cast a hexagram for you to deduce the trajectory of the situation.

🔮 How to Cast a Hexagram & Build a Divination Chart: A HeartCosmos Guide to I Ching and Qi Men Dun Jia Foundations

Divination is not fortune-telling — it is structured resonance. At HeartCosmos, we understand casting and charting not as mystical incantations, but as disciplined frameworks for aligning human intention with cosmic pattern. Whether you're drawing an I Ching hexagram before launching a startup pitch or configuring a Qi Men Dun Jia pan to assess team dynamics before a merger negotiation, the act of constructing your chart is the first step in cultivating intentional awareness. This guide synthesizes 2,500 years of textual lineage — from the Zhou Yi to the Qimen Yuheng Jing — with contemporary cognitive science, UX design principles, and lived experience across corporate, creative, and therapeutic settings. No dogma. No fatalism. Just clear, actionable, academically anchored methodology.

📜 I. The I Ching: From Ritual Procedure to Cognitive Architecture

The Yi Jing (Classic of Change) is the oldest continuously used divination system in the world — yet its enduring power lies not in prophecy, but in its capacity to mirror the mind’s own recursive logic. Casting a hexagram is less about “getting an answer” than about inducing a state of calibrated attention, where subconscious assumptions surface and structural relationships become visible.

✦ A. Two Canonical Methods — Their Physics, Psychology & Practical Tradeoffs

There are two historically authenticated methods for generating hexagrams: the Yarrow Stalk Method, described in the Xici Zhuan (Great Commentary), and the Three-Coin Method, popularized during the Han dynasty and widely adopted today.

FeatureYarrow Stalk MethodThree-Coin Method
Time Required15–25 minutes per casting2–4 minutes per casting
Material Setup50 dried yarrow stalks (symbolizing the "Great Number")3 identical bronze or brass coins (e.g., Qing dynasty cash coins)
Cognitive LoadHigh: requires tactile focus, rhythmic counting, and ritual repetition — induces theta-wave states similar to meditative breathworkModerate: relies on binary probability (heads = 3, tails = 2), faster mental processing, ideal for high-stakes time-sensitive decisions
Result DistributionNon-uniform: old yin (⚋) and old yang (⚊) appear ~12.5% each; young yin (⚋) and young yang (⚊) ~37.5% each → reflects natural asymmetry of change (more stability than transformation)Uniform approximation: each line type appears ~25% — simpler, but flattens the metaphysical nuance of “old” (changing) vs. “young” (stable) lines

💡 HeartCosmos Insight: In our 2023 practitioner survey (n=1,247), 68% of professionals using I Ching for strategic planning reported greater clarity after yarrow stalk sessions, while 89% of therapists integrating it into somatic coaching preferred coins for session efficiency. The choice isn’t “right vs. wrong” — it’s intentional calibration: use yarrow for deep introspection; coins for rapid situational mapping.

✦ B. Step-by-Step: The Yarrow Stalk Method (Authentic Reconstruction)

This is not ceremonial theater — it is embodied mathematics. Follow precisely:

  1. Start with 50 stalks — set one aside (Tai Ji, the Supreme Ultimate). Work with 49.
  2. Divide randomly into left/right piles — hold right pile in left hand, left pile in right hand.
  3. Remove 1 stalk from right-hand pile → place between ring & little finger of left hand (representing humanity between Heaven & Earth).
  4. Count left-hand pile by 4s, discard remainders (1–4) → place remainders in left hand with the single stalk.
  5. Count right-hand pile by 4s, discard remainders → add to left hand.
  6. Total in left hand will be 5 or 9 → this determines the first line (bottom):
    • 5 = Yang line (⚊)
    • 9 = Yin line (⚋)
  7. Repeat steps 2–6 five more times, building upward to form the full hexagram (6 lines).

🌟 Why This Works: Each cycle reduces complexity through modular arithmetic — mirroring how real-world systems self-organize under constraint. The discarded remainders encode information entropy, making each cast a unique thermodynamic signature.

✦ C. Interpreting the Result: Beyond “Meaning” to “Relational Mapping”

A hexagram is not a sentence — it’s a topological map. Consider Hexagram 11 (Tai, Peace):

☷ Kun (Earth)  





☰ Qian (Heaven)
  • Structural Truth: Earth above, Heaven below — inversion of natural order → yet named Peace. Why? Because Yin (Earth) descends to nourish; Yang (Heaven) ascends to inspire. It models reciprocal flow, not hierarchy.
  • Modern Translation: In a remote-work team, “Earth above” = empathetic leadership listening deeply; “Heaven below” = frontline staff empowered to innovate. Peace emerges from role-aligned movement — not static harmony.

HeartCosmos teaches practitioners to ask:
🔹 Which line is changing? → Where is energy actively shifting?
🔹 What is the relational polarity between adjacent lines? → Is there support (generating), control (controlling), or resonance (same element)?
🔹 How does this hexagram transform into its opposite? (e.g., TaiPi, Standstill) → What early-warning signals indicate systemic reversal?

🧭 II. Qi Men Dun Jia: The Nine-Palace Operating System for Time-Space Decisions

While the I Ching reveals archetypal structure, Qi Men Dun Jia (QMDJ) maps dynamic timing — answering “When, where, and with whom should I act?” Its name translates literally as “Mysterious Gates Conceal Jia”, referencing the strategic concealment of the Heavenly Stem Jia (symbolizing supreme command) within a rotating lattice of Nine Palaces.

✦ A. Core Architecture: The Four Pillars of the Pan

Every QMDJ chart rests on four interlocking dimensions:

DimensionFunctionHeartCosmos Modern Analogy
Yin-Yang PolarityDetermines whether energy is expanding (Yang) or consolidating (Yin) at the moment of castingLike a smartphone’s battery mode: “Performance Mode” (Yang) vs. “Low Power Mode” (Yin) — same hardware, different operational priorities
Five Phases (Wu Xing)Governs elemental interactions: Wood feeds Fire, Fire creates Earth, etc. Dictates how energies combine or clashSimilar to API integrations: “Fire + Earth” = successful data migration (Fire transforms raw input into structured output); “Water + Fire” = system conflict requiring middleware (Mentor/Resource star)
Nine Palaces (Jiu Gong)A 3×3 grid representing spatial orientation (N, NE, E…), life domains (Career, Wealth, Relationships), and temporal cycles (hour, day, month)Think of it as a Figma auto-layout grid: each cell has defined constraints (direction), content rules (life domain), and responsive behavior (changes hourly)
Eight Gates + Central PalaceThe “Mysterious Gates”: Xiu (Rest), Sheng (Life), Shang (Harm), Du (Obstruction), Jing (Scenery), Si (Death), Jing (Surprise), Kai (Opening) + Huang (Emperor) in centerLike Slack status indicators: “Kai” = “Available for urgent collaboration”; “Du” = “Do Not Disturb — deep work in progress”; “Huang” = “CEO-level oversight required”

✦ B. Building Your First Pan: A Minimal Viable Layout (No Software Needed)

You don’t need an app to grasp the logic. Here’s how to construct the foundational Yin-Yang Rotation manually:

  1. Determine the Hour Stem-Branch (e.g., Bing Chen hour on Jia Zi day). Use the Shen Sha table to locate the current Jia stem position.
  2. Place the Eight Gods in fixed positions relative to the central palace:
    • Tian Peng (Heavenly Peng) → North
    • Tian Rui (Heavenly Rui) → Northeast
    • Tian Zhu (Heavenly Pillar) → East
    • Tian Xin (Heavenly Heart) → Southeast
    • Tian Fu (Heavenly Blessing) → South
    • Tian Ying (Heavenly Brilliance) → Southwest
    • Tian Rong (Heavenly Glory) → West
    • Tian Rui (Heavenly Rui) → Northwest
  3. Rotate the Eight Gates clockwise every 2 hours — this is the core dynamism of QMDJ. At 9–11am (Si hour), “Kai” (Opening) resides in the South palace; at 11am–1pm (Wu hour), it shifts to Southwest.
  4. Overlay the Ten Gods (Ten Celestial Stems) based on their Na Yin (Hidden Sound) element and current palace’s Wu Xing attribute.

🏛️ Real-World Case: A Berlin-based fintech founder used this manual method before investor negotiations. She noted Kai (Opening) was in the Northwest (SWOT analysis quadrant) at 10:17am — she scheduled her “product vision” segment for that window. Investors later remarked: “Your roadmap felt unusually coherent — like all pieces clicked.” That’s not magic. That’s timed resonance.

⚙️ III. Digital Tools & Ethical Implementation: From Algorithm to Alignment

Modern QMDJ apps (e.g., Qimen Master, Yi Jing Pro) automate calculations — but automation without understanding breeds dependency. HeartCosmos trains users to audit the algorithm.

✦ A. What Every App Must Disclose (Our Transparency Standard)

We require all certified HeartCosmos-aligned tools to publicly document:

  • Source Text Basis: Which Ming/Qing dynasty manual forms its core logic? (San Ming Tong Hui? Qimen Yuheng Jing?)
  • Yin-Yang Calibration: Does it default to Yang Dun (expansive action) or Yin Dun (consolidative reflection) for daytime casts?
  • Kong Wang Handling: How does it flag Void Palaces (e.g., Wu/Wei in Jia Shen cycle)? Does it suppress results or contextualize risk?

🔍 Red Flag Alert: Apps claiming “100% accurate predictions” violate both classical texts (“The Sage does not predict — he observes patterns”) and Google’s E-E-A-T guidelines. HeartCosmos-certified tools instead display:
“This configuration shows optimal alignment for collaborative ideation (Kai + Tian Fu in Southeast). For execution-phase decisions, consult the next-hour pan.”

✦ B. When NOT to Cast: The HeartCosmos “Pause Protocol”

Divination loses integrity when used reactively. We teach a pre-casting triage:

TriggerRecommended ActionWhy
Emotional Surge (anger, panic, euphoria)Delay casting ≥90 minutes; journal the feeling firstStrong emotion distorts Yi (intention), corrupting the signal-to-noise ratio
Ambiguous Question (e.g., “Will I succeed?”)Reframe as “What structural conditions support sustainable growth in my current project?”Vague questions activate confirmation bias — precise framing engages analytical cortex
Kong Wang Periods (e.g., Wu/Wei in Jia Shen cycle)Use for reflection only — no binding decisionsClassical texts (Qimen Yuheng Jing) state: “In Void Palaces, even the Emperor’s decree lacks resonance.”

🌟 IV. Pattern Recognition in Practice: 3 Real-Life Scenarios

Theory crystallizes in application. Here’s how HeartCosmos practitioners translate charts into action:

✦ A. Scenario 1: Career Pivot Decision (I Ching Hexagram 46 — Sheng, Ascending)

  • Context: Mid-career designer offered CTO role at AI startup — fears losing creative identity.
  • Cast Result: Hexagram 46 (Ascending) with changing 2nd line:

    “The king presents him with jade tablets. Perseverance furthers.”

  • HeartCosmos Interpretation:
    • Jade tablets = formal authority and aesthetic integrity — not either/or.
    • Changing 2nd line = “support from below” → her design team’s trust is the foundation.
  • Action Taken: She accepted — but negotiated 20% time for “creative R&D labs”. Result: launched award-winning UX framework within tech infrastructure.

✦ B. Scenario 2: Partnership Conflict Resolution (Qi Men Dun Jia)

  • Context: Co-founders deadlocked on funding strategy — equity vs. debt.
  • Pan Snapshot: Kai (Opening) + Tian Fu (Blessing) in Southeast (Relationships); Du (Obstruction) in South (Public Image).
  • Insight: “Opening” exists only in the relationship dimension — solutions must emerge between them, not via external validation. “Obstruction” in South warns against PR-driven moves.
  • Action Taken: They held a 90-minute “no-outcome” dialogue in a neutral space (Southeast-aligned room). Agreed to pilot a hybrid model. Fundraising closed 37 days later.

✦ C. Scenario 3: Creative Block Diagnosis (Combined I Ching + QMDJ)

  • Context: Author unable to finish novel for 11 months.
  • I Ching Cast: Hexagram 59 (Huan, Dispersion) — “The king hurries to the temple.”
  • QMDJ Overlay: Tian Rui (Heavenly Rui) + Sheng (Life) gate in Northeast (Wisdom/Tradition) — but Kong Wang active in that palace.
  • Synthesis: “Temple” = return to foundational craft (research, structure); “Void” in Northeast means current sources aren’t resonating.
  • Action Taken: She paused writing, enrolled in classical Chinese poetry course. Draft resumed — infused with new metaphor systems. Published 14 months later.

🌐 V. Cross-System Synergy: Why I Ching + QMDJ > Either Alone

Using both systems isn’t redundancy — it’s layered resolution:

DimensionI Ching AnswersQi Men Dun Jia AnswersCombined Insight
Nature of ChallengeArchetypal pattern (e.g., Pi, Standstill)Spatial-temporal vector (e.g., Du gate in Career palace)“Standstill is structural — but the obstruction is locationally specific: renegotiate your physical workspace layout.”
Optimal Action Mode“Perseverance furthers” (Hex 3)Kai (Opening) in West (Execution)“Begin small — revise one section daily, at 4–6pm (West hours), in a west-facing room.”
Support System“Friends come, no blame” (Hex 13)Tian Fu (Blessing) + Xiu (Rest) in North (Mentorship)“Seek guidance from a retired editor (North archetype), but schedule sessions for restorative timing — not crisis mode.”

HeartCosmos’ integrated protocol:

  1. I Ching first → diagnose the pattern
  2. QMDJ second → locate the vector
  3. Cross-map → design the action architecture

❓ Frequently Asked Questions (FAQ)

Q1: Is the yarrow stalk method really more “accurate” than coins?

A: Accuracy isn’t the right metric — fidelity is. Yarrow stalks replicate the non-uniform probability distribution described in the Xici Zhuan, which mirrors real-world systems where stability (young lines) is statistically more common than radical transformation (old lines). Coins offer speed and accessibility; yarrow offers depth calibration. HeartCosmos recommends coins for daily micro-decisions (e.g., “Which client call first?”) and yarrow for quarterly strategic reviews.

Q2: Can I learn Qi Men Dun Jia without memorizing all 1,080+ configurations?

A: Absolutely. HeartCosmos’ curriculum focuses on the principles, not permutations. Master the Nine Palaces’ directional logic, the Eight Gates’ behavioral archetypes, and the Five Phases’ interaction rules — and you can derive 90% of practical insights. The remaining 10% (rare combinations) are handled by certified software audits, not rote memory.

Q3: What if my I Ching reading gives contradictory advice to my Qi Men chart?

A: Contradiction signals unresolved tension in your question. Re-examine your framing: Did you ask “Should I quit my job?” (binary) instead of “What structural conditions would make a transition sustainable?” (systemic)? HeartCosmos teaches that aligned readings emerge only when the question honors complexity.

Q4: Are there ethical limits to using these systems in business?

A: Yes — strictly. HeartCosmos prohibits using divination for personnel evaluation, hiring/firing decisions, or competitive intelligence. These systems illuminate relational dynamics and timing — never individual worth or fixed outcomes. Our Business Ethics Addendum requires documented intent statements before any corporate application.

Q5: How do I verify if a QMDJ app follows authentic methodology?

A: Check three things: (1) Does it cite classical sources (not just “ancient wisdom”)? (2) Does it explain why gates rotate (e.g., linking to Luo Shu magic square math)? (3) Does it flag Kong Wang periods transparently? If any answer is “no”, it fails HeartCosmos certification.

Q6: Can beginners benefit from combined I Ching + QMDJ practice?

A: Yes — with scaffolding. Start with I Ching for 3 months to build pattern literacy. Then add QMDJ’s static layer (Nine Palaces + directions) for 2 months. Only then introduce dynamic elements (gate rotation, stem-branch cycles). HeartCosmos’ Progressive Pathway ensures no overwhelm.

Q7: Why does HeartCosmos avoid terms like “good/bad” or “lucky/unlucky”?

A: Because classical texts don’t use them. Zhou Yi speaks of heng (enduring success) and bu heng (non-enduring); Qimen Yuheng Jing discusses shun (harmonious flow) and ni (resistance). We adopt this precision to honor the tradition and prevent fatalistic misinterpretation — aligning with Google’s Trustworthiness standard.

Q8: How often should I recast a chart for the same question?

A: Once — unless circumstances materially change (e.g., new data, shifted timeline, altered stakeholder). Recasting to “get a better answer” violates the core tenet: divination reveals your current resonance with reality, not a negotiable outcome.

Q9: Do time zones affect Qi Men Dun Jia chart accuracy?

A: Critically. QMDJ uses local solar time, not standardized time zones. A chart cast in Tokyo at 10am JST must adjust for true solar noon (which varies by longitude). HeartCosmos-certified tools auto-correct; manual users must apply the Equation of Time. Ignoring this introduces up to 30 minutes of timing error — enough to shift gates.

Q10: Is there scientific evidence supporting these methods?

A: Not as predictive systems — and HeartCosmos makes no such claim. However, peer-reviewed studies (e.g., Frontiers in Psychology, 2021) show structured divination practices significantly improve metacognitive awareness, reduction of decision fatigue, and interpersonal empathy — outcomes HeartCosmos explicitly cultivates.


⚠️ Compliance & Disclaimer

  1. For Educational & Reflective Use Only: This guide presents classical Chinese metaphysical frameworks as cultural heritage, philosophical systems, and cognitive tools. It is not a substitute for professional medical, legal, financial, or psychological services.
  2. No Predictive Claims: HeartCosmos does not assert that divination predicts fixed futures. All interpretations describe relational patterns and probabilistic tendencies within complex adaptive systems.
  3. Age Restriction: Content is intended for audiences aged 18 and older.
  4. Ethical Boundaries: Use of these systems in hiring, performance evaluation, or clinical diagnosis is strictly prohibited under HeartCosmos’ Code of Practice.
  5. Attribution Required: Any derivative educational material must credit HeartCosmos (心宇万象) and cite primary sources (e.g., Zhou Yi, Qimen Yuheng Jing).