Xiao Liu Ren Calculator: Six Palaces by Lunar Hour

Xiao Liu Ren is a finger count from the Chinese folk almanac. You count six palaces with the lunar month, day and hour, then read the verse of the palace where the count stops. Enter a date and time, or use the current time.

Written by Akhmad Erlangga, Founder of SPYLL. Updated

Getting the current time...

Counting rules used here

  • The Yu Xia Ji gives the method: month 1 falls on Da An and the months count on from there. Day 1 falls on the month palace. The Zi hour falls on the day palace.
  • The palace order never changes: Da An, Liu Lian, Su Xi, Chi Kou, Xiao Ji, Kong Wang, then back to Da An.
  • Lunar hours: Zi is 23:00 to 00:59, Chou 01:00 to 02:59, and so on every two hours up to Hai, 21:00 to 22:59. Zi is number 1, Hai is number 12.
  • 23:00 to 23:59 counts as the Zi hour, and the lunar date stays that day's. The Yu Xia Ji does not cover this edge. The lunar-typescript calendar library also keeps the same date at this hour.
  • A leap month uses its own month number. The leap 6th month of 2025 counts as month 6.
  • The lunar date comes from the Chinese calendar for the Gregorian date you enter, the same dates Imlek calendars in Indonesia print. The hour uses clock time, with no solar time correction.

The three-number variant

Modern practitioners often swap the month, day and hour for three numbers they pick. The count works the same way: the first number from Da An, the second from the first number's palace, the third from the second number's palace. A practitioner manual published on 163.com in 2019 calls it the substitute-number method. It is a variant, not the method in the Yu Xia Ji.

The six palaces and their meanings

Element and guardian come from the Yu Xia Ji. Directions follow a 2019 practitioner manual, since the Yu Xia Ji gives none.

  1. 1. Da An (Great Calm)

    Element
    Wood
    Guardian
    Azure Dragon (Qing Long)
    Direction
    East

    Calm and steady. The verse says matters go well and the house is safe, but the person you wait for has not set out.

    Full verse and original text
    • Da An: every matter goes well.
    • Your plan lies in the direction the gods guard.
    • A lost item has not gone far.
    • The house stays safe and well.
    • The traveller you wait for has not set out.
    • The sick come to no harm.
    • The general goes home to the fields.
    • Weigh it with care.

    大安 身不動時,屬木青龍,凡謀事主一、五、七;

    大安事事昌,求謀在神方,失物去不遠,宅舍保安康,行人身未動,病者主無妨,將軍回田野,仔細與推詳。

  2. 2. Liu Lian (Lingering)

    Element
    Water
    Guardian
    Black Tortoise (Xuan Wu)
    Direction
    North

    Stuck and slow. The verse says matters are hard to finish, official business should wait, and whoever left has not come back.

    Full verse and original text
    • Liu Lian: matters are hard to finish.
    • The day for your plan is not yet clear.
    • Official matters should wait.
    • Whoever left is not yet on the road home.
    • A lost item turns up in the south.
    • Chase it fast and you get what you want.
    • Watch out for quarrels.
    • The household stays so-so.

    留連 卒未妝時,屬水玄武,凡謀事主二、八、十;

    留連事難成,求謀日示明,官事只宜緩,去者未回程,失物南方見,急討方稱心,更須防口舌,人口且平平。

  3. 3. Su Xi (Swift Joy)

    Element
    Fire
    Guardian
    Vermilion Bird (Zhu Que)
    Direction
    South

    Good news that comes fast. The verse says joy arrives and the traveller sends word.

    Full verse and original text
    • Su Xi: joy arrives.
    • Seek money to the south.
    • A lost item lies between south and southwest.
    • Ask the people you meet on the road.
    • Official matters meet good fortune.
    • No harm reaches the sick.
    • Fields, house and livestock do well.
    • The traveller sends word.

    速喜 人便至時,屬火朱雀,凡謀事立三、六、九;

    速喜喜來臨,求財向南行,失物申未午,逢人路上尋,官事有福德,病者無禍侵,田定六畜吉,行人有信音。

  4. 4. Chi Kou (Red Mouth)

    Element
    Metal
    Guardian
    White Tiger (Bai Hu)
    Direction
    West

    Prone to quarrels. The verse asks you to watch for arguments and lawsuits, and says to look for a lost item fast.

    Full verse and original text
    • Chi Kou: a sign of quarrels.
    • Guard against lawsuits.
    • Look for a lost item fast.
    • The traveller meets a scare.
    • Chickens and dogs act strange.
    • For the sick, the direction is west.
    • Guard against curses.
    • Beware of catching a plague.

    赤口 官事凶時,屬金白虎,凡謀事主四、七、十;

    赤日主口舌,官非切要防,失物急去尋,行人有驚慌,雞犬多作怪,病者出西方,更須訪咒詛,恐怕染瘟癀。

  5. 5. Xiao Ji (Small Luck)

    Element
    Wood
    Guardian
    Six Harmonies (Liu He)
    Direction
    Sources disagree on its direction. The verse names the southwest for a lost item.

    Small, friendly luck. The verse says deals are easy to talk through, good news comes, and the person you wait for arrives soon.

    Full verse and original text
    • Xiao Ji: the luckiest and smoothest.
    • On the road, deals are easy to talk through.
    • A woman brings good news.
    • A lost item lies to the southwest.
    • The traveller arrives soon.
    • Trade goes strong.
    • All matters come together.
    • The sick pray to heaven.

    小吉 人來喜時,屬木六合,凡謀事主一、五、七;

    小吉最吉昌,路上好商量,陰人來報喜,失物在坤方,行人立便至,交關甚是強,凡事皆和合,病者禱上蒼。

  6. 6. Kong Wang (Emptiness)

    Element
    Earth
    Guardian
    Gou Chen (Gou Chen)
    Direction
    Centre

    Empty. The verse says matters do not last, seeking money brings no gain, and a lost item stays lost.

    Full verse and original text
    • Kong Wang: matters do not last.
    • A woman is a little contrary.
    • Seeking money brings no gain.
    • The traveller meets misfortune.
    • A lost item stays lost.
    • Official matters end in punishment.
    • The sick meet a hidden ghost.
    • A warding rite keeps them safe.

    空亡 信音稀時,屬土勾陳,凡謀事主一、五、七;

    空亡事不長,陰人小乖張,求財無利益,行人有災殃,失物尋不見,官事有刑場,病人逢暗鬼,禳解保安康。

Sources and origin

  • The verses and the counting method come from the Yu Xia Ji (Jade Casket Records), a Chinese folk almanac, chapter Li Chunfeng Liu Ren Shi Ke. SPYLL uses the Wikisource copy.
  • The Yu Xia Ji names Li Chunfeng, a Tang dynasty astronomer. That attribution is legend. No evidence shows he wrote this chapter.
  • Xiao Liu Ren belongs to the folk almanac tradition (tong shu), not to Da Liu Ren, a far more complex school.
  • SPYLL wrote the Indonesian and English translations on this page.

These verses are an old text, shown for cultural reference and fun. Lines about the sick, lawsuits and money belong to the old text and are not advice. Do not use the result for health, money, legal or safety decisions.

Common questions

What is Xiao Liu Ren?
Xiao Liu Ren is a finger count from the Chinese folk almanac. You count six palaces with the lunar month, day and hour, then read the verse of the palace where the count stops. The oldest text this page uses is in the Yu Xia Ji.
How do you count it?
Start on Da An as month 1 and count to your lunar month. From that palace, count the day starting at 1. From the day palace, count the hour starting at Zi. The short formula: month plus day plus hour number, minus 3, divided by 6. A remainder of 0 means Da An, 5 means Kong Wang.
Does 23:00 belong to today or tomorrow?
In this calculator, 23:00 to 23:59 is the Zi hour with that day's lunar date. The Yu Xia Ji does not cover this edge. Some other calculators move this hour to the next day, so results can differ during that hour.
What if the month is a leap month?
A leap month uses its own month number. For example, the leap 6th month of 2025 (25 July to 22 August 2025) counts as month 6. The calculator marks a leap month in the result.
Can I use three numbers of my own?
Yes. Modern practitioners often use three picked numbers in place of the month, day and hour. The count is the same. It is a modern variant, not the Yu Xia Ji method, so the calculator labels it in the result.
Is the result a sure prediction?
No. The verses are an old text, shown for cultural reference and fun. Do not use the result for health, money, legal or safety decisions.