How we calculate a BaZi chart

Two BaZi calculators can give the same birth different pillars. Usually neither is broken: they make different choices about when a year begins, which clock to read and what to do at 23:00.

Years and months change at exact solar terms

The year pillar changes at 立春 (Lichun), when the sun reaches 315° of ecliptic longitude, and each month changes at one of the 12 节 (jie). These are instants, not dates: 立春 2027 is at 09:46 Beijing time on 4 February, so a birth at 09:45 that morning still belongs to the previous year.

Our calendar layer computes every solar term from 1901 to 2100. We checked each one against NASA JPL's DE440 ephemeris: the median difference is 12 seconds and the largest is 2 minutes (in 2100). Pillars are compared to the minute, and births within an hour of a boundary get a warning on the chart.

Day and hour pillars use true solar time

Clock time is shared across a whole time zone; the sun is not. We convert the birth time to true solar time: first by longitude (4 minutes for each degree from the zone's meridian), then by the equation of time (up to about ±16 minutes through the year). The result is rounded to the minute. A 16:30 birth in Zhengzhou, at 113.6°E, is 16:02 solar time.

You can switch this off and use the clock time as entered; the chart always shows which one it used.

Historical time zones and daylight saving

Time zones and daylight saving change over the decades. We use the IANA time-zone database for the birth place and date, so a clock time from 1988 in Beijing (when China observed daylight saving) or from 1950s Hong Kong is read with the rules of that day. The extra daylight-saving hour is removed automatically; a clock time that never existed, or happened twice when clocks went back, is flagged.

The zi hour (子时): two conventions

The 子 hour runs from 23:00 to 01:00. By default a birth after 23:00 takes the next day's pillar (子时换日), as most calculators do. You can choose the split convention instead (早子时 and 晚子时), where 23:00–24:00 keeps the same day's pillar. The chart states which rule it used.

Lunar dates and leap months

A lunar birth date, including a leap month (闰月), is converted to the Gregorian calendar first. The conversion is tested against every leap month from 1900 to 2100 and 400 ordinary dates.

How the engine was verified

  • 4,848 births just before and after every solar-term boundary, 3,000 random births under both zi-hour rules, and 800 full charts (ten gods, hidden stems, na yin, life stages, void, luck pillars for both genders) match an independent reference.
  • True solar time is within 60 seconds of the sun's position from the JPL ephemeris for 360 births in 12 cities.
  • Against 问真八字, a widely used professional calculator: the grid and luck pillars match; 662 of 662 symbolic-star placements across 32 charts match; every 刑冲合会 label matches on the same charts, with one deliberate difference (we keep 寅午 as a half-harmony, as every classical table does); the 调候 hint matches for all 120 day-master-and-month pairs.

Why calculators disagree

  • Some change the year at Chinese New Year instead of 立春, which moves January and February births into the wrong year.
  • Some read clock time instead of solar time; in western China the gap reaches two hours, enough to change the hour pillar.
  • Some leave daylight saving in: in our checks, 问真 kept the extra hour for a birth during China's 1988 daylight saving, which we remove.
  • Zi-hour rules differ, so births between 23:00 and 24:00 can get a different day pillar.
  • Some compare solar terms by date rather than by the minute, and on a boundary day that decides the month.

Strength and favourable elements

How strong the day master is, and which elements help it, follows the 子平 school: element scores weighted by the season, a verdict, and the favourable elements by support and restraint (扶抑). Every step is shown on the chart; the five elements explains the method, and why schools disagree compares it with the other schools.

Questions

Which time zone do you use to compare a birth with 立春?

The absolute moment. Your local birth time is converted with your place's historical time-zone rules, then compared with the instant of 立春. A birth in London and one in Beijing at the same instant get the same year and month pillars.

Can I make the chart match another calculator?

Usually, yes: turn true solar time off, pick the same zi-hour rule, and enter the time exactly as that calculator expects. The chart's 'how your time was read' line shows each setting.