How to Calculate the Year and Month Pillars in BaZi

To calculate the Year and Month pillars in BaZi you need two markers: the year changes at the Start of Spring, not at lunar New Year, and the month changes at the twelve jie solar terms, not with the lunar calendar. The Year pillar comes from one division (the year minus 4, divided by 60, then the remainder divided by 10 and by 12). The Month pillar has a branch fixed by the term, and its stem follows from the stem of the Year pillar through the five-group “Five Tigers” table. This guide does both on the sample chart born at 08:00 on 25 March 2003, checks the year formula against the Mingli Atlas calculator on 201 years between 1900 and 2100, prints all sixty Month pillars for the five groups of year stems, and shows that the Year and Month pillars change in the very same minute at the Start of Spring. Together with the guide to the Day and Hour pillars you then have all four pillars. The guide covers how to calculate, not which pillar is good or bad.
How is the Year pillar calculated?
Take the BaZi year minus 4 and divide by 60, keeping the remainder r; the stem is the remainder of r divided by 10 and the branch is the remainder of r divided by 12, counted from 0 in the order Jia, Yi, Bing, Ding, Wu, Ji, Geng, Xin, Ren, Gui and Zi, Chou, Yin, Mao, Chen, Si, Wu, Wei, Shen, You, Xu, Hai. The “BaZi year” is the calendar year if you were born at or after the Start of Spring and the previous year if you were born before it. For 2003 (born on 25 March, after the Start of Spring): 2003 minus 4 is 1999, which leaves 19 when divided by 60. Dividing 19 by 10 leaves 9, which is Gui; dividing by 12 leaves 7, which is Wei. The Year pillar is Gui Wei, the same as the calculator gives.

Six years to try yourself. The last column comes from the Mingli Atlas calculator, taking 1 July of each year so that the Start of Spring is certainly past.
| Year | Year minus 4 | r | Year pillar by the formula | Year pillar by the calculator |
|---|---|---|---|---|
| 1984 | 1,980 | 0 | Jia Zi | Jia Zi |
| 2000 | 1,996 | 16 | Geng Chen | Geng Chen |
| 2003 | 1,999 | 19 | Gui Wei | Gui Wei |
| 2024 | 2,020 | 40 | Jia Chen | Jia Chen |
| 2026 | 2,022 | 42 | Bing Wu | Bing Wu |
| 2027 | 2,023 | 43 | Ding Wei | Ding Wei |
The formula is not right for these six years alone. Mingli Atlas worked out every year from 1900 to 2100, 201 years in all, and compared each with the calculator: not one year differed. What still needs care is the year boundary, because the formula is only correct once you have chosen the right BaZi year.
When does the BaZi year change?
The year changes at the exact moment of the Start of Spring, to the minute, not at lunar New Year or on 1 January. The Start of Spring in 2024 fell at 15:27 on 4 February, Vietnam time, and two charts born two minutes apart around that moment show it:
| Birth time | Year pillar | Month pillar |
|---|---|---|
| 4 February 2024 at 15:26 | Gui Mao | Yi Chou |
| 4 February 2024 at 15:28 | Jia Chen | Bing Yin |
Two minutes change both the Year and the Month pillar, because the Start of Spring opens the new year and the Yin month at once. Someone born after lunar New Year but before the Start of Spring still carries the Year pillar of the previous year; this and the difference from Zi Wei are analysed in the Zi Wei vs BaZi guide.

How do you get the stem and branch of the Month pillar?
The branch of the Month pillar is fixed by the term, and its stem follows from the stem of the Year pillar. The twelve terms that open the months are Start of Spring (Yin), Awakening of Insects (Mao), Clear and Bright (Chen), Start of Summer (Si), Grain in Ear (Wu), Minor Heat (Wei), Start of Autumn (Shen), White Dew (You), Cold Dew (Xu), Start of Winter (Hai), Major Snow (Zi) and Minor Cold (Chou); the exact date and time of each term for 2026 to 2028 are in the guide to solar terms and the Month pillar. The Yin month opens the BaZi year, so the stem of the Yin month fixes all the others:
| Stem of the Year pillar | Stem of the Yin month | Yin-month pillar |
|---|---|---|
| Jia or Ji | Bing | Bing Yin |
| Yi or Geng | Wu | Wu Yin |
| Bing or Xin | Geng | Geng Yin |
| Ding or Ren | Ren | Ren Yin |
| Wu or Gui | Jia | Jia Yin |
A quick way to remember it: number the stems from 0 (Jia 0, Yi 1, and so on up to Gui 9), take the number of the year stem modulo 5, double it, add 2 and take the result modulo 10. A Gui year is 9, which leaves 4 modulo 5; doubled that is 8, plus 2 is 10, which leaves 0 modulo 10: Jia. So the Yin month of a Gui year is Jia Yin, and each later month adds one stem. The sample chart was born after Awakening of Insects (6 March) and before Clear and Bright (5 April), in the Mao month, so the Month pillar is Yi Mao. All twelve months for the five groups of year stems:
| Year stem | Yin | Mao | Chen | Si | Wu | Wei | Shen | You | Xu | Hai | Zi | Chou |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Jia, Ji | Bing Yin | Ding Mao | Wu Chen | Ji Si | Geng Wu | Xin Wei | Ren Shen | Gui You | Jia Xu | Yi Hai | Bing Zi | Ding Chou |
| Yi, Geng | Wu Yin | Ji Mao | Geng Chen | Xin Si | Ren Wu | Gui Wei | Jia Shen | Yi You | Bing Xu | Ding Hai | Wu Zi | Ji Chou |
| Bing, Xin | Geng Yin | Xin Mao | Ren Chen | Gui Si | Jia Wu | Yi Wei | Bing Shen | Ding You | Wu Xu | Ji Hai | Geng Zi | Xin Chou |
| Ding, Ren | Ren Yin | Gui Mao | Jia Chen | Yi Si | Bing Wu | Ding Wei | Wu Shen | Ji You | Geng Xu | Xin Hai | Ren Zi | Gui Chou |
| Wu, Gui | Jia Yin | Yi Mao | Bing Chen | Ding Si | Wu Wu | Ji Wei | Geng Shen | Xin You | Ren Xu | Gui Hai | Jia Zi | Yi Chou |
Two stems five steps apart share a row, so ten year stems need only five rows. The last two months of each row, Zi and Chou, belong to the BaZi year being calculated even though they fall in December and January: someone born in January 2004 before the Start of Spring still uses the row of the year 2003. The luck pillars start from the Month pillar; see the luck pillar guide.
Putting the four pillars together for the sample chart
The three guides join into one procedure. For a birth at 08:00 on 25 March 2003 in Hanoi:
| Pillar | How it is found | Result |
|---|---|---|
| Year | After the Start of Spring, so the year 2003; (2003 − 4) divided by 60 leaves 19 | Gui Wei |
| Month | After Awakening of Insects, so the branch Mao; a Gui year makes the Yin month Jia Yin | Yi Mao |
| Day | (JDN + 49) divided by 60 leaves 33 | Ding You |
| Hour | 08:00 is the Chen double-hour; a Ding day makes the Zi hour Geng Zi | Jia Chen |
The first two pillars change with solar terms and the last two with the day and the hour; so the Year and Month pillars need the exact moment of the term, while the Day and Hour pillars need the standard time of the birthplace. With the four stems in hand, the Day Master is the stem of the Day pillar, and the other stems are named relative to it by how to find the Ten Gods.
How to calculate the Year and Month pillars step by step
- Find the exact date and time of the Start of Spring in the birth year; if the birth is earlier, the BaZi year is the previous year.
- Work out (BaZi year − 4) divided by 60, keep the remainder, then read the stem (divide by 10) and branch (divide by 12) of the Year pillar.
- Find the latest month-opening term before the birth time to get the branch of the Month pillar, in the order Yin to Chou.
- Look up the stem of the Yin month in the five-row table by year stem, then add one stem for each month up to your branch.
- Compare the result with a chart from a calculator; if it differs, check the standard time of the birthplace and whether the Start of Spring has passed.
Common mistakes
- Changing the year at lunar New Year or on 1 January instead of at the Start of Spring.
- Choosing the branch of the Month pillar from the lunar month instead of the solar term.
- Picking the wrong Five Tigers row by using the stem of the calendar year instead of the BaZi year.
- Counting the Chou month of someone born in early January with the year that just began, when it belongs to the previous BaZi year.
- Ignoring the exact time of the term when the birth falls close to one.
A chart is a frame for reflecting on yourself, not a certain prediction. The rule for choosing the month also decides the month command; see the month command guide. The order of the ten stems and twelve branches is in the heavenly stems guide and the earthly branches guide. For how this site calculates a chart, see the methodology, and for your own four pillars, calculate your BaZi chart.
Keep reading
From reading to your chart
See your own chart
Free BaZi and Zi Wei charts, read against the classical texts, with no email needed.


