Insights Column

How to Calculate BaZi Heavenly Stems and Earthly Branches? A Complete Guide to the Year, Month, Day, and Hour Pillars

Metaphysics Basics August 13, 2026 Hermit Humor ~9 min read 7 views

The first step in learning BaZi is always mastering the calculation of the Heavenly Stems and Earthly Branches. BaZi, at its core, refers to the Four Pillars—Year, Month, Day, and Hour—each pillar paired with one Heavenly Stem and one Earthly Branch, for a total of eight characters. This is where the term "Eight Characters of Birth" (Sheng Chen Ba Zi) comes from.

Many beginners rely entirely on chart-generating tools without understanding the underlying calculation logic. While convenient, tools can leave one without a basic sense of the energy of the Stems and Branches and the flow of the Five Elements. Without understanding the calculations, you cannot grasp the foundation of the chart's structure, and any later reading of strength, favorable/unfavorable elements, or chart patterns will remain superficial.

Calculating the Heavenly Stems and Earthly Branches may seem to involve complex formulas, but underneath lies the natural flow of heaven, earth, and the four seasons. The traditional method of deriving the Stems and Branches doesn't seek complexity—it seeks alignment with the natural way. Today, in plain and practical terms, we'll fully explain the complete calculation logic, orthodox formulas, and practical details of the Four Pillars, so that even complete beginners can manually calculate a full BaZi chart step by step.

I. Basic Understanding: Grasping the Core Nature of the Heavenly Stems and Earthly Branches

Before calculating, you must first understand the core fundamentals. All derivation, calculation, and interpretation in BaZi rely on these two symbol systems—they form the underlying foundation of Yi-ology fate calculation.

  1. The Ten Heavenly Stems

Jia, Yi, Bing, Ding, Wu, Ji, Geng, Xin, Ren, Gui

The Heavenly Stems govern the qi of heaven, one's outward aura, and visible traits—representing a person's external state, manner of conduct, and the ups and downs of external fortune. The cycling of the ten Stems corresponds to the shifting yin-yang, warmth-coldness, and motion-stillness of the Five Elements.

  1. The Twelve Earthly Branches

Zi, Chou, Yin, Mao, Chen, Si, Wu, Wei, Shen, You, Xu, Hai

The Earthly Branches govern the roots of earth, one's inner foundation, and hidden strength—representing a person's inner disposition, latent resources, underlying fortune, and life foundation. The Hidden Stems within the Branches, along with their Punishments, Clashes, Combinations, and Harms, are the core keys to changes in a BaZi chart's structure.

  1. The Cyclical Pattern of Stems and Branches

The ten Heavenly Stems and twelve Earthly Branches are paired in a fixed sequence—Yang Stems with Yang Branches, Yin Stems with Yin Branches—cycling repeatedly. A complete cycle is the Sixty Jiazi, meaning a full 60-year cycle. The Stems and Branches of the year, month, day, and hour all follow this same cyclical pattern.

II. Calculating the Year Pillar: Determining the Innate Root of Destiny

The Year Pillar represents the root of one's innate destiny and original aura—it sets the overall tone of the BaZi chart. Most people mistakenly believe the Year Pillar changes at the Lunar New Year. In fact, orthodox fate calculation uses the Start of Spring (Li Chun) solar term as the dividing point of the year: before Li Chun belongs to the previous year, and after Li Chun belongs to the new year. This is the core detail beginners get wrong most often.

  1. Quick Method for the Year's Heavenly Stem (Based on the Gregorian Year)

Take the last digit of the Gregorian year and match it to the corresponding fixed Heavenly Stem:

4 = Jia, 5 = Yi, 6 = Bing, 7 = Ding, 8 = Wu, 9 = Ji, 0 = Geng, 1 = Xin, 2 = Ren, 3 = Gui

  1. Quick Method for the Year's Earthly Branch

Subtract 3 from the Gregorian year, divide by 12, and match the remainder to the corresponding Earthly Branch:

Remainder 1 = Zi, 2 = Chou, 3 = Yin, 4 = Mao, 5 = Chen, 6 = Si, 7 = Wu, 8 = Wei, 9 = Shen, 10 = You, 11 = Xu, 0 = Hai

  1. Worked Example

Take the year 2026 as an example: the last digit is 6, so the Heavenly Stem is Bing. 2026 - 3 = 2023, and 2023 ÷ 12 leaves a remainder of 7, so the Earthly Branch is Wu. The complete Year Pillar is Bing Wu.

Key insight: The Year Pillar is the root—it sets the innate background aura for one's entire life. The Five Elements of the Stem-Branch combination directly establish the initial structure of the destiny chart.

III. Calculating the Month Pillar: Determining the Rise and Fall of Seasonal Qi

The Month Pillar represents the seasonal aura and the fortune of a given life stage—it is the core reference for judging the strength or weakness of the Day Master. The Earthly Branch of the Month Pillar is fixed according to the four seasons and requires no calculation. Only the Heavenly Stem of the month needs to be derived from the Year Stem, using the traditional Five Tiger Escape (Wu Hu Dun) formula, which is universally accurate across all years.

  1. The Orthodox Five Tiger Escape Formula

In years of Jia or Ji, Bing starts the sequence; in years of Yi or Geng, Wu leads the way. In years of Bing or Xin, seek Geng as the start; in years of Ding or Ren, Ren-Yin flows onward. Where does Wu or Gui begin? Look to Jia-Yin to find the answer.

  1. Core Rules

Each year, the Yin month (starting from Li Chun) is the starting point of the month cycle. Use the formula to determine the Heavenly Stem of the first month, then advance the Stems for subsequent months in sequence, while the Branches remain fixed.

Fixed Branch correspondence: 1st month = Yin, 2nd month = Mao, 3rd month = Chen, 4th month = Si, 5th month = Wu, 6th month = Wei, 7th month = Shen, 8th month = You, 9th month = Xu, 10th month = Hai, 11th month = Zi, 12th month = Chou.

  1. Worked Example

In Jia or Ji years, the 1st month is Bing-Yin, the 2nd is Ding-Mao, the 3rd is Wu-Chen, and so on in sequence. In Yi or Geng years, the 1st month is Wu-Yin, the 2nd is Ji-Mao, and the sequence continues accordingly.

Important reminder: The Month Pillar changes according to solar terms, not the first day of the lunar month. Li Chun marks the change to the 1st month, Jing Zhe to the 2nd month, Da Xue to the 12th month, and so on. The exact moment a solar term arrives is when the seasonal aura shifts—this is a core principle of orthodox Zi Ping BaZi.

IV. Calculating the Day Pillar: Determining One's Core Aura

The Day Pillar is the core of the BaZi chart, representing the individual themselves. It governs one's core temperament, chart structure, and the direction of fortune throughout life—it carries the highest precision and the greatest influence.

Unlike the simple patterns of the Year and Month Pillars, the Day Pillar follows the Sixty Jiazi cycle day by day, with no simple mental formula. It is the only one of the Four Pillars that cannot be quickly calculated by formula alone.

Core Calculation Method

In practice, the most accurate method is to consult an orthodox perpetual calendar (Wan Nian Li) and look up the Stem-Branch combination for the corresponding Gregorian or lunar date. Fate calculators, past and present, have all used this method, which carries zero margin of error.

Note: the Day Pillar changes at the boundary of the Zi hour (11:00 p.m.), not at midnight. Anything after 11:00 p.m. is counted as the following day's Day Pillar—this is a key detail that trips up many beginners.

V. Calculating the Hour Pillar: Determining Later Life and Personal Affairs

The Hour Pillar represents fortune in later life, one's relationship with children, outward expression, and the finer details of how one handles affairs—it is also the final pillar of the four. The Earthly Branch of the Hour Pillar is fixed by the birth hour, while the Heavenly Stem is derived from the Day Stem, using the traditional Five Rat Escape (Wu Shu Dun) formula, which is simple, memorable, and always accurate.

  1. The Orthodox Five Rat Escape Formula

For Jia or Ji days, add Jia; for Yi or Geng days, Bing is the start. For Bing or Xin days, begin from Wu; for Ding or Ren days, Geng-Zi is the seat. Where do Wu or Gui days begin? Ren-Zi is the true path.

  1. Fixed Hour-to-Branch Correspondence Table

Zi hour: 23:00-00:59; Chou hour: 01:00-02:59; Yin hour: 03:00-04:59; Mao hour: 05:00-06:59; Chen hour: 07:00-08:59; Si hour: 09:00-10:59; Wu hour: 11:00-12:59; Wei hour: 13:00-14:59; Shen hour: 15:00-16:59; You hour: 17:00-18:59; Xu hour: 19:00-20:59; Hai hour: 21:00-22:59

  1. Practical Application

Use the day's Heavenly Stem to determine the Stem of the Zi hour, then advance through the subsequent hours in sequence. For example, on a Jia or Ji day, the Zi hour is Jia-Zi, the Chou hour is Yi-Chou, the Yin hour is Bing-Yin, and so on—arranging them in order gives you the complete Hour Pillar.

VI. Three Common Mistakes Beginners Make When Calculating Stems and Branches

Many people produce inaccurate charts or misread chart structures, not because they can't calculate, but because they overlook the traditional boundary rules. Here are three core mistakes to avoid.

Mistake 1: Changing the Year at the Lunar New Year, or the Month at the Start of the Lunar Month

The cycling of Stems and Branches in fate calculation follows the qi of heaven, earth, and the solar terms—not human-made calendars. The Year Pillar changes at Li Chun, and the Month Pillar changes with the solar terms. The first day of the lunar month is merely a calendrical marker, not a point where the aura shifts. Charting by this rule will inevitably produce errors.

Mistake 2: Changing the Day Pillar at Midnight

In the natural order, a day begins at the Zi hour, not at midnight. 11:00 p.m. marks the start of a new day—if someone is born after 11:00 p.m., both the Day Pillar and Hour Pillar must be shifted to the following day. This has been the consistent conclusion of fate calculators throughout history.

Mistake 3: Memorizing Formulas Rigidly Without Flexibility

Formulas and mnemonics are tools—the core lies in following the cyclical pattern of the Sixty Jiazi. When encountering the transition of solar terms or the boundary between hours, one cannot apply the rules rigidly; the exact moment the qi shifts must be the core basis for calculation.

VII. A Deeper Perspective: The True Meaning of Calculating Stems and Branches

Many mistakenly believe that learning to calculate the Stems and Branches is only for manually charting a BaZi. In fact, this is not the case. The process of calculation is itself a process of understanding the flow of the Five Elements, the rise and fall of the four seasons, and the qi of heaven and earth.

The Heavenly Stems reveal outward tendencies, while the Earthly Branches conceal inner causes. The Year Pillar establishes the foundation, the Month Pillar sets the aura, the Day Pillar defines the self, and the Hour Pillar determines one's ultimate destination. The Stems and Branches of the Four Pillars build upon one another, layer by layer, forming the complete aura of the destiny chart. All analysis of strength and weakness, chart structure, favorable and unfavorable elements, and fortune derives from this foundation.

Tools can replace the mechanical work of charting, but they cannot replace a person's own sense of the aura of the Stems and Branches. Learning to calculate on your own is, at its core, about mastering the underlying logic of Yi-ology, so that all subsequent fate interpretation has a solid basis and traceable roots.

VIII. Conclusion: Follow the Way of the Stems and Branches to Understand the Roots of Fate Calculation

The Heavenly Stems and Earthly Branches are the cornerstone of Zhou Yi fate calculation, and the key that unlocks an understanding of life's fortunes. Calculating the Four Pillars may appear to be a matter of simple formulas and mnemonics, but it is, in truth, an alignment with the natural laws of heaven, earth, the four seasons, and yin-yang and the Five Elements.

Beginners need not rush toward advanced depth. First become familiar with the formulas, understand the boundary rules, and learn to calculate—only by solidifying this foundation can you progress further. Only by truly understanding the flow of the Stems and Branches can you see through the balance and imbalance of a destiny chart, and the difference between favorable and unfavorable trends—truly knowing when to advance and when to retreat, what to choose and what to let go, and how to act in harmony with the timing of heaven.

BaZi Heavenly Stems and Earthly BranchesFour Pillars CalculationBaZi Chart Beginner Guide

Articles in this column are for cultural and educational purposes only and do not constitute life advice.