BaZi Void Branches: Xun Kong Calculator

Xun Kong is the pair of branches missing from a ten-pillar decade. Jia Zi through Gui You occupy Rat through Rooster, leaving Dog and Pig as the void pair.

PillarTen-pair decadeVoid branches
甲子甲子戌 亥
乙丑甲子戌 亥
丙寅甲子戌 亥
丁卯甲子戌 亥
戊辰甲子戌 亥
己巳甲子戌 亥
庚午甲子戌 亥
辛未甲子戌 亥
壬申甲子戌 亥
癸酉甲子戌 亥
甲戌甲戌申 酉
乙亥甲戌申 酉
丙子甲戌申 酉
丁丑甲戌申 酉
戊寅甲戌申 酉
己卯甲戌申 酉
庚辰甲戌申 酉
辛巳甲戌申 酉
壬午甲戌申 酉
癸未甲戌申 酉
甲申甲申午 未
乙酉甲申午 未
丙戌甲申午 未
丁亥甲申午 未
戊子甲申午 未
己丑甲申午 未
庚寅甲申午 未
辛卯甲申午 未
壬辰甲申午 未
癸巳甲申午 未
甲午甲午辰 巳
乙未甲午辰 巳
丙申甲午辰 巳
丁酉甲午辰 巳
戊戌甲午辰 巳
己亥甲午辰 巳
庚子甲午辰 巳
辛丑甲午辰 巳
壬寅甲午辰 巳
癸卯甲午辰 巳
甲辰甲辰寅 卯
乙巳甲辰寅 卯
丙午甲辰寅 卯
丁未甲辰寅 卯
戊申甲辰寅 卯
己酉甲辰寅 卯
庚戌甲辰寅 卯
辛亥甲辰寅 卯
壬子甲辰寅 卯
癸丑甲辰寅 卯
甲寅甲寅子 丑
乙卯甲寅子 丑
丙辰甲寅子 丑
丁巳甲寅子 丑
戊午甲寅子 丑
己未甲寅子 丑
庚申甲寅子 丑
辛酉甲寅子 丑
壬戌甲寅子 丑
癸亥甲寅子 丑

Why two branches remain

Ten stems complete a round before twelve branches do. A xun contains ten pairs, leaving exactly two branches outside its sequence. The six decades in the sixty-cycle each have their own void pair.

Choose a reference pillar

The same branch can be void relative to one decade and occupied relative to another. A chart lookup must say whether the day pillar or another pillar supplies its xun.