Skip to main content
The History of Chinese Mathematics: Counting Rods, Pi, and the Nine Chapters
๐Ÿ› HistoryChinese mathematics historycounting rodsNine Chapters on the Mathematical ArtLiu Hui

The History of Chinese Mathematics: Counting Rods, Pi, and the Nine Chapters

Long before the abacus, Chinese mathematicians used counting rods, computed pi to seven decimals, and solved systems of equations. A look at the golden age of Chinese mathematics.

2026-09-13
By redpapa
ยท๐Ÿ› History

The History of Chinese Mathematics: Counting Rods, Pi, and the Nine Chapters

A Different Mathematical Tradition

When we tell the story of mathematics, it usually runs through Greece, then the Islamic world, then Renaissance Europe. China rarely appears โ€” yet for more than two thousand years Chinese mathematicians independently developed algorithms, negative numbers, and matrix-style equation solving centuries before they surfaced in the West. The tools were unusual: instead of pen and paper, they calculated with counting rods laid on a board.

This article traces the golden age of Chinese mathematics, from the rod numerals of the Han to the pi calculations of the Southern Dynasties.


Counting Rods: The Original Algorithm Engine

Long before the abacus became famous, Chinese mathematicians used counting rods (็ฎ—็ญน) โ€” small sticks of bamboo or ivory, typically about 15 centimeters long. Numbers were represented positionally: units, tens, hundreds ran left to right, and rods were rotated 90 degrees at each place to avoid confusion. A blank space meant zero, an idea that anticipated the zero placeholder.

Crucially, rods made negative numbers natural. Red rods could denote positives, black rods negatives โ€” the first systematic use of signed numbers anywhere in the world, described in texts as early as the Han dynasty (206 BCEโ€“220 CE), more than a millennium before Europeans accepted negatives.


The Nine Chapters on the Mathematical Art

The cornerstone of Chinese mathematics is the Jiuzhang Suanshu (ไน็ซ ็ฎ—ๆœฏ), or Nine Chapters on the Mathematical Art, compiled around the 1st century CE from earlier material. It is a problem-solving manual of 246 problems across nine sections:

  1. Field measurement (areas of triangles, circles, trapezoids)
  2. Millet and rice (proportions and exchange)
  3. Distribution by proportion
  4. Short width (square and cube roots)
  5. Civil engineering (volumes for canals and fortifications)
  6. Fair levies (tax and labor allocation)
  7. Excess and deficit (false position method)
  8. Rectangular arrays (solving linear systems โ€” essentially Gaussian elimination)
  9. Right triangles (the Gougu theorem, China's Pythagorean theorem)

Chapter 8 is the headline: it solves systems of linear equations by arranging coefficients in a grid and eliminating โ€” the same method Europe would rediscover as Gaussian elimination in the 19th century.


Liu Hui and the Geometry of Pi

In 263 CE, the mathematician Liu Hui wrote a commentary on the Nine Chapters that is a milestone in its own right. To estimate pi, he used a polygon inscribed in a circle, doubling the number of sides repeatedly. Starting from a hexagon and working up to a 192-sided polygon, he derived pi as about 3.1416 โ€” remarkably accurate for the era.

Liu Hui also gave an early proof of the volume of a pyramid and refined algorithms for circles and spheres. His work shows Chinese mathematics was not only practical but capable of rigorous geometric reasoning.


Zu Chongzhi and Seven Decimals of Pi

Two centuries later, the astronomer-mathematician Zu Chongzhi (429โ€“500 CE) pushed pi to between 3.1415926 and 3.1415927 โ€” a precision that would not be matched in the world for nearly a thousand years. He also proposed the Zu Geng principle, a precursor to Cavalieri's principle in calculus, to compute sphere volumes. His contemporary and son Zu Geng continued the work, demonstrating a sustained family tradition of mathematical research.


Why It Mattered โ€” and Why It Stalled

Chinese mathematics was extraordinarily effective for state needs: taxing grain, building canals, casting calendars, and allocating labor. Its algorithm-first, practical orientation differed sharply from Greek deductive geometry. But after the Song and Yuan dynasties (10thโ€“14th centuries), when figures like Qin Jiushao and Zhu Shijie reached new heights with polynomial equations, Chinese mathematics gradually lost momentum as exam-focused Confucian education sidelined technical fields.

When Jesuit missionaries arrived in the 16th and 17th centuries, they found a rich but partly stagnating tradition and introduced Euclidean geometry โ€” beginning the long fusion that shaped modern Chinese science.


Legacy Today

The rod-numeral idea of place value and the matrix method of the Nine Chapters are part of the deep DNA of computation. Modern China, now the world's largest producer of STEM graduates, traces a continuous if uneven line back to these rod-wielding scholars. The story of Chinese mathematics is a reminder that the history of human reason is not a single river but many.


?Frequently Asked Questions

Did ancient Chinese mathematicians use the abacus?
Not at first. For most of the Han through Tang periods, calculation was done with counting rods on a board. The bead abacus (suanpan) became common later, roughly from the Yuan and Ming dynasties onward.
How accurate was Zu Chongzhi's value of pi?
He bounded pi between 3.1415926 and 3.1415927, correct to seven decimal places โ€” a level of precision unmatched globally for about a thousand years.
What is the "Gougu theorem"?
It is China's version of the Pythagorean theorem, stated in the Nine Chapters for right triangles: the sum of the squares on the two legs equals the square on the hypotenuse.
Did China really use negative numbers first?
Yes. Chinese texts from the Han dynasty describe positive and negative numbers via red and black counting rods, the earliest systematic signed-number system known.
Why is the Nine Chapters so important?
It was the standard mathematics textbook in China for over a millennium, establishing algorithms for areas, roots, proportions, and linear systems that influenced East Asian mathematics for centuries.
Tags:Chinese mathematics historycounting rodsNine Chapters on the Mathematical ArtLiu HuiZu Chongzhi piancient Chinese sciencehistory of math Chinarod numerals

Related Articles

๐Ÿ› History

The Hanโ€“Xiongnu Wars: How Emperor Wu Broke the Steppe Empire

๐Ÿ› History

The Rebellion of the Seven States (154 BC): How Three Months Reshaped Imperial China

๐Ÿ› History

Xuanzang's Journey to India: The Monk Who Walked 16,000 km and Changed Chinese Buddhism (2026)

๐Ÿ› History

The Tumubao Crisis of 1449: When a Ming Emperor Became a Prisoner