Skip to content
BaZi WorksheetFour Pillars, shownRead a chart
Ruleset

Every rule behind the chart, with an ID you can argue with

A chart is only as good as the rules that produced it. This page states each rule, cites where the numbers come from, and names the cases where reasonable practitioners disagree.

Ruleset 2026.1-lichun-ephemeris-zi2300Ephemeris: astronomy-engine 2.xLast reviewed 20 November 2026

Why publish this at all

Two BaZi calculators can disagree on the same birth and both be “following the tradition”, because the tradition contains several forks: when the year begins, when the day begins, whether the clock is corrected to the sun. Most sites pick a fork silently. When your chart does not match another one, you have no way to tell whether the difference is a bug or a school.

So this page lists the forks, names the branch we took, and prints the intermediate values on the result page. If you think a rule is wrong, the rule ID is what to quote.

The rules, in the order they are applied

IDDecidesRule as implemented
T1Clock time → instantThe wall-clock reading is inverted through the IANA time zone database for the birth city and date, so historical daylight-saving rules apply — not today’s offset.
T2True solar timeClock time + longitude correction (4 minutes per degree from the clock meridian) + the equation of time. Used for the hour branch and the day boundary.
T3Equation of timeApparent solar time minus mean solar time, from the Sun’s apparent right ascension and mean longitude (Meeus, Astronomical Algorithms, ch. 28). Range: −14.2 to +16.4 minutes.
S1Month boundariesThe twelve 節 (jié) at 315°, 345°, 15°, … 285° of apparent solar longitude. Found by root search on the ephemeris, never read from a table of calendar dates.
S2Year boundaryLichun (315°), usually 3–5 February. Not 1 January, and not Chinese New Year.
Y1Year pillarSexagenary count from 1984 甲子: stem = (year − 4) mod 10, branch = (year − 4) mod 12, using the Lichun-corrected year.
M1Month pillarBranch from the solar month (Yin = month 1). Stem from the 五虎遁 rule: the Yin month of a 甲 or 己 year is 丙寅, and the sequence continues.
D1Day pillarFrom the Julian Day Number of the local date: index = (JDN + 49) mod 60. Anchored so that 1 October 1949 is 甲子 and 1 January 2000 is 戊午.
D2Which date the day pillar usesThe true solar date, so a birth late enough to cross midnight in solar time is counted on the next day.
H1Hour branchTwo-hour blocks from true solar time, starting at 23:00 with 子. 07:00–09:00 is 辰, and so on.
H2Hour stem五鼠遁: (dayStem × 2 + hourBranch) mod 10. A 甲 or 己 day starts with a 甲子 hour.
L1Luck directionForward for a yang year stem with a male birth, or a yin year stem with a female birth. Backward otherwise. The year stem decides, not the animal.
L2Luck start ageDays from birth to the bracketing 節 ÷ 3. Three days of distance become one year of age; the remainder converts at four months per day.
E1Element weightsStem 1.0; branch 1.0 split across hidden stems 0.6 / 0.3 / 0.1 (0.7 / 0.3 for two, 1.0 for one); month branch × 1.5.

The ephemeris, and why there is no date table

Almost every “bazi calculator” ships a table of solar-term dates: Lichun is 4 February, Jingzhe is 5 March, and so on. The table is wrong in detail. Lichun moves between 3 and 5 February depending on the year and the leap cycle, and the exact minute matters for anyone born that day — which, across a large enough audience, is thousands of people a year.

This calculator computes the Sun’s apparent geocentric ecliptic longitude for the birth instant and searches for the moment it crosses 315°. The ephemeris is astronomy-engine, a VSOP87-derived model accurate to well under an arcsecond for the Sun over the range of dates this tool accepts (1800–2100) — far tighter than the one-minute resolution that matters here.

Two consequences follow. First, the server never needs to know the date: the same algorithm runs in your browser, and the site can be a static file. Second, the term times shown on the result page are UTC instants from the model, not local dates copied from an almanac, so a reader in another time zone can verify them independently.

One deliberate convention: solar terms are compared as absolute instants, while true solar time is applied to the hour and the day boundary. The two differ by at most about an hour, and only for births within an hour of a term. Those charts get an explicit born within two hours of a solar term warning on the result page rather than a silent answer.

The day pillar, and how it is anchored

The day pillar is a continuous 60-day cycle with no astronomical anchor, which is why it is the most commonly mis-implemented part of a chart. We use the Julian Day Number, a running day count that has never skipped a day since 4713 BC:

sexagenary index = (JDN + 49) mod 60, where index 0 is 甲子.

The constant is not arbitrary. It is pinned by two independent dates that are widely documented: 1 October 1949 (甲子) and 1 January 2000 (戊午). Both fall out of the same formula, 51 years apart, which is the check that catches an off-by-one before it reaches a user. The regression suite includes the pair.

Clock time, true solar time, and the four numbers in between

A birth certificate records a clock reading. The chart needs the position of the Sun. The gap between them has exactly four parts, and all four are printed on the result page:

  1. The offset in force. Not the city’s current offset — the one that applied on that date, including daylight saving. Someone born in Houston in July 1988 was on CDT; someone born there in January was on CST. The IANA database knows this; a fixed UTC−6 does not.
  2. The clock meridian. Every offset implies a meridian: 15° per hour. UTC−8 means the clock is set for 120°W.
  3. The longitude correction. Four minutes per degree between the birth longitude and that meridian. Portland, Oregon sits 2.7° west of 120°W, so its solar clock runs 11 minutes behind the wall clock.
  4. The equation of time. The Sun is not a perfect timekeeper. Its apparent noon drifts up to 16 minutes ahead (early November) or 14 minutes behind (mid-February) mean noon, because Earth’s orbit is elliptical and its axis is tilted.

Those four lines sum to the true solar time, which decides the hour branch. Skipping the last two is the single most common source of “my hour pillar is wrong” complaints about online calculators — the error is small most days, and decisive near a boundary.

What the five-element percentages mean

The bars are a weighted count, not a strength verdict. Eight characters enter the count: four stems at 1.0 each, and four branches at 1.0 each. A branch’s weight is distributed over the stems hidden inside it — 0.6 / 0.3 / 0.1 for the principal, middle and residual qi, 0.7 / 0.3 where two stems are hidden, and 1.0 where there is only one. The month branch is multiplied by 1.5, because the season is what the month branch is for.

That produces a number you can reproduce by hand from the hidden-stem list in the result. It does not produce 身強 / 身弱 (a strong or weak Day Master), which needs a seasonal-strength model, root and support analysis, and a set of practitioner conventions that no two schools agree on. We leave that judgement out rather than dressing a count up as one. The Day Master page explains what can be said without it.

Luck pillars: direction and start age

Direction depends on the polarity of the year stem and the sex on the record. A yang year stem with a male birth runs forward; a yin year stem with a female birth also runs forward; the other two combinations run backward. This is why the form asks for sex at all — and why it asks rather than guesses: the direction flips the entire sequence of nine decades, and an unlabelled guess is worse than a blank.

The start age comes from the distance to the 節 that brackets the birth — the next one for a forward chart, the previous one for a backward chart. Three days of distance equal one year; the remainder converts at four months per day. With the birth at 07:40 on 7 November 1992 in Portland, the birth falls 0.49 days after Lidong, so the first luck pillar begins at roughly two months of age, in January 1993.

The five cases that break a calculator

Each has its own page, because each is a decision a reader may want to make differently. All five are handled here rather than skipped.

CaseWhat most tools doWhat happens here
No birth timeAssume noon, or quietly default to 12:00Hour pillar withheld; a warning names what is missing
Born far from the meridianUse the clock as recordedLongitude and equation of time applied; each shown
23:00–01:00 birthsPick one school silentlySwitchable; both readings explained
Historical daylight savingApply today’s offsetIANA rules for the birth date, with a DST note
Birth on a solar-term dayUse the date from a tableCompare against the instant; warn inside two hours

Deliberately not implemented

These are absent because they are separate systems with their own rule sets, and half-doing them would be worse than leaving them out:

  • 纳音 (nayin) and the full 神煞 (shensha) catalogue — each has variant tables that disagree.
  • Zi Wei Dou Shu, Qi Men Dun Jia — different arts, different charts.
  • Useful god (用神) selection — depends on the strength judgement we decline to automate.
  • Daily or yearly forecasts — not in this version.

How the engine is tested

The regression suite holds a set of fixed birth inputs with expected pillars, plus targeted cases for the parts that break: a birth one minute either side of Lichun, a Chinese birth during the 1988 daylight-saving experiment, a 23:30 birth under both day-change conventions, a Los Angeles birth whose equation-of-time correction crosses an hour boundary, and three charts with no birth time. The suite runs in CI and the build fails if any pillar moves.

What we cannot promise

The city table is curated, not exhaustive: about 250 metros with city-centre coordinates. A birth in a small town is best entered by latitude and longitude, which the form accepts. And a chart computed correctly is still interpreted by a reader — including you — who may be wrong; the tool takes responsibility for the first part and not the second.

Version history

RulesetChange
2026.1First published ruleset: Lichun ephemeris year boundary, true solar time with equation of time, zi-hour switch defaulting to 23:00, nine luck pillars.

Spot an error? The rule ID and the birth input are enough to reproduce it. Write to corrections@baziworksheet.com.

Start here

Try it with your own birth details

Date, time and city. The chart is computed in your browser and the correction is shown line by line.

Open the calculator