Guides

Najia and the Six Relatives in the I Ching

How Liu Yao turns six lines into a chart.

Najia (納甲, “assigning the stems”) is the Han-dynasty method of giving each of the six lines of an I Ching hexagram a heavenly stem and an earthly branch. The six relatives (六親) compare the element of each line with the element of the hexagram’s palace and name the relation: parents, siblings, offspring, wealth or officer. Together they are the static layer of Liu Yao (六爻), the part on which the standard manuals agree.

By YiGram Editorial · Updated 2026-11-25

Step 1: give each line its stem and branch

Each trigram carries fixed stems and branches, one set when it is the lower trigram (lines 1–3) and one when it is the upper (lines 4–6). Look up the two trigrams of your hexagram and copy the branches line by line.

TrigramStem (lower / upper)Lower: lines 1 · 2 · 3Upper: lines 4 · 5 · 6
乾 Heaven甲 / 壬子 zi · 寅 yin · 辰 chen午 wu · 申 shen · 戌 xu
震 Thunder庚 / 庚子 zi · 寅 yin · 辰 chen午 wu · 申 shen · 戌 xu
坎 Water戊 / 戊寅 yin · 辰 chen · 午 wu申 shen · 戌 xu · 子 zi
艮 Mountain丙 / 丙辰 chen · 午 wu · 申 shen戌 xu · 子 zi · 寅 yin
坤 Earth乙 / 癸未 wei · 巳 si · 卯 mao丑 chou · 亥 hai · 酉 you
巽 Wind辛 / 辛丑 chou · 亥 hai · 酉 you未 wei · 巳 si · 卯 mao
離 Fire己 / 己卯 mao · 丑 chou · 亥 hai酉 you · 未 wei · 巳 si
兌 Lake丁 / 丁巳 si · 卯 mao · 丑 chou亥 hai · 酉 you · 未 wei

Stems and branches of the eight trigrams, read from the bottom line up.

Step 2: find the palace of the hexagram

The 64 hexagrams fall into eight palaces of eight, each named after a doubled trigram. From the doubled trigram, one line after another changes from the bottom (first to fifth generation), then the fourth line changes back (wandering soul), then the lower trigram returns (returning soul). The palace gives the hexagram its element.

PalaceDoubledshi: line 61stshi: line 12ndshi: line 23rdshi: line 34thshi: line 45thshi: line 5Wanderingshi: line 4Returningshi: line 3
乾 Heavenmetal1 乾44 姤33 遯12 否20 觀23 剝35 晉14 大有
震 Thunderwood51 震16 豫40 解32 恆46 升48 井28 大過17 隨
坎 Waterwater29 坎60 節3 屯63 既濟49 革55 豐36 明夷7 師
艮 Mountainearth52 艮22 賁26 大畜41 損38 睽10 履61 中孚53 漸
坤 Earthearth2 坤24 復19 臨11 泰34 大壯43 夬5 需8 比
巽 Windwood57 巽9 小畜37 家人42 益25 無妄21 噬嗑27 頤18 蠱
離 Firefire30 離56 旅50 鼎64 未濟4 蒙59 渙6 訟13 同人
兌 Lakemetal58 兌47 困45 萃31 咸39 蹇15 謙62 小過54 歸妹

The eight palaces. Each number is a hexagram in the King Wen order; the columns also fix the shi line.

The position in the palace also fixes the shi line (世, the one who asks): lines 6, 1, 2, 3, 4, 5, 4, 3 in the order of the columns. The ying line (應, the other side) is three places away.

Step 3: name the six relatives

Take the element of the palace as “self” and ask how the element of each line relates to it. There are five relations; with the self they make the traditional “six”.

Line elementRelativeTraditionally stands for
produces the palace elementParents (父母)documents, houses, learning, protection
is the same as the palace elementSiblings (兄弟)peers, rivals, shared costs
is produced by the palace elementOffspring (子孫)relief, joy, children, remedies
is controlled by the palace elementWealth (妻財)money, goods, resources
controls the palace elementOfficer (官鬼)office, pressure, illness, worry

The elements produce each other in the order wood, fire, earth, metal, water, and control each other in the order wood, earth, water, fire, metal.

A worked chart: Hexagram 49

Hexagram 49 belongs to the Kan palace, whose element is water, as its fourth generation. Fire is the lower trigram and Lake the upper, which gives the branches; comparing each element with water gives the relatives.

Line49 革BranchRelativeshi (世) / ying (應)
6━━ ━━丁未 wei · earthOfficer
5━━━━━丁酉 you · metalParents
4━━━━━丁亥 hai · waterSiblingsshi (世)
3━━━━━己亥 hai · waterSiblings
2━━ ━━己丑 chou · earthOfficer
1━━━━━己卯 mao · woodOffspringying (應)

What the static layer can and cannot tell you

The static layer says which line stands for which part of your question, and which of those lines is moving. It does not say how strong a line is: that depends on the month and the day of the cast, and on combinations and clashes, where the schools differ.

YiGram computes exactly this layer for every cast and gives it to the AI reading as structure, as described in the methodology. The tables on this page come from the same rules, which are open source on GitHub, including a machine-readable file. They follow the Bushi Zhengzong (卜筮正宗, 1709), with the Zengshan Buyi (增刪卜易) and the Huangjin Ce (黃金策) as cross-references. If you find an error, the repository takes corrections.

Questions about najia

Who invented najia?

It is traditionally credited to Jing Fang (京房, 77–37 BCE), who also arranged the hexagrams into the eight palaces.

Why are there only five relations if they are called six relatives?

Because the self, the palace itself, is counted as the sixth. The names are parents, siblings, offspring, wealth and officer.

What is the difference between najia and reading the line texts?

The line texts (爻辭) are the words of the I Ching. Najia sets the words aside and works with branches and elements. YiGram reads the texts first and uses najia as structure underneath.

Is Liu Yao the same as Wen Wang Gua?

The names largely overlap. Both mean casting six lines with coins and reading them through najia, the six relatives and the date of the cast.