☸  Jainism.info — World's Most Complete Living Jain Knowledge Portal
Philosophy Universe Tirthankaras
← All articles
Jainism as Science

Mahavira the Mathematician of Ninth-Century India

By Nirav Shah · 3 min read · May 14, 2026 · 1 views
Mahavira the Mathematician of Ninth-Century India

The Jain mathematician Mahaviracharya wrote a landmark treatise around 850 CE, the first Indian text devoted wholly to mathematics, rich in arithmetic, algebra and combinatorics.

Around the middle of the ninth century, a Jain mathematician named Mahaviracharya, or Mahavira, produced one of the most important mathematical works of medieval India. He should not be confused with the twenty-fourth Tirthankara, also called Mahavira; the mathematician took his name in honour of the great teacher. Working in southern India under the patronage of the Rashtrakuta emperor Amoghavarsha, he wrote the Ganita Sara Sangraha, the Compendium of the Essence of Mathematics, around 850 CE.

The Ganita Sara Sangraha holds a special place in history as the earliest Indian text devoted entirely to mathematics as a subject in its own right, separate from astronomy or ritual calculation. Earlier Indian mathematical knowledge had typically been embedded within astronomical treatises. Mahavira instead presented mathematics systematically and for its own sake, covering arithmetic operations, fractions, the handling of zero, geometry, the summation of series, and the solution of equations, including quadratic and certain indeterminate problems. He organised the material pedagogically, with rules followed by worked examples, making the treatise a comprehensive teaching text.

Among Mahavira's notable contributions is his treatment of combinatorics. He gave a general method for computing the number of combinations of a set of objects taken a certain number at a time, effectively the rule for what modern mathematics writes as the binomial coefficient. This is a genuine landmark: a clear, general combinatorial formula stated centuries before such results were systematised in Europe. He also worked extensively with series, with operations on fractions, including a rule for dividing by a fraction by inverting and multiplying, and with a variety of algebraic identities and problem types drawn from commerce, geometry, and recreational mathematics.

Mahavira was also notable for his handling of zero and his awareness of the difficulties surrounding it. He correctly stated that a number multiplied by zero is zero, and he discussed the behaviour of zero in operations, though, like all mathematicians before the modern era, he did not fully resolve the problem of division by zero; his treatment of it was not correct by modern standards, a point historians note honestly. He also recognised, importantly, that a negative number could not have a real square root, showing a careful attention to the limits of operations.

The Jain intellectual environment nurtured this mathematical flowering. Jain philosophy's fascination with enumeration, with the counting of souls, atoms, spatial units, and cosmic durations, and with the classification of the infinite and the innumerable, created a culture in which mathematics was valued and cultivated. Mahavira stood within a broader Jain mathematical tradition that had long engaged with large numbers, combinatorics, and the theory of the infinite, and his treatise gathered and advanced much of that heritage.

It is worth being measured in praise. Mahavira built on and paralleled the work of other Indian mathematicians, and some of his results had precedents or contemporaries. His treatise, for all its systematic quality, retained certain errors of its time. He was a great synthesiser and expositor as much as an original discoverer, though his combinatorial and algebraic contributions were genuinely significant.

Still, the historical importance of the Ganita Sara Sangraha is beyond dispute. It marks the emergence of mathematics as an independent discipline in the Indian tradition, it preserves and systematises a wealth of technique, and it demonstrates the depth of mathematical culture within Jainism. Mahavira the mathematician stands as concrete, verifiable evidence that the Jain engagement with number was not merely metaphysical speculation about infinity but also rigorous, practical, and creative mathematics of lasting value.

More to read

The Architecture of the Cosmos: Jain Loka

Jain texts describe the universe as a vast, uncreated structure of finite shape floating i...

Infinite Space: Akasha and the Unbounded Universe

Among the six eternal substances of Jainism, Akasha is space itself, and it is genuinely i...

Cyclical Time: Kalachakra and Cosmological Cycles

Jainism sees time as an endless wheel of ascending and descending ages rather than a singl...