Sexagenary pillars calculator
Compute the sexagenary pillars: the year pillar switches at Start of Spring, the month pillar at the twelve sectional terms (Yin month first), the day pillar from the Julian day number (JDN + 49 mod 60), and the hour pillar via the five-rat rule which needs a clock time and treats 23:00 as the next day. A bare Gregorian year returns the year pillar only, and the result says so.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Result
The pillars come with the rules used.
Enter a date to compute the pillars
Pillars: 0 · Year only: 0 · Lunar year: 0 · Hour index: 0
What this tool does
- Build the four pillars from a birth date and time.
- Check the day pillar against a published calendar.
- Get the year pillar from a bare year.
Example
Input
2024-02-10
Output
公历 / Gregorian: 2024-02-10 农历 / Lunar: 二〇二四年正月初一(甲辰年 · 龙) 年柱 / Year: 甲辰(以立春为界) 月柱 / Month: 丙寅(以十二节为界,正月建寅) 日柱 / Day: 甲辰 时柱 / Hour: 未提供时刻,不计算(干支时柱需要具体时间) 四柱 / Four pillars: 甲辰 丙寅 甲辰
Day pillars cross-checked with published calendars: 1949-10-01 Jia-zi, 2024-02-10 Jia-chen, 2025-01-29 Wu-xu, 2026-02-17 Ren-xu; the year pillar switches at Start of Spring.
Frequently asked questions
Why are there no month or day pillars for a bare year?
The month pillar depends on sectional terms and the day pillar on the Julian day number of an exact date, so a bare Gregorian year cannot produce them. Such input returns the year pillar only and says so explicitly.
How is the day pillar computed?
From the Julian day number: index = (JDN + 49) mod 60. Verified against published calendars such as 1949-10-01 Jia-zi and 2026-02-17 Ren-xu.
What if the birth time is 23:30?
Traditionally the Zi hour starts at 23:00 and belongs to the next day; this tool follows that, so after 23:00 the day and hour stems use the next day and the month and year pillars are recomputed.
How exact are the term boundaries?
Day precision only: the year pillar switches on the day of Start of Spring, and the exact instant comes from a low-precision astronomical formula with about ten minutes of error.
Keywords:ganzhi