BaZi calculator

Four pillars, hidden stems, Ten Gods and luck pillars from your birth date, time and place.

Type a city and pick it from the list.

Options

Corrects the clock time for the equation of time and your longitude. Pick a place to use it.

Births from 23:00 to 23:59

What the four pillars are

BaZi (八字) means “eight characters”. A birth moment is written as four pillars of two characters each: a heavenly stem and an earthly branch from the 60-pair sexagenary cycle. The pillars stand for the year, month, day and hour, and the chart lists them hour first.

The stem of the day pillar is the Day Master (日主). The rest of the chart is read against it, which is where the Ten Gods come in.

How the BaZi calculator works out each pillar

Year. The BaZi year changes at Lìchūn (立春), the moment the Sun reaches 315° of solar longitude, in early February. It does not change on 1 January or on the lunar new year, so the year pillar can differ from the Chinese zodiac calculator. Example: 5 February 2027 is 丁未 in BaZi, because Lìchūn fell on 4 February 2027 at 09:46 (UTC+8). The zodiac calculator gives 丙午 for that day, because the lunar new year is 6 February 2027. See the Chinese New Year dates.

Month. The month changes at the twelve jié (節), the solar terms at 315°, 345°, 15° and on in steps of 30° up to 285°. Calendar months play no part. The month stem follows from the year stem by the 五虎遁 rule (三命通會, volume 2).

Day. Days are counted without a break through the 60-pair cycle, using the Julian Day Number plus 49, modulo 60. 18 February 1912 and 1 October 1949 are both 甲子 days.

Hour. The day is cut into twelve double hours (時辰) of two hours each, named after the twelve branches. The 子 hour runs from 23:00 to 00:59. The hour stem follows from the day stem by the 五鼠遁 rule (三命通會, volume 2).

Births from 23:00 to 23:59

These births sit in the late 子 hour, and there are three ways to treat them. Pick one under Options.

When a birth is within two minutes of a jié, a two-hour change, 23:00 or midnight, the calculator shows the chart on the other side of that line next to yours.

True solar time

Clock time follows a time zone, not the Sun. True solar time corrects for that. The shift is the equation of time, plus 4 minutes for every degree of longitude, minus the zone’s UTC offset in minutes. The equation of time comes from the NOAA solar equations. The shift applies to the day and hour pillars only: the year and month depend on the exact moment of a jié, which is the same everywhere. It is on by default when you pick a place and off when you enter a UTC offset, because it needs a longitude.

UTC offsets come from the IANA time zone database through your browser, including past daylight saving rules and local changes such as Seoul at +8:30 from 1954 to 1961.

The “How it was computed” panel under your chart lists the UTC moment, the offset and where it came from, the shift in minutes, and the nearest jié before and after your birth.

Hidden stems and Ten Gods

Every branch holds one to three hidden stems (藏干). The calculator lists them in the mainstream order, main stem first. A Ten God (十神) is the relation between a stem and the Day Master, by element and polarity. The names come in pairs: the first has the same polarity as the Day Master, the second the opposite.

The Ten Gods
Ten GodNameStem compared with the Day Master
比肩BǐjiānFriendSame element, same polarity
劫財JiécáiRob WealthSame element, opposite polarity
食神ShíshénEating GodProduced by the Day Master, same polarity
傷官ShāngguānHurting OfficerProduced by the Day Master, opposite polarity
偏財PiāncáiIndirect WealthControlled by the Day Master, same polarity
正財ZhèngcáiDirect WealthControlled by the Day Master, opposite polarity
七殺QīshāSeven KillingsControls the Day Master, same polarity
正官ZhèngguānDirect OfficerControls the Day Master, opposite polarity
偏印PiānyìnIndirect ResourceProduces the Day Master, same polarity
正印ZhèngyìnDirect ResourceProduces the Day Master, opposite polarity

Element counts add up the five elements across the stems and branches in the chart. Each character counts once, with no weights, and hidden stems are not counted.

Luck pillars

Luck pillars (大運) are ten-year periods that step through the 60-pair cycle from the month pillar. They run forward for a man born in a yang year or a woman born in a yin year, and backward otherwise. The start age comes from the time between birth and the next jié (forward) or the previous jié (backward): three days stand for one year, one day for four months, and one two-hour block for ten days (三命通會, volume 2). Luck pillars need a birth time and a gender.

Sources

City data from GeoNames (https://www.geonames.org), licensed under CC BY 4.0.