Zi Wei Dou Shu (紫微斗數), or Purple Star Astrology, is a highly respected and detailed form of Chinese astrology. It uses your precise birth date and time to create a comprehensive chart of your destiny. This chart is divided into 12 "Palaces" (宮), each representing a different area of life such as Self, Wealth, Career, Health, and Relationships.
By plotting over 100 stars into these palaces, a practitioner can analyze your personality, innate talents, potential challenges, and the overall ebb and flow of your life's journey. Unlike Western astrology's focus on sun signs, Zi Wei Dou Shu provides a much more personalized and multi-faceted reading.
The 12 Palaces of Life
A full Zi Wei Dou Shu chart maps out the following 12 fundamental aspects of your life:
Self Palace (命宮): Your core personality, outlook, and overall destiny.
Parents Palace (父母宮): Your relationship with your parents and elders.
Fortune/Virtue Palace (福德宮): Your inner world, spiritual life, and capacity for happiness.
Property Palace (田宅宮): Your relationship with home, family, and assets.
Career Palace (官祿宮): Your professional aptitude, work ethic, and career path.
Servants/Friends Palace (僕役宮): Your relationships with subordinates, colleagues, and friends.
Travel Palace (遷移宮): Your opportunities and experiences away from home.
Health Palace (疾厄宮): Your innate physical constitution and potential health concerns.
Wealth Palace (財帛宮): Your ability to earn, manage, and accumulate wealth.
Children Palace (子女宮): Your relationship with your children and younger generations.
Spouse Palace (夫妻宮): Your romantic relationships, marriage, and partnership dynamics.
Siblings Palace (兄弟宮): Your relationship with your siblings.
Example Calculation
Let's consider a person born on October 5, 1985, at 8:15 AM (辰 chén). After entering these details into the calculator:
Basic Astrological Profile:
Birth Year Elements: Yin Wood Ox (乙丑 yǐ chǒu)
Chinese Zodiac: Ox
Life Palace (命宮) Location: Based on the birth month (10th Lunar Month) and birth hour (辰), the Life Palace is located in the 申 (Monkey) position.
Key Star Influence (Simplified): The Year Stem is Yin Wood (乙), which is associated with the Tian Ji (天機) star, suggesting intelligence, adaptability, and strategic thinking.
This initial data forms the foundation of a full chart, where the placement of major stars like Zi Wei (The Emperor) and Tian Fu (The Treasurer) would be calculated to reveal deeper insights.
Disclaimer
This calculator provides a simplified and educational overview based on fundamental principles of Zi Wei Dou Shu. The calculations for locating the Life Palace and a key star influence are illustrative. A complete and accurate astrological reading requires the complex plotting of all stars and a nuanced interpretation by a qualified practitioner.
function calculateZWDS() {
var birthYear = parseInt(document.getElementById('birthYear').value);
var birthMonth = parseInt(document.getElementById('birthMonth').value);
var birthDay = parseInt(document.getElementById('birthDay').value);
var birthHourIndex = parseInt(document.getElementById('birthHour').value);
var gender = document.getElementById('gender').value;
var resultDiv = document.getElementById('result');
if (isNaN(birthYear) || isNaN(birthMonth) || isNaN(birthDay) || birthYear 2099 || birthMonth 12 || birthDay 31) {
resultDiv.innerHTML = 'Please enter a valid and complete birth date (Year between 1900-2099).';
return;
}
var heavenlyStems = ['Jia (甲 Yang Wood)', 'Yi (乙 Yin Wood)', 'Bing (丙 Yang Fire)', 'Ding (丁 Yin Fire)', 'Wu (戊 Yang Earth)', 'Ji (己 Yin Earth)', 'Geng (庚 Yang Metal)', 'Xin (辛 Yin Metal)', 'Ren (壬 Yang Water)', 'Gui (癸 Yin Water)'];
var earthlyBranches = ['Zi (子 Rat)', 'Chou (丑 Ox)', 'Yin (寅 Tiger)', 'Mao (卯 Rabbit)', 'Chen (辰 Dragon)', 'Si (巳 Snake)', 'Wu (午 Horse)', 'Wei (未 Goat)', 'Shen (申 Monkey)', 'You (酉 Rooster)', 'Xu (戌 Dog)', 'Hai (亥 Pig)'];
var hourBranches = ['子', '丑', '寅', '卯', '辰', '巳', '午', '未', '申', '酉', '戌', '亥'];
// Simplified calculation for Year Stem and Branch
var yearOffset = birthYear – 4;
var stemIndex = yearOffset % 10;
var branchIndex = yearOffset % 12;
var yearStem = heavenlyStems[stemIndex];
var yearBranch = earthlyBranches[branchIndex];
var zodiac = yearBranch.split(' ')[1].replace(')', ");
// Simplified logic to determine Life Palace Location (命宮)
// This is a highly simplified algorithm for demonstration. Real calculation is much more complex.
// It's based on Birth Month (Lunar) and Birth Hour Branch. We'll approximate with solar month.
var lifePalaceIndex = (birthMonth – 1 + birthHourIndex) % 12;
if (gender === 'yin') {
lifePalaceIndex = (birthMonth – 1 – birthHourIndex);
while(lifePalaceIndex < 0) { lifePalaceIndex += 12; }
lifePalaceIndex = lifePalaceIndex % 12;
}
var lifePalaceBranch = earthlyBranches[lifePalaceIndex];
// Simplified logic for a key star influence based on Year Stem
var keyStar = '';
var keyStarDesc = '';
switch (stemIndex) {
case 0: // Jia 甲
keyStar = 'Lian Zhen (廉貞)';
keyStarDesc = 'Associated with ambition, discipline, and emotional complexity. Can indicate a strong-willed and authoritative personality.';
break;
case 1: // Yi 乙
keyStar = 'Tian Ji (天機)';
keyStarDesc = 'Represents intelligence, kindness, and strategic thinking. Suggests an active mind and adaptability.';
break;
case 2: // Bing 丙
keyStar = 'Tian Tong (天同)';
keyStarDesc = 'Symbolizes fortune, leisure, and a gentle nature. Indicates a person who is generally easy-going and enjoys life.';
break;
case 3: // Ding 丁
keyStar = 'Tai Yin (太陰)';
keyStarDesc = 'The Moon star, representing gentleness, romance, and wealth. Suggests a caring, patient, and imaginative personality.';
break;
case 4: // Wu 戊
keyStar = 'Tan Lang (貪狼)';
keyStarDesc = 'Represents desire, social skills, and versatility. Indicates a charismatic personality with many interests.';
break;
case 5: // Ji 己
keyStar = 'Wu Qu (武曲)';
keyStarDesc = 'The Finance star, representing wealth, determination, and solitude. Suggests a practical, decisive, and hardworking nature.';
break;
case 6: // Geng 庚
keyStar = 'Tai Yang (太陽)';
keyStarDesc = 'The Sun star, symbolizing leadership, generosity, and prominence. Indicates an open, noble, and influential character.';
break;
case 7: // Xin 辛
keyStar = 'Ju Men (巨門)';
keyStarDesc = 'Represents communication and eloquence. Suggests a sharp, analytical mind and persuasive speaking abilities.';
break;
case 8: // Ren 壬
keyStar = 'Tian Liang (天梁)';
keyStarDesc = 'The ' + "'Sage'" + ' star, representing protection, principles, and wisdom. Indicates a mature, orderly, and benevolent nature.';
break;
case 9: // Gui 癸
keyStar = 'Po Jun (破軍)';
keyStarDesc = 'Represents pioneering and transformation. Suggests a bold, innovative individual who is not afraid to challenge the status quo.';
break;
}
var resultHTML = '
Simplified Life Palace (命宮) Location: Your core life themes are anchored in the ' + lifePalaceBranch + ' palace.
';
resultHTML += '
Key Star Influence (from Year Stem): Your Year Stem points towards the influence of the ' + keyStar + ' star. ' + keyStarDesc + '
';
resultHTML += '
';
resultHTML += 'This is a foundational analysis. A full chart would plot the 14 major stars, including Zi Wei (The Emperor), into the 12 palaces based on your exact birth data to provide a complete picture.';
resultDiv.innerHTML = resultHTML;
}