Bazi Calculator

Enter your birth date, time, and time zone to see your Four Pillars of Destiny (八字): the four stem-and-branch pairs for your year, month, day, and hour of birth, with hidden stems, ten gods, the balance of the five elements, and your 10-year luck pillars.

Sex (sets the direction of the luck pillars)
Advanced: true solar time and the Zi hour

How the Four Pillars are calculated

  • Year pillar: changes at the exact moment of Start of Spring (立春), when the sun reaches 315° of ecliptic longitude, around 4 February. It also gives your zodiac animal.
  • Month pillar: the Bazi month is not a calendar month. It begins at each of the 12 “jie” solar terms, roughly the 4th to 8th of each month, and the month's stem follows from the year's stem.
  • Day pillar: an unbroken 60-day cycle that runs on regardless of months and years, so it changes every day at the same rate.
  • Hour pillar: each day has twelve two-hour blocks starting with Zi (子) at 11 pm, and the hour's stem follows from the day's stem.

Because a solar term can fall at any minute, the calculator converts your local birth time to universal time using the time-zone rules in effect on that date, including daylight saving, and compares it with the exact solar-term moments. Charts can be calculated for births from February 1900 to 2100.

The ten heavenly stems

StemPinyinElement
甲JiǎYang Wood
乙YǐYin Wood
丙BǐngYang Fire
丁DīngYin Fire
戊WùYang Earth
己JǐYin Earth
庚GēngYang Metal
辛XīnYin Metal
壬RénYang Water
癸GuǐYin Water

The twelve earthly branches and their hidden stems

Each branch carries one to three “hidden” heavenly stems, listed main stem first. This is the most widely used table; a few schools differ on the hidden stems of 巳 and 亥.

BranchAnimalElementHidden stems
子 ZǐRatWater癸 Water
丑 ChǒuOxEarth己 Earth, 癸 Water, 辛 Metal
寅 YínTigerWood甲 Wood, 丙 Fire, 戊 Earth
卯 MǎoRabbitWood乙 Wood
辰 ChénDragonEarth戊 Earth, 乙 Wood, 癸 Water
巳 SìSnakeFire丙 Fire, 庚 Metal, 戊 Earth
午 WǔHorseFire丁 Fire, 己 Earth
未 WèiGoatEarth己 Earth, 丁 Fire, 乙 Wood
申 ShēnMonkeyMetal庚 Metal, 壬 Water, 戊 Earth
酉 YǒuRoosterMetal辛 Metal
戌 XūDogEarth戊 Earth, 辛 Metal, 丁 Fire
亥 HàiPigWater壬 Water, 甲 Wood

The ten gods

Every other stem in the chart is labeled by how its element relates to your Day Master in the five-element cycle (Wood → Fire → Earth → Metal → Water → Wood produces; Wood controls Earth, Earth controls Water, Water controls Fire, Fire controls Metal, Metal controls Wood) and whether its yin-yang polarity matches.

比肩 FriendSame element and polarity as the Day Master
劫财 Rob WealthSame element, opposite polarity
食神 Eating GodProduced by the Day Master, same polarity
伤官 Hurting OfficerProduced by the Day Master, opposite polarity
偏财 Indirect WealthControlled by the Day Master, same polarity
正财 Direct WealthControlled by the Day Master, opposite polarity
七杀 Seven KillingsControls the Day Master, same polarity
正官 Direct OfficerControls the Day Master, opposite polarity
偏印 Indirect ResourceProduces the Day Master, same polarity
正印 Direct ResourceProduces the Day Master, opposite polarity

Luck pillars

Luck pillars are 10-year periods that step forward or backward through the sexagenary cycle from your month pillar: forward for men born in a yang year and women born in a yin year, backward otherwise. The age of the first one comes from the time between your birth and the next (or previous) solar term, with three days counted as one year.

Bazi calculator FAQ

What is a Bazi chart?

Bazi (八字, "eight characters") is the traditional Chinese way of writing a birth moment as four pairs of characters, one pair each for the year, month, day, and hour. Each pair is a heavenly stem and an earthly branch from the 60-step sexagenary cycle used in the Chinese calendar. It is also called the Four Pillars of Destiny.

Why is my Bazi year different from my Chinese zodiac year?

Bazi years start at the solar term Start of Spring (立春), around 4 February, while Chinese New Year follows the lunar calendar and falls between late January and mid-February. If you were born between the two, your Bazi year and the zodiac animal you were told may differ. This calculator uses the solar-term boundary.

Do I need my exact birth time?

The hour pillar needs it, and so do births close to a solar term, when the month can change within minutes. Without a time you still get the year, month, and day pillars. The day pillar is affected only if you were born near midnight.

What is true solar time and should I use it?

Clock time is shared by a whole time zone, but the sun's position depends on longitude. True solar time corrects for your birthplace's longitude and the equation of time, a seasonal shift of up to about 16 minutes. Many practitioners use it for the hour pillar; others use clock time. Try both if your birth time is near the start of a two-hour block.

What about births between 11 pm and midnight?

That hour is the first part of the Zi (子) hour. Some schools start the new day at 11 pm, others at midnight. The calculator uses 11 pm by default and lets you switch under Advanced.

Why does a different Bazi calculator show another chart?

The usual causes are time zone and daylight saving time, the Zi-hour rule, true solar time, and using Chinese New Year instead of Start of Spring for the year. The "How this chart was calculated" section under your chart shows each of these so you can compare.

Is my birth data stored?

No. The chart is calculated in your browser and nothing you enter is sent to a server.

About this site

Bazi is part of traditional Chinese culture. This calculator shows how a chart is built; it does not predict the future, and nothing on this site is advice about health, finances, relationships, or other decisions.

Sources

  • Solar-term times: computed with lunar-javascript (6tail, MIT license) and checked against the Hong Kong Observatory's 24 Solar Terms tables and the US Naval Observatory's equinox and solstice times.
  • Sexagenary day cycle and month stems: Wikipedia, “Sexagenary cycle” (1 October 1949 is a 甲子 day; 甲 and 己 years begin with a 丙寅 month).
  • True solar time: NOAA Global Monitoring Laboratory, “General Solar Position Calculations” (equation of time).
  • Time zones and daylight saving history: the IANA time zone database built into your browser.