The history of the trade
Year, month, day and hour as four pairs of heavenly stems and earthly branches.
Chinese reckoning pairs ten heavenly stems with twelve earthly branches; the pairings advance in step and repeat every sixty. The cycle is attested in Shang oracle bones, which means the count has run continuously for more than three thousand years — the longest unbroken numerical cycle in continuous use anywhere.
Reading a birth as four pillars — year, month, day and hour — is documented from the Tang dynasty and was systematised in the Song by Xu Ziping, whose name the method still carries. Each pillar is a stem and a branch, giving eight characters (bazi); the day stem is the self, and everything else is read as what supports, drains, clashes with or controls it.
The system entered Korea with the Chinese calendar and became saju, and Japan with the same borrowing. Korean practice is distinctive for the weight it gives to the hour pillar and to the interpretation of the ten gods, and it is that lineage this site follows under the name Yukhyo.
Everything in the reading is expressed in the five phases — wood, fire, earth, metal, water — and their two cycles: generating and controlling. The vocabulary is a grammar rather than a physics, and the skill lies in judging which phase is abundant, which is missing, and what the season does to both. This site computes the phases by hand and shows the working.
This page separates what is documented from what is traditional and what is modern practice. Where the record is thin it says so; nothing here is cited that does not exist.