Bazi to Gregorian converter
Convert between the sexagenary (Bazi) pillars and Gregorian dates: a date yields the year/month/day/hour pillars, and three or four pillars resolve back to candidate Gregorian years and dates. Solar terms use the common approximate dates; no true solar time and no precise solar-term calculation.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Accepts a Gregorian year (2024), a Gregorian date (2024-02-10, optionally with 11:30), a sexagenary year (甲辰) and three or four pillars (甲辰 丙寅 甲辰 庚午, also without spaces). The year pillar switches at 立春 ≈ Feb 4, the month pillar follows the 12 节, the day pillar uses JDN and the hour pillar uses 五鼠遁. Solar terms are the common approximations: no true solar time and no precise solar-term calculation.
Result
Calendar arithmetic only: year/month/day/hour pillars and candidate dates, with no fortune-telling claims.
Enter a Gregorian date, a sexagenary year or pillars to see the result
Characters: 0 · Output lines: 0
What this tool does
- Turn a birth date into the four sexagenary pillars (year pillar switches at 立春, month pillars follow the 12 节, day pillar uses JDN, hour pillar uses 五鼠遁) for almanac cross-checks.
- Resolve year/month/day (and optional hour) pillars back into candidate Gregorian years and dates within 1900-2100, for example 甲辰 丙寅 甲辰 庚午 → 2024-02-10 at the 午 hour.
- Map a sexagenary year to its Gregorian years: each name repeats every 60 years, so every candidate is listed instead of guessing one.
Example
Input
2024-02-10 11:30
Output
Gregorian 2024-02-10 11:30 → Four pillars 甲辰 丙寅 甲辰 庚午 Year pillar 甲辰(boundary: 立春 ≈ Feb 4)· Month pillar 丙寅(寅月) · Day pillar 甲辰(Julian day number, (JDN + 49) mod 60) · Hour pillar 庚午(午 hour 11:00–12:59) Notes: Month boundaries use the common approximate dates (立春 Feb 4, 惊蛰 Mar 6, …) which can differ from the astronomical value by ±1 day, so results near a boundary carry a ±1 day uncertainty. True solar time, precise solar-term calculation, the lunar calendar and time zones are **not** handled. The sexagenary day count follows JDN and has been checked against public almanacs (1949-10-01 甲子, 2024-01-01 甲子, 2024-02-10 甲辰).
Cross-checked with public almanacs: 2024-02-10 11:30 is 甲辰 year, 丙寅 month, 甲辰 day, 庚午 hour — and entering “甲辰 丙寅 甲辰 庚午” returns 2024-02-10.
Frequently asked questions
Is this a complete and precise Bazi date solver?
No. Month boundaries use the common approximate dates of the twelve 节 (立春 Feb 4, 惊蛰 Mar 6, 清明 Apr 5 … 小寒 Jan 6), which can be off by one day from the astronomical value, so results near a boundary carry a ±1 day uncertainty. True solar time correction (longitude and equation of time), minute-level solar-term calculation and lunar-calendar conversion are all out of scope. Use the dedicated Bazi/lunar tools on this site when you need those.
Why are there several candidate years or dates?
The sexagenary cycle repeats every 60 years, so a year pillar maps to about four Gregorian years inside 1900-2100 (甲辰 → 1904, 1964, 2024, 2084). The day cycle repeats every 60 days while a month window is under 60 days, so at most one day matches per candidate year. Every candidate is listed; the tool never guesses a single answer.
Where does the sexagenary data come from?
From published calendrical rules: the year pillar is (Gregorian year - 4) mod 60 (1984 is 甲子, as in public references); the month stem uses 五虎遁 (“甲己之年丙作首”); the day pillar uses the Julian day number with index = (JDN + 49) mod 60; the hour stem uses 五鼠遁 (“甲己还加甲”) with 23:00 starting the next day. The day count has been checked against public almanacs: 1949-10-01 甲子, 2024-01-01 甲子, 2024-02-10 甲辰.
Why does it report inconsistent pillars?
Traditionally the month stem is determined by the year stem (五虎遁) and the hour stem by the day stem (五鼠遁). For example, an 甲 year in the 寅 month is necessarily 丙寅, so a combination like 甲辰 乙丑 cannot exist; the tool reports an error instead of inventing a date.
Which inputs are supported?
A Gregorian year (1-9999, such as 2024), a Gregorian date (1900-2100, such as 2024-02-10 or 2024-02-10 11:30), a sexagenary year (甲辰 or 甲辰年) and three or four pillars (甲辰 丙寅 甲辰 庚午, with or without spaces). Anything else returns “unsupported”.
Keywords:bazi to datesexagenary cyclebazi2date