from the archive · Medieval era
Mahavira
800 CE – 875 CE · mathematician
By The Keeper · Published
AI-assisted writing, automatically checked. Editorial process
Mahavira was a ninth century Indian mathematician, born around 800 CE, who wrote the Ganita Sara Sangraha, the earliest surviving Sanskrit work devoted entirely to mathematics rather than astronomy. Working at the Rashtrakuta court in southern India, he gathered, corrected, and extended the arithmetic and algebra of his predecessors into a single teaching text. His rules for fractions, permutations and combinations, and series shaped mathematical instruction in India for centuries. For anyone asking who was Mahavira, the answer is one of the most influential mathematics teachers of the medieval world.
Early Life
Mahavira, sometimes called Mahaviracharya, meaning Mahavira the teacher, was born around 800 CE in India, most likely in the southern Deccan region where he later worked [1]. Almost nothing is recorded about his family, his childhood, or his formal education. This silence is common for Indian scholars of the period: reputations traveled through texts, not through personal chronicles, and Mahavira left only one book behind. What can be said with confidence comes from that book and from the tradition that preserved it [2].
He was a devout Jain, a fact he announces openly in the opening verses of his work, which honor Mahavira the twenty fourth tirthankara of Jainism, the religious teacher whose name the mathematician shared [1]. Jain communities in medieval Karnataka maintained strong scholarly institutions, and Jain thinkers had long treated large numbers, permutations, and the classification of quantities as matters of religious as well as practical interest. Growing up inside that intellectual culture, Mahavira absorbed a tradition in which calculation carried genuine prestige [3].
Any Mahavira biography must acknowledge these gaps honestly. Historians infer his dates from the reign of his royal patron, place him in the Deccan from the language and examples of his text, and reconstruct his training from the earlier authors he clearly knew. Beyond that, the man himself remains hidden behind his mathematics [2].
Path to Prominence
Mahavira rose to prominence at the court of Amoghavarsha I, the Rashtrakuta king who ruled much of western and southern India for most of the ninth century [1]. Amoghavarsha was an unusual monarch: a patron of letters, sympathetic to Jainism, and himself credited with a Kannada literary work. His long reign, conventionally dated from about 814 to about 878 CE, gave scholars at his court decades of stability, and Mahavira praises him warmly in the opening of his book [2].
That book, the Ganita Sara Sangraha, or Compendium of the Essence of Calculation, was composed around 850 CE [1]. It marked a quiet break with the past. Earlier Indian mathematicians of the first rank, including Aryabhata in the fifth century and Brahmagupta in the seventh, had embedded their mathematics inside astronomical treatises, where calculation served the needs of the calendar and the planets. Mahavira wrote about mathematics for its own sake. His work is the earliest extant Sanskrit text of its kind, a self contained course in arithmetic and practical geometry with no astronomical framing at all [3].
The choice reflected his purpose. Mahavira was a teacher before he was a theorist, and the Ganita Sara Sangraha reads like a carefully graded syllabus: definitions first, then operations, then increasingly demanding problem types, each illustrated with worked examples about travelers, merchants, elephants, and lotus ponds. The format made the book easy to study, easy to memorize, and easy to transmit [2].
Major Achievements
Among the most cited Mahavira achievements is his treatment of combinations. He stated a general rule for the number of ways r objects can be selected from n objects, equivalent to the modern formula for the binomial coefficient, and he presented it as a plain computational recipe rather than a curiosity [1]. Jain scholars had counted combinations of philosophical categories for centuries, but Mahavira gave the procedure in its general arithmetic form, one of the earliest explicit statements of the rule anywhere [3].
His handling of fractions was equally influential. The Ganita Sara Sangraha devotes extended attention to unit fractions, giving methods for expressing a given fraction as a sum of fractions with numerator one, and rules for splitting one into sums of unit fractions with specified properties [2]. He also worked comfortably with the least common denominator, with compound fractions, and with the arithmetic of proportion that underpinned commerce and taxation. Alongside this he treated arithmetic and geometric progressions, permutations, quadratic style problems, and the extraction of square and cube roots [1].
Two remarks in the text have drawn particular attention from historians. Mahavira observed that a negative quantity has no square root, since a negative number is not a square, which is among the earliest clear statements that the operation is impossible within ordinary numbers [3]. He also discussed division involving zero, asserting that a quantity divided by zero remains unchanged. That claim was wrong, and Bhaskara II corrected the treatment of zero three centuries later, but the willingness to legislate rules for zero at all shows how far Indian arithmetic had moved beyond its ancient roots [2]. His geometry was frankly practical: he gave serviceable approximation rules for the area and circumference of an ellipse, a figure his predecessors had largely ignored [4].
Faith and Mathematical Culture
Mahavira's Jainism was not incidental to his mathematics. Jain cosmology described a universe of enormous magnitudes, with time cycles and populations measured in numbers far beyond everyday use, and Jain thinkers had developed a taste for classifying the very large and the innumerable [3]. The Ganita Sara Sangraha inherits this sensibility. Its problems reach cheerfully into large numbers, and its opening verses praise calculation as a discipline that illuminates every field of human activity, from religious ritual to music, medicine, and trade [1].
He was also a consolidator by temperament. Rather than presenting his book as a personal invention, Mahavira described himself as collecting the essence of earlier teachings, compressing what was scattered and clarifying what was obscure [2]. He drew on Brahmagupta and on the school of Aryabhata, tightened their terminology, expanded their problem sets, and corrected details where he disagreed. The result was less a research monograph than a definitive textbook, and that is precisely why it survived [3].
The examples scattered through the text give an unusually vivid picture of ninth century life in the Deccan. Problems concern the price of citrons and wood apples, the wages of laborers, the mixing of gold of different purities, arrows in a quiver, and bees scattering from a jasmine bush. Mahavira understood that students learn arithmetic through stories, and his little scenarios kept the book alive in classrooms long after his death [2].
Later Years
Mahavira is believed to have died around 875 CE in the Indian subcontinent, probably still within Rashtrakuta territory [1]. No account of his final years survives, and no other work is securely attributed to him. Whatever else he wrote or taught in the quarter century after completing the Ganita Sara Sangraha has left no trace [2].
His book, however, was already spreading. In the eleventh century the Telugu poet Pavuluri Mallana produced a version of the work in Telugu, carrying Mahavira's arithmetic into a new language and a wider public [3]. Manuscripts circulated across southern India, and later Sanskrit authors on arithmetic borrowed his classifications, his problem types, and sometimes his exact examples. In a manuscript culture, survival across a thousand years is itself evidence of sustained demand, and the Ganita Sara Sangraha was copied continuously [2].
The basic Mahavira facts, his dates near 800 and 875 CE, his Jain faith, his royal patron, and his single great book, therefore rest on firmer ground than the details of his personal life ever will. He belongs to that class of medieval scholars known almost entirely through the endurance of one text [1].
Legacy
Mahavira's lasting contribution was to establish mathematics as an independent subject of study in Sanskrit literature. By detaching calculation from astronomy and organizing it into a coherent textbook, he created a model that later Indian writers followed, most famously Bhaskara II, whose twelfth century Lilavati echoes Mahavira's structure and several of his problem types [1]. Through such channels his rules for fractions, series, and combinations remained part of Indian mathematical education for centuries [3].
Modern scholarship recovered him for a global audience in 1912, when M. Rangacarya published the Sanskrit text of the Ganita Sara Sangraha with an English translation, prepared under the government of Madras [4]. The edition allowed historians of mathematics outside India to measure his work against Greek, Chinese, and Islamic arithmetic, and his early statement of the combination rule and his remark on the square roots of negative quantities have featured in histories of mathematics ever since [3].
Assessments of his originality vary. Mahavira proved no theorems in the Greek manner and offered rules without demonstrations, as was standard in his tradition, and some of his procedures were approximations or, in the case of division by zero, simply mistaken [2]. Yet the judgment of historians such as Kim Plofker and George Gheverghese Joseph is that he ranks among the most capable and influential mathematicians of medieval India, a synthesizer whose textbook defined the subject for generations [3]. Twelve centuries on, the schoolmaster of the Rashtrakuta court still earns his place in any serious history of numbers [1].
Questions & Answers
- When was Mahavira born?
- Mahavira the mathematician was born around 800 CE in India, most likely in the southern Deccan region. His exact birthplace and birth date are not recorded, and historians estimate his dates from the reign of his patron, the Rashtrakuta king Amoghavarsha I.
- What is Mahavira famous for?
- He is famous for the Ganita Sara Sangraha, composed around 850 CE, the earliest surviving Sanskrit text devoted entirely to mathematics rather than astronomy. The book covers fractions, permutations and combinations, progressions, roots, and practical geometry.
- Is this Mahavira the same as the founder of Jainism?
- No. The mathematician Mahavira lived in the ninth century CE and shared his name with the twenty fourth Jain tirthankara, who lived over a thousand years earlier. The mathematician was himself a devout Jain and honors the tirthankara in his book.
- What did Mahavira contribute to mathematics?
- He stated a general rule for counting combinations, equivalent to the modern binomial coefficient formula, developed methods for unit fractions, and gave approximation rules for the ellipse. He also noted that a negative number has no square root, an early recognition of that impossibility.
- When did Mahavira die?
- He is believed to have died around 875 CE in the Indian subcontinent, probably within the Rashtrakuta kingdom where he had spent his career. No details of his death or final years were recorded.
- Who was Mahavira's patron?
- Mahavira worked at the court of Amoghavarsha I, the Rashtrakuta king who ruled much of western and southern India through most of the ninth century. Amoghavarsha was a noted patron of scholarship and sympathetic to Jainism, and Mahavira praises him in the opening of his book.
References
Every record in this archive is kept against verifiable sources.
- [1]Mahavira (Indian mathematician). Encyclopaedia Britannica. Web
- [2]J. J. O'Connor and E. F. Robertson. Mahavira. MacTutor History of Mathematics Archive, University of St Andrews, 2000. https://mathshistory.st-andrews.ac.uk/Biographies/Mahavira/Web
- [3]Kim Plofker. Mathematics in India. Princeton University Press, 2009. Book
- [4]M. Rangacarya. The Ganita Sara Sangraha of Mahaviracharya, with English Translation and Notes. Government Press, Madras, 1912. Book
- [5]George Gheverghese Joseph. The Crest of the Peacock: Non-European Roots of Mathematics. Princeton University Press, 2011. Book
- [6]David Pingree. A History of Indian Literature: Scientific and Technical Literature. Otto Harrassowitz, 1981. Book

preserved for ever
Sealed on the blockchain. Tap the seal to verify.
preserved for ever
Sealed on the blockchain. Tap the seal to verify.
This record is inscribed on the Arweave blockchain, a permanent public ledger replicated across hundreds of independent machines. The copy there cannot be edited, withdrawn, or lost. It will outlast this website, its server, and its keeper.
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