Casting Rules
Last updated: 2026-10-20
Each method of consulting the I Ching has been practised in more than one way. This page states exactly how each method is calculated here, which convention we follow where schools disagree, and how the result page decides which text governs a reading.
Lines and Hexagrams
A hexagram has six lines, counted from the bottom up. Each cast line is one of four numbers:
| Number | Name | Line | Changing |
|---|---|---|---|
| 6 | Old yin | Yin | Yes, becomes yang |
| 7 | Young yang | Yang | No |
| 8 | Young yin | Yin | No |
| 9 | Old yang | Yang | Yes, becomes yin |
Old yin and old yang are changing lines. Flipping them gives the transformed hexagram; with no changing lines there is none.
Plum Blossom readings also use the mutual hexagram, built from lines 2–4 (lower) and 3–5 (upper). The result page labels the original, mutual and transformed hexagrams The Beginning, The Unfolding and The Outcome.
Hexagrams follow the received King Wen order. The Chinese texts are collated against the received edition; the English judgments, images and line texts are James Legge's translation; the plain-language explanations and remaining English translations are generated by this site and are offered only as aids to understanding.
Coin Divination
Three coins are tossed six times, one line per toss, from the bottom line up. The inscribed side counts 2 and the reverse counts 3, so each toss sums to 6, 7, 8 or 9.
Each coin is equally likely to land either way, so old yin and old yang each occur 1/8 of the time, and young yang and young yin 3/8 each.
To keep the animation smooth, all six tosses are generated at the start and revealed one by one; unrevealed lines are never shown early. The probabilities are identical to tossing one at a time.
Dayan Method (Yarrow Stalks)
Following the Great Treatise — "the number of the great expansion is fifty, of which forty-nine are used" — one of fifty stalks is set aside and forty-nine are counted. Each line takes three changes of dividing, hanging one, counting by fours and setting aside the remainder: eighteen changes in all.
This site follows Zhu Xi's Shiyi and Yixue Qimeng, hanging one stalk in all three changes. The first change leaves 5 or 9 stalks, the next two leave 4 or 8; the 36, 32, 28 or 24 stalks remaining give 9, 8, 7 or 6.
| Line | Coins | Yarrow |
|---|---|---|
| Old yin 6 | 1/8 | 1/16 |
| Young yang 7 | 3/8 | 5/16 |
| Young yin 8 | 3/8 | 7/16 |
| Old yang 9 | 1/8 | 3/16 |
Compared with coins, yarrow makes old yin much rarer and old yang somewhat more common — the traditional difference between the two methods. The variant of Guo Yong and Cheng Jiong, which does not hang a stalk in the last two changes, gives a different distribution and is not used here.
The divisions shown during the ritual are simulated to guarantee these probabilities, so lopsided splits (such as 1 and 48) appear more often than with real hands. Line results are unaffected.
Meihua Yishu (Plum Blossom Numerology)
Casting by time: the upper trigram is (year branch + lunar month + lunar day) mod 8; the lower trigram adds the hour branch and takes mod 8; the moving line is the same total mod 6. A remainder of 0 counts as 8 or 6. Year and hour branches run from Zi = 1 to Hai = 12, and trigrams use the Earlier Heaven numbers: Qian 1, Dui 2, Li 3, Zhen 4, Xun 5, Kan 6, Gen 7, Kun 8.
| Rule | This site | Another common choice |
|---|---|---|
| New year | Lunar New Year's Day | Start of Spring (Lichun) |
| 23:00–23:59 | Zi hour, same calendar day | Counts as the next day |
| Leap month | Counted as the month it repeats | The following month, or solar-term months |
| Clock | Your device's local time | True solar time, or Beijing time |
Schools differ on each of these points; every choice here has precedent. Because time casting is a formula, casting again within the same two-hour period gives the same hexagram.
Casting by numbers: the first number mod 8 gives the upper trigram, the second number mod 8 the lower, and their sum mod 6 the moving line, without adding the hour. Shao Yong's original number methods add the hour when finding the moving line; this site uses the common modern simplification, so the result depends only on the two numbers.
Ti–Yong Relation
In Plum Blossom readings the trigram holding the moving line is Yong (the matter) and the other is Ti (self). Their five-element relationship gives the tendency. Qian and Dui are metal, Li is fire, Zhen and Xun are wood, Kan is water, Gen and Kun are earth.
| Relationship | Label | Meaning |
|---|---|---|
| Yong generates Ti | Most Auspicious | Circumstances support you |
| Harmony | Auspicious | Like with like; things go smoothly |
| Ti restrains Yong | Mildly Auspicious | You can prevail, with effort and delay |
| Ti generates Yong · drain | Mildly Inauspicious | You give more than you receive |
| Yong restrains Ti | Inauspicious | Outside pressure constrains you |
This five-level summary is the common modern form and matches the direction of the Ti–Yong verses in the Meihua Yishu, which describe each case more concretely — for example, Ti restraining Yong means "the plan succeeds, but late".
Only the relation between Ti and Yong is assessed; the mutual and transformed hexagrams' effects on Ti and seasonal strength are not counted. In Plum Blossom readings Ti–Yong leads and line texts support it.
Custom Divination
If you have already cast with real coins or stalks, enter each line as young yang, young yin, old yang or old yin. Everything after that is calculated as for the other methods.
Reading Several Changing Lines
When more than one line changes, their texts may point different ways. This site follows Zhu Xi's rules in Yixue Qimeng to decide which text governs; the Reading Focus on the result page and the AI reading both follow them:
| Changing | Read |
|---|---|
| None | The judgment of the original hexagram |
| One | That line of the original hexagram |
| Two | Both lines of the original hexagram; the upper one governs |
| Three | The judgments of both hexagrams; the original governs |
| Four | The two unchanged lines of the transformed hexagram; the lower one governs |
| Five | The one unchanged line of the transformed hexagram |
| Six | Use of the Nine for Qian, Use of the Six for Kun, otherwise the judgment of the transformed hexagram |
Changing lines that do not govern are still marked on the result page for reference.
Limits
Casting happens in your browser, using the browser's random numbers. When a record is saved, the server recalculates the result from the raw process — coin faces, stalk remainders, numbers or time — and checks it, so a record proves that process and result agree, not that the cast was random.
Plain-language explanations and AI readings are one way of understanding the texts, not the only correct one. A reading is a symbolic reference and no substitute for medical, legal, financial or other professional advice.