How we calculate your chart
A BaZi chart is deterministic: given the birth instant, the place and a handful of conventions, there is one right answer. This page lists every rule our engine uses, so you can check a chart by hand or compare it with another calculator. It also says where each rule comes from, and where practitioners genuinely disagree. Engine version: bazi-lichun-jieqi-tst-v1.
In short: the year changes at Li Chun, not Chinese New Year. Months follow the twelve solar terms. The hour follows the sun at your birthplace (true solar time), with daylight saving removed. The day changes at 23:00 by default, and you can switch that to midnight. Every chart shows a receipt with these steps, so nothing is hidden.
1. From your clock to the birth instant
- Time zone and daylight saving. We convert your local clock time to UTC using the IANA time-zone database for your birthplace, including historical daylight-saving rules. If the clock time was ambiguous (it happened twice when the clocks went back), we use the earlier occurrence and say so. If it never existed (the clocks went forward), we flag it.
- Daylight-saving correction (on by default). Daylight saving moves the clock, not the sun. For the hour pillar we use your zone's standard time, which means taking the extra hour back out of a birth during daylight saving. The receipt shows how many minutes were removed.
- True solar time (on by default when you give a birthplace). The hour pillar follows the sun where you were born. We adjust standard time by 4 minutes for every degree of longitude between your birthplace and your time zone's meridian. We then add the equation of time, the seasonal difference between apparent and mean solar time. NOAA's published approximation puts that difference at roughly −14 to +16 minutes across the year. The formula we follow is NOAA's: time offset = equation of time + 4 × longitude − 60 × time zone. You can turn true solar time off and use clock time instead.
- Before 1970. The time-zone database is less complete for some places before 1970, so charts in that range carry a note. If you know the exact UTC offset on a birth certificate, compare it with the receipt.
The receipt on every chart shows the UTC instant, the daylight saving removed, the longitude and equation-of-time corrections in minutes, and the resulting true solar time.
2. Year pillar: starts at Li Chun
The BaZi year begins at Li Chun (Lichun, 立春, "Start of Spring"), the moment the Sun reaches ecliptic longitude 315°. That falls around 3–5 February, not at Chinese New Year. A birth on 1 February 2025 belongs to the Jia-Chen (Dragon) year, while one on 4 February 2025 after Li Chun belongs to Yi-Si (Snake). Some popular websites use Chinese New Year instead, which changes the year pillar for births between the two dates.
The boundary is a precise instant, not a date. For example, Li Chun 2027 falls at 01:46 UTC on 4 February 2027, which is 09:46 in Beijing. Our engine places a Beijing birth at 09:30 that morning in the Bing-Wu year and a birth at 10:00 in the Ding-Wei year (09:30 chart, 10:00 chart). There is more on this at When does the BaZi year start?.
3. Month pillar: the twelve solar terms
Each BaZi month starts at one of the twelve jie solar terms (Lichun, Jingzhe, Qingming … Xiaohan), spaced every 30° of solar longitude. The month branches are fixed: the Yin (Tiger) month starts at Li Chun. The month stem follows from the year stem by the standard "five tigers" rule (五虎遁). The lookup table holds every solar term from 1799 through 2101 (7,272 instants), computed with the open-source Astronomy Engine (MIT licence), which is accurate to well under a minute. Supported birth years are 1800–2100.
4. Day pillar and the 23:00 question
Days run in an unbroken 60-day cycle, which we anchor with the Julian Day Number. The traditional Zi hour runs from 23:00 to 01:00. That raises a question with no single answer: does the day change at 23:00 or at midnight?
- Our default: the day changes at 23:00 (true solar time). A birth at 23:30 gets the next day's day pillar. This matches several major Chinese calendar libraries.
- Alternative: the day changes at midnight. This is the "early and late Zi hour" school. You can switch to it on the chart form.
Births between 22:30 and 00:30 get a warning, and when the two conventions give different pillars, the chart lists the other answer too. Because the day stem is your Day Master, this convention can change the Day Master itself.
5. Hour pillar
There are twelve two-hour branches, starting with Zi at 23:00. The hour stem follows from the day stem by the "five rats" rule (五鼠遁). From 23:00 onwards, the hour stem is always reckoned from the next day's stem. If the true solar time is within 10 minutes of a double-hour boundary, the chart warns that the hour pillar depends on the exact minute.
If you don't know your birth time, we show three pillars and no hour. We never fill in noon.
6. Hidden stems
Each Earthly Branch carries one to three hidden stems (main, middle and residual qi). The stems in our table match the classical verse on branch-hidden stems in the Yuanhai Ziping (淵海子平, 地支藏遁歌) for all twelve branches. We list the main qi first.
| Branch | Hidden stems (main first) |
|---|---|
| 子 Zi (Rat) | 癸 Gui |
| 丑 Chou (Ox) | 己 Ji, 癸 Gui, 辛 Xin |
| 寅 Yin (Tiger) | 甲 Jia, 丙 Bing, 戊 Wu |
| 卯 Mao (Rabbit) | 乙 Yi |
| 辰 Chen (Dragon) | 戊 Wu, 乙 Yi, 癸 Gui |
| 巳 Si (Snake) | 丙 Bing, 庚 Geng, 戊 Wu |
| 午 Wu (Horse) | 丁 Ding, 己 Ji |
| 未 Wei (Goat) | 己 Ji, 丁 Ding, 乙 Yi |
| 申 Shen (Monkey) | 庚 Geng, 壬 Ren, 戊 Wu |
| 酉 You (Rooster) | 辛 Xin |
| 戌 Xu (Dog) | 戊 Wu, 辛 Xin, 丁 Ding |
| 亥 Hai (Pig) | 壬 Ren, 甲 Jia |
For element counts we weight them as follows. A branch with one hidden stem gives it the full 1. A branch with two splits 0.7 / 0.3. A branch with three splits 0.6 / 0.3 / 0.1. These weights are our convention, not a classical rule. Other tools use different percentages, or count only the main qi. Hidden stems explains the table and the alternatives.
7. Ten Gods
Every stem, visible or hidden, is named by its relation to the Day Master:
| Relation to the Day Master | Same polarity | Opposite polarity |
|---|---|---|
| Same element | Friend (比肩) | Rob Wealth (劫财) |
| Element the Day Master produces | Eating God (食神) | Hurting Officer (伤官) |
| Element the Day Master controls | Indirect Wealth (偏财) | Direct Wealth (正财) |
| Element that controls the Day Master | Seven Killings (七杀) | Direct Officer (正官) |
| Element that produces the Day Master | Indirect Resource (偏印) | Direct Resource (正印) |
The Chinese names follow the list in the Yuanhai Ziping, which works them out using Jia as its example (見乙為劫財, 見丙為食神…). The English names are the ones used throughout this site.
8. Luck pillars
Luck pillars run forward from the month pillar for a Yang-year male or a Yin-year female, and backward otherwise. "Yang year" refers to the polarity of the year stem. The start age comes from the time between birth and the next solar term (forward) or the previous one (backward), at the classical rate of 3 days = 1 year. That works out to 1 day = 4 months and 2 hours = 10 days. We apply it to the minute: 4,320 minutes of distance count as one year. Each pillar lasts ten years.
The Sanming Tonghui gives both the direction rule and the three-days-to-a-year rate (see Classical sources). Calculators round the start age differently, so ours can differ from others by days to a few months. We show the start age and year we use. Because the direction depends on gender, if you choose "prefer not to say", we leave the luck pillars out.
9. Day Master strength (our method)
Schools judge strength differently. We use one simple, transparent point method and show its working on every chart:
- The day stem counts as 1 point of support.
- The other three stems count 1 point each.
- Each branch counts 1 point, split across its hidden stems by the weights above. The month branch counts 3 points, because it represents the season.
- Points from the Day Master's own element and from its resource element (the element that produces it) count as support.
- If support is below 42% of all points, the chart is labelled weak. Above 58%, it is labelled strong. Anything in between is balanced.
The chart also tells you whether the main hidden stem of the month branch supports the Day Master, since season is the factor most schools weigh first.
Worked example (engine output)
Take a birth in Beijing at 09:30 on 4 February 2027, sixteen minutes before Li Chun. Our engine gives the pillars 丙午 Bing-Wu · 辛丑 Xin-Chou · 甲寅 Jia-Yin · 己巳 Ji-Si, so the Day Master is Jia (Yang Wood). (Open the chart.)
- Day Master:
- Yang Wood (Jia 甲) · Read more about Jia Wood
- Strength:
- 25% · weak (2.5 of 10 points)
| Source of points | Points | Supports Jia? |
|---|---|---|
| Day stem 甲 | 1 | Yes (itself) |
| Stems 丙, 辛, 己 | 3 | No (output, power, wealth) |
| Month branch 丑 × 3: 己 1.8, 癸 0.9, 辛 0.3 | 3 | 癸 Water (resource) = 0.9 |
| Year branch 午: 丁 0.7, 己 0.3 | 1 | No |
| Day branch 寅: 甲 0.6, 丙 0.3, 戊 0.1 | 1 | 甲 Wood (same element) = 0.6 |
| Hour branch 巳: 丙 0.6, 庚 0.3, 戊 0.1 | 1 | No |
| Total | 10 | 2.5 → 25%: weak |
Thirty minutes later, at 10:00, the Sun has passed 315°. The month becomes 壬寅 Ren-Yin and the year becomes 丁未 Ding-Wei. Now the month branch 寅 carries Jia as its main qi (1.8 points of support), and the month stem 壬 is a resource. The same Day Master scores 45%, which is balanced (open the chart). This is why the season weighs so much in our method, and why boundary births deserve care.
- Day Master:
- Yang Wood (Jia 甲) · Read more about Jia Wood
- Strength:
- 45% · balanced (4.5 of 10 points)
What the method leaves out. It ignores combinations, clashes and special structures (such as "follow" charts), all of which an experienced reader would weigh. Treat scores near a threshold as borderline. The 42% and 58% thresholds and the ×3 month weight are our own choices, inspired by the classical emphasis on season and roots, but not taken from any text. The free chart prints one strength-rule split (喜用 / 忌) from this score: weak toward the same element and resource, strong toward output, wealth and power, balanced unmarked. It is not a 用神 verdict. The weak and strong pages explain how the tradition approaches that question, and written reports leave the split out.
Where each rule comes from
| Rule | Source | Notes |
|---|---|---|
| Year starts at Li Chun (Sun at 315°) | Astronomical definition of the solar term; see the Hong Kong Observatory's 24 solar terms page | Standard in classical BaZi; some popular sites use Chinese New Year instead |
| Months by the twelve jie terms | The 24 solar terms (same HKO page) | Computed with Astronomy Engine |
| Five tigers (month stem) and five rats (hour stem) | Standard derivation rules found across the classical manuals | |
| Day changes at 23:00 (default) | One of two living conventions | Switchable to midnight |
| True solar time | Astronomy; NOAA's solar-position equations | Not every practitioner uses it; switchable |
| Hidden-stem table | Yuanhai Ziping, 地支藏遁歌 | Weights are ours |
| Ten Gods names | Yuanhai Ziping | English names are ours |
| Luck pillar direction and start | Sanming Tonghui, 卷二 論大運 | Minute-precise arithmetic is ours |
| Strength score | Our method | Informed by Ziping Zhenquan's "roots weigh more than stems", but the numbers are ours |
More about each book is on Classical sources.
Where schools disagree
If two calculators give you different charts, the cause is almost always one of these conventions, not an arithmetic error.
| Question | Our default | Other common choice | Can you switch? |
|---|---|---|---|
| When does the year start? | Li Chun | Chinese New Year | No, we always use Li Chun |
| When does the day change? | 23:00 | Midnight | Yes, on the form or chart |
| Clock time or sun time? | True solar time (with a birthplace) | Clock time | Yes |
| Daylight saving | Removed | Sometimes left in | Removed whenever it applied |
| Hidden stems and weights | Yuanhai Ziping table; 1 · 0.7/0.3 · 0.6/0.3/0.1 | Other tables (e.g. by days of the month), other weights, main qi only | No |
| Strength method | Point method above | Structure (格局), climate (調候) and other approaches | No |
| Luck pillar start | Minute-precise, 3 days = 1 year | Rounded to the day or the double hour | No |
| Special "follow" charts | Not detected | Some schools reverse the reading for extreme charts | No |
10. How we verify the engine
- Solar terms: the table holds 7,272 instants from 1799 through 2101. Compared with sxtwl 2.0.7, the largest difference on 1899–2101 is 73 seconds. tyme4ts 1.5.2 and lunar-javascript 1.7.7 are checked in the same tests (lunar-javascript stays on 1900–2100). For 1800–1899, 55 instants — Li Chun plus both solstices and both equinoxes in 11 years — agree with JPL Horizons DE441 (apparent geocentric ecliptic longitude) to a maximum of about 44 seconds and a mean absolute difference of about 13 seconds. Published Li Chun instants for sample years match to the minute.
Before 1901 an IANA zone is local mean time at its principal meridian, not a standard-time clock at the birthplace. Asia/Shanghai in those years is GMT+08:05:43, the same offset this calculator already uses for 1900. A birthplace east or west of that meridian can move the hour even when the receipt shows no boundary warning. The Horizons comparison above is only the solar-term instants; it does not re-measure those zone offsets.
- Four pillars: 10,000 random births plus 2,500 births near a boundary, compared with lunar-javascript (midnight day change) and tyme4ts (23:00 day change), with no differences. A further 1,200 births within three minutes of a solar term also match.
- Luck pillars: 5,000 random births compared with lunar-javascript's minute-precise method. Direction and pillars were the same in every case, and the start offset was within one day.
- Other calculators: we reproduced the published outputs of seven calculators in the open Jade Almanac conventions dataset (CC0) once each calculator's conventions were set. The differences between them come from conventions, not arithmetic.
- Manual check: 20 charts compared with bazi-calculator.com. 18 match on all pillars. The 2 that differ are births 14 and 18 minutes after Li Chun, which that site itself marks as border cases.
Engine and libraries
The engine is our own code. Solar terms come from Astronomy Engine 2.1.19 (MIT). Places come from GeoNames, and time zones from the IANA database. lunar-javascript 1.7.7, tyme4ts 1.5.2 and sxtwl are used only in our tests, as independent references to check our results against. They are not part of the calculation.
Limitations
- Supported birth years: 1800–2100.
- For births before 1900, enter the time as it was recorded locally. Our solar-term dates for this period are accurate to within a minute.
- Historical time zones before 1970 may be imprecise for some places; check the receipt.
- True solar time needs a birthplace. With only a time zone, we use clock time with daylight saving removed.
- The strength score is a simplified heuristic (see above).
- Interpretation text is descriptive and traditional. BaZi is a cultural practice, not a science.
Data and credits
- Solar terms: Astronomy Engine (MIT).
- Places: GeoNames cities with a population above 15,000 (CC BY 4.0).
- Time zones: the IANA tz database, via your browser and our server's Intl implementation.
- Cross-check references (tests only): lunar-javascript (MIT), tyme4ts (MIT), sxtwl (BSD).
Changelog
| Date | Engine version | Change |
|---|---|---|
| 2026-10-02 | bazi-lichun-jieqi-tst-v1 |
First public version |
| 2026-10-02 | (unchanged) | Methodology page expanded: rule sources, school differences, worked strength example |
Product changes to the calculators, pages, and reports are on the changelog. The engine version in the table above changes only when a calculation rule changes.
Frequently asked questions
Why do two BaZi calculators give me different charts?
Usually because they use different conventions, not because one has the arithmetic wrong. The most common causes are: the year starting at Chinese New Year instead of Li Chun; the day changing at midnight instead of 23:00; using clock time instead of true solar time; and leaving daylight saving in. Check the receipt on your chart, then try the switches. If your birth is close to a boundary, the chart will already show you the alternative answer.
Do you use true solar time?
Yes, by default whenever you give a birthplace. You can turn it off. It only changes your chart when the correction moves the birth across a double-hour boundary, or across 23:00.
Is the strength score the same as a professional reading?
No. It is one transparent point method that leaves out combinations, clashes and special structures. Use it as a starting point. An experienced reader may weigh the same chart differently.
Does the calculator tell me my favourable element?
Not at present. Choosing a favourable element depends on a school's whole method, and different approaches can give different answers. The weak and strong Day Master pages explain how the tradition approaches it.
What if I don't know my birth time?
You get three pillars (year, month and day) and no hour pillar. We don't guess a time. Your Day Master is still known, because it comes from the day pillar. Only a birth close to 23:00 or midnight could change it.
Check it yourself: calculate your chart and open the receipt, or find just your Day Master.
Related guides: Learn BaZi · Ten Gods · Luck pillars · True solar time · Day boundary · 2027 BaZi year · Charts without a birth time · Example charts
Sources
- Hong Kong Observatory, "24 Solar Terms": https://www.hko.gov.hk/en/gts/time/24solarterms.htm
- Hong Kong Observatory, 2027 solar terms data (Li Chun 2027-02-04 09:46 HKT): https://www.hko.gov.hk/en/gts/astronomy/data/files/24SolarTerms_2027.xml
- NOAA Global Monitoring Laboratory, "General Solar Position Calculations": https://gml.noaa.gov/grad/solcalc/solareqns.PDF
- Yuanhai Ziping (淵海子平), Wikisource: https://zh.wikisource.org/wiki/淵海子平
- Sanming Tonghui (三命通會), 卷二, Wikisource: https://zh.wikisource.org/wiki/三命通會/卷二
- Ziping Zhenquan Pingzhu (子平真詮評註), Chinese Text Project: https://ctext.org/wiki.pl?if=gb&chapter=974137
- Astronomy Engine: https://github.com/cosinekitty/astronomy
- Jade Almanac conventions dataset (CC0): https://jadealmanac.com/bazi-calculator/conventions
- GeoNames: https://www.geonames.org/
BaZi is a traditional Chinese cultural practice. This page describes what classical texts and practitioners say; it is for reflection, education and entertainment, and is not medical, legal, financial or psychological advice. Different schools may read the same chart differently.
Last updated: 2026-10-02