Tian Gan Di Zhi Converter (天干地支)

Share:
Chinese Culture & Almanac

Tian Gan Di Zhi Converter (天干地支)

Any date → 60甲子 stem-branch

By Checked against sources by Last reviewed BAZI CALENDAR LUNAR CALENDAR
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Tian Gan Di Zhi Converter (天干地支)

Read as UTC+8, the clock Beijing, Singapore, Kuala Lumpur, Hong Kong and Taipei share today. Older clock times may need converting first: Singapore ran on UTC+7:30 from 1945 to the end of 1981.

The sixty-pair cycle

Pick any pair, or type one from a family register, gravestone or old book, to see which years it can mean. Tags show the pillars for the date above.

Years, 1701–2100
Each year listed runs from about February to about February of the next.
Next days with this pair
📅 Research current as of 03 Nov 2026 · Sources: Lunar New Year and solar-term dates: the site’s lunisolar calendar calculation, tested against Hong Kong Observatory tables for 1901 to 2100. The Observatory prints no day or month pairs, so the pairs are checked against sample dates from Korea’s KASI and, on every date, the lunar-javascript library. Official year rule: Hong Kong Observatory, 15 Feb 2018. History: ‘Sexagenary cycle’, Wikipedia, read 2 Nov 2026.
Standards, published formulas, and reference data are revised over time — check against a current authoritative source before relying on these figures.
Advertisement
After results · AD-W1 Responsive

How the count works

Ten stems and twelve branches pair off in step, and the cycle closes after 60 because that is the lowest common multiple of 10 and 12. Odd positions meet only odd positions, which is why 甲子 exists and 甲丑 does not.

PillarTurns atRule
YearThe instant of LichunThis is the bazi rule. The lunar year, which the Hong Kong Observatory and the official calendar use, starts at Lunar New Year instead. Either date can come first, up to about two weeks apart (16 days at most in 1901–2100), so they can disagree between about 21 January and 19 February.
MonthEach of the twelve jie termsEach jie opens a month. The year stem sets the month stems: the 寅 month of a 甲 or 己 year is 丙寅.
DayMidnightA plain sixty-day count, tied to neither sun nor moon. Schools that start the day at 23:00 change it an hour earlier.
HourEach odd hourTwo-hour blocks. The day stem sets the hour stems.

The ten stems

StemPinyinYin-yang and element
甲jiǎYang Wood
乙yǐYin Wood
丙bǐngYang Fire
丁dīngYin Fire
戊wùYang Earth
己jǐYin Earth
庚gēngYang Metal
辛xīnYin Metal
壬rénYang Water
癸guǐYin Water

The twelve branches

BranchPinyinAnimalHoursMonth opens at
子zǐRat23:00–00:59Major Snow
丑chǒuOx01:00–02:59Minor Cold
寅yínTiger03:00–04:59Start of Spring
卯mǎoRabbit05:00–06:59Awakening of Insects
辰chénDragon07:00–08:59Pure Brightness
巳sìSnake09:00–10:59Start of Summer
午wǔHorse11:00–12:59Grain in Ear
未wèiGoat13:00–14:59Minor Heat
申shēnMonkey15:00–16:59Start of Autumn
酉yǒuRooster17:00–18:59White Dew
戌xūDog19:00–20:59Cold Dew
亥hàiPig21:00–22:59Start of Winter

Years known by their pair

Events across East Asia and Vietnam are still named after the year they happened in. Pick a pair to open it in the grid.

PairYearEventWhere
672Jinshin WarJapan
1592Imjin WarKorea
1868Boshin WarJapan
1882Imo IncidentKorea
1894First Sino-Japanese WarChina
1898Hundred Days’ ReformChina
1901Boxer ProtocolChina
19111911 RevolutionChina
1945Vietnamese famine of 1945 (Ất Dậu)Vietnam
1968Tet Offensive (Mậu Thân)Vietnam

From days to years

The cycle first counted days, on the oracle bones of the late Shang dynasty. Counting years came much later: the earliest example found so far is in the silk manuscripts from Mawangdui tomb 3, sealed in 168 BC, and it became common under the Western Han.

Advertisement
After how-to · AD-W2 Responsive

Questions

  • This happens between about 21 January and 19 February. The year pillar here turns at Lichun, the bazi rule. The official calendar and lunar calendars turn at Lunar New Year. When they differ, the result shows both years and the date each one starts.
  • This gives the four pillars themselves, for looking up dates and checking records. For ten gods, hidden stems and the rest, use the bazi chart tool.
  • No. The time you enter is read as UTC+8, with no longitude correction. Solar-term times use UTC+8 from 1929 and Beijing mean time (UTC+7:45:40) before that. Some bazi schools adjust the time for the place of birth.
  • Schools change the day at different moments. Here it changes at midnight, so 23:30 on 1 January 2000 is a 戊午 day with a 甲子 hour. Schools that start the day at 23:00 give a 己未 day, with the same 甲子 hour.
  • Date conversion covers 1901 to 2100, the span we can check against the Hong Kong Observatory tables. The grid lists years back to 1701 because the year count is plain arithmetic.
  • No. It all runs in your browser.

Method & sources

How it computes

All pillars follow one rule, the bazi one. The year turns at the instant of Lichun and each month at its jie solar term, from the Sun's apparent longitude at UTC+8, or Beijing mean time before 1929. The month stem follows the year stem, the day is a 60-day count that turns at midnight, and the hour stem follows the day stem. The official Lunar New Year year is shown beside it when the two differ. Valid 1901 to 2100.

What this tool implements

  • Corrected 2026-10-21 in all three languages: the page claimed a '99.99% match with the National Astronomical Observatory of China official tables' and 'the same source as the Purple Mountain Observatory official tables'. Neither had a source. The method is now stated as it is: the lunar-javascript library, whose code computes solar terms with ShouXingUtil. The fact also offered to verify ganzhi dates in classical texts while the tool covers only 1900-2100; that line and the pre-1900 FAQ answer were rewritten.
  • Corrected 2026-11-03 in all three languages: the 23:00 note now gives the documented split, whether the day changes, in place of an hour reading with no source. UTC+8 is stated as today's clock with Singapore's UTC+7:30 years named, Lichun is named as the bazi rule beside the official Lunar New Year rule, and the pairs are now tested against KASI samples and lunar-javascript because HKO prints none.

Sources

  • Hong Kong Observatory: Gregorian-Lunar Calendar Conversion Table, 1901 to 2100, for Lunar New Year and solar-term dates. It prints no day or month pairs: hko.gov.hk
  • Hong Kong Observatory forecaster blog, 15 Feb 2018: the official year pair changes at the first day of the first lunar month, and some astrology enthusiasts favour Lichun: hko.gov.hk
  • Korea Astronomy and Space Science Institute, lunar-solar conversion: year and day pairs and Julian days on 16 sampled dates, read 3 Nov 2026: https://astro.kasi.re.kr/life/pageView/8
  • lunar-javascript 1.7.7, an independent implementation: all four pillars compared at noon on every date from 1901 to 2100, with four term instants differing on the month: https://github.com/6tail/lunar-javascript
  • Meeus, J. Astronomical Algorithms, 2nd ed., 1998: solar longitude, nutation and new moons in the calendar engine.
  • Sexagenary cycle, Wikipedia: the cycle's history, the year count and the month stems, read 2 Nov 2026: https://en.wikipedia.org/wiki/Sexagenary_cycle
Advertisement
Pre-footer · AD-W3 728 × 90