How to Cast the I Ching: Coins, Yarrow Stalks, and Online Tools

Three methods, one output. Here's exactly how to generate a hexagram โ€” with the math behind each approach.

Casting the I Ching โ€” coins, yarrow, or digital.

Casting the I Ching means generating six lines, one at a time, from bottom to top. Each line is either solid (yang) or broken (yin). Some lines are "changing" โ€” they're about to flip to their opposite. You need a randomizing process to produce these lines, and there are three commonly used methods: yarrow stalks, three coins, and digital tools.

The method matters less than you might think. All three produce the same output format โ€” a hexagram with possible changing lines. The differences are practical (speed, convenience) and mathematical (slightly different probability distributions). Let's walk through each one.

The three-coin method

This is the most common method used today. You need three coins and a pen and paper to record the lines.

Assignment: One side of the coin = 3 (traditionally heads). Other side = 2 (traditionally tails).

Procedure:

  1. Hold the coins and think about your question.
  2. Toss all three coins simultaneously.
  3. Add the values. The sum will be 6, 7, 8, or 9.
  4. Record the corresponding line (see below).
  5. Repeat five more times, building the hexagram from bottom to top (line 1 through line 6).
SumLine TypeSymbolMeaningProbability
6Changing yinโ€” ร— โ€”Old yin, about to become yang12.5%
7Stable yangโ€”โ€”โ€”Young yang, stays solid37.5%
8Stable yinโ€” โ€”Young yin, stays broken37.5%
9Changing yangโ€”โ—‹โ€”Old yang, about to become yin12.5%

If you got no changing lines (all 7s and 8s), read the hexagram text only. If you got one or more changing lines, read the hexagram text, the specific changing line texts, and then the "relating hexagram" formed by flipping all changing lines.

The yarrow stalk method

This is the oldest documented casting method, described in the Xici Zhuan (็นซ่พญๅ‚ณ, "Great Treatise"), one of the Ten Wings. It uses 50 stalks of the yarrow plant (Achillea millefolium), though one stalk is set aside and never used, leaving 49.

Procedure (abbreviated):

  1. Take 49 stalks. Divide them randomly into two piles.
  2. Remove one stalk from the right pile and place it between your little finger and ring finger.
  3. Count off the left pile in groups of 4. Place the remainder (1โ€“4 stalks) between ring and middle finger.
  4. Count off the right pile in groups of 4. Place the remainder between middle and index finger.
  5. You now hold 5 or 9 stalks. Set them aside. Combine the remaining stalks (40 or 44).
  6. Repeat the divide-and-count process twice more on the remaining stalks.
  7. After three operations, you'll have a pile of 24, 28, 32, or 36 stalks. Divide by 4 to get the line value: 6, 7, 8, or 9.

This takes about 15โ€“20 minutes for a full six-line hexagram. The yarrow method produces different probabilities than the coin method:

Line TypeCoin MethodYarrow Method
Changing yin (6)12.5%1/16 (6.25%)
Stable yang (7)37.5%5/16 (31.25%)
Stable yin (8)37.5%7/16 (43.75%)
Changing yang (9)12.5%3/16 (18.75%)

The yarrow method gives changing yang lines more often (18.75% vs 12.5%) and changing yin lines less often (6.25% vs 12.5%). Whether this matters is debated. Stephen Karcher, in Total I Ching (2003), argues the yarrow probabilities better reflect the I Ching's philosophy โ€” stable yin is the most common state, and dynamic yang change is more frequent than dynamic yin change. Most practitioners use whichever method they have time for.

Online casting tools

Several websites and apps generate I Ching hexagrams. Good digital casters simulate either the coin or yarrow probabilities, show you the hexagram visually, and provide the text. Some let you choose which probability model to use.

The practical question is whether clicking a button feels different from physically casting coins or sorting stalks. Many practitioners find the physical ritual valuable โ€” not because it's supernaturally necessary, but because it forces you to slow down and frame your question carefully. The 15 minutes spent on yarrow stalks is a form of meditation before the reading. That said, if you're traveling or don't have materials, an online caster will give you a valid hexagram.

How to frame your question

The I Ching responds to the question you ask. Vague questions produce vague readings. Here's what works:

Reading the result

Once you have your hexagram, the reading order is:

  1. Read the hexagram statement (ๅฆ่พญ) โ€” the overall judgment for this hexagram.
  2. Read the Image (่ฑก่พญ) โ€” the traditional commentary, usually describing the trigram image.
  3. If you have changing lines, read only the changing line texts (not all six). If multiple lines are changing, read all of them, with priority to the lowest-numbered.
  4. Read the relating hexagram โ€” the hexagram formed by flipping all changing lines. This shows the direction the situation is heading.

Hellmut Wilhelm, in Change: Eight Lectures on the I Ching (1960), describes this as reading the "present hexagram" for the current situation and the "future hexagram" for where things are moving. If you have no changing lines, the situation is stable โ€” what you see is what you have.

FAQ

Which method should I start with?

The three-coin method. It takes two minutes, requires nothing but three coins, and produces the same output format as yarrow stalks. Try yarrow later if you want the traditional experience or the different probability distribution.

Do changing lines change the entire hexagram?

Only the specific lines that are "changing" flip. If you cast Hexagram 6 (Conflict) with one changing line in the fourth position, you read Hexagram 6, its fourth line text, and then the hexagram formed by flipping just that one line. You don't flip all six lines unless all six are changing โ€” which is extremely rare.

How often should I cast?

There's no rule, but casting about the same question repeatedly until you get the answer you want defeats the purpose. The traditional advice โ€” "ask once, sit with the answer" โ€” is practical. If your situation genuinely changes, cast again. If you just don't like the reading, give it time.

XL

Xiao Liu

PhD Ancient Linguistics (Sun Yat-sen Univ.) / Paleography

Deciphers oracle bone inscriptions and ancient scripts. Specializes in I Ching textual history, divination evolution, and pre-Qin philosophy.

What method do you use โ€” coins, stalks, or online? Share your setup and any tips.

Join the Divination forum โ†’

๐Ÿ›๏ธ AetherRitual Expert Review Panel

This content has been reviewed by our interdisciplinary panel of 15 experts from science, engineering, philosophy, and clinical practice. Each article is authored by a subject-matter specialist and peer-reviewed for factual accuracy and E-E-A-T compliance.

Sandy WooCharling LooLin YueArthur ChenWei ZhangMei WangHaoran LiXiao LiuYan XuJun ZhouJing WuTao YangYue HuangChen FengNa Li

๐Ÿ›๏ธ AetherRitual Research Council

Our content is authored by subject specialists and peer-reviewed by our interdisciplinary council of experts from natural science, engineering, and philosophy. We bridge the gap between ancient esoteric wisdom and modern academic rigor.

Dr. Wei Zhang
PhD Quantum Physics (Tsinghua Univ.)
Focus: Quantum Mysticism, Consciousness
Dr. Haoran Li
PhD Cognitive Neuro (Fudan Univ.)
Focus: Meditation fMRI, Altered States
Dr. Xiao Liu
PhD Paleography (Sun Yat-sen Univ.)
Focus: Oracle Bones, Ancient Scripts
Dr. Mei Wang
PhD Comp. Biology (SJTU)
Focus: DNA Epigenetics, Ayurveda
Dr. Jun Zhou
PhD Materials Sci (Shandong Univ.)
Focus: Crystallography, Piezoelectricity
Dr. Tao Yang
PhD Number Theory (USTC)
Focus: Sacred Geometry, Numerology
Dr. Yan Xu
PhD Atmospheric Sci (CAS)
Focus: Ancient Weather Divination (ๅ ๅ€™)
Dr. Jing Wu
PhD Sociology (Renmin Univ.)
Focus: Folk Religion, Urban Rituals
Dr. Chen Feng
PhD Chem. Eng. (Tongji Univ.)
Focus: Alchemy, Metallurgy History
Dr. Na Li
PhD Psychology (Nanjing Normal Univ.)
Focus: Archetypal Theory, Jungian Analysis
Dr. Zhao Ming
PhD Philosophy of Mind (Fudan Univ.)
Focus: Panpsychism, Eastern Metaphysics
Dr. Lin Yue
PhD Clinical Psych (Zhejiang Univ.)
Focus: Somatic Healing, Psychotherapy