Calculation methods

These are the calculation methods currently used by Zhengpan. The tables show the defaults for a new chart. After changing a convention, refer to that chart’s settings and time-correction record.

Time and location

BaZi and Ziwei first resolve civil time and historical daylight saving in the birthplace’s time zone, then apply the selected solar-time correction. Apparent solar time includes longitude correction and the equation of time; mean solar time corrects longitude only; no correction uses local standard time. Where clocks move back, you can select either possible instant. Times skipped by a clock change require correction.

Location coordinates are representative points. For a precise birthplace, enter a custom longitude and time zone. BaZi and Ziwei support Gregorian years 1901–2099. BaZi can produce three pillars when the birth hour is unknown; Ziwei requires a birth time.

BaZi

The year pillar changes at the exact Beginning of Spring (Lichun) instant. The month pillar changes at the twelve jie solar-term boundaries. Solar-time correction applies to day and hour pillars without moving the year or month boundaries. Within 30 minutes of a boundary, a chart for the other side is provided for comparison.

Major-cycle direction follows the birth-year stem’s yin/yang and sex: yang male and yin female proceed forward; yin male and yang female proceed backward. Forward calculation measures to the next jie, backward to the previous jie, then converts the interval using the selected precision. Ages are shown in traditional nominal years, with an explanation of completed years.

Ten Gods are relative to the day stem. Hidden stems, Nayin, symbolic stars and stem/branch relationships follow the chart’s conventions. Tianyi Nobleman uses Jia/Wu/Geng → Chou/Wei. Relationship labels identify combinations only: the tool does not automatically conclude elemental transformation, strength, chart pattern or favorable elements.

SettingDefaultAlternatives
Time correctionTrue solar time (longitude + equation of time)Mean solar time (longitude correction only) / No correction (local standard time)
Zi-hour day boundaryChange day at 00:00Change day at 23:00
Cycle-start precisionTo the minuteTo the two-hour period / To the day (three days equal one year)
Minor cyclesStart from the hour pillarMale: Bing Yin forward; female: Ren Shen backward
Yin-stem growth stagesYang forward, Yin backwardSame order for Yin and Yang
Earth growth stagesEarth follows Fire (Wu begins at Yin)Earth follows Water (Wu begins at Shen)

Yin-stem Yang Blade is off by default and can be enabled in the conventions.

Open tool →

Zi Wei

The lunar year changes on lunar New Year’s Day, unlike BaZi’s Lichun boundary. Corrected birth time determines the lunar date and two-hour period. The Zi-hour day boundary is a separate setting, defaulting to 23:00. By default, leap-month days 1–15 use the original month and days 16 onward use the next month; alternatively the whole leap month can use either month.

Major periods begin at the Life Palace, with their starting nominal age determined by the Five-Element Bureau. Minor periods start from a palace based on the year branch, proceeding forward for males and backward for females. Annual and monthly layers and Four Transformations follow the selected period. Selecting a palace shows that palace, its opposite and its two trine palaces.

Geng-stem transformations, brightness tables and Fire/Bell Star placement can be changed. Ren-stem Hua Ke is fixed to Zuo Fu; decade void marks two palaces. The twelve growth stages proceed forward for yang males and yin females, backward for yin males and yang females. Brightness describes a star’s table rank in its palace, not a personal fortune score.

SettingDefaultAlternatives
Time correctionTrue solar time (longitude + equation of time)Mean solar time (longitude correction only) / No correction (local standard time)
Zi-hour day boundaryChange day at 23:00Change day at 00:00
Leap monthSplit at mid-month (days 1–15 use the current month)Entire leap month uses the next month / Entire leap month uses the current month
Geng-stem transformationsTai Yang: Lu; Wu Qu: Quan; Tai Yin: Ke; Tian Tong: JiTai Yang: Lu; Wu Qu: Quan; Tian Tong: Ke; Tai Yin: Ji
Star brightnessCommon tableClassical palace annotations
Huo Xing & Ling XingCount birth hour forward from the starting palaceStarting palace from birth-year branch only
Open tool →

Almanac

The almanac supports 1901–2100. A day starts at 00:00; “Today” uses the Gregorian date in your device’s time zone. Solar-term and lunar-phase instants primarily use Beijing time, with local time added when the device is outside UTC+8. Month-grid solar terms use the Beijing date.

The zodiac animal changes on lunar New Year’s Day, while the stem-branch year changes at Lichun; these are shown separately. On a jie boundary date, Day Officers, daily symbolic markers and activity recommendations use the new solar-term month for the entire day, rather than BaZi’s exact-instant boundary. Long and Short Stars use the lunar month number; a leap month reuses its original month number.

Daily activity recommendations default to the Xieji convention and apply grade and activity-conflict rules; Tongshu is available as an alternative. A Year Break day is marked “No activities recommended”. Hourly recommendations use a separate table, with Yellow/Black Path and hourly markers listed separately; daily recommendations are not copied to each hour.

If a Beijing-time almanac date differs from the date of the precise astronomical instant, the almanac date is retained and the difference is noted. These traditional calendar and date-selection entries do not guarantee outcomes or replace practical judgments about an event.

Open tool →

Calculation and copying

Charts are calculated in your browser, with inputs stored in the link’s # fragment. Glossary explanations are fixed local text and do not call AI. “Copy for AI” shows a preview before you paste it into a third-party service yourself; Zhengpan does not send it for you. Explanations define concepts without making personal fortune judgments.