Home / Fun & Culture / I Ching Hexagram Calculator (Three-Coin Method)

Fun & Culture

I Ching Hexagram Calculator (Three-Coin Method)

The I Ching, or Book of Changes, is one of the oldest books in the world. Toss three virtual coins six times to build a hexagram, or enter the results of real coins you tossed yourself.

For entertainment and self-reflection: The I Ching is a classic of Chinese literature and philosophy; the casting here uses your browser’s random number generator and the readings are short summaries for reflection. Nothing on this page is a prediction, and it is not financial, medical, psychological or legal advice. Use it as a prompt for thought, not as a basis for decisions.

Cast a hexagram

Enter tosses from real coins

For each line, from the bottom (line 1) up, add the coins: heads = 3, tails = 2. Each line totals 6, 7, 8 or 9.

Your hexagram—
Trigrams—
Line values (bottom to top)—
Changing lines—
Relating (changed) hexagram—

How the three-coin method works

An I Ching hexagram is a stack of six lines, each either solid (yang) or broken (yin). It is built from the bottom up, one line per throw. With the three-coin method you toss three coins together and add them: heads count 3 and tails count 2. The total is always 6, 7, 8 or 9:

TotalCoinsLineChance
6three tailsold yin: broken, changing1 in 8
7two tails, one headyoung yang: solid, stable3 in 8
8two heads, one tailyoung yin: broken, stable3 in 8
9three headsold yang: solid, changing1 in 8

After six throws you have your primary hexagram. Lines that came up 6 or 9 are called changing or moving lines. They are thought to be at a turning point, about to become their opposite. If you have any, flip each one (a changing yin becomes yang, a changing yang becomes yin) to get a second figure, often called the relating or changed hexagram. Traditionally the first figure describes the present situation and the second shows where it is heading. If no lines change, the reading rests on the first hexagram alone.

Each hexagram is also two trigrams, three-line figures linked with natural images: Heaven, Earth, Thunder, Water, Mountain, Wind, Fire and Lake. The lower trigram (lines 1 to 3) is read as the inner or earlier part of the situation and the upper trigram (lines 4 to 6) as the outer or later part. Eight trigrams combined in every possible way give 8 × 8 = 64 hexagrams.

This calculator follows the received King Wen sequence, the order used in almost every edition of the book, so hexagram 1 is the Creative and hexagram 64 is Before Completion. The virtual coins use your browser’s cryptographic random number generator, so every toss has exactly the traditional odds. If you prefer to toss real coins, open "Enter tosses from real coins" and type the six totals.

Worked example

Suppose the six throws, from bottom to top, total 7, 8, 9, 7, 8, 8. That gives the lines solid, broken, solid, solid, broken, broken. The lower three (solid, broken, solid) form Fire; the upper three (solid, broken, broken, reading upward) form Thunder. Thunder over Fire is hexagram 55, Feng, Abundance, an image of a peak of fullness, like the sun at noon.

Line 3 came up 9, an old yang, so it changes. Turning that solid line into a broken one makes the lower trigram Thunder as well, giving Thunder over Thunder: hexagram 51, Zhen, Shock. A reader might take that as "a full, bright period, with something startling coming that will test your composure". The calculator does this arithmetic for you and shows both hexagrams.

A short history of the Book of Changes

The core of the I Ching, known as the Zhouyi (Changes of Zhou), took shape in the Western Zhou dynasty in China, roughly three thousand years ago. It consists of the 64 hexagrams, a brief "judgement" for each, and a short statement for each line. Scholars think it grew out of divination practices in which a question would be put and an answer drawn by a random procedure. Over the following centuries, commentaries known as the Ten Wings were added. Tradition credits them to Confucius; modern scholars date them to the late Warring States and early Han periods and see them as the work of several hands. With the Ten Wings, the book became a work of philosophy as well as divination, and in the Han dynasty it was made one of the Confucian classics.

The oldest method of casting uses fifty yarrow stalks divided and counted in a lengthy procedure. The three-coin method is a later, quicker substitute and has been widely used for many centuries. Its odds are slightly different: with yarrow stalks a changing yang line is three times as likely as a changing yin line, while with coins both have a 1 in 8 chance.

The book has had a long life outside China too. The German philosopher Gottfried Wilhelm Leibniz, in a paper of 1703 on binary arithmetic, noted that an ordering of the hexagrams he had received from a Jesuit correspondent in China matched counting in binary. James Legge’s English translation of 1882 made the text widely available to English readers, and Richard Wilhelm’s German translation of 1924, later put into English with a foreword by Carl Jung, became a counterculture favourite in the 1960s. Archaeology has added new evidence: a manuscript found at Mawangdui in 1973, from the second century BCE, preserves the text in a different hexagram order.

Using the I Ching for reflection

Many modern readers use the I Ching less as an oracle and more as a structured way of thinking. The hexagram texts are full of images about timing, restraint, cooperation, difficulty and renewal. A random draw puts one of these images in front of you and invites you to ask how it might apply. Some practical tips:

All 64 hexagrams

The table lists every hexagram in King Wen order with its traditional name, a common English title and its trigrams (upper over lower). The short summaries shown with your result are our own paraphrases, informed by Legge’s public-domain translation.

#NameTrigrams
1䷀Qian — The CreativeHeaven over Heaven
2䷁Kun — The ReceptiveEarth over Earth
3䷂Zhun — Difficulty at the BeginningWater over Thunder
4䷃Meng — Youthful InexperienceMountain over Water
5䷄Xu — WaitingWater over Heaven
6䷅Song — ConflictHeaven over Water
7䷆Shi — The ArmyEarth over Water
8䷇Bi — Holding TogetherWater over Earth
9䷈Xiao Chu — Small TamingWind over Heaven
10䷉Lü — Treading CarefullyHeaven over Lake
11䷊Tai — PeaceEarth over Heaven
12䷋Pi — StandstillHeaven over Earth
13䷌Tong Ren — FellowshipHeaven over Fire
14䷍Da You — Great PossessionFire over Heaven
15䷎Qian — ModestyEarth over Mountain
16䷏Yu — EnthusiasmThunder over Earth
17䷐Sui — FollowingLake over Thunder
18䷑Gu — Repairing What Is SpoiledMountain over Wind
19䷒Lin — ApproachEarth over Lake
20䷓Guan — ContemplationWind over Earth
21䷔Shi He — Biting ThroughFire over Thunder
22䷕Bi — GraceMountain over Fire
23䷖Bo — Splitting ApartMountain over Earth
24䷗Fu — ReturnEarth over Thunder
25䷘Wu Wang — InnocenceHeaven over Thunder
26䷙Da Chu — Great TamingMountain over Heaven
27䷚Yi — NourishmentMountain over Thunder
28䷛Da Guo — Great ExcessLake over Wind
29䷜Kan — The AbyssWater over Water
30䷝Li — ClarityFire over Fire
31䷞Xian — AttractionLake over Mountain
32䷟Heng — DurationThunder over Wind
33䷠Dun — RetreatHeaven over Mountain
34䷡Da Zhuang — Great PowerThunder over Heaven
35䷢Jin — ProgressFire over Earth
36䷣Ming Yi — Darkening of the LightEarth over Fire
37䷤Jia Ren — The FamilyWind over Fire
38䷥Kui — OppositionFire over Lake
39䷦Jian — ObstructionWater over Mountain
40䷧Xie — DeliveranceThunder over Water
41䷨Sun — DecreaseMountain over Lake
42䷩Yi — IncreaseWind over Thunder
43䷪Guai — BreakthroughLake over Heaven
44䷫Gou — Coming to MeetHeaven over Wind
45䷬Cui — Gathering TogetherLake over Earth
46䷭Sheng — Pushing UpwardEarth over Wind
47䷮Kun — ExhaustionLake over Water
48䷯Jing — The WellWater over Wind
49䷰Ge — RevolutionLake over Fire
50䷱Ding — The CauldronFire over Wind
51䷲Zhen — ShockThunder over Thunder
52䷳Gen — Keeping StillMountain over Mountain
53䷴Jian — Gradual DevelopmentWind over Mountain
54䷵Gui Mei — The Marrying MaidenThunder over Lake
55䷶Feng — AbundanceThunder over Fire
56䷷Lü — The TravellerFire over Mountain
57䷸Xun — The GentleWind over Wind
58䷹Dui — JoyLake over Lake
59䷺Huan — DispersionWind over Water
60䷻Jie — LimitationWater over Lake
61䷼Zhong Fu — Inner TruthWind over Lake
62䷽Xiao Guo — Small ExcessThunder over Mountain
63䷾Ji Ji — After CompletionWater over Fire
64䷿Wei Ji — Before CompletionFire over Water

Frequently asked questions

How does the I Ching coin method work?

Toss three coins six times. Count heads as 3 and tails as 2, and add each throw to get 6, 7, 8 or 9. Odd totals give solid lines and even totals give broken lines, built from the bottom up. Totals of 6 and 9 are changing lines.

What are changing lines?

Lines that come up 6 (old yin) or 9 (old yang). They are seen as being at a turning point. Flipping them gives a second hexagram that traditionally shows where the situation is heading.

What if I get no changing lines?

Then there is only one hexagram, and the reading rests on its main text. With three coins this happens about 18% of the time, since each line has a 3 in 4 chance of being stable.

Is the yarrow stalk method different?

Yes. It is older and slower, and its odds differ: with yarrow stalks a changing yang line comes up three times as often as a changing yin line, while with coins both have a 1 in 8 chance.

How old is the I Ching?

The core text dates from the Western Zhou dynasty, roughly three thousand years ago. The philosophical commentaries called the Ten Wings were added several centuries later.

Are the virtual coins truly random?

They use your browser’s cryptographic random number generator, which gives each coin an even 50/50 chance. Nothing is stored or sent anywhere.

Can the I Ching predict the future?

There is no scientific evidence that it can. Many people value it as a classic text and as a tool for reflection, which is how this page presents it.

Sources and further reading

By Stanley King · About 8calc · Last reviewed October 2026