He Tu and Luo Shu: the two diagrams behind Chinese number cosmology
One map pairs numbers with the five elements; the other hides a magic square that still runs the nine palaces.
The He Tu (河图, "River Map") and Luo Shu (洛书, "Luo Writing") are the two foundational number diagrams of Chinese cosmology. The He Tu assigns the numbers 1–10 to the five elements (1/6 Water, 2/7 Fire, 3/8 Wood, 4/9 Metal, 5/10 Earth). The Luo Shu arranges 1–9 into a 3×3 magic square — every row, column, and diagonal sums to 15 — which became the nine palaces (九宫) grid used by Qi Men Dun Jia and Flying Star feng shui.
Behind every "lucky number" table and every nine-palace chart on this site sit two diagrams that the tradition treats as primordial: one said to have risen from the Yellow River on the back of a dragon-horse, the other from the Luo River on a divine turtle. This guide lays out what the diagrams actually contain, what the classics genuinely attest, and where they are still doing structural work today.
What the sources actually say
The honest starting point is a single attested line. The Xici Zhuan (系辞传, "Appended Statements") appendix to the I Ching says: 河出图,洛出书,圣人则之 — "the River gives forth the Map, the Luo gives forth the Writing; the sages took them as models." That phrase is genuinely old and securely documented. So are later references to the "numbers of Heaven and Earth" — the odd numbers 1, 3, 5, 7, 9 as heaven's, the even 2, 4, 6, 8, 10 as earth's — in the same appendix.
What is not securely documented is everything more specific. The legends that Fu Xi received the He Tu from a dragon-horse and Yu the Great the Luo Shu from a turtle are traditional narratives, not history. The diagram forms you see today — dot patterns of white and black circles — are documented most firmly from the Song dynasty, over a millennium after the Xici text. Earlier origins, Han or otherwise, are argued but unproven: treat dynasty attributions as 待考 (attribution uncertain). The diagrams' use from the Song onward is not controversial; their antiquity in this form is.
The He Tu: numbers married to the five elements
The He Tu arranges the numbers 1–10 as dot clusters around a center, pairing a small "generating" number with a larger "completing" number that differs by five. Each pair belongs to one element, one direction, one season. The tradition compresses the whole map into five verses:
- 1 / 6 — Water 水 · North · Winter. Heaven begets Water with one; Earth completes it with six (天一生水,地六成之).
- 2 / 7 — Fire 火 · South · Summer. Earth begets Fire with two; Heaven completes it with seven (地二生火,天七成之).
- 3 / 8 — Wood 木 · East · Spring. Heaven begets Wood with three; Earth completes it with eight (天三生木,地八成之).
- 4 / 9 — Metal 金 · West · Autumn. Earth begets Metal with four; Heaven completes it with nine (地四生金,天九成之).
- 5 / 10 — Earth 土 · Center · The transitions. Heaven begets Earth with five; Earth completes it with ten (天五生土,地十成之).
Read structurally, the map says: every element has a birth and a completion, an odd (yang, heaven) and an even (yin, earth) face, and a place in the compass. This is the assignment behind the personalized side of Chinese numerology — when a birth chart's favorable element is Metal, the He Tu says its numbers are 4 and 9, whatever the 4-is-death wordplay thinks. Our lucky numbers calculator applies exactly this table, and the lucky numbers guide explains how the folk layer sits on top of it.
The Luo Shu: a magic square that became a grid of the world
The Luo Shu places the digits 1–9 in a 3×3 grid:
Every row, every column, and both diagonals sum to 15 — 4+9+2, 3+5+7, 8+1+6, 4+3+8, 9+5+1, 2+7+6, 4+5+6, 2+5+8. It is, up to rotation and reflection, the only 3×3 magic square using the digits 1–9, which is a mathematical fact rather than a traditional claim. The even (yin) numbers occupy the corners, the odd (yang) numbers the axes, and 5 — the center number of the He Tu as well — holds the middle.
The grid's career is remarkable. Named and oriented — 9 at the top as South, 1 at the bottom as North, the tradition drawing maps upside-down by modern convention — it became the nine palaces (九宫), the spatial backbone shared by several arts. Qi Men Dun Jia lays its stars, doors, and spirits across these nine palaces; Flying Star feng shui rotates annual stars through the same grid (the "flying" is literally numbers moving palace to palace along the Luo Shu sequence); and the九宫 frame turns up in everything from traditional board layouts to the eight trigrams' later-heaven arrangement, which maps the trigrams onto the square's eight outer cells around the central 5.
Why the pair matters together
The tradition treats the two diagrams as complements. The He Tu is read as the static pattern — the standing assignment of number to element, direction, and season, a map of how things are born and completed. The Luo Shu is read as the dynamic pattern — the square whose numbers can "fly" through the palaces, tracking change over time. One underwrites what belongs together; the other underwrites how configuration shifts. Whether or not that cosmology persuades you, the engineering is elegant: two small diagrams, one addition puzzle, and centuries of derived arts all sharing the same coordinate system.
If you want to see the descendants at work: cast an hour chart in Qi Men, check the year's palace layout in the 2027 Flying Stars chart, or turn your own birth element into He Tu numbers with the lucky numbers calculator.
Frequently asked questions
What are the He Tu and Luo Shu?
Two traditional cosmological diagrams: the He Tu pairs numbers 1–10 with the five elements in generating-completing pairs; the Luo Shu arranges 1–9 into the 3×3 magic square of 15 that became the nine palaces grid.
What is the Luo Shu magic square?
4-9-2 on top, 3-5-7 through the middle, 8-1-6 along the bottom — every line sums to 15. It is the unique 3×3 magic square on the digits 1–9, up to rotation.
How old are the diagrams?
The names are attested in the Xici Zhuan appendix of the I Ching (河出图,洛出书). The diagram forms familiar today are documented most securely from the Song dynasty; the Fu Xi and Yu the Great legends are traditional attributions — 待考, unverified.
What are the He Tu element numbers?
Water 1/6, Fire 2/7, Wood 3/8, Metal 4/9, Earth 5/10 — with Earth's 10 read as 0 in modern single-digit usage. This table drives personalized lucky-number derivation from a BaZi favorable element.
See the diagrams at work
The He Tu still assigns numbers to elements, and the Luo Shu still runs the nine palaces. Turn your birth element into its He Tu numbers, or watch the palaces move in a live chart.