Quick Answer: How Did Chinese Mathematicians Use Negative Numbers?
The positive-negative procedure (正负术, zhèngfùshù) in the Chinese mathematical classic The Nine Chapters governed calculations with entries of opposite signs. The fangcheng (方程, fāngchéng) chapter used such entries in arrays of quantities. Liu Hui’s later commentary describes ways to distinguish the two signs with rods.[1][2][3]
- Positive and negative could describe opposing entries in a calculation.[2][3]
- Liu Hui mentions red rods for positive and black rods for negative.[2]
- The signs mattered during the calculation, even if the final answer was an ordinary measure or price.[3][4]
The historical procedure makes most sense when read in the context of the array it changes.

Imagine finding the differences between two groups of goods. One group might contain more of the first item and less of the second. A calculation needs a way to keep track of both directions at once.
Where Negative Entries Appeared
In the fangcheng chapter of The Nine Chapters, several relationships among quantities are arranged in columns. Comparing columns can eliminate quantities. At some points in the process, the number of units and the sign of an entry both need to be recorded.[1][3]
Historians have compared the rules with modern signed arithmetic. Some emphasize that the old instructions concern the elimination procedure within a particular arrangement. The calculation and its context help explain why the signs were needed.[4]
How Liu Hui Distinguished the Signs
Liu Hui’s commentary describes quantities whose meanings are opposed. It gives red and black as one way to distinguish the corresponding counting rods. It also mentions distinguishing upright and slanted placement. The group of rods can therefore express the magnitude of a value while another feature distinguishes its sign.[2][6]
Some excavated rods retain traces of color. The colors are evidence to compare with the text. A single colored rod does not establish how it was used or which convention it followed.[5]
A Modern Example of a Negative Entry
Suppose a first basket contains five portions of millet and two of beans, and a second contains three portions of millet and four of beans. Subtracting the second set of counts from the first gives two more millet portions and two fewer bean portions. In modern notation the two differences are +2 and −2.
The negative entry describes the comparison. The example uses contemporary notation to illustrate why a signed intermediate entry can arise even when both baskets physically contain goods.
What Later Texts Add
A study of Yang Hui’s commentary examines how he classified problems and explained the positive and negative entries. Other writing conventions are visible in later mathematical texts. The tianyuan method uses positions for a different task, organizing coefficients of an unknown. The history of decimal fractions shows another distinction between a number’s value and the way it is written.[4][6]
FAQs About Chinese Negative Numbers
Did Liu Hui write negative numbers with the modern minus sign?
His commentary describes red and black rods as a way to distinguish opposing entries. Later mathematical writing also used other marks.[2][6]
Were negative entries limited to describing debt?
The historical procedure uses signed entries in an array. The context of the problem and the calculation determines what each entry means.[3][4]
Why does the distinction between sign and amount matter?
Two entries can have the same magnitude while representing opposite directions in a calculation. The sign preserves that distinction.[2]
Sources
[1] Chinese Text Project. The Nine Chapters, Fang Cheng
[2] Liu Hui’s commentary, Shidian Classics. On the positive and negative procedure
[3] MacTutor, University of St Andrews. Nine Chapters on the Mathematical Art
[4] Chinese Annals of History of Science and Technology. Study of Yang Hui’s commentaries on the Nine Chapters
[5] Tsinghua University Science Museum. Chinese counting rods replica
[6] Hong Tianfu. Chinese computation with the counting rods
