What a Bazi Calculator Actually Calculates

Seven steps from a clock reading to a Useful God — with one worked example and every number visible. Updated 2026-10-20.

Type a date, a time and a city into any bazi calculator and a row of eight characters appears. It looks like a single conversion. It is not. Between your clock reading and those eight characters sit seven distinct operations, and every one of them can be done differently, done wrongly, or skipped without any warning.

This page takes them in order. Every figure below was produced by the calculation engine behind this site, not typed from memory, so each one can be reproduced. The example we follow throughout: a man born on 5 March 1992 at 06:20 in Harbin, north-east China.

八字 (bā zì) — Eight Characters. The name is literal. Four pillars, two characters each, written in a column: that is the entire chart. Everything else a calculator produces — hidden stems, Ten Gods, patterns, luck cycles — is derived from those eight glyphs. This is why the calculation has to be exact: there is no room in eight characters for a rounding error to hide.

Step 1: The bazi calculator converts clock time into true solar time

Two people born at the same clock minute in Urumqi and in Shanghai are not born at the same moment of the sun's day. China runs a single time zone across sixty degrees of longitude, so the clock in the west of the country reads far ahead of the sun. Correcting for this gives 真太阳时 (zhēn tàiyáng shí) — True Solar Time, the local apparent solar time at the birth longitude.

The longitude part of the correction is arithmetic anyone can check: multiply the difference between the birth longitude and the standard meridian of the time zone by four minutes per degree. For China the standard meridian is 120°E, so Urumqi at 87.6°E gives (87.6 − 120) × 4 = −129.6 minutes. On top of that comes the equation of time, the few minutes of seasonal drift between apparent and mean solar time: on 15 June 1988 it was −0.4 minutes.

Run a birth on that date, 15 June 1988, 10:05 in Urumqi, through the engine and the correction does something decisive:

QuantityValue
Clock time10:05
Longitude correction−129.6 minutes
Equation of time−0.4 minutes
Total correction−130.0 minutes
True solar time07:55
Hour branch辰 chén (07:00–08:59)

Without the correction, 10:05 sits in 巳 (sì), and the hour pillar comes out 癸巳. With the correction the chart's hour pillar is 壬辰 — a different stem and a different branch, from the same birth certificate. This is not a subtlety for specialists. It is the difference between reading one chart and reading another.

The other half of this step is location resolution: a city name has to become a longitude and a time zone before any of the arithmetic runs. The engine here resolves place names against a table of a few hundred cities, Chinese and international. Assuming a standard meridian for a birth elsewhere does not produce a small error; for London it shifts the chart by eight hours.

Step 2: The year pillar changes at 立春, not on 1 January

The 年柱 (nián zhù) — Year Pillar — is the easiest to get wrong in a way nobody notices, because the error only appears in the year's first few weeks. The boundary is 立春 (lì chūn), the solar term that begins spring, around 4 February. Anyone born in January, or in the first days of February, belongs to the previous year's pillar — not the previous lunar year, the previous solar-term year.

The arithmetic is a modulus on the year number: stem index (year − 4) mod 10, branch index (year − 4) mod 12, cycling through the sixty combinations. 1992 gives 壬申 (rén shēn) — the year pillar our Harbin example carries, since 5 March is comfortably after the spring boundary.

Step 3: The month pillar is set by the solar term — and it outranks the rest

Most people expect the month pillar to follow the lunar month. It does not. It follows the twelve jie solar terms, so the month branch changes on dates like 惊蛰 in early March or 寒露 in early October, not at the new moon. On our example, 4 and 5 March 1992 both give 壬寅; 6 and 7 March both give 癸卯. The chart stepped from 寅 to 卯 between two consecutive days, mid lunar month, because a solar term passed.

The month stem comes from the year stem by a rule schoolchildren in the tradition once memorised as a verse: 甲己之年丙作首 — in a year whose stem is 甲 or 己, the first month (寅) takes the stem 丙, and the rest follow in order. With 壬 as the year stem, the first month takes 壬, and 寅 is that first month: 壬寅.

提纲 (tí gāng) — the Leading Branch. The classical name for the Month Branch is a metaphor from net-making: 纲 is the main rope of a net, and 提 is to lift. Pull the main rope and every mesh opens — 纲举目张. The month is the rope of the chart: grasp it and the rest of the structure arranges itself. This is why the Month Branch, 月令 (yuè lìng) — Month Branch, also carries the word 令, "the order issued": the month issues the command the whole chart must obey.

八字用神,专求月令,以日干配月令地支,而生克不同,格局分焉。财官印食,此用神之善而顺用之者也;煞伤劫刃,用神之不善而逆用之者也。当顺而顺,当逆而逆,配合得宜,皆为贵格。 "The Useful God of a chart is sought from the Month Branch alone: pair the Day Stem with the Month Branch and the generating-and-controlling relations differ, and from this the patterns are divided. Wealth, Officer, Resource and Eating God are the good Useful Gods, to be used in the forward direction; Killings, Hurting Officer, Rob Wealth and Blade are the difficult ones, to be used in reverse. Use forward where forward is called for and reverse where reverse is called for; where the fit is right, every one of them is a noble chart." Zi Ping Zhen Quan (《子平真诠》), chapter 8, "On the Useful God" — according to Shen Xiaozhan's original text.

One honest caveat belongs here. The classical boundary is not a date but an instant — the moment the sun reaches the term's degree, which can fall at any hour — and how finely a calculator resolves that instant is a real difference between tools, decisive for births within a day of the term. What a tool can always do is show which term governs the chart it just built, so the decision is visible instead of implied.

Step 4: The day pillar is day-counting, plus one rule that splits the schools

The 日柱 (rì zhù) — Day Pillar — needs no sky at all. It is a count of days against a fixed anchor: take a known date and its known stem-branch, count the days between then and the birth date, take the remainder modulo sixty. The engine anchors on 1 January 1900 as a 甲戌 day and counts forward. Our Harbin birth lands on 庚辰, and its stem 庚 becomes the 日主 (rì zhǔ) — Day Master — the "self" that every other character in the chart is measured against.

Then comes the rule that genuinely divides practitioners. The 子 (zǐ) hour runs from 23:00 to 01:00, which straddles midnight. Under the late Zi convention (夜子时, yè zǐ shí) the day pillar advances at 23:00, because the hour already belongs to the incoming day; under the early Zi convention (早子时, zǎo zǐ shí) it advances only at midnight. Take a birth at 23:30 on 13 November 1990:

ConventionDay pillarHour pillar
Late Zi (day advances at 23:00)癸未壬子
Early Zi (day advances at midnight)壬午庚子

Adjudication. The engine behind this site advances the day at 23:00 — the late-Zi convention — and applies it after true solar time, so "is it 23:00 yet" is asked of the corrected time, not the clock. The reason is consistency: if the 子 branch belongs to the incoming day, the day stem generating its hour stem must come from that same day. Mixing a 子 hour with the outgoing day's stem produces an hour pillar no classical table supports. Whatever school a calculator follows, it should say which — this one rule changes two of the eight characters.

Step 5: The hour pillar — two hours per branch, odd hours as the seam

Each branch covers two hours and the seams sit on the odd hours: 子 spans 23:00–00:59, 丑 spans 01:00–02:59, 寅 spans 03:00–04:59, and so on to 亥 spanning 21:00–22:59. Twenty o'clock is still 戌; twenty-one is already 亥. The engine's branch lookup returns exactly that ladder, and it is worth checking a calculator against a few boundary minutes, because off-by-one errors here are common and invisible in the output.

The hour stem is generated from the day stem by the five-rat rule, 五鼠遁 (wǔ shǔ dùn): 甲己还加甲 — a 甲 or 己 day starts its 子 hour on 甲, and the ten stems cycle forward through the branches. Our Harbin chart has day stem 庚, so the 子 hour would be 丙子, and three steps later the 卯 hour is 己卯.

And here is why Step 1 had to come first: clock 06:20 in Harbin corrected to 06:34 true solar time — both inside 卯, so this chart's hour pillar survives. Change the city and it might not. A calculator that shows the correction arithmetic, as this one does, lets you see whether your hour pillar is robust or hanging by nine minutes.

Step 6: Hidden stems and Ten Gods — where eight characters become a hundred data points

Branches are not simple. Each conceals one to three stems, the 藏干 (cáng gān) — Hidden Stems — and those concealed stems carry the branch's actual influence. The 寅 month branch of our example hides 甲, 丙 and 戊; the 辰 day branch hides 戊, 乙 and 癸. With hidden stems exposed, eight characters become a table of roughly two dozen stems to relate.

Relating them is the job of the 十神 (shí shén) — Ten Gods. The English name misleads: 神 here does not mean a deity but an agency or force, the way one element acts on another. The ten are simply the possible relations between the Day Master and any other stem, fixed by element and polarity: same element same polarity is Friend, same element opposite polarity Rob Wealth; what the Day Master produces is Eating God or Hurting Officer; what it controls is Direct or Indirect Wealth; what controls it is Direct Officer or Seven Killings; what produces it is Direct or Indirect Resource.

For the Harbin chart with its 庚 Day Master, the stem-level Ten Gods run: year 食神, month 食神, hour 正印 — Eating God twice at the top and Direct Resource closing the hour. This is the layer where a calculator stops being a calendar and becomes an argument, because the same eight characters now support several readings depending on which relations you weight.

Step 7: Strength, pattern, and the Useful God — the only step with a genuine dispute

The 用神 (yòng shén) — Useful God — is the element the chart is organised around. The name is the most mistranslated term in the system: 用 is "what is used", the element the chart has use for; 神 is again an agency, not a spirit. The Useful God is the chart's working part, not its guardian angel.

Two classical routes lead to it. The pattern method reads it off the Month Branch, as the quotation above states. The balance method reads the chart as a body with too much or too little of something, and prescribes what is missing:

旺则宜洩宜伤,衰则喜帮喜助,子平之理也。然旺中有衰者存,不可损也;衰中有旺者存,不可益也。旺之极者不可损……至於所当损者而损之反凶,所当益者而益之反害。 "Where an element is waxing, drain and diminish it; where it is waning, support and assist it — this is the principle of Zi Ping. Yet within waxing there is waning that must not be damaged, and within waning there is waxing that must not be increased. When waxing reaches its extreme it must not be diminished… and as for diminishing what ought to be diminished and finding it inauspicious, or increasing what ought to be increased and finding it harmful — that is the trap." Di Tian Sui (《滴天髓》), chapter "On Waxing and Waning" (衰旺论).

Note that the second text is not refuting the first; it is warning that the first cannot be applied mechanically. The two lines disagree about priority, not about facts, and that is exactly the kind of disagreement a calculator has to resolve in the open.

Adjudication. The engine here computes in a fixed order: climate adjustment first, then pattern, then support-or-drain of the Day Master. The order is deliberate. A winter chart that lacks warmth is cold before it is anything else, and no amount of pattern logic repairs a chart whose season is unaddressed; the pattern then settles which element carries the structure; strength adjusts at the margin. The result for the Harbin chart is a 七杀格 (Seven Killings pattern) judged complete, a Day Master scored 40 on the engine's hundred-point strength scale and labelled balanced-to-slightly-strong, and a Useful God of 食神 (Eating God) with 金 and 水 favourable and 土 unfavourable. A tool following the balance method alone could reach a different Useful God from the identical chart — and both tools would be computing the same eight characters correctly.

What the calculator cannot do

Three honest limits. First, the symbolic stars — 神煞 (shén shà), such as 桃花 Peach Blossom or 驿马 Traveling Horse — are auxiliary: classical method ranks them below pattern and Useful God, and a chart read from its stars alone is read backwards.

Second, the luck cycles, 大运 (dà yùn) — Luck Pillars — are a separate calculation with conventions about when the first pillar starts; two calculators can differ by a year in the age at which a cycle turns. The Harbin chart's first pillar is 癸卯, age 10 to 19; the second 甲辰, 20 to 29. Treat the exact turning year as approximate and the sequence as the substance.

Third, and most important: none of this predicts an outcome. What the seven steps produce is a structure — where the pressure sits, which element the chart needs, which decade brings more of it. What a person does inside that structure is not in the eight characters.

How to test a bazi calculator in five minutes

Six checks, in order of how much they reveal

  1. Does it ask for a city and a minute? Without both, true solar time cannot be computed, and the hour pillar is a guess dressed as a result.
  2. Does it show the correction as numbers? Longitude correction, equation of time, total, corrected time. A tool that has done the arithmetic can display it.
  3. Enter two dates either side of a solar term — 5 and 6 March in any year — and watch the month pillar step. If nothing changes, the tool is using lunar or calendar months.
  4. Enter 23:30 and note the day pillar, then ask which Zi-hour convention it follows.
  5. Ask which school its Useful God comes from. Pattern method, balance method, or a stated order like the one above. "It depends on the chart" is not an answer to this question.
  6. Enter the same birth twice. The chart must be identical, character for character. If the pillars move, nothing above them means anything.

None of these tests requires you to accept anything about divination. They test whether the tool computed what it claims to have computed. A calculator that passes all six may still read your chart in a way you disagree with; one that fails any of them is not reading your chart at all.

Where the prose comes from

One architectural point explains most of what you will see in AI-assisted readings, including ours. The chart is computed first, in code, deterministically — eight characters, hidden stems, Ten Gods, strength score, pattern, Useful God, luck pillars — and only then does a language model write the narrative, which must stay consistent with that computed object. The model is not asked to guess your pillars; it explains pillars it was handed. That ordering is what makes the checks above meaningful. To see the pipeline on your own chart, the Telegram bot runs it end to end, the free browser draw is there if you would rather start with cards, and the Four Pillars reference explains the terms one at a time.

See the seven steps on your own birth data.

True solar time, four pillars, pattern and Useful God — computed, then explained. First three readings free.

Open the bot — try it free →

Common questions

Does a bazi calculator use my lunar birthday?

No. Lunar dates are not used at any point in the calculation. The four pillars are computed from the solar calendar plus two astronomical boundaries: the year changes at Li Chun, the start of spring, and each month changes at its jie solar term. A calculator that asks for your lunar birthday and skips the solar terms will place your year and month pillars wrongly.

Why does the exact birth time matter so much?

Because the hour pillar is the fastest-moving part of the chart: it changes every two hours, and near midnight the day pillar changes with it. On top of that, clock time is not what the chart needs. A correction of one to two hours between clock time and true solar time is ordinary in China, and that is enough to move the hour pillar by one or two branches.

What if I do not know my birth hour?

You get three pillars and no hour pillar: year, month and day. Pattern and Useful God can still be argued from the Month Branch, but anything that leans on the hour pillar, including the hour stem's Ten God, is guesswork and should be labelled as such. A calculator that quietly fills in a default noon is producing a chart you did not ask for.

Is the Useful God the same in every bazi calculator?

No, and this is the largest honest difference between tools. One classical line takes the Useful God from the Month Branch, the pattern method of the Zi Ping Zhen Quan; another reads the chart as excess and deficiency needing a cure, the balance doctrine of the Di Tian Sui. Two calculators can agree on all eight characters and still name different Useful Gods.

Is a free reading enough to judge the chart?

Enough to judge the calculation, yes. Look at the four pillars, the true solar time correction and the named pattern before you look at the prose. At EchoReading the first three full readings are free, and the browser tool at the free tarot page draws cards without any charge, though it shows meanings rather than a written reading.

Further Reading

Start Your Reading Now