Methods
How I calculate a chart, which conventions I use, and how the calculation is checked. Written for practitioners and students.
The short answer. Every chart is calculated by my own checked software, not by hand. I use clock time at the birth place, the day changes at midnight, the year at 立春 Start of Spring, and the month at each of the twelve 节 sectional solar terms. Every chart I give you states these conventions, so you can check it.
New to Bazi? You don't need this page. Start with About Bazi.
The conventions I use
Where schools differ, I say what I use and why, and I can show you the other version.
| Point | What I use | Notes |
|---|---|---|
| Time of birth | Clock time at the birth place | True solar time (真太阳时) is not applied. The chart notes when it would give a different hour, and I can work out that version on request. |
| Day change | Midnight | A birth from 23:00 to midnight (late 子时) keeps that day's day pillar. Some schools change the day at 23:00 instead; I can show that version for comparison. |
| Year pillar | Changes at 立春, to the second | Not on 1 January, and not at Lunar New Year. |
| Month pillar | Changes at the twelve 节, to the second | The sectional terms, such as 惊蛰 and 清明. The mid-month 气 terms do not change the month. |
| Time zones | The zone in force at the birth place on that date | Including old zones and daylight saving. Singapore, for example, used UTC+7:30 until 31 Dec 1981. The chart prints the offset used. |
| Hidden stems (藏干) | 本气, 中气, 余气 | Hidden-stem tables differ between sources in the details. I use the common 本气, 中气, 余气 table and show it on every chart. For 巳 I show 丙 戊 庚. |
| Luck cycles (大运) | Direction from the year stem's polarity and your sex; start from the days to the next or previous 节 | 3 days count as 1 year, with no rounding. I give the exact start date and age (周岁), with 虚岁 beside it. |
Sources for the calculation
- Solar terms. Computed from an astronomical ephemeris for 1850 to 2100, and checked against the times published by the Hong Kong Observatory.
- Independent cross-check.
lunar_python, a separate open-source implementation of the 寿星万年历 calendar algorithms. - Time zones. The IANA time zone database, which records historical changes and daylight saving.
- Eyeball check. Sample charts compared with a widely used Bazi app that also uses clock time.
How the calculator is checked
The full set of checks runs after any change to the software, and before it is used for a client chart. All three must pass.
- Solar terms against the Hong Kong Observatory. Sample 立春 times agree to within 15 seconds.
- Reference charts. Widely published charts and fixed day-pillar dates must come out exactly as expected.
- Cross-check against
lunar_python. Every solar term from 1901 to 2099 (4,776 terms; largest difference 57 seconds), and 3,000 random births under both day-change rules: no differences in the pillars, the luck-cycle direction, the first cycle or the start age.
Last full run: 15 Nov 2026, all passed.
Limits
- Births from 1851 to 2099.
- True solar time, when you ask for it, uses a standard formula good to about half a minute. It is not independently cross-checked.
- A birth time within 10 minutes of an hour boundary is flagged, because the hour pillar may change. If your time is uncertain, I show both possible hours.
- No birth time: I read the three pillars that are certain.
Where AI fits
AI helps me check sources and arithmetic. The calculation is done by my own checked software, and every reading is mine.