Organized around the sexagenary cycle: ten heavenly stems (the five elements, wood, fire, earth, metal, water, each in a yang and a yin form) crossed against twelve earthly branches (the familiar zodiac animals), giving sixty unique pairings. Your birth year, month, day, and hour each get their own stem-branch pair, the Four Pillars, and your day pillar's stem is your day master, the fixed point everything else in the chart is read against.
Day, month, and year pillars follow the standard sexagenary (60-term) cycle and the Five Element production/control relationships, as codified in the Tōng Shū almanac tradition. The stem-branch math is solid; the specific daily fortune-telling text for a given pairing is closer to folk-almanac territory and still needs its own dedicated source pass.
The ten, the twelve, and the sixty
Heavenly stems (10): Jia (Yang Wood), Yi (Yin Wood), Bing (Yang Fire), Ding (Yin Fire), Wu (Yang Earth), Ji (Yin Earth), Geng (Yang Metal), Xin (Yin Metal), Ren (Yang Water), Gui (Yin Water).
Earthly branches (12): Zi (Rat), Chou (Ox), Yin (Tiger), Mao (Rabbit), Chen (Dragon), Si (Snake), Wu (Horse), Wei (Goat), Shen (Monkey), You (Rooster), Xu (Dog), Hai (Pig).
The sixty pairings, in cycle order: Jiazi, Yichou, Bingyin, Dingmao, Wuchen, Jisi, Gengwu, Xinwei, Renshen, Guiyou, Jiaxu, Yihai, Bingzi, Dingchou, Wuyin, Jimao, Gengchen, Xinsi, Renwu, Guiwei, Jiashen, Yiyou, Bingxu, Dinghai, Wuzi, Jichou, Gengyin, Xinmao, Renchen, Guisi, Jiawu, Yiwei, Bingshen, Dingyou, Wuxu, Jihai, Gengzi, Xinchou, Renyin, Guimao, Jiachen, Yisi, Bingwu, Dingwei, Wushen, Jiyou, Gengxu, Xinhai, Renzi, Guichou, Jiayin, Yimao, Bingchen, Dingsi, Wuwu, Jiwei, Gengshen, Xinyou, Renxu, Guihai. Each stem always pairs with a branch of the same yin/yang parity, which is why ten times twelve gives sixty distinct pairs, not a hundred and twenty.