Skip to main content

About

How This Site Calculates BaZi

13 min read

Most BaZi calculators on the English internet are wrong about something. Here’s exactly how this engine works, what it gets right, and what it doesn’t.

The short version

  • An accurate, well-written BaZi resource for beginners and practitioners. Plain voice, no mysticism.
  • The engine is built on true solar time, precomputed solar term boundaries, and a day pillar anchor checked against an independent calendar library.
  • The interpretive content distinguishes calculation (mechanical and verifiable) from interpretation (editorial). Both are done with care.
  • The chart calculator, compatibility tool, and learning content need no signup and carry no ads. Some features, such as the Advanced naming report, may become paid later, and a paid PDF of the 2026 forecast may be offered; if so, the price is shown clearly before you pay.

What we built

This site exists because the English-language BaZi internet had two kinds of resources and not much in between. On one side, entertainment sites with cartoon zodiac animals and horoscope-style yearly predictions, easy to find, almost always wrong on the details, and written in a voice that drifts toward fortune-telling within two paragraphs. On the other side, professional practitioner sites priced as paid consultations, with calculation engines hidden behind checkout flows and reading content gated behind courses.

The goal here is a third option: a calculator that is actually right, a reading library written at the level a serious beginner or working practitioner would want, and zero friction between landing on the site and getting your full chart. The calculator, compatibility tool, and learning content need no signup and carry no ads. Some features, such as the Advanced naming report, may become paid later, and a paid PDF of the 2026 forecast may be offered; if so, the price is shown clearly before you pay.

The engine, in plain English

Nine things the calculation engine does that most online BaZi calculators don’t. This section is the trust signal: if you only care about one part of this page, it’s this one.

01

True solar time

Every chart is computed against the user's birth longitude, with the Equation of Time correction applied. A baby born at 12:00 local time in San Francisco does not have a noon-Beijing chart; the engine knows the longitudinal offset and the small seasonal wobble from the Earth's elliptical orbit, and applies both. Most online calculators skip this entirely, which is how two people born in different cities on the same clock time end up with silently wrong charts.

02

Solar term boundaries

节气

Month pillars do not change on calendar months. They change on the twelve 节 (jié) terms (Lìchūn, Jīngzhé, Qīngmíng, and so on), each defined by the sun reaching a specific ecliptic longitude. Someone born on February 3 is still in the previous BaZi month, not the next one. The engine ships a precomputed table of all 24 solar terms for every year from 1849 to 2101, 6,072 entries, generated from the astronomy-engine library. Pillars built from it are compared with the lunar-typescript library on 1,000 randomly chosen dates between 1850 and 2100, leaving out dates within two days of a solar term.

03

The 23:00 day boundary

The day pillar advances at 23:00 true solar time, not at midnight. The first 子 (zǐ) hour begins at 11 pm by the sun, which means a baby born at 23:30 sun time on Tuesday belongs to Wednesday's day pillar, not Tuesday's. On the clock that moment can come as early as about 10 pm or as late as about 3 am, depending on the birthplace and daylight saving. Casual calculators that treat midnight as the day boundary produce the wrong day stem for anyone born in the hour before midnight by the sun, and a wrong day stem means the entire chart collapses, because every other interpretation is anchored to it.

04

The 立春 year boundary

立春

BaZi years start at Lìchūn (立春), not on January 1. Lìchūn falls around February 4 each year, when the sun crosses 315° ecliptic longitude. A child born on January 15 still belongs to the previous year's pillar for BaZi purposes. The calendar says one thing; the chart says another. The engine handles this transition explicitly, so charts near the boundary resolve correctly every time.

05

The day pillar anchor

The day pillar is a 60-cycle that rolls forward one step per day, forever, starting from a single anchor date. This engine uses 2000-01-07 00:00 UTC = 甲子 (Jiǎzǐ, position 0 in the cycle) as its anchor. The test suite compares the day pillars it gives with those of the independent lunar-typescript library, on nine chosen dates from 1879 to 2050 and on 1,000 random dates between 1850 and 2100. Steve Jobs's birth date is one of the nine, and both give 丙辰.

06

Calculated luck pillar start age

大运起运

The first luck pillar's start age is computed from the actual distance between the birth datetime and the next or previous solar term, using the classical three-days-equals-one-year conversion, rather than rounding to an arbitrary number like eight or ten. Direction (forward or reverse through the 60-cycle) is set by gender combined with the polarity of the year stem, the classical rule. Two siblings born a week apart can have different luck pillar start ages for exactly this reason, and the engine tracks it precisely.

07

Hidden stem weighting

Earthly Branches contain one, two, or three hidden stems, weighted by main qi (primary), secondary, and tertiary positions. A Tiger branch does not count simply as 'Wood,' because it also holds Yang Fire and Yang Earth. The engine weights hidden stems 0.5 / 0.3 / 0.15 when it counts elements, and 0.7 / 0.3 / 0.15 when it judges Day Master strength. Strength analysis and favorable element detection both depend on hidden stems being counted correctly, and skipping them is the single most common reason online calculators produce inconsistent readings.

08

Chart structure detection

格局

The engine identifies the chart's classical structure (格局 géjú): Direct Officer, Eating God, Seven Killings, Follow the Wealth, and so on. Structure detection is what lets the reading distinguish between charts that look similar on the surface but behave very differently in practice. Every chart gets a structure, but not every structure is clear-cut. When the signal behind it is weak or split, the engine marks the structure tentative and gives the reason, rather than presenting a thin label as a firm one.

09

Climate balance

调候用神

For balanced charts, the favorable element is not guessed from a generic seasonal heuristic. The engine uses the classical 调候 (tiáohòu) table derived from 穷通宝鉴 (The Classic of Climatic Influences), which specifies the correct seasonal adjustment element for each of the ten Day Masters in each of the twelve months. A Yang Wood Day Master born in midwinter needs different climate support than a Yang Wood Day Master born in midsummer, and the table encodes that precisely rather than defaulting to 'the season's opposing element.'

The test suite

The engine is checked by an automated test suite that is run before release. Five historical charts (Steve Jobs, Albert Einstein, Barack Obama, Marilyn Monroe and Bruce Lee) and three boundary cases (births on either side of Lìchūn, births on either side of 23:00, and a birth in Urumqi on Beijing time, far from the time zone’s meridian) are tested end to end. Their expected pillars are written into the tests, worked out from the day-pillar anchor, the solar-term table and the true-solar-time correction, and if a change to the engine moves any of them off those pillars, the test suite fails. Another test moves the birth longitude around the globe in 30° steps and checks that only the hour pillar changes.

A separate famous-name audit runs in the same suite. For each of the thirty famous people the Day Master profiles name, it takes the birth date from public references such as Wikipedia and computes the Day Master with the engine, so when a profile says “Yang Fire: Steve Jobs,” the engine’s own arithmetic agrees, rather than the attribution being copied from a secondary source that may itself be wrong. This is the kind of error that propagates invisibly from one BaZi site to the next, and the audit exists specifically to stop it.

The interpretive content

There is a clean line between calculation and interpretation. Calculation is mechanical and verifiable: either the engine resolves a birth datetime to the correct eight characters or it does not, and the answer is externally checkable. Interpretation is different. The Day Master profiles, Ten God descriptions, structure meanings, and annual forecasts on this site are the editorial perspective of the team, grounded in the classical tradition and honest about what the model can support, but not pretending to be the only valid reading. Reasonable practitioners will differ on some of it. We try to say so when that happens.

The voice principle is: model, not oracle. The content describes tendencies and patterns, and what the tradition associates with each configuration. It does not tell you your destiny or foretell events, because the model does not make those claims, and we don’t pretend it does. A lot of BaZi content online drifts toward fortune-telling within a few paragraphs, because fortune-telling voice is compelling and generates engagement. We don’t.

The practical consequence is that if you read a page here and it sounds less dramatic than what you would get from a horoscope site, that is on purpose. The model is descriptive, the voice reflects the model, and the reader is trusted to do the rest of the work.

Where language models touch this site

The calculation engine is purely deterministic TypeScript. There is no language model anywhere in the path from a birth datetime to the four pillars, the Ten Gods, the symbolic stars, the chart structure, the climate element, or the luck pillar dates. Every chart on this site can be reproduced exactly from the same input by re-running the engine. The test suite covers this layer.

No AI runs when you use the site: readings and name explanations are assembled from fixed templates and our character database. Some of that template and reference text was drafted with model assistance and reviewed before publication.

Some of the editorial content on this site (parts of the Day Master profiles, structure descriptions, and case studies) was drafted with model assistance and then reviewed and edited by the team. We mention it here because it matters: the model can be wrong about the meaning of a specific Chinese character. Treat the meaning fields and the per-chart name explanations with the same skepticism you would give any second-hand interpretation. The deterministic chart, the structure, the favorable elements, and the scoring are all checkable. The prose around them is editorial.

The English baby names are different. Language-model research agents read the references, wrote each name's short meaning and chose its label. Other language-model agents then re-checked the cited references for 871 of the 926 records, reading those that could be opened; these were every name labeled well attested, likely or disputed. They counted only references that give a name's origin: a dictionary or reference work, not a Wiktionary line or a Wikipedia sentence that cites nothing. The Oxford Reference and Etymonline entries were not opened and were counted as cited. That check corrected 262 records and changed 72 labels, mostly toward more caution: 44 well attested labels came down (42 to likely, 2 to disputed), and of the 28 disputed names, 17 became likely, 8 became no settled meaning and 3 became well attested. In all, well attested names fell from 517 to 476. No person read every source, so read a name's sources before you decide.

Well attested: two references agree on the meaning. Likely: they agree, but hedge, or one is a thinner source. Disputed: the references disagree, and we give each view. No settled meaning: no reference settles it.

What the engine does not do (yet)

An honest list of current gaps. These are tracked as work items, not hidden.

Sources and references

The engine and the writing draw on a standard set of references. This is the list, without outbound links. These are reference marks, not endorsements of any specific edition or site.

Several BaZi conventions are disputed across schools: luck pillar direction, the 23:00 day boundary, transformation thresholds, hidden stem weights, and the 魁罡 day list among them. The engine commits to one rule for each, and the choices are documented in full on the methodology page. Practitioners trained in a different lineage will see where the engine’s answers diverge from theirs and why.

Who runs this, and how errors are handled

This site is run by a small team. There are no ads, there is no tracking beyond aggregate analytics, and there is no upsell to a personal reading or a course. The whole project exists because the English-language BaZi internet deserved better and it was possible to build better.

The site publishes no contact address. A few Learn pages have a short feedback box, and the Advanced naming report has a thumbs up or down; neither is a way to get a reply. When we find an error in the engine, it is treated as a bug and fixed; when we find one in the content, it is revised with a note in the corrections log.

Practitioner detail: how the pillars are checked

For the historical charts in the test suite, each chart’s expected four pillars are written into the test, and the engine has to reproduce them exactly to pass. Those expected day pillars rest on the engine’s own anchor, so the anchor is checked separately against the independent lunar-typescript library, as described above.

For the famous-name audit, each person’s birth date comes from public references such as Wikipedia, and their Day Master is computed by the same engine that runs the live site.

Trust signals

Public, dated records of how the engine and editorial work hold up. If you want to audit this site, start here.

Last updated: 2026-11-12