Can ChatGPT or DeepSeek Draw Your Bazi Chart? Where Charts Go Wrong and How to Check
Drawing a Bazi chart (排盘, setting out the Four Pillars) is calendar arithmetic that turns a birth moment into four stem-branch pairs. The Year Pillar (年柱) changes at the exact moment of Lichun (立春, Start of Spring), the Month Pillar (月柱) at the moments of the twelve “jie” (节) solar terms, the Day Pillar (日柱) steps through an unbroken 60-day cycle, and the Hour Pillar (时柱) follows two-hour “double hours”; the month stem follows from the year stem and the hour stem from the day stem. Once the birth data and a few conventions are settled (whether the day changes at 23:00, whether to use true solar time), there is one answer, and anyone can check it step by step. General chat models such as ChatGPT and DeepSeek are good at explaining terms and discussing a chart. They can also attempt the calculation step by step. But from the four pillars alone you cannot tell which solar-term times and conventions the model used, or whether it checked its work. When a chat app runs code or looks things up, the result depends on the tool, its data and its conventions.
Key numbers
- The 60-day cycle runs without a break. Day pillars ignore month lengths, leap years and Chinese leap months: one step per day, 60 days per round. 1 January 2000 was a Wu-Wu (戊午) day; 28 January 1990 was a Gui-Si (癸巳) day (worked out below).
- Solar terms are 15° of the Sun’s longitude apart. Twelve of them, the jie, start the Bazi months. Lichun, at 315°, starts the Bazi year. Between 1901 and 2100 it falls on 3 February (39 years), 4 February (127 years) or 5 February (34 years).
- Chinese New Year falls between 21 January and 20 February (1901–2100). For anyone born in that window, the lunar year and the Bazi Year Pillar can differ: in only 6 of those 200 years does New Year’s Day land on the day of Lichun.
- A double hour lasts 2 hours. The Zi (子) hour runs from 23:00 to 01:00, and schools differ on whether 23:00 already belongs to the next day.
- Mainland China observed daylight saving time from 1986 to 1991, each year from about mid-April (4 May in 1986) to mid-September, switching at 02:00 local time. Take 1 hour off only if daylight saving was in force at the birth and the record uses the advanced clock time.
- 4 minutes per degree of longitude. On true solar time the day and hour pillars can change; see True Solar Time in Bazi.
Three ways to get a chart
| Approach | Where the pillars come from | What you need to check |
|---|---|---|
| Ask a chat model to write out the four pillars | Pillars the model generated or worked out; if the answer omits its sources and conventions, they need checking separately | Every pillar, using the six steps below |
| A chat app runs code or searches the web first | Whatever program or page it used, and the conventions behind it | Which rules it applied (Lichun, exact jie times, the Zi hour, daylight saving, true solar time), then spot-check the key steps |
| A charting program computes it and a model only interprets | The program’s fixed rules: the same input gives the same pillars every time | The rules, once written down, item by item; the reading is a separate matter |
A chart needs the exact times of Lichun and the other jie for that year (an astronomical calculation), the count of days from a fixed reference date to the birth date (a seven-digit number as a Julian Day Number), and the time zone and daylight saving rules at the birthplace. Without a tool, a model does its working inside the text it generates: it can write out steps and check itself, but if the answer gives only the four pillars and omits the solar-term times and rules it used, there is nothing to check them against, and fluent output is not proof of a correct result. Models are good at the second half of the job: explaining the Ten Gods (十神) or hidden stems, relating the chart to your question, comparing what different schools say, answering follow-ups. The chart itself can go wrong at the same few steps whoever draws it: a person, a program or a model.
Six steps where a chart can go wrong
| Step | What can go wrong | How to check |
|---|---|---|
| Gregorian or lunar date | A lunar birthday read as a Gregorian date; a leap month not stated | Convert with the Hong Kong Observatory (HKO) conversion table (1901–2100) |
| Daylight saving and time zones | Clock times from China’s 1986–1991 daylight saving periods not corrected; the day pillar taken from the UTC date; a birth abroad not on local time | Daylight saving start and end dates from the IANA time zone database; day and hour pillars on the birthplace’s local standard time with daylight saving removed (or true solar time, if chosen); convert the birth moment to UTC+8 before comparing it with a solar-term table in Beijing or Hong Kong time |
| True solar time | Not applied when wanted, or the longitude rounded to a 15° zone meridian | Longitude and the equation of time, as in the true solar time article |
| Solar-term boundaries (year and month) | Year changed on 1 January or at Chinese New Year; month changed with the Gregorian month, or for the whole day of a jie | Find the jie before and after the birth; on the day of a jie, compare hours and minutes |
| Day pillar | The 60-day count off by a step | Work it out with the Julian Day Number formula (next section) |
| Hour pillar and 23:00 | Wrong double-hour boundary; hour stem not derived from the day stem; the 23:00 rule applied inconsistently | Use the stem table below; confirm which 23:00 convention the chart follows |
Worked example: born 28 January 1990, 10:00, Beijing
Assume the clock time is Beijing Time, the date is outside daylight saving time, and no true solar time correction is applied.
- Date. It is Gregorian already. The HKO table shows it as the 2nd day of the 1st lunar month (Chinese New Year fell on 27 January 1990).
- Year Pillar. Lichun 1990 fell on 4 February (HKO table), at 10:14 Beijing Time (see below for how to look up the time). The birth comes before it, so the Year Pillar is still the previous year’s Ji-Si (己巳). The HKO table labels 1990 “Geng-wu, year of the Horse”, which follows the lunar year; the Bazi year starts at Lichun.
- Month Pillar. The last jie before the birth was Xiaohan (小寒, Minor Cold) on 5 January at 22:33, so this is the Chou (丑) month. In a Ji year the Yin (寅) month is Bing-Yin; counting on to Chou gives Ding-Chou (丁丑).
- Day Pillar. First fix the local calendar date of the birth (daylight saving removed, or by true solar time if used; under the 23:00 rule a birth after 23:00 counts as the next day). Put that date into the Julian Day Number (JDN) formula, not the date of the birth moment in UTC. Divide with whole numbers only (drop any remainder):
- a = (14 − month) ÷ 12 = 13 ÷ 12 = 1 (1 for January and February, 0 for other months)
- y = year + 4800 − a = 6789
- m = month + 12a − 3 = 10
- JDN = day + (153m + 2) ÷ 5 + 365y + y ÷ 4 − y ÷ 100 + y ÷ 400 − 32045 = 28 + 306 + 2,477,985 + 1,697 − 67 + 16 − 32,045 = 2,447,920
- Stem = remainder of (JDN + 9) ÷ 10 = 9, which is Gui (癸), counting Jia (甲) as 0. Branch = remainder of (JDN + 1) ÷ 12 = 5, which is Si (巳), counting Zi (子) as 0. In one step, with the form given by Japan’s National Astronomical Observatory: the remainder of (JDN + 49) ÷ 60 is 29, and with Jia-Zi as 0 and Yi-Chou as 1, number 29 is Gui-Si.
- Hour Pillar. 10:00 falls in the Si hour (09:00–11:00). On a Gui day the Zi hour is Ren-Zi (壬子); counting on to Si gives Ding-Si (丁巳).
Result: Ji-Si year, Ding-Chou month, Gui-Si day, Ding-Si hour (己巳 丁丑 癸巳 丁巳). HeyFate’s Bazi engine gives the same four pillars for the same input (October 2026), and the formula matches the engine’s day pillar on all 73,049 days from 1901 to 2100.
| Year stem (for months) or day stem (for hours) | Yin month (寅) | Zi hour (子) |
|---|---|---|
| Jia 甲 or Ji 己 | Bing-Yin 丙寅 | Jia-Zi 甲子 |
| Yi 乙 or Geng 庚 | Wu-Yin 戊寅 | Bing-Zi 丙子 |
| Bing 丙 or Xin 辛 | Geng-Yin 庚寅 | Wu-Zi 戊子 |
| Ding 丁 or Ren 壬 | Ren-Yin 壬寅 | Geng-Zi 庚子 |
| Wu 戊 or Gui 癸 | Jia-Yin 甲寅 | Ren-Zi 壬子 |
These are the traditional “Five Tigers” rule for month stems (五虎遁) and “Five Rats” rule for hour stems (五鼠遁). Each later month or double hour moves both stem and branch on by one. The Bazi year starts with the Yin month at Lichun, so the Chou month between Xiaohan and Lichun still belongs to the previous Bazi year, and its stem follows that year’s stem (Ji in the example, giving Ding-Chou). One exception: under the split Zi convention, the late Zi hour (23:00–24:00) takes its stem from the next day’s stem, so a check against the same day’s stem will not match, and that is not an error.
Six contrast cases
All cases assume a birth in Beijing, with the time as recorded on the local clock. The third column comes from HeyFate’s engine under the rules used above (day change at 23:00, daylight saving removed where it was in force, no true solar time); the fourth column is what the mistake produces. Every day pillar can be checked with the formula above.
| Birth data | What goes wrong | Under the rules above | With the mistake |
|---|---|---|---|
| 1990-01-28 10:00 | Year Pillar taken from the lunar year (New Year has passed) | Ji-Si year | Geng-Wu year |
| 1990-02-04 09:00 and 11:00 | Lichun falls at 10:14 that day | 09:00: Ji-Si year, Ding-Chou month; 11:00: Geng-Wu year, Wu-Yin month | Judged by date alone, both get the same year and month |
| 1990-01-28 07:00 | Day pillar taken from the UTC date (27 January) | Gui-Si day | Ren-Chen (壬辰) day |
| 1989-07-01 07:20 clock time | Daylight saving not removed | Standard time 06:20, Gui-Mao (癸卯) hour | Jia-Chen (甲辰) hour |
| 1990, lunar month 3, day 5 | Read as 5 March | 31 March: Ji-Mao (己卯) month, Yi-Wei (乙未) day | Wu-Yin (戊寅) month, Ji-Si (己巳) day |
| 1990, leap lunar month 5, day 15 | Leap month not stated | 7 July: Gui-You (癸酉) day | Read as the ordinary 5th month, 7 June: Gui-Mao (癸卯) day |
How to check a chart you were given
- Write down the full birth data (the Gregorian date, converting a lunar date first and noting any leap month; clock time to the minute; birthplace; whether daylight saving was in force), and ask which conventions were used: Lichun and the jie as boundaries, the 23:00 rule, true solar time or not.
- Recompute pillar by pillar as in the worked example: year and month from the HKO tables, the day from the JDN formula, the month and hour stems from the stem table.
- Ask again with the same data. A fixed calculation gives the same pillars every time; if two answers differ, at least one of them is wrong.
Where to look up solar-term times
- The HKO Gregorian-Lunar Calendar Conversion Table covers 1901–2100 day by day, with lunar dates and solar terms, but only to the date. In the English version a leap month appears as a second month with the same number (in 1990, “5th Lunar month” starts on 24 May and again on 23 June); the Chinese version marks it 閏 (leap).
- HKO’s Date and Time of the 24 Solar Terms page lists the current year and the next two, to the minute, in Hong Kong Time (UTC+8, the same as Beijing Time). Checked in October 2026, it gives Lichun 2026 as 4 February 04:02.
- For older years, to the minute, NASA JPL Horizons can give the time at which the Sun’s apparent ecliptic longitude reaches the term’s angle: 315° for Lichun, 345° for Jingzhe (惊蛰), the rest in HKO’s table of solar terms. That method puts Lichun 1990 at 02:14 UTC on 4 February, which is 10:14 Beijing Time, the moment used in the worked example.
- When a jie falls within a few minutes of midnight, different tables can put it on different dates (the Hong Kong Observatory notes this for its own conversion table). For a birth in those few minutes, say whose times you used.
- How the Chinese calendar is computed is set out in China’s national standard GB/T 33661-2017.
Where practitioners disagree
- Does the day change at 23:00? Under the 23:00 day-change rule (子初换日), the next day starts at 23:00, so both the day and hour pillars follow the next day. Under split Zi hours (早晚子时), 23:00–24:00 is the late Zi hour of the same day: the day pillar stays and the hour stem still follows the next day’s stem. Both are in use. For a birth at 23:30 on 28 January 1990, the first gives a Jia-Wu (甲午) day and Jia-Zi (甲子) hour, the second a Gui-Si day and Jia-Zi hour.
- True solar time or clock time? Some practitioners use true solar time at the birthplace for the day and hour pillars; others use local standard time. The true solar time article covers both.
- Zodiac animal and Year Pillar. The Bazi Year Pillar, and with it the animal of its branch, changes at Lichun. When people speak of the animal of a lunar year, the boundary is Chinese New Year; HKO’s table labels 1990 “Geng-wu, year of the Horse” on that basis. The two serve different purposes, so say which one you mean.
- Chart structure (格局) and the useful element (用神). These belong to the reading, not the chart. Schools judge them differently, and there is no formula to check them the way you can check a day pillar.
- The recorded birth time. A record can be off by a few minutes. Near a jie, a double-hour boundary or 23:00, the chart depends on how reliable the record is, and no program can check that for you.
How HeyFate handles it
As of October 2026:
- The chart is drawn on your computer, with fixed, checkable rules. The Bazi engine runs inside the desktop app, the same data always gives the same four pillars, and births from 1901 to 2100 are supported. The pillar rules are also covered by 50 regression test cases, each confirmed by at least two independent charting sources that agree.
- Year and month pillars change at the exact moments of Lichun and the twelve jie (compared as absolute instants). Day pillars count on continuously from Xin-Si (辛巳) on 1 January 1970. By default the day changes at 23:00, and a profile can switch to split Zi hours. Daylight saving is removed from IANA time zone data automatically and can also be set by hand. True solar time is on by default once you pick a birthplace; without one, Beijing Time is used.
- Solar-term times come from the open-source calendar library tyme4ts (based on the Shouxing astronomical calendar algorithms), in Beijing Time. For 2021–2028, all 192 solar-term times are within 1 minute of the times HKO publishes.
- A lunar birthday can be entered as a lunar date, leap months included, and is converted to the Gregorian date before charting. With an unknown birth hour there is no hour pillar; the app lists 13 candidate hours, splitting Zi into early and late Zi.
- A profile can also be entered as four pillars. The app checks that the month stem fits the year stem and the hour stem fits the day stem (the two rules above) and, using Beijing standard time and the chosen Zi-hour rule, lists the dates from 1901 to the present that produce those pillars. If none do, check the pillars themselves, then the conventions they were drawn with (time zone, true solar time) and the date range.
- The model receives the finished chart as structured JSON data: the four pillars with each pillar’s Ten God, hidden stems, life stage, void branches, Nayin and symbolic stars (神煞); the fetal origin and life palace; a summary of the luck pillars, the current one, and the years from two before to two after the current year; relations between pillars; element counts; the lunar date; the gender; the jie before the birth; and the time the luck pillars begin, labelled with the engine version. That data contains no birthplace, coordinates or time zone. Alongside it the model gets the current time, today’s year, month and day pillars (also computed on your computer) and your question.
- The model is told to answer only from that data and not to invent pillars or stars that are not in it; to treat the Ten Gods, hidden stems, symbolic stars and luck pillars as given; to mark judgements such as chart structure or the useful element, which are not in the data, as inferences and state their basis; and not to work out a missing hour or luck period itself.
- The chart shown in the app comes straight from the engine, and the model’s answer does not change it, so you can compare the answer with the chart. Retries and follow-up questions use the same chart.
- With a ChatGPT subscription or an API key, the model is told not to use any tools, and a turn in which it starts a tool call is stopped. Claude and Kimi Code run through their official command-line clients and may use those clients’ built-in tools, but the instructions say tool output cannot replace or rewrite the chart data.
- After an engine update, saved profiles are recharted. Where the old and new charts can be compared, the app lists what changed; where the old format cannot be compared, it only says the chart was recharted.
HeyFate is a desktop app for macOS and Windows: charts are built on your computer and read by your own AI subscription or API key. See the install guide.
Sources
- Hong Kong Observatory: Gregorian-Lunar Calendar Conversion Table (1901–2100)
- Hong Kong Observatory: Date and Time of the 24 Solar Terms (Hong Kong Time, UTC+8)
- Hong Kong Observatory: The 24 Solar Terms (the Sun's longitude for each term)
- GB/T 33661-2017, Calculation and promulgation of the Chinese calendar
- Claus Tøndering, Calendar FAQ: The Julian Period (Gregorian date to Julian Day Number)
- NASA JPL Horizons System (the Sun's apparent longitude, to time the solar terms)
- IANA time zone database: Asia/Shanghai (1986–1991 daylight saving time)
- National Astronomical Observatory of Japan, Ephemeris Computation Office: ユリウス日について (stem-branch = (JDN + 49) mod 60, with 0 = Jia-Zi)
- Hong Kong Observatory: Heavenly Stems and Earthly Branches (Tables 3–5: double hours, month stems from the year stem, hour stems from the day stem)
- Hong Kong Observatory: notes to the Gregorian-Lunar Calendar Conversion Table (a solar term close to midnight may be a day off)
- tyme4ts: README and MIT licence (its solar-term algorithm comes from Xu Jianwei's Shouxing calendar)
AI-generated content, for reference only; not medical, legal, financial or psychological advice. These methods come from cultural traditions, and HeyFate offers them for cultural interest, entertainment and self-reflection.
All articles