HomeChinese Calendar › Nine Star Periods (紫白飞星)

Nine Star Periods (紫白飞星)

Finds the annual, monthly and daily 紫白 (zǐbái) star (一白 … 九紫) of a date and its 20-year period in the 180-year 三元九运 (sānyuán jiǔyùn) cycle counted from 1864, as used in Flying Star (玄空飞星) feng shui reference tables.

When to use

You need the 年紫白 / 月紫白 / 日紫白 star numbers of a date, the current 运 (period) and its years, or the trigram and element assigned to each star.

Do not use when: You need a building's flying-star chart (sitting/facing directions are required), the Ming Gua of a person (use ming-gua in the yijing category), or advice — this is a table lookup, not an evaluation.

Formula

year_star = 1 − ((year − 1864) mod 9) wrapped into 1–9; month_star = start − months since 寅, start = 8 for 子午卯酉 years, 5 for 辰戌丑未, 2 for 寅申巳亥; day_star = 1 + n (阳遁) or 9 − n (阴遁) wrapped into 1–9, n = days since the first 甲子 day on or after the winter (阳) or summer (阴) solstice; period = floor((year − 1864) / 20) + 1

Year and period use the 立春 boundary. The day star uses the simplified convention that 阳遁 starts at 一白 on the first 甲子 day on or after the winter solstice and 阴遁 starts at 九紫 on the first 甲子 day on or after the summer solstice; almanacs that shift the start to the 甲子 nearest the solstice (with 置闰 adjustments) can differ. Traditional reference calculation of the Chinese calendar tradition; not a prediction and not medical, legal or financial advice.

Inputs

ParameterTypeUnitRequiredDescription
datedatedefault todayGregorian civil date in China Standard Time (1900–2100); defaults to the current UTC date.

Outputs

OutputTypeUnitDescription
year_usedintegerYear of the 立春-based cycle that contains the date (the year changes at 立春, about 4 February).
year_starintegerAnnual star number 1–9.
year_star_namestringNumber, Chinese name, element and trigram of the annual star.
month_starintegerMonthly star number 1–9 for the solar month (changes at each 节).
month_star_namestringNumber, name, element and trigram of the monthly star.
day_starintegerDaily star number 1–9 (simplified 阳遁/阴遁 convention, see method).
day_star_namestringNumber, name, element and trigram of the daily star.
day_star_cyclestringWhether the day is in the ascending 阳遁 or descending 阴遁 sequence and the 甲子 day it starts from.
period_numberintegerPeriod 1–9 of the 三元九运 cycle.
period_namestringYuan and period, e.g. 下元九运.
period_yearsstringFirst and last calendar year of the period (each begins at 立春).
period_trigram_elementstringTrigram and element of the period's star.
notesstring_listConventions applied.

Example

2024-06-01 (first year of Period 9): {"date":"2024-06-01"}{"year_used":2024,"year_star":3,"year_star_name":"3 三碧 (Sanbi) — Wood, 震 Zhen","month_star":2,"day_star":9,"day_star_cycle":"阳遁 (yang, ascending) from the 甲子 day 2024-01-01 (day 153 of the sequence)","period_number":9,"period_name":"下元九运 (Xiayuan, lower yuan, period 9)","period_years":"2024–2043","period_trigram_element":"离 Li — Fire (九紫 Jiuzi)"}

2026-09-24: {"date":"2026-09-24"}{"year_used":2026,"year_star":1,"year_star_name":"1 一白 (Yibai) — Water, 坎 Kan","month_star":1,"day_star":8,"period_number":9,"period_years":"2024–2043"}

GET https://tttkmbb.com/api/v1/calculate/nine-star-feng-shui?date=2024-06-01

Machine access

Sources

FAQ

Why does the year star change at 立春 and not at Chinese New Year?

Flying-star tables follow the solar (节气) calendar like Bazi: 2026 becomes a 一白 year on 2026-02-04, thirteen days before Chinese New Year.

When did Period 9 start?

Period 9 (下元九运, 九紫离火) runs from 立春 2024 (2024-02-04) to 立春 2044; Period 1 of the next 180-year cycle starts in 2044.

Why might the day star differ from my almanac?

Daily stars have several published conventions for choosing the 甲子 day that starts each 阳遁/阴遁 half-year. This calculator states its rule in the day_star_cycle output so results can be compared.

Related calculators