*Note: If you were born in January or before February 5th, use the previous year.
Male
Female
Your Lucky Directions:
What is a Kua Number?
In Eight Mansions Feng Shui (BaZhai), your Kua Number (also known as Ming Gua) is a personal energy map derived from your birth year and gender. This number reveals which magnetic directions align with your personal vibrations, helping you position your bed, desk, and main entrance to attract prosperity, health, and harmony.
The Calculation Logic
The calculation differs based on gender and birth century. For those born between 1900 and 1999, the formula uses 10 (male) or 5 (female) as the base. For those born after 2000, the base shifts to 9 (male) or 6 (female). In Feng Shui, there is no Kua Number 5. If a calculation results in 5, males adopt the characteristics of Kua 2, and females adopt Kua 8.
East Group vs. West Group
Kua Numbers are divided into two main groups. Generally, people within the same group share favorable directions:
East Group: Kua Numbers 1, 3, 4, 9.
West Group: Kua Numbers 2, 6, 7, 8.
Example Calculation
For a Male born in 1985:
Add the digits of the year: 1+9+8+5 = 23.
Reduce to a single digit: 2+3 = 5.
Subtract from 10 (pre-2000 rule): 10 – 5 = 5.
Rule adjustment: Since the result is 5, the Kua Number is 2.
Kua Number
Element
Group
Best Direction (Success)
1
Water
East
Southeast
2
Earth
West
Northeast
3
Wood
East
South
4
Wood
East
North
6
Metal
West
West
7
Metal
West
Northwest
8
Earth
West
Southwest
9
Fire
East
East
function calculateKuaNumber() {
var yearInput = document.getElementById('birthYear').value;
var gender = document.getElementById('gender').value;
var resultDiv = document.getElementById('kuaResult');
var kuaDisplay = document.getElementById('kuaDisplay');
var groupDisplay = document.getElementById('groupDisplay');
var directionsList = document.getElementById('directionsList');
if (!yearInput || yearInput 2100) {
alert("Please enter a valid birth year between 1900 and 2100.");
return;
}
var year = parseInt(yearInput);
var sum = 0;
var tempYear = year;
// Sum digits
while (tempYear > 0) {
sum += tempYear % 10;
tempYear = Math.floor(tempYear / 10);
}
// Reduce to single digit
while (sum > 9) {
var innerSum = 0;
while (sum > 0) {
innerSum += sum % 10;
sum = Math.floor(sum / 10);
}
sum = innerSum;
}
var kua = 0;
if (gender === 'male') {
if (year < 2000) {
kua = 10 – sum;
} else {
kua = 9 – sum;
}
if (kua <= 0) kua += 9;
if (kua === 5) kua = 2;
} else {
if (year 9) kua -= 9;
if (kua === 5) kua = 8;
}
var group = "";
var directions = "";
var element = "";
var data = {
1: { group: "East", element: "Water", directions: ["Southeast (Success)", "East (Health)", "South (Love)", "North (Stability)"] },
2: { group: "West", element: "Earth", directions: ["Northeast (Success)", "West (Health)", "Northwest (Love)", "Southwest (Stability)"] },
3: { group: "East", element: "Wood", directions: ["South (Success)", "North (Health)", "Southeast (Love)", "East (Stability)"] },
4: { group: "East", element: "Wood", directions: ["North (Success)", "South (Health)", "East (Love)", "Southeast (Stability)"] },
6: { group: "West", element: "Metal", directions: ["West (Success)", "Northeast (Health)", "Southwest (Love)", "Northwest (Stability)"] },
7: { group: "West", element: "Metal", directions: ["Northwest (Success)", "Southwest (Health)", "Northeast (Love)", "West (Stability)"] },
8: { group: "West", element: "Earth", directions: ["Southwest (Success)", "Northwest (Health)", "West (Love)", "Northeast (Stability)"] },
9: { group: "East", element: "Fire", directions: ["East (Success)", "Southeast (Health)", "North (Love)", "South (Stability)"] }
};
var info = data[kua];
kuaDisplay.innerHTML = "Your Kua Number: " + kua;
groupDisplay.innerHTML = "Group: " + info.group + " | Element: " + info.element;
var dirHtml = "";
for (var i = 0; i < info.directions.length; i++) {
dirHtml += '