张苍
Historical sculpture of Zhang Cang
Image creditsSiyuwj · CC BY-SA 3.0Image source

256 BCE–152 BCE

Founding meritorious official of the Western HanGrand Councilor under Emperor Wenand renowned specialist in harmonicscalendrical science

Zhang Cang (张苍)

张苍

Zhang Cang (张苍, c. 256 BCE – 152 BCE), a native of Yangwu County, Sanchuan Commandery (modern-day Yuanyang County, Xinxiang City, Henan Province), was a disciple of the great late Warring States Confucian philosopher Xunzi, a founding meritorious official of the Western Han, Grand Councilor under Emperor Wen, and an outstanding ancient Chinese scholar of musical harmonics, calendrical science, mathematics, and fiscal…

256 BCE–152 BCEQin Dynasty and Western Han (秦朝、西汉)

PROFILE

Zhang Cang (张苍, c. 256 BCE – 152 BCE), a native of Yangwu County, Sanchuan Commandery (modern-day Yuanyang County, Xinxiang City, Henan Province), was a disciple of the great late Warring States Confucian philosopher Xunzi, a founding meritorious official of the Western Han, Grand Councilor under Emperor Wen, and an outstanding ancient Chinese scholar of musical harmonics, calendrical science, mathematics, and fiscal statistics. During the Qin Dynasty, Zhang Cang served as a Pillar Historian (Zhuxiashi), managing imperial archives and state documents, before fleeing home after an official offense. When Liu Bang marched through Yangwu during the anti-Qin uprising, Zhang Cang joined him as a retainer on the campaign against Nanyang. Condemned to decapitation for a military offense, Zhang Cang stripped and lay upon the execution block, where the general Wang Ling was so struck by his tall, fair, and gourd-like physique that he pleaded with Liu Bang to spare his life—a kindness for which Zhang Cang served Wang Ling like a father for the rest of his days. During the Chu-Han Contention and early Han pacification campaigns, Zhang Cang served as Administrator of Changshan, joined Han Xin in crushing Zhao and capturing Chen Yu alive, and served successively as Chancellor of Dai and Chancellor of Zhao. In 201 BCE (6th year of Emperor Gaozu), he was enfeoffed as Marquis of Beiping for his merit in suppressing the rebellion of Zang Tu, King of Yan. Because of his mastery of imperial registries and arithmetic, Xiao He appointed him Chancellor of Accounts (Jixiang) and Chief Accountant (Zhuji) to oversee the annual fiscal accounts submitted by commanderies and kingdoms across the empire. After serving fourteen years as Chancellor of Huainan, Zhang Cang became Censor-in-Chief in 180 BCE, helped enthrone Emperor Wen, and succeeded Guan Ying as Grand Councilor in 176 BCE, holding the chancellorship for fifteen years. He standardized musical pitch, calendrical calculation (Zhuanxu Calendar), and weights and measures, and compiled and revised The Nine Chapters on the Mathematical Art. He died in 152 BCE at over a hundred years of age and received the posthumous name Wen.

Posthumous Name
Wen (文, Marquis Wen of Beiping)
Dynasty
Qin Dynasty and Western Han (秦朝、西汉)
Era
Qin Dynasty to Early Western Han
Birthplace
Yangwu County, Sanchuan Commandery (modern-day Yuanyang County, Xinxiang City, Henan Province)
Death Date
152 BCE (5th year of the Qianyuan era of Emperor Jing of Han)
Highest Office
Grand Councilor (丞相, Chengxiang)
Major Offices
Pillar Historian (Zhuxiashi) of Qin, Administrator of Changshan, Chancellor of Dai, Chancellor of Zhao, Chancellor of Accounts (Jixiang), Chief Accountant (Zhuji), Chancellor of Huainan, Censor-in-Chief, Grand Councilor of Western Han
Noble Titles
Marquis of Beiping (北平侯)
Identity
Founding meritorious official of the Western Han, Grand Councilor under Emperor Wen, and renowned specialist in harmonics, calendrical science, and mathematics

LIFE TIMELINE

Relationship graph

BIOGRAPHY

Chronology

  • c. 256 BCE (51st year of King Zhaoxiang of Qin) | Birth and Study | Born in Yangwu County; studied classical ritual and statecraft under Xunzi alongside Li Si and Han Fei.
  • 221 BCE (26th year of Qin Shi Huang) | Pillar Historian | Served as a Censor (Pillar Historian) in the Qin court, managing imperial books and archival registries from across the empire.
  • 207 BCE (3rd year of Qin Er Shi) | Saved by Wang Ling | Fled home to Yangwu and joined Liu Bang; spared from execution through Wang Ling's intercession and followed Liu Bang through Wu Pass into Xianyang.
  • 204 BCE (3rd year of Emperor Gaozu) | Campaign in Zhao | Appointed Administrator of Changshan; joined Han Xin in routing the Zhao army at the Zhi River, personally capturing Chen Yu, and served as Chancellor of Dai and Zhao.
  • 201 BCE (6th year of Emperor Gaozu) | Marquis of Beiping | Followed Emperor Gaozu as Chancellor of Dai to suppress the rebellion of Zang Tu, King of Yan, receiving enfeoffment as Marquis of Beiping with 1,200 households.
  • 196 BCE (11th year of Emperor Gaozu) | Chief Accountant | Appointed Chancellor of Accounts and then Chief Accountant in Xiao He's chancellery to audit empire-wide fiscal registries; later appointed Chancellor of Huainan.
  • 180 BCE (8th year of Empress Lü) | Enthroning Emperor Wen | Promoted to Censor-in-Chief; collaborated with Zhou Bo and Chen Ping to eliminate the Lü clan and enthrone Liu Heng as Emperor Wen.
  • 176 BCE (4th year of Emperor Wen) | Grand Councilor | Succeeded Guan Ying as Grand Councilor, establishing Han standards for musical harmonics, the calendar, and weights and measures.
  • 162 BCE (2nd year of the Houyuan era of Emperor Wen) | Retirement | Resigned as Grand Councilor on grounds of illness and old age after Gongsun Chen's prophecy of a yellow dragon came true and a recommended subordinate was convicted of corruption.
  • 152 BCE (5th year of the Qianyuan era of Emperor Jing) | Death as a Centenarian | Died peacefully at over a hundred years of age; posthumously titled Marquis Wen of Beiping.

Biography

Pillar Historian of Qin and Deliverance by Wang Ling

Zhang Cang was a native of Yangwu County, Sanchuan Commandery (modern-day Yuanyang County, Xinxiang City, Henan Province). Passionate from youth about books, musical harmonics, and astronomical calendars, he traveled to Lanling to study under the renowned Confucian master Xun Kuang (Xunzi) alongside fellow students Li Si and Han Fei. Entering the service of the Qin Dynasty, Zhang Cang was appointed Censor Beneath the Pillar (Zhuxiashi), responsible for recording court proceedings and overseeing the imperial library as well as administrative and fiscal archives submitted from commanderies and counties across the realm.

During the harsh reign of Qin Er Shi, Zhang Cang committed an administrative infraction and fled back to his hometown of Yangwu to escape punishment. In 207 BCE (3rd year of Qin Er Shi), when Liu Bang marched westward through Yangwu on his way to attack Nanyang, Zhang Cang joined his forces as a guest retainer. Along the march, Zhang Cang violated military law and was sentenced to beheading. Just as he removed his upper garment and lay face down on the iron chopping block, the prominent commander Wang Ling happened to pass by. Seeing that Zhang Cang was extraordinarily tall and stout, with skin as fair and glossy as gourd seeds, Wang Ling marveled at his noble appearance and hurried to Liu Bang to plead for his life. Liu Bang pardoned Zhang Cang, who subsequently followed the rebel army through Wu Pass into Xianyang and honored Wang Ling as a father for the rest of his life.

Campaigns in Zhao and Dai and Enfeoffment as Marquis of Beiping

In 206 BCE (1st year of Han), after Liu Bang was made King of Han in Hanzhong and marched north to pacify the Three Qin, Zhang Cang accompanied the campaign headquarters. In 205 BCE (2nd year of Emperor Gaozu), after Chen Yu drove out Zhang Er, King of Changshan, Liu Bang appointed Zhang Cang as Administrator of Changshan Commandery to help contest the northern plains. In the 10th month of 204 BCE (3rd year of Emperor Gaozu), Zhang Cang marched east through the Jingxing Pass under General-in-Chief Han Xin and Zhang Er; during the decisive Battle of the Zhi River against two hundred thousand Zhao troops, Zhang Cang personally captured the Zhao commander Chen Yu. After Zhao was pacified, Liu Bang appointed Zhang Cang as Chancellor of Dai to guard the northern frontier against Xiongnu raids, later transferring him to serve as Chancellor of Zhao under Zhang Er and his son Zhang Ao before returning him to the post of Chancellor of Dai.

In the autumn of 201 BCE (6th year of Emperor Gaozu), when Zang Tu, King of Yan, rebelled against the Han court, Zhang Cang led troops from Dai to join Emperor Gaozu's punitive expedition. For his battlefield distinction, he was enfeoffed in the 8th month as Marquis of Beiping with a fief of one thousand two hundred households. Recognizing that Zhang Cang possessed unmatched familiarity with the old Qin cadastral and fiscal registries as well as advanced mathematical skill, Emperor Gaozu recalled him to Chang'an and created the post of Chancellor of Accounts (Jixiang) for him. One month later, his title was changed to Chief Accountant (Zhuji); holding the rank of marquis, he worked inside Chancellor of State Xiao He's headquarters for four years, auditing the annual population, land, and tax accounts submitted by every commandery and vassal kingdom.

In 196 BCE (11th year of Emperor Gaozu), after suppressing the rebellion of Ying Bu, King of Huainan, Emperor Gaozu invested his young son Liu Chang as the new King of Huainan and appointed the experienced Zhang Cang as Chancellor of Huainan. Serving faithfully in Shouchun for fourteen years, Zhang Cang was recalled to Chang'an in 180 BCE (8th year of Empress Lü) and promoted to Censor-in-Chief, one of the Three Excellencies. Following Empress Dowager Lü's death that autumn, Zhang Cang joined Grand Commandant Zhou Bo and Right Grand Councilor Chen Ping in eliminating the Lü consort faction and welcoming Liu Heng, King of Dai, to ascend the throne as Emperor Wen of Han.

Fifteen Years as Grand Councilor and Longevity as a Centenarian

Following the death of Grand Councilor Guan Ying in the 12th month of 176 BCE (4th year of Emperor Wen), Emperor Wen appointed Zhang Cang as Grand Councilor in the 1st month of 175 BCE. More than two decades after the founding of the dynasty, when almost all senior ministers at court were former military commanders, Zhang Cang stood out as an encyclopedic scholar of institutional texts, music, and calendars. Even as head of the bureaucracy, he never forgot the debt he owed to his benefactor Wang Ling, Marquis of Anguo. Though Wang Ling had already passed away, whenever Zhang Cang had his routine five-day administrative holiday (xiumu), he would always ride first to the residence of Lady Wang (Wang Ling's widow) to pay his respects and present fine food before daring to return to his own home.

Because Emperor Gaozu had originally entered Guanzhong and encamped at Bashang in the 10th lunar month—the first month of the old Qin year—Zhang Cang calculated the cycle of the Five Virtues (Wude Zhongshi) and concluded that the Han Dynasty ruled under the Virtue of Water (Shuide), just as Qin had. He therefore instituted the continued use of the Qin Zhuanxu Calendar (which began the year in the 10th month) and retained black as the dynasty's ritual color, setting aside proposals by Jia Yi and others to switch to the Virtue of Earth and the color yellow.

In 166 BCE (14th year of Emperor Wen), a scholar from Lu named Gongsun Chen submitted a memorial arguing that Han ruled by the Virtue of Earth, which conquered Water, and predicting that a yellow dragon would soon appear as an auspice. Referred the memorial by the emperor, Zhang Cang dismissed it as unfounded. However, in the spring of 165 BCE (15th year of Emperor Wen), a yellow dragon was reported at Chengji County in Tianshui Commandery. Delighted, Emperor Wen summoned Gongsun Chen, appointed him Erudite (Boshi), and ordered the drafting of a new ritual calendar aligned with the Virtue of Earth. Humbled by this turn of events, Zhang Cang began excusing himself from court audiences on the pretext of illness. Soon afterward, an official whom Zhang Cang had recommended for the post of Zhonghou was exposed for corrupt profiteering; rebuked by Emperor Wen, Zhang Cang formally resigned on grounds of illness in the 8th month of 162 BCE (2nd year of the Houyuan era), having served as Grand Councilor for fifteen years.

In his retirement, Zhang Cang was so advanced in years that he had lost all his teeth and could no longer chew solid grain or meat, sustaining himself entirely by drinking human milk provided by wet nurses. Fond of female company, he kept nearly a hundred wives and concubines in his household, never again approaching any woman who had once conceived and borne a child. Living past the age of one hundred, the venerable statesman died in 152 BCE (5th year of the Qianyuan era of Emperor Jing) and was honored with the posthumous name Wen (Marquis Wen of Beiping).

Major Achievements

Auditing Imperial Finances and Institutionalizing the Annual Accounting System

At the founding of the Western Han, decades of war had left state population and tax records in disarray. Drawing on his archival experience as a Qin Pillar Historian and his mastery of arithmetic, Zhang Cang served for four years as Chancellor of Accounts and Chief Accountant in Xiao He's chancellery, establishing the rigorous Western Han annual accounting system (shangji). By auditing and compiling annual reports on household registration, cultivated acreage, and tax revenues from every commandery and kingdom, he provided the central government with accurate fiscal data to sustain early Han recovery policies.

Standardizing Musical Harmonics, the Calendar, and Weights and Measures

Over more than two decades as Chief Accountant and Grand Councilor, Zhang Cang personally directed the codification of early Han calendrical science, musical pitch, and metrology. While maintaining the Zhuanxu Calendar, he calibrated the twelve pitch pipes (lüguan) to harmonize the five tones and eight timbres, and used the length, volume, and millet-grain weight of the Yellow Bell (Huangzhong) pitch pipe to derive unified national standards for length (du), capacity (liang), and weight (heng) across all crafts and markets. As Sima Qian noted, every specialist in harmonics and calendrical science throughout the Western Han traced their scholarly lineage to Zhang Cang.

Revising The Nine Chapters on the Mathematical Art

Applying mathematics directly to fiscal administration, civil engineering, land surveying, and grain taxation, Zhang Cang played a pivotal role in preserving and advancing ancient Chinese mathematics. Following the destruction of pre-Qin treatises during the Qin burning of books, Zhang Cang collected surviving mathematical bamboo slips and systematically edited, supplemented, and organized them into the foundational structure of The Nine Chapters on the Mathematical Art (Jiuzhang Suanshu). Covering 246 practical problems across nine categories—including field measurement, grain exchange, proportional distribution, engineering calculations, equitable taxation, and right-angled triangles—this work became the cornerstone of classical Chinese mathematics for over a millennium.

Historical Relations

Teacher, Benefactor, and Sovereigns

  • Xun Kuang (Xunzi): Preeminent late Warring States Confucian philosopher under whom Zhang Cang studied alongside Li Si and Han Fei.
  • Wang Ling: Founding Western Han general, Marquis of Anguo, and Right Grand Councilor; saved Zhang Cang from execution at Yangwu, and was revered by Zhang Cang like a father for life.
  • Liu Bang (Emperor Gaozu of Han): Pardoned Zhang Cang and appointed him Administrator of Changshan, Chancellor of Dai and Zhao, Marquis of Beiping, Chief Accountant, and Chancellor of Huainan.
  • Liu Heng (Emperor Wen of Han): Enthroned with Zhang Cang's support and relied on him as Grand Councilor for fifteen years during the Rule of Wen and Jing.

Colleagues and Intellectual Rivals

  • Xiao He: Founding Chancellor of State; entrusted Zhang Cang with the post of Chief Accountant inside his chancellery to manage empire-wide fiscal registries.
  • Zhou Bo: Grand Commandant and Marquis of Jiang; partnered with Censor-in-Chief Zhang Cang and Chen Ping to overthrow the Lü clan and enthrone Emperor Wen.
  • Gongsun Chen: Scholar from Lu whose prediction of a yellow dragon in 165 BCE vindicated his Earth-Virtue theory against Zhang Cang's Water-Virtue orthodoxy, prompting Zhang Cang's retirement.

Historical Evaluations

  • *Sima Qian, Records of the Grand Historian (Shiji), Volume 130, Postface of the Grand Historian: "When the Han was first stabilized and civil principles were not yet clear, Zhang Cang served as Chief Accountant, standardizing weights and measures and ordering the pitch pipes and calendar. Thus I composed the Biographies of Grand Councilor Zhang and Others*, Chapter 36."
  • *Sima Qian, Records of the Grand Historian (Shiji), Volume 96, Biography of Grand Councilor Zhang: "Zhang Cang was accomplished in scholarship, harmonics, and the calendar, and served as a renowned Grand Councilor of Han; yet why did he dismiss the proposals of Master Jia (Jia Yi) and Gongsun Chen regarding the calendar and ritual vestments, and insist on using the Zhuanxu Calendar* of Qin?"
  • *Ban Gu, Book of Han (Han Shu), Volume 42, Biography of Zhang Cang*: "Zhang Cang loved books; there was nothing he did not read and nothing he did not master, and he was especially profound in harmonics and calendrical science.... Therefore, all who spoke of harmonics and the calendar in the House of Han took Zhang Cang as their foundation."
  • *Liu Hui, Preface to the Commentary on The Nine Chapters on the Mathematical Art***: "In the past, tyrannical Qin burned the books, and classical learning was scattered and ruined. Thereafter, Marquis of Beiping Zhang Cang and Vice Minister of Agriculture Geng Shouchang of Han both became renowned in the world for their mastery of calculation. Relying on the surviving fragments of ancient texts, Zhang Cang and others each made deletions and additions."

Related Entries

  • Emperor Wen of Han
  • Xiao He
  • Wang Ling
  • Zhou Bo
  • The Nine Chapters on the Mathematical Art

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • Sima Qian, Records of the Grand Historian (Shiji), Volume 96, Biography of Grand Councilor Zhang.
  • Ban Gu, Book of Han (Han Shu), Volume 42, Biographies of Zhang, Zhou, Zhao, Ren, and Shentu.
  • Guo Shuchun, Collated Edition of The Nine Chapters on the Mathematical Art (Huijiao Jiuzhang Suanshu), Liaoning Education Press, 2004.