AstroDexa

Learn · Chinese astrology

How a BaZi chart is built

Eight characters, four pillars, and a birth moment written down as a position in a calendar that has been running without a break since the Shang dynasty. This is the derivation, start to finish, worked on one real birth.

A BaZi chart contains no planets. There are no houses in it, no aspects, nothing measured against the horizon. A practitioner who has been reading these charts for thirty years has never once needed to know where Mars was when you were born. Western and Vedic astrology model a sky. BaZi models a calendar.

What it records is where your birth moment fell in four nested counting cycles: which year, which solar month, which day, and which of the twelve two-hour blocks. Each of those four positions is written with a pair of characters, one drawn from a list of ten and one from a list of twelve. Four pairs, eight characters. That is the whole input. Everything a practitioner says afterwards is read off those eight characters and the relationships between them, which means the derivation has to be exactly right before any of it is worth anything. The Chinese name says as much: 八字 bāzì, “eight characters”. The other common name, 四柱 sìzhù, “four pillars”, describes the same thing by its shape: four columns, each two characters tall.

YEAR壬申MONTH戊申DAY癸亥HOUR己未stembranchfour pillars · eight charactersThe hour pillar, opened up己Heavenly Stemjǐ · Yin Earth未Earthly Branchwèi · Yin Earth · Goat13:00–15:00Hidden inside 未:己jǐ 60% · Seven Killings丁dīng 30% · Indirect Wealth乙yǐ 10% · Eating God
Every pillar is one Heavenly Stem stacked on one Earthly Branch. The branch also carries stems hidden inside it, which is where most of the detail in a reading comes from. The chart shown is the worked example used throughout this page.

This page covers derivation and nothing else. It explains how the eight characters are computed and what the labels attached to them denote. It does not tell you what any of it means about a person, because that is a separate body of technique, it is disputed, and mixing the two is how a beginner ends up unable to tell an arithmetic fact from an opinion.

Stems, branches, elements

Two closed lists do all the work. The ten Heavenly Stems (天干 tiāngān) are five elements taken twice, once in a Yang form and once in a Yin form. The twelve Earthly Branches (地支 dìzhī) are the familiar zodiac animals, though the animals are a late decoration on what is really a twelve-part division of time and direction.

Yin and Yang here are not moral categories and not genders. They are a parity bit. A stem is either the outward form of its element or the inward one, and that single fact decides half of the ten-god lookup later on. Element and polarity between them are the only properties of a stem that the derivation uses.

1甲jiǎYang Wood2乙yǐYin Wood3丙bǐngYang Fire4丁dīngYin Fire5戊wùYang Earth6己jǐYin Earth7庚gēngYang Metal8辛xīnYin Metal9壬rénYang Water10癸guǐYin Water
The ten stems in fixed order. Polarity alternates, starting Yang, and the elements come in pairs: Wood, Wood, Fire, Fire, and so on.
1子zǐYang WaterRat23:00–01:002丑chǒuYin EarthOx01:00–03:003寅yínYang WoodTiger03:00–05:004卯mǎoYin WoodRabbit05:00–07:005辰chénYang EarthDragon07:00–09:006巳sìYin FireSnake09:00–11:007午wǔYang FireHorse11:00–13:008未wèiYin EarthGoat13:00–15:009申shēnYang MetalMonkey15:00–17:0010酉yǒuYin MetalRooster17:00–19:0011戌xūYang EarthDog19:00–21:0012亥hàiYin WaterPig21:00–23:00
The twelve branches, also alternating from Yang. Each carries an animal, an element and a two-hour block of the day. The elements do not run in neat pairs here, and there are four Earth branches rather than two, which is one reason the branches behave less tidily than the stems.

The five elements (五行 wǔxíng, more literally “five phases” or “five movements”) relate to one another in two fixed cycles, and those two cycles are the engine of everything that follows. In the generating cycle, each element produces the next: wood feeds fire, fire leaves ash which is earth, earth yields metal, metal condenses water on its surface, water grows wood. In the controlling cycle, each element restrains the one two steps ahead of it: wood breaks up earth, earth dams water, water quenches fire, fire melts metal, metal cuts wood.

木Woodmù火Firehuǒ土Earthtǔ金Metaljīn水Watershuǐ生 shēng · generating, around the outer ring克 kè · controlling, across the inner star
Generating runs around the outer ring, controlling crosses the middle as a five-pointed star. This placement is the same in every textbook version of the diagram; the arrow colours are not standardised, so ours are simply the two most legible ones on this page.

Neither cycle is a value judgement. Being controlled is not being harmed, and generating something is not always a gift. For the purposes of this page it is enough that both are symmetric, closed, and completely mechanical.

Why sixty

Pair a stem with a branch and step both forward together, one place each. The stems run out after ten and start again; the branches run out after twelve. The pairing does not return to its starting point until both lists finish at the same time, which happens after sixty steps, the lowest common multiple of ten and twelve. That sixty-term cycle is the sexagenary cycle, 六十甲子 liùshí jiǎzǐ, named after its first term 甲子 jiǎzǐ and ending on the sixtieth, 癸亥 guǐhài.

子丑寅卯辰巳午未申酉戌亥甲乙丙丁戊己庚辛壬癸10 stems12 branches60 pairingsLCM(10, 12) = 60read the pair here
Ten stems on the inner ring, twelve branches on the outer one. Both turn one place per step, so the inner ring turns faster and the alignment at the pointer does not repeat until step sixty-one.

Sixty rather than a hundred and twenty, which is what ten times twelve would suggest, because stepping in lockstep keeps the parity aligned. Stem one is Yang and branch one is Yang; stem two is Yin and branch two is Yin; and since both lists have an even length, a Yang stem can never meet a Yin branch. Half the pairings are unreachable. This is not a rule anyone imposed on the system, it is a consequence of how the counting works, and it is why you will never see 甲丑 in a chart.

no.stembranch1甲子Yang2乙丑Yin3丙寅Yang4丁卯Yin5戊辰Yang6己巳Yin7庚午Yang8辛未Yin9壬申Yang10癸酉Yin11甲戌Yang12乙亥Yin13丙子Yang14丁丑Yin…59壬戌Yang60癸亥YinBoth columns move down their own list one step at a time. The stems run out first and start again.Polarity never mixes: a Yang stem only ever meets a Yang branch, which is why 60 pairs occur and not 120.
The first fourteen terms and the last two. The stems will complete six laps and the branches five before the pair returns to 甲子.

The same sixty terms are then used four times over, for years, for months, for days and for the twelve double-hours. A BaZi chart is four readings off the same ruler at four different scales.

Where it came from

The counting mechanism is far older than the divination built on it. Stem-branch pairs appear as day-dates on Shang-dynasty oracle bones from around 1250 BCE, and almost every surviving divination record from that period carries one. The day count has run from there to the present without a break, which makes it the longest continuous day count anywhere in the world and the reason the day pillar can be computed as plain arithmetic rather than looked up in a calendar. Using the same pairs for years came much later, somewhere around the middle of the third century BCE, and was settled into court calendar practice under the Han in the second century CE.

c. 1250 BCEOracle bonesganzhi counts days2nd c. BCEDong Zhongshufive phases as doctrine2nd c. CEHan calendarsganzhi years in court usec. 761–813Li Xuzhongthree pillars (disputed)10th–11th c.Xu Zipingfour pillars, Day Master13th c. onYuanhai Zipingcompiled by Xu Dasheng1521–1603Wan MinyingSanming Tonghui1966–1976Four Oldsdriven underground1980s onPublic revivalonline since the 2020sNot to scale. Three thousand years will not fit on a straight ruler.
The sequence, with the caveat that several of these dates are contested. The details follow.

The cosmology arrived separately. Five-phase thinking was pulled together in the late Warring States and early Han period, traditionally crediting Zou Yan (邹衍) with turning the older idea of five materials into a doctrine of historical and cosmic cycles. It was worked out further in the Lüshi Chunqiu, in the “Yueling” chapter of the Liji, and in the Huainanzi, and then Dong Zhongshu (董仲舒, second century BCE) made a version of it central to Han state ideology. His correlative cosmology, in which heaven and human affairs resonate with one another, is the intellectual ancestor of the specific move BaZi makes: reading a birth moment through elemental relationships.

A loose tradition called 禄命 lù-mìng, “emolument and fate”, correlated birth data with stem-branch and five-phase reasoning across the Han and the Six Dynasties. Nobody has produced a single named method from it. It is better thought of as the soil than as a system.

Three pillars, then four

The first named figure is Li Xuzhong (李虚中), traditionally dated to roughly 761–813 CE, who is credited with a destiny method using three pillars, year, month and day, built on the 纳音 nàyīn element correspondences and centred on the year pillar. His contemporary Han Yu is supposed to have said he was right ninety-nine times in a hundred. Two cautions belong here. The surviving text that bears Li’s name carries a preface dated 806 CE, and scholars dispute both that date and whether the text has anything much to do with the historical man; it may be a later compilation attached to a famous name. Treat the man and the book as loosely linked at best.

The decisive change is credited to Xu Ziping (徐子平), placed in the Five Dynasties and Northern Song period. Two innovations, and the second matters more than the first: he added the hour pillar, giving four pillars and eight characters, and he moved the reference point from the year pillar to the day stem. From then on a chart is read as a set of relationships to the person’s own stem rather than to their ancestral year. The discipline is still called 子平术 Zǐpíng shù after him, and “Zi Ping” and “BaZi” are used almost interchangeably in classical writing.

A name to be careful with

English-language sources, Wikipedia’s article on the Yuanhai Ziping included, often print “Xu Dasheng, also known as Xu Ziping”, as though one man had two names. Chinese-language sources, including Chinese Wikipedia, state plainly that Xu Ziping and Xu Dasheng (徐大升) are two different people, separated by around three hundred years. Xu Dasheng was active in the mid-thirteenth century under the Southern Song and compiled and transmitted the earlier method rather than inventing it. Some Chinese researchers go further and doubt whether a historical Xu Ziping existed in the form the legend describes. The two accounts have not been reconciled, and anyone telling you confidently which is right is ahead of the evidence.

The four books a BaZi practitioner is expected to have read.
TextDateAttributionWhat it added
渊海子平 Yuānhǎi ZǐpíngCompiled in the Song, revised and expanded under the MingCompiled by Xu Dasheng (徐大升). English sources often print “Xu Dasheng, also known as Xu Ziping”; Chinese sources separate the two men by roughly three centuries.The first systematic manual of four-pillar theory: the ten gods, the symbolic stars, family correspondences, the verses practitioners still quote.
三命通会 Sānmìng TōnghuìMing, by a scholar-official who lived 1521–1603Wan Minying (万民英), a metropolitan graduateTwelve volumes gathering two centuries of accumulated theory, the first nine organised stem by stem. Taken into the Qing imperial library, the Siku Quanshu.
滴天髓 Dī Tiān SuǐTraditionally Song, with an early-Ming commentary and a much-used Qing oneGenuinely unresolved. Traditionally credited to a Song figure named Jing Tu (京图) with commentary by Liu Ji (刘基), and later by Ren Tieqiao (任铁樵). Nothing independent is known about Jing Tu, and the text is absent from the Yongle Dadian, the Sanming Tonghui and the Siku Quanshu. At least five divergent manuscripts circulate.The most philosophical of the classics, arguing about the behaviour of qì rather than listing rules.
穷通宝鉴 Qióngtōng BǎojiànLate Ming in substance; edited, renamed and published in the Guangxu era of the late QingAuthor of the original unsigned text unknown; edited and republished by Yu Chuntai (余春台)Introduced tiáohòu (调候), reading a Day Master’s needs from the actual season of the birth month rather than from elemental strength alone.

How far it travelled

In Korea the system is 사주 saju (four pillars) or 팔자 palja (eight characters). It arrived during the Goryeo dynasty alongside the broader transmission of Tang and Song learning, and was localised heavily under the Joseon. Korean sources describe the Gwansanggam (관상감), the royal astronomy bureau, combining observation with saju analysis to advise on appointments and the timing of state business. That institutional claim comes from practitioner writing rather than from a Joseon-history monograph, so treat it as well attested but not independently checked. Saju consultation in Korea today is entirely mainstream.

Japan received it much later, as 四柱推命 shichū suimei. Japanese sources place the arrival in the mid-Edo period, with the earliest firm textual evidence being a translation of the Yuanhai Ziping published as Suimeisho by the Sendai Confucian scholar Sakurada Komon during the Bunsei era, 1818 to 1830. That dating comes from Japanese Wikipedia and popular divination writing rather than an academic study; it is consistent across sources but not verified against one.

In Vietnam it is Tứ Trụ, Bát Tự or Tử Bình. Beyond the names, we could not find scholarly sourcing for when or by what route it arrived, only practitioner sites asserting a general spread through Taiwan, Vietnam and Southeast Asia. That is a gap in our research, not a settled short answer.

On the mainland the twentieth century nearly ended it. During the Cultural Revolution, fortune-telling was named among the Four Olds: almanacs and divination materials were destroyed, practitioners were denounced, and the practice went underground entirely. It came back in the 1980s, after the 1978 reforms, in what the historian of the period calls a fortune-telling fever, and the returning practitioners often described their work in the language of “scientific research” and “reclaiming traditional culture” because that language bought legitimacy. Consultation has been continuously visible in Hong Kong, Taiwan, Singapore and Malaysia throughout. Since the early 2020s a wave of interest among younger people on the mainland has driven a sizeable market in metaphysical services, much of it now app-delivered; the numbers you will see quoted for it come from market research firms and the press rather than from peer-reviewed work, and should be read that way.

What it is actually used for

Four uses account for most consultations historically. Character and constitution, read off the balance of elements across the eight characters. Timing, read off the ten-year luck pillars. Marriage matching, 合婚 hé hūn, which was a formal stage of the traditional six rites: the groom’s family requested the bride’s eight characters in writing, a specialist compared the two sets, and an unfavourable comparison could end the match before betrothal. And naming a newborn, choosing given-name characters whose elemental associations supplement whatever the chart is short of.

The most striking modern use, and the one that shows how seriously the premise is still taken, is the scheduling of elective caesarean births. Chinese-language accounts describe families consulting a practitioner to choose a birth hour inside the window a doctor has already declared safe. The medical judgement sets the boundaries and the astrological one operates inside them. It is hard to think of a clearer demonstration that a culture believes the birth moment encodes something durable.

Alongside BaZi sits Zi Wei Dou Shu (紫微斗数), the other widely practised Chinese natal system. Practitioners generally treat the two as complementary rather than ranked, and many use both. You will often read that Zi Wei was restricted to the imperial court until the fall of the Qing; that claim circulates widely on practitioner sites and we could find no academic source for it, so it belongs in the category of things everybody repeats.

The year pillar

The year pillar changes at Lichun (立春 Lìchūn, “start of spring”), the first of the twenty-four solar terms, defined as the instant the sun’s apparent geocentric ecliptic longitude reaches 315°. That falls on or about 4 February. It does not change at Chinese New Year, and it does not change at the winter solstice. Within BaZi this is about as close to unanimous as the tradition gets; Chinese writers call it an iron rule.

Lichun is a solar event and Chinese New Year is a lunar one, so they drift past each other. Every year there is a window, sometimes a fortnight wide, in which the two boundaries disagree about which year it is.

2023Lunar New Year 22 JanLìchūn 4 Febbefore Lìchūn: 壬寅after Lìchūn: 癸卯13 days when the zodiac year has turned and the BaZi year has not2024Lunar New Year 10 FebLìchūn 4 Febbefore Lìchūn: 癸卯after Lìchūn: 甲辰6 days when the BaZi year has turned and the zodiac year has not2026Lunar New Year 17 FebLìchūn 4 Febbefore Lìchūn: 乙巳after Lìchūn: 丙午13 days, the same way round as 20241 Jan1 MarThe solar boundary barely moves. The lunar one wanders by a month.
Three years, three different relationships between the two boundaries. In 2023 the lunar year turned first and the BaZi year pillar stayed on 壬寅 for another thirteen days. In 2024 and 2026 the order reverses.

Plenty of free online calculators roll the year at Lunar New Year. Our research treats that as a bug rather than a competing school, and the engine behind this page has no setting for it: there is no configuration field that selects the Lunar New Year boundary, because offering one would imply the question is open.

Precision is not pedantry

Lichun in 2024 fell at 16:27:05 Beijing time on 4 February. A birth at 16:20 that afternoon and a birth at 16:30 get different year pillars, and different month pillars too, since Lichun also opens the first month. Ten minutes changes four of the eight characters. This is why an engine has to compute the solar term from an ephemeris rather than read a date out of a table.

Given a Gregorian year y that the birth falls in or after Lichun of, the year’s own pair is pure arithmetic, anchored on 1984 CE being 甲子: stem index = 1 + (y + 6) mod 10, branch index = 1 + (y + 8) mod 12. For 1992: stem 1 + 1998 mod 10 = 9, which is 壬; branch 1 + 2000 mod 12 = 9, which is 申. The year pillar is 壬申, Yang Water Monkey.

The worked example

Everything from here on is threaded through one birth: a girl born in Chengdu, China, on 15 August 1992 at 15:30 by the clock. The figures are computed with the same engine that powers AstroDexa, not copied from a book, and nothing has been rounded or tidied for the page. Chengdu sits at about 104.07°E, which will matter a great deal by the time we reach the hour.

15 August is well past Lichun 1992, which fell on 4 February at 21:48 Beijing time, so the year pillar is the one for 1992: 壬申.

The month pillar

The month pillar has nothing to do with lunar months. It changes at the twelve jié (节, the “sectional” solar terms), which are twelve of the twenty-four terms, spaced 30° of solar longitude apart. The other twelve, the zhōngqì (中气, mid-terms), sit between them and are used by the lunar calendar to decide where leap months go. BaZi ignores them completely.

This trips people up because the four terms everybody has heard of, the two equinoxes and the two solstices, are all zhōngqì. The spring equinox does not start a BaZi month. Lichun, a fortnight before the start of February’s zhōngqì, does.

立春寅Lìchūn雨水Yǔshuǐ惊蛰卯Jīngzhé春分Chūnfēn清明辰Qīngmíng谷雨Gǔyǔ立夏巳Lìxià小满Xiǎomǎn芒种午Mángzhòng夏至Xiàzhì小暑未Xiǎoshǔ大暑Dàshǔ立秋申Lìqiū处暑Chǔshǔ白露酉Báilù秋分Qiūfēn寒露戌Hánlù霜降Shuāngjiàng立冬亥Lìdōng小雪Xiǎoxuě大雪子Dàxuě冬至Dōngzhì小寒丑Xiǎohán大寒Dàhán24 solar terms15° of solar longitude apart12 jié 节 open the months12 zhōngqì 中气 do notincluding both equinoxesand both solstices立春 Lìchūn · 315° · the year and month 1 boundary
Twenty-four terms around the sun’s year, beginning at Lichun at the top. The twelve highlighted jié each open a month, and the branch for that month is shown inside. The unhighlighted twelve, the equinoxes and solstices among them, do nothing in BaZi.
The twelve jié (节) and the month branch each one opens. Solar longitude is the exact definition; the dates drift by a day either way.
JiéPinyinMeaningSun’s longitudeMonth branchRoughly
立春LìchūnStart of Spring315°寅 yín · Tiger4–5 Feb
惊蛰JīngzhéAwakening of Insects345°卯 mǎo · Rabbit5–6 Mar
清明QīngmíngClear and Bright15°辰 chén · Dragon4–5 Apr
立夏LìxiàStart of Summer45°巳 sì · Snake5–6 May
芒种MángzhòngGrain in Ear75°午 wǔ · Horse5–6 Jun
小暑XiǎoshǔMinor Heat105°未 wèi · Goat6–7 Jul
立秋LìqiūStart of Autumn135°申 shēn · Monkey7–8 Aug
白露BáilùWhite Dew165°酉 yǒu · Rooster7–8 Sep
寒露HánlùCold Dew195°戌 xū · Dog8–9 Oct
立冬LìdōngStart of Winter225°亥 hài · Pig7–8 Nov
大雪DàxuěMajor Snow255°子 zǐ · Rat6–7 Dec
小寒XiǎohánMinor Cold285°丑 chǒu · Ox5–6 Jan

Notice that the branches run 寅 卯 辰 and so on, starting at the Tiger rather than the Rat. Month one is the Tiger month because it begins at Lichun, and the year begins there too. The Rat month is month eleven, running from Daxue in early December across the Gregorian new year to Xiaohan in early January.

The branch is fixed for all time by which jié you are in. The stem is not; it depends on the year. The rule that connects them is the Five Tigers (五虎遁 Wǔhǔdùn), which gives the stem of the first month, the Tiger month, from the stem of the year. After that every later month in the year is one step forward through the sixty, one step per jié, and no further rule is needed.

Five Tigers (五虎遁): the year stem gives you month one.
If the year stem isthe 寅 month stem is
甲 jiǎ or 己 jǐ丙 bǐng · Yang Fire
乙 yǐ or 庚 gēng戊 wù · Yang Earth
丙 bǐng or 辛 xīn庚 gēng · Yang Metal
丁 dīng or 壬 rén壬 rén · Yang Water
戊 wù or 癸 guǐ甲 jiǎ · Yang Wood
The worked example

15 August 1992 falls after Liqiu, which was 7 August, and before Bailu on 7 September. That puts the birth in the 申 month, the Monkey, which is month seven counting from the Tiger. The year stem is 壬, and Five Tigers sends 丁 and 壬 to 壬, so month one is 壬寅, number 39 in the sixty. Six steps forward for the six months since gives number 45, 戊申.

The day pillar

The day pillar is the easiest of the four to compute and the one with the most interesting dispute attached. The day count is a single unbroken run of sixty, stepping once per calendar day, untouched by leap months, dynastic changes, the switch from the Julian to the Gregorian calendar, or anything else. Once you know the pair for any one day you know it for every day, forwards and backwards, by counting.

In practice an engine converts the corrected calendar date to a Julian Day Number and takes it modulo sixty against a known anchor. Two days that are independently attested as 甲子, the first of the sixty, make a good check on the arithmetic: 18 February 1912, and 1 October 1949, the founding day of the People’s Republic. They are 13,740 days apart, which divides by sixty exactly, and an implementation that does not land on both has a bug. There is a widely circulated hand formula for the day pillar, sometimes called Gao’s formula, which fails that second check. We tested it, it disagreed with itself, and we did not implement it.

Which day does a 23:30 birth belong to?

The 子 hour runs from 23:00 to 01:00, so it lies across midnight and therefore across the boundary between two day pillars. Schools disagree about what that means for someone born in the first half of it.

22:0023:0000:0001:0002:00子 zǐ hour, 23:00–01:00rollover 子初换日our defaultday Dday D+1split 子正换日the minority schoolday Dday D+1the whole disagreement lives here
The two schools agree everywhere except in the hour before midnight. Roughly one birth in twenty-four is affected, and for those births the day pillar and the hour pillar both change.

The split school has a real textual foundation. The Ming-dynasty Sanming Tonghui says of the 子 hour that its first half, before midnight, belongs to yesterday, and its second half, after midnight, to today. It is a substantial minority position, not a fringe one. Our own research found the two initial reports contradicting each other on which side was the majority, which is how we ended up commissioning a third that concluded rollover leans majority and that named mainland practitioners have converged towards it over the past twenty years, while keeping the older vocabulary.

AstroDexa defaults to rollover and implements split in full. The mode used is printed with every chart. Both schools, incidentally, evaluate the question against the corrected time rather than the raw clock, which brings us to the last pillar.

The worked example

15 August 1992 is day number 60 in the sixty-day count, 癸亥, Yin Water Pig. The birth is in the afternoon, so the zi-hour question does not arise here and the two schools agree.

The hour pillar

The day is divided into twelve 时辰 shíchén, double-hours, one per branch, and the first of them is centred on midnight rather than starting there.

子Rat23:00–01:00丑Ox01:00–03:00寅Tiger03:00–05:00卯Rabbit05:00–07:00辰Dragon07:00–09:00巳Snake09:00–11:00午Horse11:00–13:00未Goat13:00–15:00申Monkey15:00–17:00酉Rooster17:00–19:00戌Dog19:00–21:00亥Pig21:00–23:00midnight十二时辰shí'èr shíchéntwelve double-hours子 zǐ straddles midnight:23:00–01:00, two calendar days
Twelve branches over twenty-four hours. The Rat hour is the one that straddles midnight, and the reason the previous section needed a rule.

The hour stem comes from the day stem by the Five Rats rule (五鼠遁 Wǔshǔdùn), which works exactly like Five Tigers one level down: it gives the stem of the 子 hour, and every later hour that day steps one place forward through the sixty.

Five Rats (五鼠遁): the day stem gives you the first hour.
If the day stem isthe 子 hour stem is
甲 jiǎ or 己 jǐ甲 jiǎ · Yang Wood
乙 yǐ or 庚 gēng丙 bǐng · Yang Fire
丙 bǐng or 辛 xīn戊 wù · Yang Earth
丁 dīng or 壬 rén庚 gēng · Yang Metal
戊 wù or 癸 guǐ壬 rén · Yang Water

Which clock, though?

Here is the part that beginners skip and that changes more charts than any other single correction. The time on a birth certificate is civil time, and civil time is an administrative convenience with two separate distortions built into it.

The first is longitude. China runs one legal time zone across roughly sixty degrees of longitude, and every clock in it is set to the meridian at 120°E. A clock in Chengdu says the same thing as a clock in Shanghai, but the sun over Chengdu is more than an hour behind. The correction is four minutes per degree: local mean time = clock time + 4 × (longitude − 120). East of the meridian you add, west of it you subtract.

The second is the equation of time (均时差 jūnshíchā). A clock ticks at a constant rate and the sun does not, because Earth’s orbit is elliptical and its axis is tilted. The gap between the two runs from about fourteen minutes behind to about sixteen minutes ahead over the course of a year. It depends on the date and not at all on where you are standing.

one legal time zone, UTC+8, from border to border75°E90°E105°E135°E120°E — the meridian every Chinese clock is set toÜrümqi87.6°E−130 minChengdu104.07°E−63.73 minBeijing116.4°E−14 minHarbin126.6°E+26 minLongitude correction = 4 minutes × (birth longitude − 120). The equation of time, a few more minutes either way, is added on top.
Four Chinese cities against the meridian their clocks are set to. The longitude correction alone is over two hours at the western border. The equation of time then adds a few minutes either way depending on the date.

Apply both and you get apparent solar time, the time a sundial would show: the measurement the whole system was originally built on. This is the majority position among sources that take one, on two arguments. The historical argument is that the hour branches were defined by the sun’s position before mechanical clocks existed at all, so using clock time is the innovation. The practical argument is that at extreme longitudes the correction is simply decisive; in Xinjiang it can be over two hours, which is more than a whole double-hour.

There is a genuine minority that rejects the correction, either as a modern administrative overlay unknown to the classics, or as negligible for births near the reference meridian. The second half of that is fair: in Shanghai the longitude correction is about seven minutes and will rarely change anything. In Chengdu it is not.

The worked example, and the reason this section exists

Chengdu is at 104.07°E. Longitude correction: 4 × (104.07 − 120) = −63.73 minutes. Equation of time for 15 August 1992: −4.42 minutes. Together, about sixty-eight minutes to be taken off the clock.

15:30:00 becomes 14:21:50 local apparent solar time. 15:30 sits in the 申 hour, 15:00 to 17:00. 14:21:50 sits in the 未 hour, 13:00 to 15:00. Day stem 癸 sends the 子 hour to 壬 by Five Rats, so the 未 hour, seven steps on, is number 56: 己未. Read off the clock as written, it would have been number 57, 庚申.

Both characters of the hour pillar change. The stem goes from Yang Metal to Yin Earth, which are opposite elements and opposite polarities, and the ten god attached to it goes from Direct Resource to Seven Killings. One correction, and a quarter of the chart reads differently.

Clock time as written15:30申 shēn · 15:00–17:00庚申gēngshēnTrue solar time14:21:50未 wèi · 13:00–15:00己未jǐwèi−68 minhour pillarflips
The same birth, computed twice. Left, the clock time as the certificate records it. Right, apparent solar time. AstroDexa uses the right-hand answer and says so on the chart.

Reading the skeleton

The eight characters are now fixed. What follows are the labels a chart carries, all of them derived by lookup from what we already have. None of this is interpretation yet.

The Day Master

The Day Master (日主 rìzhǔ, also 日元 or 日干) is the day pillar’s own stem. That one character is the chart’s fixed point: every other stem in the chart is described by its relationship to it. Xu Ziping’s shift of the reference point from the year to the day is what separates the method practised today from Li Xuzhong’s, and it is the reason a modern chart cannot simply be read off a Tang-dynasty manual.

The ten gods

The ten gods (十神 shíshén) sound mystical and are a lookup table. Take any stem in the chart, visible or hidden. Ask two questions. What is the five-element relationship between that stem’s element and the Day Master’s? Do the two share a polarity? Five relationships times two polarities gives ten answers, and each answer has a name.

Same element as the Day Master比肩Companionsame劫财Rob WealthoppositeThe Day Master generates it食神Eating Godsame伤官Hurting OfficeroppositeThe Day Master controls it偏财Indirect Wealthsame正财Direct WealthoppositeIt controls the Day Master七杀Seven Killingssame正官Direct OfficeroppositeIt generates the Day Master偏印Indirect Resourcesame正印Direct ResourceoppositeDay Master日主rìzhǔelement + polarity
The Day Master in the middle. Five possible element relationships radiate out, and each splits in two depending on whether the other stem shares the Day Master’s polarity (“same”) or not (“opposite”). No judgement enters anywhere.
The ten gods (十神 shíshén): a lookup with no judgement in it. English names as AstroDexa prints them.
Relationship to the Day MasterSame polarityOpposite polarity
Same element as the Day Master比肩 bǐ jiān
Companion
劫财 jié cái
Rob Wealth
The Day Master generates it食神 shí shén
Eating God
伤官 shāng guān
Hurting Officer
The Day Master controls it偏财 piān cái
Indirect Wealth
正财 zhèng cái
Direct Wealth
It controls the Day Master七杀 qī shā
Seven Killings
正官 zhèng guān
Direct Officer
It generates the Day Master偏印 piān yìn
Indirect Resource
正印 zhèng yìn
Direct Resource

Worth knowing: 印 is rendered “Resource” in our output and in a lot of modern practice, but many English books say “Seal” instead, and the two mean the same position. 七杀 is also written 偏官 piānguān, and 偏印 is sometimes 枭神 xiāoshén, the Owl. Different books, same cells of the same table.

To see how mechanical it is, work one by hand. The Day Master here is 癸, Yin Water. The hour stem is 己, Yin Earth. Earth controls water, so the relationship is “it controls the Day Master”. Both are Yin, so the polarities match. Row four, first column: 七杀, Seven Killings. The month stem 戊 is the same element in the other polarity, which lands one cell to the right: 正官, Direct Officer.

Hidden stems

Each branch contains one, two or three stems, which is where a large part of a chart’s substance lives. The main one is the 本气 běnqì, the primary qì; the others are secondary and residual. Each hidden stem gets its own ten-god label by the same lookup, so a four-pillar chart with only four visible stems can easily carry a dozen ten-god labels once the branches are opened. Which stems hide in which branch is not disputed. How heavily to weight them is: we use flat percentages, and a classical alternative weights them by how far into the month the birth fell.

Luck pillars

The luck pillars (大运 dàyùn) are ten-year blocks laid over the natal chart, and they are derived from the month pillar by stepping it through the sixty. Two things have to be decided: which way, and starting when.

Direction. Forward if the year stem is Yang and the person is male, or the year stem is Yin and the person is female. Reverse otherwise. Sex is a required input here and cannot be recovered from the chart, which is the one piece of information BaZi needs that the birth moment alone does not supply.

Start age, by the three-days rule. Measure from the birth to the next jié if the direction is forward, or back to the most recent jié if it is reverse. Any of the twelve; Lichun has no special standing here. Then convert at three days to the year: three days of elapsed time is one year of age, one day is four months, one double-hour is ten days. The result is the exact age at which the first block begins, and every subsequent block starts ten years after the one before.

The worked example

Year stem 壬 is Yang and the subject is female, so the direction is reverse. Counting back from 15 August to Liqiu on 7 August gives about eight days and one hour, which at three days to the year is 2 years 8 months. The first luck pillar begins on 15 April 1995 and the month pillar steps backwards from number 45: 44, 43, 42, and so on.

丁未dīngwèifrom 2y 8m1995-04-15#1丙午bǐngwǔfrom 12y 8m2005-04-15#2乙巳yǐsìfrom 22y 8m2015-04-15#3甲辰jiǎchénfrom 32y 8m2025-04-15#4癸卯guǐmǎofrom 42y 8m2035-04-15#5壬寅rényínfrom 52y 8m2045-04-15#6辛丑xīnchǒufrom 62y 8m2055-04-15#7庚子gēngzǐfrom 72y 8m2065-04-15#8己亥jǐhàifrom 82y 8m2075-04-15#9戊戌wùxūfrom 92y 8m2085-04-15#10age 2y 8mage 102y 8mMonth pillar 戊申 (no. 45). Yang year stem 壬 + female = reverse, so each block steps one place BACK through the sixty:45 → 44 → 43 …
Ten blocks of ten years, stepping backwards through the sixty from the month pillar. Had the subject been male, the same birth would run forwards and start at 7 years 8 months instead.
The ten luck pillars, reverse direction, each one beginning 2 years 8 months after birth plus a multiple of ten years.
#PillarBegins at ageBegins on
1丁未 dīngwèi2y 8m1995-04-15
2丙午 bǐngwǔ12y 8m2005-04-15
3乙巳 yǐsì22y 8m2015-04-15
4甲辰 jiǎchén32y 8m2025-04-15
5癸卯 guǐmǎo42y 8m2035-04-15
6壬寅 rényín52y 8m2045-04-15
7辛丑 xīnchǒu62y 8m2055-04-15
8庚子 gēngzǐ72y 8m2065-04-15
9己亥 jǐhài82y 8m2075-04-15
10戊戌 wùxū92y 8m2085-04-15

The chart assembled

All four pillars, the hidden stems, the ten gods and the 纳音 labels, in the layout AstroDexa uses. Columns read year, month, day, hour from left to right; many Chinese charts print them in the other order, and nothing about the content changes either way.

YEARMONTHDAYHOUR
Stem壬rén · Yang Water戊wù · Yang Earth癸guǐ · Yin Water己jǐ · Yin Earth
Branch申shēn · Yang Metal · Monkey申shēn · Yang Metal · Monkey亥hài · Yin Water · Pig未wèi · Yin Earth · Goat
Hidden stems庚 gēng 60% · Direct Resource壬 rén 30% · Rob Wealth戊 wù 10% · Direct Officer庚 gēng 60% · Direct Resource壬 rén 30% · Rob Wealth戊 wù 10% · Direct Officer壬 rén 70% · Rob Wealth甲 jiǎ 30% · Hurting Officer己 jǐ 60% · Seven Killings丁 dīng 30% · Indirect Wealth乙 yǐ 10% · Eating God
Ten god劫财 jié cáiRob Wealth正官 zhèng guānDirect Officer— the Day Master itself七杀 qī shāSeven Killings
Na yin剑锋金 jiànfēng jīn“Gold of the Sword’s Edge”大驿土 dàyì tǔ“Earth of the Great Post-Road”大海水 dàhǎi shuǐ“Water of the Great Sea”天上火 tiānshàng huǒ“Fire in the Sky”
Sexagenaryno. 9 of 60no. 45 of 60no. 60 of 60no. 56 of 60

壬申 戊申 癸亥 己未. Day Master 癸 guǐ, Yin Water. Every correction that produced those eight characters is on the record: input 1992-08-15T15:30 in Asia/Shanghai, zone offset 480 minutes with no daylight saving in force, longitude correction −63.73 minutes, equation of time −4.42 minutes, local apparent solar time 14:21:50, hour standard apparent, zi-hour mode rollover, solar terms compared as UTC instants, hidden-stem weights flat, no southern-hemisphere adjustment.

That list is the point of the page. A BaZi chart is not a single unambiguous fact about a birth; it is a fact plus a handful of documented choices, and a chart that does not tell you the choices has not really told you anything you can check.

Where schools disagree

Where schools disagree, and what AstroDexa does about it.
QuestionPositions heldOur defaultWhy, and what we disclose
Year boundaryLìchūn, Lunar New Year, or the winter solsticeLìchūn, with no option to change itNot a live dispute inside BaZi. A calculator that rolls the year at Lunar New Year is wrong, not heterodox, so we do not offer it as a mode.
Zǐ-hour day boundaryRollover: the whole 23:00–01:00 window belongs to the next day. Split: 23:00–24:00 keeps the current day.RolloverBoth are implemented. The setting is named in the output every time, because the answer differs and the reader is entitled to know which one produced the chart.
Time standard for the hourApparent (true) solar time, mean local time, or the clock as writtenApparent solar timeLongitude-only and uncorrected are both available. A minority holds that correction is a modern administrative overlay; we disagree, and we say so rather than hiding the choice.
Southern-hemisphere birthsShift the month branch six months, swap it for its opposite branch, or leave it aloneNo adjustmentThree incompatible camps and no convincing resolution. We treat the solar terms as astronomy rather than weather, and we have not built the alternatives as options because we would not know which to recommend.
Hidden-stem weightingFlat percentages, or a day-count model that weights by position in the monthFlat percentagesWhich stems hide in which branch is settled. Only the arithmetic weight attached to them varies.
Comparing a birth to a solar termCompare in Beijing standard time, or in the birthplace’s own true solar timeCompare instants in UTCTwo moments are either in order or they are not, whatever clock you read them on. This is equivalent to the majority practice and immune to the time zone argument.

The line we draw is between a dispute and a defect. The zi-hour boundary is a dispute: two positions, both with textual support, both held by working practitioners, so both are implemented and the choice is named on the output. Rolling the year at Lunar New Year is a defect: no school within BaZi holds it, and building it as an option would misrepresent the state of the question. Southern-hemisphere births sit awkwardly in between, with three incompatible answers and no way to choose among them that we found convincing, so we do the astronomically consistent thing and say plainly that it is unresolved.

Five things people get wrong

“My zodiac animal is my BaZi chart”

It is one character out of eight, and even that one is often wrong, because the animal year everybody knows is folk usage tied to Lunar New Year while the BaZi year pillar turns at Lichun. The animal-year tradition is also far older than the four-pillar method and developed separately. They share vocabulary, not machinery.

“The BaZi year changes at Chinese New Year”

Covered above, and worth repeating because it is the single most common error in free calculators. Lichun, roughly 4 February, computed from the sun’s position to the minute.

“BaZi, the Chinese zodiac and Western astrology are the same idea in different clothes”

Three different things. The zodiac animal is one label covering a whole year. Western astrology measures planets against houses and angles. BaZi takes a calendar position and evaluates it through five-element relationships, with no celestial geometry anywhere in the method. Sharing the words “element” and “sign” with another tradition does not make the mechanics the same.

“A BaZi reading tells you your fixed fate”

This page has computed a chart and named its parts. What a practitioner does with it afterwards is a separate discipline, it is argued over, and there are four classical texts above that disagree with each other about how to go about it. The derivation is arithmetic. The reading is not, and any tool that blurs the two is selling you a confidence it has not earned.

“There is one official answer from a BaZi calculator”

No. Run the same birth through three calculators and you can easily get three charts, because of the zi hour, because of true solar time, because one of them rolls the year at the wrong boundary. The difference between a tool you can trust and one you cannot is not that the first has no defaults. It is that the first tells you what they were.

Run your own

AstroDexa computes full BaZi charts from an exact birth moment: all four pillars, hidden stems, ten gods, na yin and the ten-year luck pillars, with true solar time applied by default, both zi-hour schools available, and every correction it applied listed underneath the chart. It sits alongside the Western and Vedic tools in the same app, on the same charts.

Open AstroDexa


Chinese terms are given in simplified characters with Hanyu Pinyin. The worked example was computed with AstroDexa’s own calculation engine and is reproduced without alteration. Where sources conflict, particularly on the history, the conflict is stated rather than resolved. If something here is wrong, write to support@astrodexa.com and we will fix it.