Free tool · No account required

BaZi Chart Calculator

Enter a birth date and time to see the four pillars, the hidden stems inside each branch, the ten gods and the five-element count. The full result is always shown — nothing is held back.

Leave as is if unknown
Used for true solar time. The longitude is looked up for you — no need to find it.
Used only for the luck pillars
Advanced: true solar time, daylight saving, manual longitude
Only needed for places the city list does not cover.
China observed DST from 1986 to 1991; those dates are detected and corrected.

Your chart

Five-element count stems, branches and hidden stems counted separately

Ten gods counted against the day master

Structure

Solar terms and luck start

Luck pillars ten years each, ten steps

Stem and branch relations combinations, clashes, punishments, harms

What this calculator does

It converts a birth moment into the four pillars — year, month, day and hour — and then derives the structural information that any BaZi study begins from: the stems and branches, the hidden stems inside each branch, the ten gods relative to the day master, the count and percentage of the five elements, the nayin and twelve stages of each pillar, the void branches of the day pillar, the surrounding solar terms, the ten luck pillars, and the combinations, clashes, punishments and harms among the four pillars.

It does not interpret the result. There is no reading, no prediction and no judgement about a person. That is why you will not find a line here saying "the day master is weak, so use resource" — deciding that is a further step, and a tool should not make it for you.

Why the year does not start on 1 January

The BaZi year begins at Lichun (立春), the start of spring, which falls around 4 February. A birth on 20 January belongs to the previous year's pillar even though the calendar says otherwise. This single rule accounts for a large share of beginner errors.

Why the month is not the calendar month

Months are defined by solar terms, roughly every 30° of solar longitude. The month begins at the term, not on the 1st. Someone born on 3 March and someone born on 10 March may sit in different month pillars.

True solar time: a city name is enough

The time on a birth certificate is clock time, not the time the chart uses. The two differ by longitude. China runs the whole country on the 120°E meridian, but Urumqi sits at 87.6°E — the sun crosses its meridian more than two hours later than Beijing's. Four minutes per degree adds up fast.

So this calculator asks for a city name and looks the longitude up itself. Beijing is −14 minutes, Shanghai +6, Urumqi −130. That last one is more than two hours — enough to move the birth into a different hour branch entirely.

China also observed daylight saving from 1986 to 1991. For births in those summers the clock ran one hour ahead of standard time and that hour has to come back off. Leave the setting on "detect automatically" and it is handled per date.

If the birth time is unknown, choose "skip the hour pillar". The other three pillars are still valid — but note that the counts and the element percentages will then be one pillar short, so do not compare them directly with a four-pillar chart.

Zodiac animals and year branches

The animal in the subtitle follows Lunar New Year — that is the zodiac most people mean when they say what year they were born in. The year pillar, however, follows Lichun. In most years these fall within days of each other, but a birth in the gap between them produces two different animals.

For example, someone born on 25 January 1993 is a Rooster by Lunar New Year, but their year pillar is 壬申 — a Monkey, because Lichun had not yet arrived. When this happens the result above states both and explains which is which. It is not an error, and neither figure is being fudged.

Which convention this uses

This calculator uses the early zi hour convention (早子时): the day changes at 23:00, so a birth at 23:30 belongs to the following day's pillar. The hour branch is 子 in either convention; what differs is the day pillar, and therefore the day master.

Some schools instead use the late zi hour (晚子时), which keeps the day pillar on the original date and only borrows the following day's stem for the hour. For births between 22:00 and 23:00, or outside that hour, both conventions agree.

How the luck pillars are derived

A yang year with a male chart runs forward; a yin year with a male chart runs backward. Female charts reverse both. Forward or backward, you step from the month pillar one place at a time, ten years per step.

The starting age is measured from birth to the nearest jie (节): three days to a year, one day to four months. That is why one person starts at age one and another at eight — it depends entirely on how far the birth falls from a solar term.

The year shown for each pillar comes from the start date, not from the birth year plus the starting age. If one year and ten months remain after the whole years are taken, the month rolls the date into the following year. Software that rounds the start month differently can therefore disagree by a year.

What nayin, the twelve stages and void branches mean

纳音 Nayin
A second element classification: each pair of consecutive sexagenary positions shares a name such as 海中金 "gold in the sea". It is used differently from the ordinary five elements, and traditional texts layer the two rather than merging them.
十二长生 Twelve stages
How strong the day master is at each branch, running Birth, Bath, Cap, Office, Peak, Decline, Illness, Death, Tomb, Extinction, Conception, Nurture. Office and Peak are the strongest. Yang stems run forward through the cycle, yin stems backward.
空亡 Void branches
The two branches missing from the ten-day cycle that the day pillar belongs to. Readings that land on them are traditionally treated as thinner or less settled. It is a reference marker, not a hard rule — which is why the tool marks whether any of your branches fall there and says nothing more.

Relations are listed, not judged

Combinations, clashes, punishments and harms are objective structural facts about the four pillars, and the tool finds them. But which one matters, and how much, is not decided here. That needs the whole chart in view, and it belongs to interpretation.

Where the numbers come from

The solar-term table covers 1900–2100 at second-level precision and was generated from an astronomical ephemeris rather than approximated. The engine has been checked against 3,764 reference charts, including births within one minute of a solar term and on both sides of the 23:00 boundary.

Beyond the four pillars, the nayin, twelve stages, void branches and luck pillars were each checked against 400 additional charts from the same ephemeris library. Nayin, stages and void branches match on every one. Luck start years match on 398 of 400 — the two exceptions fall in late December, where rounding the leftover start month decides whether the year advances.

All calculation happens in your browser. Nothing you type is sent anywhere — there is no server call, no logging and no account.

Terms used above

日主 Day master
The stem of the day pillar. Every ten god in the chart is named by its relationship to this one stem.
藏干 Hidden stems
Each branch conceals one to three stems. A full element count includes them, and most of a chart's ten gods are derived from them rather than from the visible four.
十神 Ten gods
Ten names for how another stem relates to the day master — five relationships, each split by whether the polarities match.
大运 Luck pillars
The ten-year periods derived from the month pillar, stepped forward or backward according to the year stem and gender.
当令 In season
The day master's element matches the element of the season set by the month branch.
通根 Roots
The day master's element appears in one of the branches, either as the branch itself or inside its hidden stems.

Want to lay this out by hand?

The chart above is the result. Working through it yourself is how you learn to check a result — and to spot when one is wrong.

See the worksheet