bazifor.me · Home fengshui · BaZi

Kua number calculator (命卦)

This page works out your Kua number, the Eight Mansions label for you.

You need only your birth date and sex.

You get your number, East or West group and eight directions.

Illustration of a bedroom with a compass showing the eight directions around a bed and desk

Step 1 · Birth date and sex

Counted from the start of spring (立春), so a January birth may belong to the previous year.

Sex
Sketch of a compass with eight sectors

What you will get: your Kua number, East or West group,
and the eight directions on a compass.

What is a Kua number?

The idea behind the calculator, in two paragraphs and a table.

The Kua number ("life trigram") is the Eight Mansions (八宅) label for a person. It is one of eight trigrams, numbered 1 to 9 with 5 skipped, taken from the birth year counted from Start of Spring and from the person's sex. Each trigram belongs to the East group (東四命: 坎 (north) 1, 震 (east) 3, 巽 (south-east) 4, 離 (south) 9) or the West group (西四命: 坤 (south-west) 2, 乾 (north-west) 6, 兌 (west) 7, 艮 (north-east) 8).

The trigram fixes eight directions around you: four favourable (Vitality (生氣), Heavenly Doctor (天醫), Longevity (延年), Stability (伏位)) and four to avoid (Mishap (禍害), Six Killings (六煞), Five Ghosts (五鬼), Severed Fate (絕命)), by the Eight Mansions wandering-year line-change rule (八宅大遊年). The calculator applies the same table the home audit uses, so the two always agree.

GroupTrigramsFavourable directions
East group坎 1 · 震 3 · 巽 4 · 離 9N, E, SE, S
West group坤 2 · 乾 6 · 兌 7 · 艮 8NE, SW, W, NW

Worked example and lookup table

Check the result by hand.

A fictional man born 15 March 1988 in Singapore: the year 1988 counts in full because Start of Spring fell on 4 February 1988. Its digits add to 26, then to 8; for a man the number is 11 minus 8, so his Kua is 3, the trigram 震 (east), East group. His best headboard directions are south (Vitality), north (Heavenly Doctor) and south-east (Longevity). The number 5 is never assigned: a man who computes 5 takes 2 (坤) and a woman takes 8 (艮).

KuaTrigramGroupVitalityHeavenly DoctorLongevityStability
1坎 KanEastSEESN
2坤 KunWestNEWNWSW
3震 ZhenEastSNSEE
4巽 XunEastNSESE
6乾 QianWestWNESWNW
7兌 DuiWestNWSWNEW
8艮 GenWestSWNWWNE
9離 LiEastESENS

The four directions not listed for your number are the ones to avoid: Mishap, Six Killings, Five Ghosts and Severed Fate. In Singapore and Malaysia an HDB flat or condominium bedroom usually offers only two solid walls, so pick the better of the two available directions rather than the best on paper.

Next steps

Learn more: Bed direction guideEight House directionsWhat is BaZi?