The Yuantang line depends on the birth hour. A shift of one double-hour changes the result, so be as precise as you can.
He Luo Li Shu
He Luo Li Shu Calculator
A free he luo li shu calculator: enter your birth date, hour and place to derive the Xiantian and Houtian hexagrams from the day and earth numbers, locate the Yuantang line, and map the decades and yearly hexagrams.
Birth details
Qian and Kun follow the solstices, yang and yin months follow the lunar month, and age counts from Lunar New Year.
The classical text, the Zhong Yueping edition and the Cui Renhui lectures disagree on some rules; switch between them to compare.
Charts are calculated instantly and birth details are not stored.
FAQ
How is He Luo Li Shu different from Bazi or Liu Yao?
It starts from the same birth pillars as Bazi, but converts the stems and branches into day and earth numbers, then into a Xiantian and a Houtian hexagram read line by line. Bazi works with the five elements, and Liu Yao casts a fresh hexagram for a question.
What is the Yuantang?
It is the line chosen as the focal point of the hexagram, set by the birth hour. The decades start from it, with nine years for a yang line and six for a yin line.
Why are there different schools?
Transmitted editions disagree on the direction for Qian and Kun, how yang and yin months are counted, where age starts, and when the zhizun hexagram keeps its position. You can switch schools and compare.
What if the birth time is uncertain?
The Yuantang changes with the hour, so an error of more than one double-hour gives a different chart. Check a birth record or ask family before relying on the result.
This tool follows transmitted rules of the He Luo Li Shu. Results are for cultural interest and entertainment only.