The 64 Hexagrams & 384 Lines System in Xuan Kong Da Gua: Complete Gua Qi & Gua Yun Derivation

Throw away rote memorization. Once you understand the binary operator linking the Upper Trigram and the Lower Trigram of any six-line hexagram, you can look at any of the 64 Hexagrams and calculate its exact Gua Qi Five Phase (1 to 9) and Gua Yun Star Period (1 to 9) in under three seconds-without touching a lookup chart! Building on Chapter 02: Theoretical Foundations, this third monograph reveals the two great transformation engines of classical I Ching metaphysics-Jing Fang’s Eight-Palace Line Transformation (Ba Gong Bian Yao) and the San Yuan Inner-Outer Trigram XOR Operator-provides the Complete 64-Hexagram Master Matrix across all eight trigram families, and explains how the 384 Individual Yao Lines (`0.9375°` each) operate in real-world site alignment.

UK
Master Ung Khiem (Master Ung Khiem)
Classical Feng Shui & East Asian Metaphysics Master · UK MASTER ACADEMY
Published · Updated
7,500-word Monograph · 29 min read
🇻🇳 Vietnamese
The 64 Hexagrams and 384 Lines System in Xuan Kong Da Gua: Complete Gua Qi and Gua Yun Tables

Monograph Dossier: Chapter 03 to 64 Gua & 384 Yao

Matrix Structure:
8 Trigram Palaces × 8 Transformations = 64 Great Hexagrams
Yao Resolution:
64 Hexagrams × 6 Lines = 384 Yao (0.9375° per line)
Gua Qi (Substance):
1, 2, 3, 4, 6, 7, 8, 9 (Determined by Leading Palace Trigram)
Gua Yun (Function):
Star Periods 1 to 9 (Determined by Upper vs. Lower Trigram XOR)
Parent Hexagrams:
8 Pure Gua (Period 1) + 8 Inverted Gua (Period 9) = 16 Fu Mu Gua
Descendant Gua:
48 (Zi Sun Gua) distributed across Periods 2, 3, 4, 6, 7, 8
Active Line Rule:
Dong Yao : Central Lines 2, 3, 4, 5 preferred over Edge Lines 1 & 6
✦ Core Formula: Every hexagram is a 6-bit binary vector [L1, L2, L3, L4, L5, L6]. Its Palace Trigram gives its Five-Phase Substance (Gua Qi); the XOR difference between Upper [L4,L5,L6] and Lower [L1,L2,L3] gives its Temporal Period (Gua Yun).

Executive Summary for Readers & AI Search (GEO Summary)

  • Two Coordinates of Every Hexagram: In Xuan Kong Da Gua, every one of the 64 hexagrams possesses two numbers from the set {1, 2, 3, 4, 6, 7, 8, 9}: (1) Gua Qi (Five-Phase Substance), which determines whether the hexagram belongs to 1 to 6 Water, 2 to 7 Fire, 3 to 8 Wood, or 4 to 9 Metal; and (2) Gua Yun (Star Period Function), which determines its timeliness across the Nine Periods.
  • Instant Gua Qi Algorithm: Read the Leading Palace Trigram (the Upper/Outer Trigram on the standard Outer Ring) and map it to the Early Heaven Bagua on the Luo Shu: Kun ☷ = 1 Water, Xun ☴ = 2 Fire, Li ☲ = 3 Wood, Dui ☱ = 4 Metal, Gen ☶ = 6 Water, Kan ☵ = 7 Fire, Zhen ☳ = 8 Wood, Qian ☰ = 9 Metal.
  • Instant Gua Yun (Star Period) Algorithm: Compare the 3 lines of the Upper Trigram (`L4, L5, L6`) with the 3 lines of the Lower Trigram (`L1, L2, L3`). Where two corresponding lines are different, write a Yin line (0); where they are the same, write a Yang line (1)-or equivalently, check which lines of the Pure Parent Trigram changed to produce the second trigram: No change = Period 1; Line 1 & 3 change = Period 2; Line 2 & 3 change = Period 3; Line 1 & 2 change = Period 4; Line 3 changes = Period 6; Line 2 changes = Period 7; Line 1 changes = Period 8; All 3 lines change = Period 9.
  • 16 Parent Hexagrams vs. 48 Offspring Hexagrams: The 8 Pure Hexagrams (Period 1) are the San Yuan Father Hexagrams; the 8 Inverted-Trigram Hexagrams (Period 9) are the San Yuan Mother Hexagrams; the remaining 48 Hexagrams are the Six Offspring Sons and Daughters (8 hexagrams each in Periods 2, 3, 4, 6, 7, and 8).
  • The 384 Yao Lines: Each hexagram’s 5.625° arc contains 6 lines of 0.9375° each, counted from Bottom Line 1 to Top Line 6 along the compass progression. Flipping a single Moving Line (Dong Yao) transforms a hexagram into its 6-line neighbor, unlocking advanced sitting-facing and water-mouth combinations.

1. Anatomy of a Six-Line Hexagram: Inner Host (Lower) vs. Outer Guest (Upper)

Six stacked lines. Two three-line trigrams. Before you can compute any formula in Xuan Kong Da Gua, you must see the internal architecture of a six-line hexagram (Da Gua) the way classical masters see it. Every hexagram is built from the ground upward, from Line 1 at the bottom (Chu Yao) to Line 6 at the top (Shang Yao), and divides naturally into two three-line halves:

  • The Lower / Inner Trigram (Xia Gua or Nei Gua · Lines 1, 2, 3): Represents the Host (Zhu), Earth, the internal foundation, the interior of the residence, and the quiet root of qi.
  • The Upper / Outer Trigram (Shang Gua or Wai Gua · Lines 4, 5, 6): Represents the Guest (Bin), Heaven, the external manifestation, the approaching environment, and the active crown of qi.
  • The Three Cosmic Powers (San Cai) Inside Every Hexagram: Within the six lines, Lines 1 and 2 belong to Earth (Di); Lines 3 and 4 belong to Humanity (Ren) standing at the threshold between inner and outer worlds; and Lines 5 and 6 belong to Heaven (Tian). Furthermore, Line 2 is the central ruler of the Lower Trigram, while Line 5 is the supreme imperial ruler (Jun Wei) of the Upper Trigram-hence the classical I Ching praise for "Central and Correct" (Zhong Zheng) lines!

Notice the correspondence between the Lower and Upper Trigrams: Line 1 corresponds to Line 4 (the bottom lines of the two trigrams); Line 2 corresponds to Line 5 (the middle lines of the two trigrams); and Line 3 corresponds to Line 6 (the top lines of the two trigrams). That exact 3-pair correspondence (`L1 and L4`, `L2 and L5`, `L3 and L6`) is the key to calculating every hexagram’s Star Period!

2. Deriving Gua Qi (1 to 9): The Eight Trigram Palaces & He Tu Five Phases

How do the 64 hexagrams divide into Eight Palace Families (Ba Gong) of 8 hexagrams each? In the San Yuan Xuan Kong Da Gua compass system, the 64 hexagrams are grouped by their Leading Trigram (the Upper / Outer Trigram on the standard Outer Ring, or the Lower / Inner Trigram on the inverted Inner Ring). Each of the 8 Trigram Palaces carries an immutable Gua Qi Number and He Tu Five Phase :

Test yourself right now. Take the hexagram Heaven Water Song ( ䷅): its Upper Trigram is Heaven Qian ☰, so on the Outer Ring its Palace is Qian and its Gua Qi is 9 Metal! Take Water Heaven Xu ( ䷄): its Upper Trigram is Water Kan ☵, so its Palace is Kan and its Gua Qi is 7 Fire! Simple. Instant. Unerring.

3. Jing Fang’s Eight-Palace Line Transformation (Ba Gong Bian Yao) Explained

During the Western Han Dynasty, the brilliant (I Ching) scholar Jing Fang (77 to 37 BCE)-disciple of Jiao Yanshou-systematized the Eight-Palace Line Transformation Method (Ba Gong Gua) in his Jing Shi Yi Zhuan . In Jing Fang’s classical divination system (which is also used in Na Jia Wen Wang Gua and referenced by several Ming-Qing geomantic schools), each of the 8 Palaces begins with its Pure Six-Line Hexagram (Ba Chun Gua) and generates 7 descendant hexagrams by progressively changing lines from bottom to top:

  1. Palace Root (Ben Gong Gua): The Pure Hexagram where Upper and Lower Trigrams are identical (e.g., Qian Wei Tian ䷀).
  2. First-Generation Change (Yi Shi Gua): Flip Bottom Line 1 (e.g., Qian ䷀ flips Line 1Tian Feng Gou ䷫).
  3. Second-Generation Change (Er Shi Gua): Flip Line 2 as well (e.g., Gou ䷫ flips Line 2Tian Shan Dun ䷠).
  4. Third-Generation Change (San Shi Gua): Flip Line 3 as well (e.g., Dun ䷠ flips Line 3Tian Di Pi ䷋).
  5. Fourth-Generation Change (Si Shi Gua): Flip Line 4 (e.g., Pi ䷋ flips Line 4Feng Di Guan ䷓).
  6. Fifth-Generation Change (Wu Shi Gua): Flip Line 5 (e.g., Guan ䷓ flips Line 5Shan Di Bo ䷖).
  7. Wandering Soul (You Hun Gua): Because flipping Line 6 would turn the hexagram into the Pure Hexagram of the opposite palace, the transformation steps backward and flips Line 4 again (e.g., Bo ䷖ flips Line 4Huo Di Jin ䷢).
  8. Returning Soul (Gui Hun Gua): Finally, the lower three lines (Lines 1, 2, 3) flip together back to the original Palace Root trigram (e.g., Jin ䷢ restores Lower QianHuo Tian Da You ䷍).

Why must a serious Xuan Kong Da Gua practitioner understand both Jing Fang’s Sequential Line Changes and the San Yuan Inner-Outer Trigram Transformation? Because in San Yuan Xuan Kong Da Gua, rather than changing Line 4 and Line 5 in the Upper Trigram (which alters the Upper Trigram in Generations 4, 5, You Hun, and Gui Hun), we keep the Leading Trigram fixed as the Gua Qi Palace and transform the three lines of the second trigram against the Leading Trigram in 8 combinations (`0, L1, L2, L3, L1+2, L2+3, L1+3, L1+2+3`) to generate the **8 Star Periods (Gua Yun 1, 8, 7, 6, 4, 3, 2, 9)**! Let us see how that works in Section 4.

THE GUA YUN (STAR PERIOD 1 to 9) LINE-TRANSFORMATION MATRIX Comparing Upper Trigram [L4, L5, L6] vs. Lower Trigram [L1, L2, L3] across All 8 Palace Groups PERIOD 1 · GREEDY WOLF 0 Lines Change (Pure Gua) Upper == Lower Trigram Resulting Gua: Kun ☷ (Qi 1) Ex: Qian ䷀, Kun ䷁, Kan ䷜, Li ䷝ Zhen ䷲, Xun ䷸, Gen ䷳, Dui ䷹ ★ 8 Father Gua (San Yuan) PERIOD 8 · LEFT ASSIST Line 1 Changes (Bottom) L1 ≠ L4 | L2=L5, L3=L6 Change Pattern: Zhen ☳ (Qi 8) Ex: Gou ䷫, Yu ䷏, Jie ䷻, Bi ䷕ Xiao Chu ䷈, Lv ䷷, Kun ䷮, Fu ䷗ 1st Single-Line Transformation PERIOD 7 · BROKEN ARMY Line 2 Changes (Middle) L2 ≠ L5 | L1=L4, L3=L6 Change Pattern: Kan ☵ (Qi 7) Ex: Tong Ren ䷌, Shi ䷆, Sui ䷐ Bi ䷇, Da You ䷍, Gui Mei ䷵, Jian ䷴, Gu ䷑ 2nd Single-Line Transformation PERIOD 6 · MARTIAL STAR Line 3 Changes (Top) L3 ≠ L6 | L1=L4, L2=L5 Change Pattern: Gen ☶ (Qi 6) Ex: Lv ䷉, Qian ䷎, Guai ䷪, Bo ䷖ Shi He ䷔, Jing ䷯, Feng ䷶, Huan ䷺ 3rd Single-Line Transformation PERIOD 4 · LITERARY STAR Lines 1 & 2 Change Only L3 == L6 Matches Change Pattern: Dui ☱ (Qi 4) Ex: Dun ䷠, Lin ䷒, Cui ䷬, Ding ䷱ Jia Ren ䷤, Jie ䷧, Zhun ䷂, Da Chu ䷙ 3rd Yao from Opposite (9) PERIOD 3 · JADE STORE Lines 1 & 3 Change Only L2 == L5 Matches Change Pattern: Li ☲ (Qi 3) Ex: Song ䷅, Ming Yi ䷣, Jin ䷢, Xu ䷄ Xiao Guo ䷽, Zhong Fu ䷼, Yi ䷚, Da Guo ䷛ 2nd Yao from Opposite (9) PERIOD 2 · GIANT GATE Lines 2 & 3 Change Only L1 == L4 Matches Change Pattern: Xun ☴ (Qi 2) Ex: Wu Wang ䷘, Sheng ䷭, Kui ䷥ Da Zhuang ䷡, Guan ䷓, Ge ䷰, Meng ䷃, Jian ䷦ 1st Yao from Opposite (9) PERIOD 9 · RIGHT ASSIST All 3 Lines Change (1,2,3) Upper == Inverse of Lower Resulting Gua: Qian ☰ (Qi 9) Ex: Tai ䷊, Pi ䷋, Ji Ji ䷾, Wei Ji ䷿ Xian ䷞, Sun ䷨, Heng ䷟, Yi ䷩ ★ 8 Mother Gua (San Yuan)
Figure 3.1: The 8 Line-Transformation states between Upper and Lower Trigrams that generate the 8 Star Periods (Gua Yun 1, 8, 7, 6, 4, 3, 2, 9) across all 64 hexagrams.

4. Deriving Gua Yun (Star Periods 1 to 9): The Inner-Outer Trigram XOR Algorithm

Now let me teach you the 3-Second Mental XOR Trick that my advanced students at UK Master Academy use to compute the Gua Yun Star Period of any hexagram on sight.

Look at the Upper Trigram (`Lines 4, 5, 6`) and the Lower Trigram (`Lines 1, 2, 3`) of any hexagram, and compare them position by position-Bottom (`L1 vs L4`), Middle (`L2 vs L5`), and Top (`L3 vs L6`)-to form a 3-line Resultant Trigram using this single rule:

  • Same Polarity (`Yang + Yang` or `Yin + Yin`) · Write a Broken Yin Line (- -) (no change = quiet = Yin).
  • Different Polarity (`Yang + Yin` or `Yin + Yang`) · Write a Solid Yang Line (-) (changed = active = Yang).

Now read the Early Heaven Luo Shu Gua Qi number of that 3-line Resultant Trigram! Let us verify all 8 possibilities:

  1. Zero lines differ (`000` = Kun ☷): What is Kun’s Luo Shu number? 1! Every Pure Hexagram where Upper = Lower has Gua Yun = Period 1 (Greedy Wolf)!
  2. All three lines differ (`111` = Qian ☰): What is Qian’s Luo Shu number? 9! Every Inverted Hexagram where Upper is the exact opposite of Lower (`Tai ䷊, Pi ䷋, Ji Ji ䷾, Wei Ji ䷿, Xian ䷞, Sun ䷨, Heng ䷟, Yi ䷩`) has Gua Yun = Period 9 (Right Assistant)!
  3. Only the Bottom line differs (`L1 ≠ L4` · Bottom Yang `100` = Zhen ☳): What is Zhen’s Luo Shu number? 8! Every hexagram where only the bottom line of the two trigrams differs has Gua Yun = Period 8 (Left Assistant)!
  4. Only the Middle line differs (`L2 ≠ L5` · Middle Yang `010` = Kan ☵): What is Kan’s Luo Shu number? 7! Every hexagram where only the middle line differs has Gua Yun = Period 7 (Broken Army)!
  5. Only the Top line differs (`L3 ≠ L6` · Top Yang `001` = Gen ☶): What is Gen’s Luo Shu number? 6! Every hexagram where only the top line differs has Gua Yun = Period 6 (Martial Star)!
  6. Bottom and Middle lines differ (`L1 ≠ L4` and `L2 ≠ L5` · `110` = Dui ☱): What is Dui’s Luo Shu number? 4! Every hexagram where Lines 1 & 2 differ (and Line 3 matches) has Gua Yun = Period 4 (Literary Star)!
  7. Bottom and Top lines differ (`L1 ≠ L4` and `L3 ≠ L6` · `101` = Li ☲): What is Li’s Early Heaven Luo Shu number? 3! Every hexagram where Lines 1 & 3 differ (and Line 2 matches, i.e., changing the 2nd line from the Period-9 Opposite) has Gua Yun = Period 3 (Rank / Lu Cun)!
  8. Middle and Top lines differ (`L2 ≠ L5` and `L3 ≠ L6` · `011` = Xun ☴): What is Xun’s Early Heaven Luo Shu number? 2! Every hexagram where Lines 2 & 3 differ (and Line 1 matches, i.e., changing the 1st line from the Period-9 Opposite) has Gua Yun = Period 2 (Giant Gate)!

5. The 16 Parent Hexagrams (Fu Mu Gua): 8 Pure Period-1 & 8 Inverted Period-9

Before inspecting the 64-hexagram master tables, pause and honor the royal aristocracy of the 64 hexagrams: the 16 Parent Hexagrams (Shi Liu Fu Mu Gua). Why did Grandmaster Yang Yun Song’s Tian Yu Jing declare that "East, West, and the Four Gua Perfect Combinations-specifically the Parent Gua-hold the supreme dragon-water mystery"?

  • The 8 Father Hexagrams (Period 1 · Ba Chun Qian Kun Zi): Formed when the Upper and Lower Trigrams are identical (`0` line changes): Pure Qian ䷀ (Qi 9, Yun 1), Pure Dui ䷹ (Qi 4, Yun 1), Pure Li ䷝ (Qi 3, Yun 1), Pure Zhen ☳ ䷲ (Qi 8, Yun 1), Pure Xun ☴ ䷸ (Qi 2, Yun 1), Pure Kan ☵ ䷜ (Qi 7, Yun 1), Pure Gen ☶ ䷳ (Qi 6, Yun 1), and Pure Kun ☷ ䷁ (Qi 1, Yun 1).
  • The 8 Mother Hexagrams (Period 9 · Ba Fou Tai Jiao Gua): Formed when the Upper and Lower Trigrams are 100% Yin-Yang Opposites (`3` line changes): Heaven Earth Pi ䷋ (Qi 9, Yun 9), Lake Mountain Xian ䷞ (Qi 4, Yun 9), Fire Water Wei Ji ䷿ (Qi 3, Yun 9), Thunder Wind Heng ䷟ (Qi 8, Yun 9), Wind Thunder Yi ䷩ (Qi 2, Yun 9), Water Fire Ji Ji ䷾ (Qi 7, Yun 9), Mountain Lake Sun ䷨ (Qi 6, Yun 9), and Earth Heaven Tai ䷊ (Qi 1, Yun 9).

Look at the numbers of those 16 Parent Hexagrams: every Father Hexagram has Gua Yun = 1, and every Mother Hexagram has Gua Yun = 9, so any Father paired with any Mother automatically achieves `1 + 9 = 10` Sum-of-Ten in Star Period (`He Shi Gua Yun`)! Even more remarkably, in our current Period 9 Fire Era (2024 to 2043), the 8 Mother Hexagrams (Period 9) are the Direct Spirit (Zheng Shen) Rulers, while the 8 Father Hexagrams (Period 1) are the Indirect Spirit (Ling Shen) Water Rulers! We will explore that Period 9 master strategy in depth in Chapter 06: Zheng Shen & Ling Shen in Da Gua.

6. Master Table Part I: The 32 Yang-Group Palaces (Qian 9, Dui 4, Li 3, Zhen 8)

Below is Part I of our complete reference matrix covering the first four Trigram Palaces-Qian Palace (Gua Qi 9 Metal), Dui Palace (Gua Qi 4 Metal), Li Palace (Gua Qi 3 Wood), and Zhen Palace (Gua Qi 8 Wood)-listing all 32 hexagrams, their Upper/Lower Trigrams, changing lines, Gua Qi Five Phases, and Gua Yun Star Periods:

Table 3.1: Complete Mathematical Matrix of the 32 Hexagrams in Qian (9), Dui (4), Li (3) & Zhen (8) Palaces
Palace & Gua Qi Hexagram & Symbol Pinyin Name Upper / Lower Lines Changed (vs Upper) Gua Qi Element Gua Yun (Star Period) Family Rank
Qian Palace ☰
Gua Qi 9
Yang Metal
1. Pure Qian ䷀Qian Wei Tian☰ / ☰None (Pure)9 MetalPeriod 1Father (Pure)
2. Gou ䷫Tian Feng Gou☰ / ☴Line 1 (Bot)9 MetalPeriod 81st Line Change
3. Tong Ren ䷌Tian Huo Tong Ren☰ / ☲Line 2 (Mid)9 MetalPeriod 72nd Line Change
4. Lv ䷉Tian Ze Lv☰ / ☱Line 3 (Top)9 MetalPeriod 63rd Line Change
5. Dun ䷠Tian Shan Dun☰ / ☶Lines 1 & 29 MetalPeriod 43rd from Opposite
6. Song ䷅Tian Shui Song☰ / ☵Lines 1 & 39 MetalPeriod 32nd from Opposite
7. Wu Wang ䷘Tian Lei Wu Wang☰ / ☳Lines 2 & 39 MetalPeriod 21st from Opposite
8. Pi ䷋Tian Di Pi☰ / ☷All 3 (1,2,3)9 MetalPeriod 9Mother (Inverse)
Dui Palace ☱
Gua Qi 4
Yin Metal
9. Pure Dui ䷹Dui Wei Ze☱ / ☱None (Pure)4 MetalPeriod 1Father (Pure)
10. Kun ䷮Ze Shui Kun☱ / ☵Line 1 (Bot)4 MetalPeriod 81st Line Change
11. Sui ䷐Ze Lei Sui☱ / ☳Line 2 (Mid)4 MetalPeriod 72nd Line Change
12. Guai ䷪Ze Tian Guai☱ / ☰Line 3 (Top)4 MetalPeriod 63rd Line Change
13. Cui ䷬Ze Di Cui☱ / ☷Lines 1 & 24 MetalPeriod 43rd from Opposite
14. Da Guo ䷛Ze Feng Da Guo☱ / ☴Lines 1 & 34 MetalPeriod 32nd from Opposite
15. Ge ䷰Ze Huo Ge☱ / ☲Lines 2 & 34 MetalPeriod 21st from Opposite
16. Xian ䷞Ze Shan Xian☱ / ☶All 3 (1,2,3)4 MetalPeriod 9Mother (Inverse)
Li Palace ☲
Gua Qi 3
Yang Wood
17. Pure Li ䷝Li Wei Huo☲ / ☲None (Pure)3 WoodPeriod 1Father (Pure)
18. Lv ䷷Huo Shan Lv☲ / ☶Line 1 (Bot)3 WoodPeriod 81st Line Change
19. Da You ䷍Huo Tian Da You☲ / ☰Line 2 (Mid)3 WoodPeriod 72nd Line Change
20. Shi He ䷔Huo Lei Shi He☲ / ☳Line 3 (Top)3 WoodPeriod 63rd Line Change
21. Ding ䷱Huo Feng Ding☲ / ☴Lines 1 & 23 WoodPeriod 43rd from Opposite
22. Jin ䷢Huo Di Jin☲ / ☷Lines 1 & 33 WoodPeriod 32nd from Opposite
23. Kui ䷥Huo Ze Kui☲ / ☱Lines 2 & 33 WoodPeriod 21st from Opposite
24. Wei Ji ䷿Huo Shui Wei Ji☲ / ☵All 3 (1,2,3)3 WoodPeriod 9Mother (Inverse)
Zhen Palace ☳
Gua Qi 8
Yin Wood
25. Pure Zhen ䷲Zhen Wei Lei☳ / ☳None (Pure)8 WoodPeriod 1Father (Pure)
26. Yu ䷏Lei Di Yu☳ / ☷Line 1 (Bot)8 WoodPeriod 81st Line Change
27. Gui Mei ䷵Lei Ze Gui Mei☳ / ☱Line 2 (Mid)8 WoodPeriod 72nd Line Change
28. Feng ䷶Lei Huo Feng☳ / ☲Line 3 (Top)8 WoodPeriod 63rd Line Change
29. Jie ䷧Lei Shui Jie☳ / ☵Lines 1 & 28 WoodPeriod 43rd from Opposite
30. Xiao Guo ䷽Lei Shan Xiao Guo☳ / ☶Lines 1 & 38 WoodPeriod 32nd from Opposite
31. Da Zhuang ䷡Lei Tian Da Zhuang☳ / ☰Lines 2 & 38 WoodPeriod 21st from Opposite
32. Heng ䷟Lei Feng Heng☳ / ☴All 3 (1,2,3)8 WoodPeriod 9Mother (Inverse)
PART I MATRIX: 49 METAL (QIAN 9 · DUI 4) & 38 WOOD (LI 3 · ZHEN 8) PALACES Each Palace Contains 1 Pure Father (Yun 1), 1 Inverted Mother (Yun 9), and 6 Offspring Gua (Yun 2,3,4,6,7,8) HE TU 4 to 9 METAL ALLIANCE (16 GUA) Qian Palace (9 Yang Metal) + Dui Palace (4 Yin Metal) Qian Palace ☰ · Gua Qi 9 Metal (South) Yun 1: Pure Qian ䷀ | Yun 9: Pi ䷋ Yun 8: Gou ䷫ | Yun 7: Tong Ren ䷌ | Yun 6: Lv ䷉ Yun 4: Dun ䷠ | Yun 3: Song ䷅ | Yun 2: Wu Wang ䷘ Dui Palace ☱ · Gua Qi 4 Metal (Southeast) Yun 1: Pure Dui ䷹ | Yun 9: Xian ䷞ Yun 8: Kun ䷮ | Yun 7: Sui ䷐ | Yun 6: Guai ䷪ Yun 4: Cui ䷬ | Yun 3: Da Guo ䷛ | Yun 2: Ge ䷰ HE TU 3 to 8 WOOD COMPANIONS (16 GUA) Li Palace (3 Yang Wood) + Zhen Palace (8 Yin Wood) Li Palace ☲ · Gua Qi 3 Wood (East) Yun 1: Pure Li ䷝ | Yun 9: Wei Ji ䷿ Yun 8: Lv ䷷ | Yun 7: Da You ䷍ | Yun 6: Shi He ䷔ Yun 4: Ding ䷱ | Yun 3: Jin ䷢ | Yun 2: Kui ䷥ Zhen Palace ☳ · Gua Qi 8 Wood (Northeast) Yun 1: Pure Zhen ䷲ | Yun 9: Heng ䷟ Yun 8: Yu ䷏ | Yun 7: Gui Mei ䷵ | Yun 6: Feng ䷶ Yun 4: Jie ䷧ | Yun 3: Xiao Guo ䷽ | Yun 2: Da Zhuang ䷡
Figure 3.2: Grouping of the first 32 hexagrams into the He Tu 4 to 9 Metal Alliance (Qian 9 & Dui 4) and the He Tu 3 to 8 Wood Companionship (Li 3 & Zhen 8).

7. Master Table Part II: The 32 Yin-Group Palaces (Xun 2, Kan 7, Gen 6, Kun 1)

Now examine Part II of our complete reference matrix covering the remaining four Trigram Palaces, Xun Palace (Gua Qi 2 Fire), Kan Palace (Gua Qi 7 Fire), Gen Palace (Gua Qi 6 Water), and Kun Palace (Gua Qi 1 Water):

Table 3.2: Complete Mathematical Matrix of the 32 Hexagrams in Xun (2), Kan (7), Gen (6) & Kun (1) Palaces
Palace & Gua Qi Hexagram & Symbol Pinyin Name Upper / Lower Lines Changed (vs Upper) Gua Qi Element Gua Yun (Star Period) Family Rank
Xun Palace ☴
Gua Qi 2
Yin Fire
33. Pure Xun ䷸Xun Wei Feng☴ / ☴None (Pure)2 FirePeriod 1Father (Pure)
34. Xiao Chu ䷈Feng Tian Xiao Chu☴ / ☰Line 1 (Bot)2 FirePeriod 81st Line Change
35. Jian ䷴Feng Shan Jian☴ / ☶Line 2 (Mid)2 FirePeriod 72nd Line Change
36. Huan ䷺Feng Shui Huan☴ / ☵Line 3 (Top)2 FirePeriod 63rd Line Change
37. Jia Ren ䷤Feng Huo Jia Ren☴ / ☲Lines 1 & 22 FirePeriod 43rd from Opposite
38. Zhong Fu ䷼Feng Ze Zhong Fu☴ / ☱Lines 1 & 32 FirePeriod 32nd from Opposite
39. Guan ䷓Feng Di Guan☴ / ☷Lines 2 & 32 FirePeriod 21st from Opposite
40. Yi ䷩Feng Lei Yi☴ / ☳All 3 (1,2,3)2 FirePeriod 9Mother (Inverse)
Kan Palace ☵
Gua Qi 7
Yang Fire
41. Pure Kan ䷜Kan Wei Shui☵ / ☵None (Pure)7 FirePeriod 1Father (Pure)
42. Jie ䷻Shui Ze Jie☵ / ☱Line 1 (Bot)7 FirePeriod 81st Line Change
43. Bi ䷇Shui Di Bi☵ / ☷Line 2 (Mid)7 FirePeriod 72nd Line Change
44. Jing ䷯Shui Feng Jing☵ / ☴Line 3 (Top)7 FirePeriod 63rd Line Change
45. Zhun ䷂Shui Lei Zhun☵ / ☳Lines 1 & 27 FirePeriod 43rd from Opposite
46. Xu ䷄Shui Tian Xu☵ / ☰Lines 1 & 37 FirePeriod 32nd from Opposite
47. Jian ䷦Shui Shan Jian☵ / ☶Lines 2 & 37 FirePeriod 21st from Opposite
48. Ji Ji ䷾Shui Huo Ji Ji☵ / ☲All 3 (1,2,3)7 FirePeriod 9Mother (Inverse)
Gen Palace ☶
Gua Qi 6
Yin Water
49. Pure Gen ䷳Gen Wei Shan☶ / ☶None (Pure)6 WaterPeriod 1Father (Pure)
50. Bi ䷕Shan Huo Bi☶ / ☲Line 1 (Bot)6 WaterPeriod 81st Line Change
51. Gu ䷑Shan Feng Gu☶ / ☴Line 2 (Mid)6 WaterPeriod 72nd Line Change
52. Bo ䷖Shan Di Bo☶ / ☷Line 3 (Top)6 WaterPeriod 63rd Line Change
53. Da Chu ䷙Shan Tian Da Chu☶ / ☰Lines 1 & 26 WaterPeriod 43rd from Opposite
54. Yi ䷚Shan Lei Yi☶ / ☳Lines 1 & 36 WaterPeriod 32nd from Opposite
55. Meng ䷃Shan Shui Meng☶ / ☵Lines 2 & 36 WaterPeriod 21st from Opposite
56. Sun ䷨Shan Ze Sun☶ / ☱All 3 (1,2,3)6 WaterPeriod 9Mother (Inverse)
Kun Palace ☷
Gua Qi 1
Yang Water
57. Pure Kun ䷁Kun Wei Di☷ / ☷None (Pure)1 WaterPeriod 1Father (Pure)
58. Fu ䷗Di Lei Fu☷ / ☳Line 1 (Bot)1 WaterPeriod 81st Line Change
59. Shi ䷆Di Shui Shi☷ / ☵Line 2 (Mid)1 WaterPeriod 72nd Line Change
60. Qian ䷎Di Shan Qian☷ / ☶Line 3 (Top)1 WaterPeriod 63rd Line Change
61. Lin ䷒Di Ze Lin☷ / ☱Lines 1 & 21 WaterPeriod 43rd from Opposite
62. Ming Yi ䷣Di Huo Ming Yi☷ / ☲Lines 1 & 31 WaterPeriod 32nd from Opposite
63. Sheng ䷭Di Feng Sheng☷ / ☴Lines 2 & 31 WaterPeriod 21st from Opposite
64. Tai ䷊Di Tian Tai☷ / ☰All 3 (1,2,3)1 WaterPeriod 9Mother (Inverse)
PART II MATRIX: 27 FIRE (XUN 2 · KAN 7) & 16 WATER (GEN 6 · KUN 1) PALACES Completing the 64-Hexagram System Across the Four He Tu Five-Phase Generative Alliances HE TU 2 to 7 FIRE SAME-PATH (16 GUA) Xun Palace (2 Yin Fire) + Kan Palace (7 Yang Fire) Xun Palace ☴ · Gua Qi 2 Fire (Southwest) Yun 1: Pure Xun ䷸ | Yun 9: Yi ䷩ Yun 8: Xiao Chu ䷈ | Yun 7: Jian ䷴ | Yun 6: Huan ䷺ Yun 4: Jia Ren ䷤ | Yun 3: Zhong Fu ䷼ | Yun 2: Guan ䷓ Kan Palace ☵ · Gua Qi 7 Fire (West) Yun 1: Pure Kan ䷜ | Yun 9: Ji Ji ䷾ Yun 8: Jie ䷻ | Yun 7: Bi ䷇ | Yun 6: Jing ䷯ Yun 4: Zhun ䷂ | Yun 3: Xu ䷄ | Yun 2: Jian ䷦ HE TU 1 to 6 WATER CO-ANCESTORS (16 GUA) Gen Palace (6 Yin Water) + Kun Palace (1 Yang Water) Gen Palace ☶ · Gua Qi 6 Water (Northwest) Yun 1: Pure Gen ䷳ | Yun 9: Sun ䷨ Yun 8: Bi ䷕ | Yun 7: Gu ䷑ | Yun 6: Bo ䷖ Yun 4: Da Chu ䷙ | Yun 3: Yi ䷚ | Yun 2: Meng ䷃ Kun Palace ☷ · Gua Qi 1 Water (North) Yun 1: Pure Kun ䷁ | Yun 9: Tai ䷊ Yun 8: Fu ䷗ | Yun 7: Shi ䷆ | Yun 6: Qian ䷎ Yun 4: Lin ䷒ | Yun 3: Ming Yi ䷣ | Yun 2: Sheng ䷭
Figure 3.3: Grouping of the second 32 hexagrams into the He Tu 2 to 7 Fire Alliance (Xun 2 & Kan 7) and the He Tu 1 to 6 Water Co-Ancestry (Gen 6 & Kun 1).

8. Distribution of the 64 Hexagrams by Star Period (Gua Yun 1 through 9)

In Sections 6 and 7, we organized the 64 hexagrams by their 8 Gua Qi Palaces (substance). What happens when we reorganize the exact same 64 hexagrams by their 8 Star Periods (Gua Yun 1, 2, 3, 4, 6, 7, 8, 9)? Each Star Period contains exactly 8 hexagrams, one from each of the 8 Gua Qi Palaces (`1, 2, 3, 4, 6, 7, 8, 9`)!

  • Period 1 Hexagrams (8 Pure Father Gua): Kun ䷁ (Qi 1), Xun ䷸ (Qi 2), Li ䷝ (Qi 3), Dui ䷹ (Qi 4), Gen ䷳ (Qi 6), Kan ䷜ (Qi 7), Zhen ䷲ (Qi 8), Qian ䷀ (Qi 9).
  • Period 2 Hexagrams (8 Giant Gate Gua): Sheng ䷭ (Qi 1), Guan ䷓ (Qi 2), Kui ䷥ (Qi 3), Ge ䷰ (Qi 4), Meng ䷃ (Qi 6), Jian ䷦ (Qi 7), Da Zhuang ䷡ (Qi 8), Wu Wang ䷘ (Qi 9).
  • Period 3 Hexagrams (8 Jade Store Gua): Ming Yi ䷣ (Qi 1), Zhong Fu ䷼ (Qi 2), Jin ䷢ (Qi 3), Da Guo ䷛ (Qi 4), Yi ䷚ (Qi 6), Xu ䷄ (Qi 7), Xiao Guo ䷽ (Qi 8), Song ䷅ (Qi 9).
  • Period 4 Hexagrams (8 Literary Star Gua): Lin ䷒ (Qi 1), Jia Ren ䷤ (Qi 2), Ding ䷱ (Qi 3), Cui ䷬ (Qi 4), Da Chu ䷙ (Qi 6), Zhun ䷂ (Qi 7), Jie ䷧ (Qi 8), Dun ䷠ (Qi 9).
  • Period 6 Hexagrams (8 Martial Star Gua): Qian ䷎ (Qi 1), Huan ䷺ (Qi 2), Shi He ䷔ (Qi 3), Guai ䷪ (Qi 4), Bo ䷖ (Qi 6), Jing ䷯ (Qi 7), Feng ䷶ (Qi 8), Lv ䷉ (Qi 9).
  • Period 7 Hexagrams (8 Broken Army Gua): Shi ䷆ (Qi 1), Jian ䷴ (Qi 2), Da You ䷍ (Qi 3), Sui ䷐ (Qi 4), Gu ䷑ (Qi 6), Bi ䷇ (Qi 7), Gui Mei ䷵ (Qi 8), Tong Ren ䷌ (Qi 9).
  • Period 8 Hexagrams (8 Left Assistant Gua): Fu ䷗ (Qi 1), Xiao Chu ䷈ (Qi 2), Lv ䷷ (Qi 3), Kun ䷮ (Qi 4), Bi ䷕ (Qi 6), Jie ䷻ (Qi 7), Yu ䷏ (Qi 8), Gou ䷫ (Qi 9).
  • Period 9 Hexagrams (8 Inverted Mother Gua): Tai ䷊ (Qi 1), Yi ䷩ (Qi 2), Wei Ji ䷿ (Qi 3), Xian ䷞ (Qi 4), Sun ䷨ (Qi 6), Ji Ji ䷾ (Qi 7), Heng ䷟ (Qi 8), Pi ䷋ (Qi 9).

Look at the symmetry of that list. Every single Star Period contains all eight Gua Qi numbers (`1, 2, 3, 4, 6, 7, 8, 9`), and every single Gua Qi Palace contains all eight Star Periods (`1, 2, 3, 4, 6, 7, 8, 9`). That is why any sitting-to-facing or dragon-to-water combination in Xuan Kong Da Gua can be engineered to satisfy both Gua Qi Five-Phase Harmony AND Gua Yun Temporal Timeliness simultaneously!

9. The 384 Yao Lines (0.9375° Each): Line Hierarchy from Bottom Line 1 to Top Line 6

Now zoom in from the 64 hexagrams (`5.625°` each) to the sub-degree ring at the outer edge of the Luo Pan: the 384 Individual Yao Lines , each occupying exactly 0.9375° (`56'15"`). How are the 6 lines (`Line 1` to `Line 6`) ordered spatially inside each `5.625°` hexagram sector on the compass?

  • The Direction of Counting Yao Lines on the Compass Ring: On the Fu Xi Circular 64-Hexagram Ring, because the 32 Left/Eastern Yang Hexagrams unfold from North-Zi (`0°`) toward South-Wu (`180°`) and the 32 Right/Western Yin Hexagrams unfold from South-Wu (`180°`) toward North-Zi (`360°`), the six lines (`1, 2, 3, 4, 5, 6`) inside each hexagram follow the natural unfolding direction of its hemisphere (or are explicitly numbered `1` to `6` with red/black dots on the 384-Yao ring of the Ung Khiem Luo Pan so you never misread the order).
  • Why Central Lines (2, 3, 4, 5) Outperform Edge Lines (1 and 6): Just as the Book of Changes teaches concerning the six yao of any hexagram-"The Beginning Line (Line 1) is hard to know; the Top Line (Line 6) is easy to know, for they are the beginning and the end; but the Middle Lines (Lines 2, 3, 4, 5) (embody the fullness of things)"-in field geomancy:
    • Line 1 (Bottom Line) and Line 6 (Top Line) sit directly against the 5.625° boundary walls (Gua Jie Kong Wang) separating two adjacent hexagrams! Furthermore, in I Ching philosophy, Line 1 is nascent qi not yet emerged (`Qian Long Wu Yong`, Hidden Dragon, Do Not Act), while Line 6 is over-extended qi at the brink of reversal (`Kang Long You Hui`, Arrogant Dragon Has Regret).
    • Lines 2, 3, 4, and 5 (The Four Inner Lines) sit safely inside the middle `3.75°` core of the hexagram, buffered by at least `0.9375°` from the hexagram boundary voids! In particular, Line 2 (Earth-Center Host) and Line 5 (Heaven-Center Ruler) deliver the most stable, dignified, and enduring prosperity.

10. Moving Lines (Dong Yao) & Single-Line Hexagram Transformations (Bian Gua)

What is the secret meaning of the red dots printed on specific yao lines of the 384-Line ring on a San Yuan Luo Pan? Those red dots mark the Auspicious Moving Lines (Dong Yao or Hong Dian Ji Yao)!

Why do we care which line of the Sitting or Facing hexagram our compass thread crosses? Because in Xuan Kong Da Gua, when the compass hairline passes through a specific Yao (`Line k`, where `k ∈ {1..6}`), that line becomes the active Moving Line (Dong Yao) of the hexagram-flipping from Yang (`1`) to Yin (`0`) or from Yin (`0`) to Yang (`1`) to produce a Transformed Hexagram (Zhi Gua or Bian Gua)!

Look at what happens when a single line flips in a hexagram:

  1. Case A · Moving Line in the Lower (Inner) Trigram (`Line 1, 2, or 3` changes): Because the Upper (Outer) Trigram (`Lines 4, 5, 6`) remains untouched, the Transformed Hexagram stays inside the exact same Gua Qi Palace (same Gua Qi number and Five Phase!) while its Star Period (Gua Yun) shifts to match the incoming water, door, or date pillar!
  2. Case B · Moving Line in the Upper (Outer) Trigram (`Line 4, 5, or 6` changes): Flipping a line in the Upper Trigram changes the Upper Trigram itself, which shifts BOTH the hexagram’s Gua Qi Palace AND its Star Period (Gua Yun)! On the 384-line ring, the lineage marks a line in red whenever flipping that line turns the hexagram into a Pure One Qi (`Yi Gua Chun Qing`) or Sum-of-Ten (`He Shi`) partner with its opposite sitting/facing hexagram or with the ruling Parent Gua!
DONG YAO MECHANICS: HOW ONE MOVING LINE TRANSFORMS A HEXAGRAM Why Changing an Inner Line (1 to 3) Keeps Gua Qi Constant While Changing an Outer Line (4 to 6) Shifts Gua Qi TYPE I: LOWER TRIGRAM LINE CHANGES (Yao 1 to 3) Upper Trigram Unchanged · GUA QI STAYS IDENTICAL Example: Heaven Wind Gou ䷫ (Qian 9 · Yun 8) Thread crosses Yao 1 (Bottom Yin flips to Yang) Transforms into Pure Qian ䷀ (Qian 9 · Yun 1)! • Gua Qi remains 9 Metal (Qian Palace) • Star Period leaps from Yun 8 to Parent Yun 1! Preserves Sitting-Facing Sum-of-Ten (9 + 1 = 10) TYPE II: UPPER TRIGRAM LINE CHANGES (Yao 4 to 6) Upper Trigram Changes · BOTH GUA QI & YUN SHIFT Example: Heaven Earth Pi ䷋ (Qian 9 · Yun 9) Thread crosses Yao 5 (Ruler Yang flips to Yin) Transforms into Fire Earth Jin ䷢ (Li 3 · Yun 3)! • Upper Qian (9) flips to Upper Li (3 Wood) • Star Period shifts from Yun 9 to Yun 3 Used to bridge incompatible external water mouths GOLDEN RULE OF THE 384-YAO RING Both the Original Hexagram (Ben Gua) and the Moving-Line Transformed Hexagram (Bian Gua) must harmonize with the Sitting-Facing axis, the incoming/exiting Water, and the Date Selection chart!
Figure 3.4: Comparison between a Lower-Trigram Moving Line (which preserves the hexagram's Gua Qi Palace while shifting its Star Period) and an Upper-Trigram Moving Line (which shifts both Gua Qi and Star Period).
BIJECTIVE COORDINATE THEOREM: (GUA QI, GUA YUN) UNIQUELY IDENTIFIES EVERY HEXAGRAM 8 Gua Qi Palaces (1, 2, 3, 4, 6, 7, 8, 9) × 8 Star Periods (1, 2, 3, 4, 6, 7, 8, 9) = 64 Unique Hexagram Coordinates COMPLETE (GUA QI × GUA YUN) BIJECTION MAP Qi 1 (Kun ☷): Y1 Kun ䷁ · Y2 Sheng ䷭ · Y3 MingYi ䷣ · Y4 Lin ䷒ · Y6 Qian ䷎ · Y7 Shi ䷆ · Y8 Fu ䷗ · Y9 Tai ䷊ Qi 2 (Xun ☴): Y1 Xun ䷸ · Y2 Guan ䷓ · Y3 ZhongFu ䷼ · Y4 JiaRen ䷤ · Y6 Huan ䷺ · Y7 Jian ䷴ · Y8 XiaoChu ䷈ · Y9 Yi ䷩ Qi 3 (Li ☲): Y1 Li ䷝ · Y2 Kui ䷥ · Y3 Jin ䷢ · Y4 Ding ䷱ · Y6 ShiHe ䷔ · Y7 DaYou ䷍ · Y8 Lv ䷷ · Y9 WeiJi ䷿ Qi 4 (Dui ☱): Y1 Dui ䷹ · Y2 Ge ䷰ · Y3 DaGuo ䷛ · Y4 Cui ䷬ · Y6 Guai ䷪ · Y7 Sui ䷐ · Y8 Kun ䷮ · Y9 Xian ䷞ Qi 6 (Gen ☶): Y1 Gen ䷳ · Y2 Meng ䷃ · Y3 Yi ䷚ · Y4 DaChu ䷙ · Y6 Bo ䷖ · Y7 Gu ䷑ · Y8 Bi ䷕ · Y9 Sun ䷨ Qi 7 (Kan ☵): Y1 Kan ䷜ · Y2 Jian ䷦ · Y3 Xu ䷄ · Y4 Zhun ䷂ · Y6 Jing ䷯ · Y7 Bi ䷇ · Y8 Jie ䷻ · Y9 JiJi ䷾ Qi 8 (Zhen ☳): Y1 Zhen ䷲ · Y2 DaZhuang ䷡ · Y3 XiaoGuo ䷽ · Y4 Jie ䷧ · Y6 Feng ䷶ · Y7 GuiMei ䷵ · Y8 Yu ䷏ · Y9 Heng ䷟ Qi 9 (Qian ☰): Y1 Qian ䷀ · Y2 WuWang ䷘ · Y3 Song ䷅ · Y4 Dun ䷠ · Y6 Lv ䷉ · Y7 TongRen ䷌ · Y8 Gou ䷫ · Y9 Pi ䷋ Every ordered pair (Gua Qi, Gua Yun) ∈ (1, 2, 3, 4, 6, 7, 8, 9)² maps 1-to-1 to a unique hexagram!
Figure 3.5: The Bijective Coordinate Theorem of Xuan Kong Da Gua: every ordered pair (Gua Qi, Gua Yun) uniquely identifies one and only one of the 64 hexagrams.

11. Field Case Study: Using a Single Moving Yao to Bridge Sitting & Water Qi

Field Case Study: Aligning a Luxury Resort Lobby in Da Nang via Line 2 Moving Yao Transformation

Site Challenge: In early 2025, an architectural firm in Da Nang invited me to review the beachfront main lobby of a five-star coastal resort. Topographically, the building had to sit in the North-Northwest facing the South-Southeast oceanfront around 162° to 164° (Bing mountain), while the resort’s natural lagoon outlet drained at 138° (Xun mountain). At 163.5°, the facing direction fell into Fire Lake Kui (䷥ · Gua Qi 3 Wood, Star Period 2, 163.125° to 168.75°) sitting on Water Mountain Jian (䷦ · Gua Qi 7 Fire, Star Period 2, 343.125° to 348.75°), whereas the lagoon water mouth at 138° stood in a Period-9 hexagram (Earth Heaven Tai ䷊, 135.0° to 140.625°) that did not lock with Period-2 Facing.

384-Yao Solution: Instead of leaving the lobby centerline at 163.5°, we micro-shifted the main structural axis by -1.8 degrees to 161.7° onto the exact heart of Line 2 (Inner Ruler Yao) of Lake Thunder Sui (䷐ · Gua Qi 4 Metal, Star Period 7, 157.5° to 163.125°) sitting on Mountain Wind Gu (䷑ · Gua Qi 6 Water, Star Period 7, 337.5° to 343.125°), where flipping Line 2 transformed the active facing qi into Pure Dui (䷹ · Gua Qi 4 Metal, Star Period 1)! Because Period 1 (Transformed Facing) and Period 9 (Lagoon Water Mouth at 138°) form a textbook 1 + 9 = 10 Sum-of-Ten (He Shi) while Facing 4 Metal feeds Sitting 6 Water and Lagoon 1 Water, the entire beachfront complex locked into a seamless Period 9 Direct-Indirect Spirit loop.

Continue to Chapter 04: Hexagram Pairing Rules (Pure One Qi & Sum-to-Ten)

Now that you can derive the Gua Qi and Gua Yun of all 64 hexagrams and 384 lines, advance to Chapter 04 to master the 5 Supreme Pairing Laws that link Sitting, Facing, Dragon, Water, and Date Selection into an invincible formation:

12. Frequently Asked Questions (FAQ) & Authoritative Classical Bibliography

1. How do you calculate the Gua Qi (1, 2, 3, 4, 6, 7, 8, 9) of any hexagram without looking at a compass?

Identify the Upper (Outer) Trigram of the hexagram (`Lines 4, 5, 6`) on the Outer Ring, place it in its Early Heaven Bagua position, and read the corresponding Luo Shu number: Kun ☷ = 1 Water, Xun ☴ = 2 Fire, Li ☲ = 3 Wood, Dui ☱ = 4 Metal, Gen ☶ = 6 Water, Kan ☵ = 7 Fire, Zhen ☳ = 8 Wood, and Qian ☰ = 9 Metal.

2. How do you calculate the Gua Yun (Star Period 1 to 9) of any hexagram from its six lines?

Compare the three lines of the Upper Trigram (`Lines 4, 5, 6`) with the three corresponding lines of the Lower Trigram (`Lines 1, 2, 3`). If the two trigrams are identical (`0` line differences), it is a Period-1 Pure Father Hexagram; if all 3 lines differ, it is a Period-9 Inverted Mother Hexagram; if only Line 1 differs, it is Period 8; if only Line 2 differs, it is Period 7; if only Line 3 differs, it is Period 6; if Lines 1 & 2 differ, it is Period 4; if Lines 1 & 3 differ, it is Period 3; if Lines 2 & 3 differ, it is Period 2.

3. Why is there no Gua Qi 5 or Gua Yun 5 among the 64 hexagrams?

Because there are 8 Trigrams (`2^3 = 8`) surrounding the Taiji Center and 64 Hexagrams (`8 × 8 = 64`) on the perimeter ring, the Central Palace 5 has no standalone trigram. Instead, 5 acts as the central Taiji pivot connecting opposite pairs into 10 (`He Shi`) and generative pairs by a difference of 5 (`He Sheng Cheng`).

4. What is the difference between Jing Fang’s 8-Palace sequence and the San Yuan Da Gua transformation sequence?

Jing Fang’s Western Han 8-Palace system changes lines sequentially from Line 1 up to Line 5, steps back to Line 4 (You Hun), and restores the lower trigram (Gui Hun). San Yuan Xuan Kong Da Gua compares the Upper and Lower Trigrams directly via the symmetric 3-bit XOR operator so that every hexagram and its vertical inversion share the exact same Star Period.

5. How do the 384 Yao lines work in practical compass alignment?

Each of the 64 hexagrams spans 5.625° and is subdivided into 6 individual yao lines of 0.9375° each. On the Luo Pan’s 384-line ring, specific lines are marked with red dots indicating auspicious moving lines (Dong Yao) whose transformation brings the hexagram into Pure One Qi or Sum-of-Ten harmony with the sitting/facing axis, while practitioners favor Central Lines 2, 3, 4, and 5 over Edge Lines 1 and 6.

Classical Sources & Academic References

  1. Jing Fang (Western Han Dynasty), Jing Shi Yi Zhuan (Jing’s Commentary on the Book of Changes).
  2. Yang Yun Song (Tang Dynasty), Tian Yu Jing & Qing Nang Ao Yu .
  3. Jiang Dahong (Ming-Qing Transition), Di Li Bian Zheng .
  4. Zhu Xi (Song Dynasty), Yi Xue Qi Meng (Introduction to the Study of the Changes).
  5. Zeng Zi Nan (Taiwan San Yuan Lineage), Xuan Kong Da Gua Lectures & Luo Pan Manual.