Free I Ching Generator: Online 64 Hexagram Calculator and Cast Tool
This interactive I Ching generator unites three classical casting inputs under one rule engine: an authentic three-coin toss simulator, a 50-stalk yarrow algorithm, and a reproducible two-number hexagram calculator. Unlike basic scripts that pick a flat integer between 1 and 64, our I Ching generator executes six bottom-to-top line operations (Line 1 to Line 6) so every online cast preserves changing lines (6 and 9). Once your six lines are set, jump directly to our I Ching hexagram meanings for all 64 hexagrams and 8×8 hexagram chart.
Interactive I Ching Coin Toss and 6-Line Hexagram Calculator
Choose your casting input below, then click Toss 3 Coins (Full 6-Line Cast) or enter two integers for a deterministic cast — 100% free with no account required. Whether you prefer a traditional I Ching coin toss (3:3:1:1 for 7:8:6:9, or 1:3:3:1 for 6:7:8:9), the 50-stalk yarrow division (1:3:5:7), or our reproducible two-number mode (Mod-8 trigrams + Mod-6 line), this I Ching generator and I Ching calculator computes your primary and relating figures automatically.
Step 1: Choose binomial coin, 50-stalk yarrow, two-number, or uniform 6-bit mode.
Step 2: Click Generate Full 6-Line Cast or compute by two integers above.
Moving lines (6 and 9) automatically derive your relating figure.
How Our I Ching Generator Works: 3 Coins, Yarrow Stalks, and Two Numbers
Whether you toss physical I Ching coins, divide yarrow stalks, or input two numbers in the I Ching generator above, all three methods feed into the same six-line rule engine from Line 1 (base) to Line 6 (top).
1. The 3-Coin Value Rule (Heads = 3, Tails = 2)
In a classical iching coin toss, the yang side scores 3 and the yin side scores 2. Rolling three coins produces 2³ = 8 microstates across four line sums — a 3:3:1:1 ratio grouped by stability (7:8:6:9), or 1:3:3:1 ordered by line values (6:7:8:9):
- Three Tails (2+2+2 = 6 · Old Yin): 1/8 (12.5%) — changing yin line flipping to yang (
0 → 1). - Two Tails, One Head (2+2+3 = 7 · Young Yang): 3/8 (37.5%) — stable solid yang line (
1). - Two Heads, One Tail (3+3+2 = 8 · Young Yin): 3/8 (37.5%) — stable broken yin line (
0). - Three Heads (3+3+3 = 9 · Old Yang): 1/8 (12.5%) — changing yang line flipping to yin (
1 → 0).
2. Why Our I Ching Generator Preserves All 4,096 Transitions
Basic pickers that draw one integer from 1 to 64 omit changing lines. Because any of the 64 primary figures in the Book of Changes can transform into any of the 64 figures, our I Ching generator models all 64 × 64 = 4,096 cast transitions.
3. Comparing the 3-Coin Roll vs. the 50-Stalk Yarrow Calculator
Recorded in the Great Treatise, the 50-stalk yarrow method sets one observer stalk aside and divides 49 stalks three times per line modulo 4. In our I Ching generator, yarrow mode yields an asymmetric 1:3:5:7 ratio (for lines 6:9:7:8) compared with the three-coin 1:3:3:1 ratio:
| Line Sum | Classical Line Name | Binary Bit | 3-Coin Toss Probability | Yarrow Stalk Probability | Line Behavior in Your Online Cast |
|---|---|---|---|---|---|
| 6 | Old Yin (Lao Yin) | 0 → 1 |
2 / 16 (12.50%) | 1 / 16 (6.25%) | Changing Yin: read this line statement; bit flips from 0 to 1. |
| 7 | Young Yang (Shao Yang) | 1 |
6 / 16 (37.50%) | 5 / 16 (31.25%) | Stable Yang: structural solid line; remains 1. |
| 8 | Young Yin (Shao Yin) | 0 |
6 / 16 (37.50%) | 7 / 16 (43.75%) | Stable Yin: structural broken line; remains 0. |
| 9 | Old Yang (Lao Yang) | 1 → 0 |
2 / 16 (12.50%) | 3 / 16 (18.75%) | Changing Yang: read this line statement; bit flips from 1 to 0. |
4. The Two-Number Deterministic Method (Auditable Mod-8 & Mod-6 Engine)
For readers who prefer reproducible math over random draws, our I Ching generator and decision sandbox implement Shao Yong's Plum Blossom two-number rule using two integers (N₁, N₂) and the solar hour index (H ∈ 1..12):
- Upper Trigram (Lines 4–6):
N₁ mod 8(0 → 8) in the Early Heaven order (1=Qian,2=Dui,3=Li,4=Zhen,5=Xun,6=Kan,7=Gen,8=Kun). - Lower Trigram (Lines 1–3):
N₂ mod 8against the same index to stack your six-line figure. - Moving Line:
(N₁ + N₂ + H) mod 6(0 → 6) sets the single active moving line (9or6) for hand-auditable casts.
How to Read Your I Ching Online Cast in 3 Steps
To turn the output of this I Ching generator into a structured reading, follow three steps:
- Read the Primary Hexagram: Lines 1–3 form the lower trigram and Lines 4–6 form the upper trigram; verify your pair in the 8×8 I Ching hexagram chart.
- Isolate Changing Lines (6 and 9): Stable lines (7 and 8) stay silent; when lines score 6 or 9 in your I Ching coin toss or two-number cast, apply Zhu Xi's changing lines rules.
- Compare the Relating Hexagram: Flipping every 6 and 9 yields your relating figure. Inspect it in our I Ching hexagram meanings lookup, decision sandbox, or Yes or No Matrix.
Leibniz Binary Logic and the Eight Trigrams Matrix
As Gottfried Leibniz showed in 1703, mapping yin to 0 and yang to 1 turns the eight trigrams into 3-bit vectors (000–111) and all 64 figures in our I Ching generator into 6-bit words (000000–111111).
| Symbol | Trigram | 3-Bit | Image | Attribute | Pure Hexagram |
|---|---|---|---|---|---|
| ☰ | Qian | 111 |
Heaven | Creative drive | #1 Qian |
| ☷ | Kun | 000 |
Earth | Receptive execution | #2 Kun |
| ☳ | Zhen | 100 |
Thunder | Kinetic impulse | #51 Zhen |
| ☴ | Xun | 011 |
Wind | Adaptation | #57 Xun |
| ☵ | Kan | 010 |
Water | Core integrity | #29 Kan |
| ☲ | Li | 101 |
Fire | Clarity | #30 Li |
| ☶ | Gen | 001 |
Mountain | Stillness | #52 Gen |
| ☱ | Dui | 110 |
Lake | Negotiation | #58 Dui |
All 64 Hexagrams Quick Index and Generator FAQs
Click any figure below to open its full Judgment, Image, and six line readings, or view all I Ching hexagram meanings and the 64 hexagrams chart on a single page:
How does an I Ching generator calculate changing lines?
Instead of drawing one flat integer from 1 to 64, a true I Ching generator computes six line states (6, 7, 8, or 9) from bottom to top, flipping any 6 or 9 into the relating figure.
How do you cast with three coins at home?
Assign heads = 3 and tails = 2 across six throws in our dedicated I Ching coins simulator: 6 and 9 move, while 7 and 8 stay stable.
How does the two-number casting method work?
Enter two positive integers and a solar hour (1–12): N₁ mod 8 sets the upper trigram, N₂ mod 8 sets the lower trigram, and (N₁+N₂+H) mod 6 sets the moving line in our I Ching generator.
What is the difference between yarrow-stalk and uniform binary mode?
Yarrow mode models the classical 1:3:5:7 moving-line odds, whereas uniform 6-bit binary mode samples static 64-state vectors without moving lines.
How do the 8 trigrams combine inside a 6-line hexagram?
Stacking a 3-bit upper outer trigram (Lines 4–6) above a 3-bit lower inner trigram (Lines 1–3) forms 8 × 8 = 64 unique hexagrams.
Is this I Ching generator free without registration?
Yes — all casting modes, changing-line rules, and 64 classical guides run free in your browser with no account required.