ChinaKnowledge.de -
An Encyclopaedia on Chinese History and Literature

Zhoubi suanjing 周髀算經

Mar 19, 2025 © Ulrich Theobald

Zhoubi suanjing 周髀算經 "The mathematical book on gnomons and circular paths" is China's oldest surviving book on the basics of astronomical calculations. Originally titled Zhoubi 周髀 "Trigonometry of circles" or "Trigonometry of the Zhou", its usual name was adopted during the Tang period 唐 (618-907). It belongs to the ten classical book on mathematics in ancient China (Suanjing shishu 算經十書). The author is unknown.

The original preface explains the word zhou 周 as pointing to the Zhou dynasty 周 (11th cent.-221 BCE), saying, "In ancient times, when the Son of Heaven governed Zhou, by observing these numbers, [the beginning of the calendar] started with the Zhou (gu shi tianzi zhi Zhou, ci shu wang zhi cong Zhou 古時天子治周,此數望之從周." However, the word zhou also means "circuit, circle, round", thus referring to astronomical movements. The word bi 髀 means "thigh" (gu 股), referring to an eight-chi 尺-long (see weights and measures) gnomon (biao 表, gui 圭 or 晷). Together with its shadow – referred to as a "hook" (gou 勾) - two sides of a right triangle (or a carpenter's square) were formed (the adjacent, and the opposite). With the help of these two data, the length of the hypotenuse can be calculated. This formula corresponds to the Pythagorean theorem (modern term gougu dingli 勾股定理). In this way, the length of the gnomon and its shadow are used to determine distances. By analyzing variations in the length of the gnomon's shadow, astronomers could estimate the length of a tropical year. The gougu method was also used to determine seasonal changes (i.e., the 24 solar terms, jieqi 節氣), and even to estimate the size and distance of the sun, as well as the structure of the cosmos.

In terms of astronomy, the Zhoubi suanjing primarily expounds on the gaitian 蓋天 cosmology ("canopy Heaven") and the old Four-Part Calendar (sifen li 四分曆). The mention of the movement of the celestial sphere (xuanji 璇璣) in four directions serves as textual evidence that ancient observers had already noticed the displacement of the North Pole, indicating an awareness of the precession of the equinoxes (suicha 歲差). The Canopy Theory is an ancient cosmological model that envisions the sky as a domed cover, like an inverted bowl, while the Earth is depicted as a flat plate beneath it. The sun, moon, and stars move along the celestial canopy. This cosmology had a profound impact on Chinese intellectual history. During the Han period 漢 (206 BCE-220 CE), it coexisted and was debated alongside two other competing cosmological theories, the huntian 渾天 model ("spherical Heaven"), and the xuanye 宣夜 model ("infinite night") model. Together, these were known as the Three Schools of Astronomy (luntian sanjia 論天三家). The Four-Part Calendar was a lunisolar calendar (yinli 陰曆) that regulates seasonal changes (sishi jihou 四時季候) using intercalary months (runyue 閏月). It defined the tropical year (modern term yihui guinian 一回歸年) as 365 ¼ days and follows a Metonic cycle, inserting seven intercalary months every nineteen years to keep the lunar months synchronized with the solar year.

Mathematically, the book covers fractional multiplication and division (modern term fenshu cheng-chu fa 分數乘除法, generally fenshu yunsuan 分數運算), arithmetic sequences (dengcha shulie 等差數列), methods for calculating the circumference of a circle (yuanzhou qiuchang fa 圓周求長法), linear interpolation (yici neicha fa 一次內插法), square root extraction for arbitrary positive numbers (zhengshu kaiping fangfa 正數開平方法), representing decimal fractions using fractions (fenshu biaoshi qiling xiaoshu 分數表示奇零小數), and the earliest recorded use of the Pythagorean theorem. Based on its mathematical content, the book could not have been written earlier than the beginning Warring States period 戰國 (5th cent.-221 BCE).

The Pythagorean theorem of the Zhoubi suanjing was used in a very simplified form, namely a base of 3 units, a height of 4 units, and a diagonal of 5 units (gou guang san, gu xiu si, jing yu wu 勾廣三,股修四,徑隅五) – if emulated to the areas above the three lines, representing the numbers 9+16=25. Based on this specific example, the text provides a general formulation of the gougu theorem in the context of astronomical calculations:

若求邪至日者,以日下爲勾,日高爲股,勾股各自乘,並而開方除之,得邪至日。 If one seeks the diagonal distance to the sun, take the shadow length as the base, the sun's height as the vertical side, square both, sum them, and extract the square root to find the hypotenuse.

Mathematically expressed, 弦=√(勾2+股2). This method is known as gougu ce wang 勾股測望 "prospection by adjacent and opposite".

Furthermore, through a fictional dialogue between Chenzi 陳子 "Master Chen" and Rong Fang 榮方, the book presents an early perspective on the methodology of learning mathematics. It emphasizes the importance of both breadth and depth in knowledge acquisition. To understand one principle and thereby comprehend myriad things is to truly grasp the Way (yan yue er yong bo zhe, zhi lei zhi ming 言約而用博者,智類之明). The Zhoubi suanjing highlights an early Chinese philosophy of learning by emphasising conceptual understanding, breadth of knowledge, diligent practice, and the importance of collaborative learning.

Although the Zhoubi suanjing contains errors and rough approximations, such as assuming the Earth to be flat and using this flat Earth model to infer celestial phenomena (leading to misconceptions like the idea that a one-inch difference in gnomon shadow length corresponds to a thousand li, or that the ratio of a circle's circumference, Pi, to its diameter is simply three) - it still holds an irreplaceable position in the history of Chinese astronomy.

The version that has been passed down to the present day includes annotations by Zhao Shuang 趙爽 (Zhao Ying 趙嬰 or Zhao Junqing 趙君卿; 3rd cent. CE), Zhen Luan 甄鸞 (6th cent.), and Li Chunfeng 李淳風 (602-670). These commentators trace the system of celestial degrees back to the mythological ruler Fu Xi 伏羲 and believed to have been later formalised by the Duke of Zhou 周公, by whom it was transmitted to grand master Shang Gao 商高.

The book's pioneering use of the gougu theorem and observational measurement techniques greatly influenced later mathematicians, who further developed and applied these methods. From the Tang and Song periods onward, the Zhoubi suanjing was formally included in the imperial curriculum as an official mathematics textbook, contributing significantly to the evolution of Chinese mathematical thought. The book also spread beyond China; during the Tang dynasty, it was introduced to Japan, where it became one of the official mathematical textbooks, further extending its influence in East Asia.

Other statements about the cosmological concept of the Zhoubi suanjing are:

方屬地,圓屬天,天圓地方。……笠以寫天。天青黑,地黄赤。天數之爲笠也,青黑爲表,丹黄爲里,以象天地之位。 The square pertains to the Earth, while the circle pertains to the Heavens—the Heavens are round, and the Earth is square. … The shape of a bamboo hat represents the sky. The Heavens are blue-black, and the Earth is yellow-red. The cosmic structure is like a hat, with the blue-black exterior representing the sky and the red-yellow interior symbolizing the Earth's position.
天象像笠,地法覆槃,天離地八萬里。 The Heavens resemble a hat, while the Earth follows the shape of an overturned plate. The Heavens are 80,000 li above the Earth.
人所居,六萬里滂沱四隤而下。天之中央亦高四旁六萬里,故日光外所照徑八十一萬里,周二百四十萬里。故日運行處極北,北方日中,南方夜半;日在極東,東方日中,西方夜半;日在極南,南方日中,北方夜半;日在極西,西方日中,東方夜半。 The inhabited lands are 60,000 li wide, sloping downward in all directions. The center of the sky is also elevated, extending 60,000 li in all directions. Thus, the Sun's rays illuminate a diameter of 810,000 li, with a circumference of 2.4 million li. Therefore, when the Sun is at the extreme north, it is noon in the north and midnight in the south. When the Sun is at the extreme east, it is noon in the east and midnight in the west. When the Sun is at the extreme south, it is noon in the south and midnight in the north. When the Sun is at the extreme west, it is noon in the west and midnight in the east.

During the Tang period, Li Chunfeng annotated the text, correcting errors in the original method for calculating the sun's height. Li also criticises Zhao Shuang's flawed approach to shadow measurement, and amends misinterpretations by Zhen Luan. The most important commentaries are Mei Wending's 梅文鼎 (1633-1721) Zhoubi buzhu 周髀補注, Wu Lang's 吳烺 (1719-1771) Zhoubi suanjing tuzhu 周髀算經圖注, Feng Jing's 馮經 Zhoubi suanjing shu 周髀算經述, Zou Boqi's 鄒伯奇 (1819-1869) Zhoubi suanjing kaozheng 周髀算經考證, Gu Guanguang's 顧觀光 (1799-1862) Zhoubi suanjing jiaokanji 周髀算經校勘記 and Sun Yirang's 孫詒讓 (1848-1908) Zhayi 札迻.

The oldest surviving print dates from 1085. The text is included in the series Xuejin taoyuan 學津討原, Tang-Song congshu 唐宋叢書, Mice huihan 秘冊匯函, Xuejin taoyuan 津逮秘書, Weiboxie suanjing shishu 微波榭算經十書, Wuyingdian juzhenban congshu 武英殿聚珍版叢書, Sibu congkan 四部叢刊, Sibu beiyao 四部備要, Siku quanshu 四庫全書, Huailu congshu erbian 槐廬叢書二編 and Congshu jicheng chubian.

Sources:
Bo Shuren 薄樹人. 1989. "Zai tan Zhoubi suanjing zhong de gaitianshuo: Jinian Qian Baocong xiansheng shishi shiwu zhounian 再談《周髀算經》中的蓋天說——紀念錢寶琮先生逝世十五週年." Ziran kexue shi yanjiu 自然科學史研究 8 (4): 297-305.
Cao Huiqi 曹慧奇. 2020. "Zhoubi suanjing cong shuxue kan Xian-Qin de tianwen guan ji dizhong wenti 《周髀算經》從數學看先秦的天文觀及地中問題." Nanfang wenwu 南方文物 2020 (4): 7-20.
Cao Yi 曹一. 2005. "Zhoubi suanjing de ziqiaxing fenxi 《周髀算經》的自洽性分析." Shangai Jiaotong Daxue xuebao (Zhexue shehui kexue ban) 上海交通大學學報(哲學社會科學版) 2005 (2): 39-43.
Chemla, Karine. 1989. "A Chinese Canon in Mathematics and Its Two Layers of Commentaries: Reading a Collection of Texts as Shaped by Actors." In Looking at it from Asia: The Processes that Shaped the Sources of History of Science, edited by Florence Bretelle-Establet, 169-210. Dordrecht etc.: Springer.
Chemla, Karine. 2018. "Mathematical Knowledge and Practices from Early Imperial China until the Tang Dynasty." In The Cambridge History of Science, vol. I, Ancient Science, edited by Alexander Jones, and Liba Taub, 553-573. Cambridge: Cambridge University Press.
Chen Binhui 陳斌惠. 2005. "Zhoubi suanjing guangcheng jixian shuzhi laiyou xintan 《周髀算經》光程極限數值來由新探." Ziran kexue shi yanjiu 自然科學史研究 2005 (1): 84-90.
Cullen, Christopher. 1972. "The Zhoubi Revisited." In East Asian Science: Tradition and Beyond: Papers from the Seventh International Conference on the History of Science in East Asia, Kyoto, 2–7 August 1993, edited by Hashimoto Keizo, Catherine Jami, and Lowell Skar, 429–434. Osaka: Kansai University Press.
Cullen, Christopher. 1993. "Chou pi suan ching." In Early Chinese Texts: A Bibliographical Guide, edited by Michael Loewe, 33-38. Berkeley: Society for the Study of Early China/Institute of East Asian Studies.
Cullen, Christopher. 1996. Astronomy and Mathematics in Ancient China: The Zhou bi Suan jing. Cambridge etc.: Cambridge University Press-
Cullen, Christopher. 2018. "Chinese Astronomy in the Early Imperial Age." In The Cambridge History of Science, vol. I, Ancient Science, edited by Alexander Jones, and Liba Taub, 595-616. Cambridge: Cambridge University Press.
Dong Guoyu 董國玉, and Lu Jing 盧靜. 2014. "Zhao Shuang yu Zhoubi suanjing zhu 趙爽與《周髀算經注》." Lantai shijie 蘭臺世界 2014 (14): 128-129.
Feng Ligui 馮禮貴. 1986. "Zhoubi suanjing chengshu niandai kao 《周髀算經》成書年代考." Guji zhengli yanjiu xuekan 古籍整理研究學刊 1986 (4): 37-41.
Guo Shengchi 郭盛熾. 1991. "Zhoubi suanjing zhong tianwenxue sixiang pingshu 《周髀算經》中天文學思想評述." Tianwen xuebao 天文學報 1991 (2): 208-214.
Jiang Xiaoyuan 江曉原. 1996a. "Zhoubi suanjing: Zhongguo gudai weiyi de gonglihua changshi 《周髀算經》──中國古代唯一的公理化嘗試." Ziran bianzhengfa tongxun 自然辯證法通訊 1996 (3): 43-48+80.
Jiang Xiaoyuan 江曉原. 1996b. "Zhoubi suanjing gaitian yuzhou jiegou 《周髀算經》蓋天宇宙結構." Ziran kexue shi yanjiu 自然科學史研究 1996 (3): 249-253.
Jiang Xiaoyuan 江曉原. 1997. "Zhoubi suanjing yu gudai yuwai tianxue 《周髀算經》與古代域外天學." Ziran kexue shi yanjiu 自然科學史研究 1997 (3): 207-212.
Jin Zumeng 金祖孟. 1991. "San tan Zhoubi suanjing zhong de gaitianshuo 三談《周髀算經》中的蓋天說." Ziran kexue shi yanjiu 自然科學史研究 1991 (2): 111-119.
Li Delu 李德魯. 2011. "You qian li yi cun jiedu Zhoubi suanjing 由“千里一寸”解讀《周髀算經》." Taishan Xueyuan xuebao 泰山學院學報 33 (2): 82-86.
Li Xueqin 李學勤, and Lü Wenyu 呂文郁, eds. 1996. Siku da cidian 四庫大辭典, vol. 2, 1732. Changchun: Jilin daxue chubanshe.
Liang Weixuan 梁韋弦. 2001. "Liji Yueling, Lüshi chunqiu Shi'eryue ji ji Zhoubi suanjing suo ji zhi jieqi 《禮記·月令》《呂氏春秋·十二月紀》及《周髀算經》所記之節氣." Guji zhengli yanjiu xuekan 古籍整理研究學刊 2001 (5): 10-12+30.
Liu Bangfan 劉邦凡. 2007a. "Zhoubi suanjing yu Suanshushu de tuilei sixiang bijiao 《周髀算經》與《筭數書》的推類思想比較." Keji xinxi 科技信息 2007 (4): 9+24.
Liu Bangfan 劉邦凡. 2007b. "Lun Zhoubi suanjing de tuilei sixiang 論《周髀算經》的推類思想." Keji xinxi 科技信息 2007 (10): 3-4.
Ma, Li. 2011. "A Turning Point in the Development of Mathematics." In The Yields of Transition: Literature, Art and Philosophy in Early Medieval China, edited by Jana S. Rošker, and Nataša Vampelj Suhadolnik, 43–49. New Castle upon Tyne: Cambridge Scholars Publishing.
Martzloff, Jean-Claude. 1997. A History of Chinese Mathematics. Berlin etc.: Springer.
Qu Anjing 曲安京. 1997. "Zhoubi suanjing de taitianshuo. Bie wu xuaze de yuzhou jiegou 《周髀算經》的蓋天說——別無選擇的宇宙結構." Ziran bianzhengfa yanjiu 自然辯證法研究 1997 (8): 38-41.
Sun Wei 孫瑋, and Wang Ye 王野. 2023. "Zhoubi suanjing banben yuanliu ji shijie chuanbo yingxiang 《周髀算經》版本源流及世界傳播影響." Yinshua wenhua (Zhong-Yingwen) 印刷文化(中英文) 2023 (1): 61-68.
Sun Xiaochun 孫小淳, and Yang Liu 楊柳. 2024. "Zhoubi suanjing de gongli xitong shi ruhe jianli de 《周髀算經》的“公理系統”是如何建立的?." Ziran bianzhengfa yanjiu 自然辯證法研究 40 (1): 94-99.
Wang Feng 王峰. 2010. "Zhoubi suanjing shuli jingdu qiantan 《周髀算經》數理精度淺探." Caizhi 才智 2010 (32): 39.
Wang Xinchun 王新春. 1992. "Zhoubi suanjing 周髀算經." In Zhongguo xueshu mingzhu tiyao 中國學術名著提要, vol. Zhexue 哲學卷, edited by Zhou Gucheng 周谷城, 12. Shanghai: Fudan daxue chubanshe.
Wang Yanmeng 王煙朦. 2023. "Hanxuejia Zhoubi suanjing Yingyi de yizhe xingwei piping fenxi 漢學家《周髀算經》英譯的譯者行為批評分析." Fanyi jiaoxue yu yanjiu 翻譯教學與研究 2023 (2): 23-33.
Wu Feng 吳楓, ed. 1987. Jianming Zhongguo guji cidian 簡明中國古籍辭典, 540. Changchun: Jilin wenshi chubanshe.
Wu Yunhao 吳蘊豪, and Li Geng 黎耕. 2008. "Yi gai shuo yu Zhoubi suanjing yuzhou moxing de zao sikao “倚蓋”說與《周髀算經》宇宙模型的再思考." Zhongguo keji shi zazhi 中國科技史雜誌 29 (4): 358-363.
Yang Hua 楊華. 2007. "Zhoubi suanjing ji Zhao Shuang zhu zhong gougu dingli ciqun xishi 《周髀算經》及趙爽注中勾股定理詞群析釋." Yuyan lishi luncong 語言歷史論叢 2007: 97-108.
Yin Nai 尹奈. 1985. "Zhouyi shifa yu Zhoubi suanjing: Jian tan yichan mima 《周易》筮法與《周髀算經》——兼談遺傳密碼." Tushuguanxue yanjiu 圖書館學研究 1985 (5): 88-93.
Yu Qiushi 俞求是. 2019. "Zhoubi suanjing Zhou GOng Shang Gao wenda xiangguan wenti de yanjiu 《周髀算經》“周公商高問答”相關問題的研究." Shuxue tongbao 數學通報 58 (2): 13-17+54.
Zhan Suifeng 湛穗豐. 1997. "Zhoubi suanjing 周髀算經." In Zhonghua guocui da cidian 中華國粹大辭典, edited by Men Kui 門巋, Zhang Yanjin 張燕瑾, 302. Xianggang: Guoji wenhua chuban gongsi.
Zhang Bo 張波. 2019. "Ershi shiji yilai Zhoubi suanjing yanjiu zongshu 20世紀以來《周髀算經》研究綜述." Shanxi Datong Daxue xuebao (Ziran kexue ban) 山西大同大學學報(自然科學版) 35 (5): 103-108.
Zhang Hongzhao 章鴻釗. 1951. "Zhoubi suanjing shang zhi gougu pubian dingli: Chenzi dingli 《周髀算經》上之勾股普遍定理——“陳子定理”." ZHongguo shuxue zazhi 中國數學雜誌 1951 (1): 13-15.
Zhao Yongheng 趙永恆. 2009. "Zhoubi suanjing yu Yangcheng《周髀算經》與陽城." Zhongguo keji shi zazhi 中國科技史雜誌 30 (1): 102-109.
Zhou Hanguang 周瀚光. 1996. "Zhoubi suanjing 周髀算經." In Zhongguo xueshu mingzhu tiyao 中國學術名著提要, vol. Keji 科技卷, edited by Zhou Gucheng 周谷城, 3. Shanghai: Fudan daxue chubanshe.