from the archive · Ancient era
Zhang Heng
78 CE – 139 CE · cartographer · mathematician · astronomer · poet
By The Keeper · Published
AI-assisted writing, automatically checked. Editorial process
Zhang Heng (78 CE to 139 CE) was an Eastern Han polymath from Nanyang who served the imperial court as chief astronomer while writing some of the era's most admired poetry. He built the world's first known seismoscope, a bronze instrument that signaled distant earthquakes, and constructed a water-driven armillary sphere that modeled the motions of the heavens. His star catalogues, mathematical work on pi, and maps made him one of the most versatile minds of ancient China. For anyone asking who was Zhang Heng, the short answer is a scientist, poet, and statesman whose inventions were centuries ahead of anything comparable elsewhere.
Early Life
Zhang Heng was born in 78 CE in Xi'e, a county in the Nanyang commandery of what is now Henan province, during the reign of Emperor Zhang of the Eastern Han dynasty [1]. His family had once held standing in the region: his grandfather Zhang Kan had served as a commandery governor, but by the time of Zhang Heng's childhood the household lived modestly [2]. That relative poverty did not close off education. Nanyang was a prosperous commercial center with strong scholarly traditions, and the boy showed early gifts for literature.
As a young man he left home to study, first traveling to Chang'an, the former Western Han capital, where he examined the ruins and monuments of the old imperial city. He then moved on to Luoyang, the Eastern Han capital, and studied at the Taixue, the imperial academy [1]. There he read widely in the Confucian classics and befriended scholars who would later shape court intellectual life, among them the mathematician and calendar specialist Cui Yuan [2].
Despite his obvious talent, Zhang Heng repeatedly declined early offers of official appointment. Local authorities nominated him for posts more than once, and he turned them down, preferring years of private study and writing [3]. This reluctance to chase office became a lasting feature of his reputation. Later biographers presented him as a man who valued learning over rank, a portrait drawn largely from his official biography in the Hou Hanshu, the standard history of the Eastern Han [1].
Path to Prominence
Literature brought Zhang Heng his first fame. In his twenties he served briefly as an officer of merit in the Nanyang administration under governor Bao De, drafting documents and gaining practical experience of government [2]. During these years he worked on the composition that made his name: the "Fu on the Two Capitals" (Er jing fu), a pair of long rhapsodies contrasting the extravagance of Chang'an with the restraint of Luoyang. The work reportedly took him a decade to complete and was read as a veiled criticism of aristocratic excess [3].
His growing reputation eventually reached the court. Around 111 CE Emperor An summoned him to Luoyang, and he accepted a position in the imperial secretariat [1]. In 115 CE he received the appointment that defined his scientific career: Taishi ling, often translated as Grand Astrologer or Prefect of the Grand Clerks. The post made him responsible for astronomical observation, calendar regulation, and the recording of omens and portents [4].
Zhang Heng held the astronomical office twice, with an interval in other duties, serving under Emperor An and then Emperor Shun [1]. The position suited him. It combined mathematics, instrument-making, and record-keeping, and it gave him access to the accumulated observational archives of the Han state. From this platform he produced the theoretical writings and mechanical devices that anchor any serious Zhang Heng biography.
Major Achievements
The most celebrated of Zhang Heng achievements is the seismoscope of 132 CE, an instrument he called the houfeng didong yi, roughly "instrument for inquiring into the wind and the shaking of the earth" [4]. The Hou Hanshu describes a bronze vessel about eight chi in diameter (nearly two meters) decorated with eight dragons facing the principal directions, each holding a ball in its jaws above a corresponding bronze toad [1]. When an earthquake occurred, an internal mechanism, probably a pendulum, caused one dragon to release its ball, indicating the direction of the tremor. The history records that in 138 CE the device signaled an earthquake that court officials had not felt; days later a messenger arrived reporting a quake in Longxi, hundreds of kilometers to the northwest, vindicating the machine [4]. Historians of science regard it as the earliest known seismic detection instrument anywhere in the world [5].
Astronomy occupied him just as deeply. Around 117 CE Zhang Heng built a rotating armillary sphere driven by water power, using a clepsydra (water clock) to turn the instrument in time with the apparent motion of the sky [4]. In his treatise Ling Xian (roughly "Spiritual Constitution of the Universe") he set out a cosmology in which the heavens surround the earth as a shell surrounds the yolk of an egg, the model known as huntian theory [5]. He catalogued 2,500 stars visible from the capital, grouped into 124 constellations, and he explained lunar eclipses correctly as the moon passing into the earth's shadow, noting that the moon shines by reflected sunlight [4]. He also measured the apparent angular diameter of the sun and moon.
His mathematics supported this observational work. Zhang Heng calculated a value of pi as the square root of 10, approximately 3.162, an improvement in method over the crude value of 3 that many earlier Han texts used [6]. He wrote on the computation of volumes for spheres and cubes, and his name is attached to early Chinese work on solving practical mensuration problems. As a cartographer he produced maps, and later Chinese writers credited him with contributions to the gridded representation of terrain, though the details of his maps have not survived [5]. Sources also associate him with an odometer cart that measured road distance by drumbeats and with work on a south-pointing chariot, a mechanical direction-keeping device [4].
Poetry and Literary Work
Among his contemporaries, Zhang Heng was at least as famous for verse as for instruments. His rhapsodies belong to the fu genre, long descriptive compositions mixing prose and rhyme, and critics have long ranked his "Fu on the Two Capitals" alongside the earlier work of Ban Gu on the same theme [3]. Where Ban Gu's version praised the dynasty, Zhang Heng's carried a sharper moral edge, warning against luxury and misrule.
His shorter works show a more personal voice. The "Fu on Returning to the Fields" (Guitian fu), written near the end of his life, imagines withdrawal from court intrigue into rural quiet, and it became an early model for the Chinese literature of retirement later perfected by Tao Yuanming [3]. He also wrote "Four Sorrows" (Sichou shi), often cited as one of the earliest surviving Chinese poems in regular seven-character lines [2].
This double identity, court scientist and lyric poet, was not unusual in Han China, where officials were expected to command both classical letters and technical administration. Yet few managed both at his level. Literary anthologies preserved his poems for centuries after his instruments had vanished, which is one reason a full picture of who was Zhang Heng must include the writer as well as the engineer [3].
Personal Life and Character
Little is recorded about Zhang Heng's family beyond his descent from Zhang Kan and the modest circumstances of his youth [2]. The sources instead dwell on his temperament. The Hou Hanshu describes him as calm, unhurried, and indifferent to the pursuit of wealth or connections, a man who did not seek out powerful patrons even when doing so would have advanced his career [1].
That independence had costs. As court astronomer he was expected to interpret portents, and his interpretations sometimes displeased the palace eunuchs whose influence grew steadily under Emperor Shun. When the emperor once asked him directly to name the most hated men in the empire, eunuchs present stared at him, and Zhang Heng answered evasively to protect himself [1]. He later wrote a rhapsody on contemplating the mystery of things, the "Fu on Pondering the Mystery" (Sixuan fu), reflecting on frustrated ambition and the perils of office [3].
His friendships were scholarly rather than political. The astronomer and mathematician Cui Yuan remained close to him from their student days, and later admirers grouped Zhang Heng with the finest minds of the dynasty. He seems to have regarded instruments, calculations, and poems as parts of one enterprise: the careful description of the world and of the person living in it [2].
Later Years
Court politics eventually pushed Zhang Heng away from the capital. In 136 CE he was transferred out of Luoyang to serve as chancellor of Hejian, a kingdom in the northeast held by an imperial prince known for extravagance and lawlessness [1]. The appointment was in effect an honorable removal, engineered, later historians suggested, by eunuchs who found his presence at court inconvenient [2].
He proved an effective provincial administrator. Accounts credit him with suppressing local strongmen and restoring order in Hejian within a short time, applying the same exactness to government that he brought to instrument design [1]. Yet the posting confirmed his weariness with public life. It was in this period that he composed the "Fu on Returning to the Fields," with its wish for a life of fishing, reading, and quiet observation of the seasons [3].
In 138 CE he petitioned to retire and was instead recalled to the capital to serve as a palace attendant. He died in Luoyang in 139 CE at the age of sixty one by traditional reckoning [1]. His death came only a year after the famous vindication of his seismoscope, so he lived to see his most original invention proven in practice [4].
Legacy
Zhang Heng's instruments did not survive antiquity, and no drawing of the seismoscope exists, but the textual description in the Hou Hanshu was detailed enough to inspire reconstruction attempts from the nineteenth century onward, including a widely reproduced model by the Japanese seismologist John Milne's contemporaries and later Chinese researchers [5]. Modern seismologists still debate the internal mechanism, and working replicas have been tested with mixed results, which has kept the device a live subject of research rather than a museum curiosity [5].
Within the history of science his standing is high. Joseph Needham, in Science and Civilisation in China, treated Zhang Heng as a central figure of Han science, comparing his range to that of later European polymaths [4]. His huntian cosmology dominated Chinese astronomical thinking for centuries, and his water-driven sphere stood at the head of a tradition of astronomical clockwork that culminated in Su Song's great tower of the eleventh century [4].
Modern honors reflect both the scientist and the poet. A crater on the far side of the moon is named Chang Heng, using an older romanization of his name, and the minor planet 1802 Zhang Heng also commemorates him [7]. In 2018 China launched the earthquake research satellite Zhangheng 1, an electromagnetic monitoring mission named in his honor, linking twenty-first century seismology to its second century pioneer [8]. Among widely cited Zhang Heng facts, that continuity may be the most telling: nearly nineteen centuries after his bronze dragons dropped their first ball, his name still travels with the study of earthquakes [8].
Questions & Answers
- When was Zhang Heng born?
- Zhang Heng was born in 78 CE in Xi'e county, in the Nanyang commandery of Eastern Han China, in present-day Henan province. He died in the capital Luoyang in 139 CE.
- What is Zhang Heng famous for?
- He is best known for inventing the world's first known seismoscope in 132 CE, a bronze instrument that indicated the direction of distant earthquakes. He also built a water-powered armillary sphere, catalogued 2,500 stars, and wrote celebrated fu poetry.
- How did Zhang Heng's seismoscope work?
- The bronze vessel held eight dragons facing the compass directions, each with a ball in its jaws above a bronze toad. An internal mechanism, probably a pendulum, responded to ground motion and caused one dragon to drop its ball, showing the quake's direction. In 138 CE it detected an earthquake in Longxi that no one in the capital had felt.
- What did Zhang Heng contribute to astronomy?
- As the Han court's Grand Astrologer he built a rotating armillary sphere driven by a water clock, explained lunar eclipses as the earth's shadow falling on the moon, and described the universe as a sphere enclosing the earth like an eggshell around a yolk. He recorded 2,500 stars in 124 constellations.
- Was Zhang Heng also a poet?
- Yes. His long rhapsody "Fu on the Two Capitals" made him one of the most admired writers of the Eastern Han, and his "Fu on Returning to the Fields" became an early classic of Chinese retirement literature. His "Four Sorrows" is often cited among the earliest seven-character poems.
- How is Zhang Heng honored today?
- A lunar crater and the minor planet 1802 Zhang Heng carry his name, and in 2018 China launched Zhangheng 1, an earthquake monitoring satellite named after him. He remains a standard figure in histories of Chinese science.
References
Every record in this archive is kept against verifiable sources.
- [1]Fan Ye. Hou Hanshu (Book of the Later Han), Biography of Zhang Heng. Zhonghua Book Company (standard edition), 5th century CE. Primary source
- [2]Zhang Heng. Encyclopaedia Britannica. https://www.britannica.com/biography/Zhang-HengWeb
- [3]Victor H. Mair (editor). The Columbia History of Chinese Literature. Columbia University Press, 2001. Book
- [4]Joseph Needham. Science and Civilisation in China, Volume 3: Mathematics and the Sciences of the Heavens and the Earth. Cambridge University Press, 1959. Book
- [5]J. J. O'Connor and E. F. Robertson. Zhang Heng biography. MacTutor History of Mathematics Archive, University of St Andrews. https://mathshistory.st-andrews.ac.uk/Biographies/Zhang_Heng/Web
- [6]Shen Kangshen, John N. Crossley, and Anthony W. C. Lun. The Nine Chapters on the Mathematical Art: Companion and Commentary. Oxford University Press, 1999. Book
- [7]Gazetteer of Planetary Nomenclature: Chang Heng crater. International Astronomical Union / USGS Astrogeology Science Center. Web
- [8]China launches its first seismo-electromagnetic satellite, Zhangheng 1. Xinhua News Agency, 2018. News
help the keeper
Spotted an error, or hold a source the archive lacks? Every record can be corrected. Submissions are reviewed against authentic references before any change is made.

entered into the archive
kept by The Keeper