Gita and science

The Vedas and Mathematics: What Ancient India Really Discovered

From the geometry of Vedic fire altars to binary-like patterns in poetry and the number zero, here is what ancient Indian mathematics really achieved, and what "Vedic Maths" is and is not.

By Surendar Kumar · 2026-11-18 · 5 min read

Ancient India gave the world some of its most important mathematical ideas. Every time you write a number like 2026, you are using a system of place value and zero that was developed in India and carried to the rest of the world through Arabic scholars. But the story is often told with exaggerations on one side and neglect on the other.

This article sets out, simply and honestly, what the Vedic and later Indian traditions actually achieved, where the evidence comes from, and how the popular "Vedic Maths" fits in.

Mathematics born from ritual

The Vedas are among the oldest texts in the world, mainly hymns and instructions for ritual. Mathematics grew in their service.

Vedic rituals required fire altars built in very precise shapes: squares, circles, falcons with spread wings. Often an altar had to be changed in shape while keeping exactly the same area, or doubled in area while keeping its shape. That is a serious geometry problem.

The rules for building these altars are collected in the Shulba Sutras, "the rules of the cord", because the builders measured with ropes and pegs. The oldest, by Baudhayana, is usually dated to somewhere around 800 to 500 BCE, though dates are uncertain.

The "Pythagorean" theorem

Baudhayana's Shulba Sutra contains a clear general statement of what we call the Pythagorean theorem: the diagonal of a rectangle produces both areas which its length and breadth produce separately. In other words, the square on the diagonal equals the sum of the squares on the two sides.

The sutras also list sets of whole numbers that fit this rule, such as 3, 4, 5 and 5, 12, 13. Pythagoras lived in the sixth century BCE; the Babylonians knew such number sets even earlier. So the honest claim is not that India "invented" the theorem first, but that Indian builders knew and stated it independently and early, and used it in practice.

The square root of two

To double the area of a square altar, you need the diagonal of the original square, which is its side multiplied by the square root of two. The Shulba Sutras give this rule:

Increase the measure by its third, and this third by its own fourth, less the thirty-fourth part of that fourth.

As a formula: 1 + 1/3 + 1/(3×4) − 1/(3×4×34) = 577/408 ≈ 1.4142157. The true value is 1.4142136. That is accurate to five decimal places, from people working with ropes and pegs.

Very large numbers

The Vedic texts were comfortable with huge numbers. A passage in the Yajurveda lists names for powers of ten, from one, ten, a hundred, a thousand, all the way up to parārdha, a million million (10¹²). Later Buddhist and Jain texts went much further, naming numbers far beyond anything needed for counting things.

This comfort with enormous numbers fits Indian cosmology, which speaks of cycles of billions of years. (Read more in the Gita and Vedic cosmology.)

Pingala and patterns like binary

Around the third or second century BCE, the scholar Pingala wrote a treatise on Sanskrit poetic metre, the Chandaḥśāstra. Sanskrit verse is built from light and heavy syllables, and Pingala worked out systematic ways to list every possible pattern of light and heavy syllables, to count them and to give each a number.

His method works much like a binary number system, with two symbols. Later commentators, notably Halayudha in the tenth century, explained a triangular arrangement for counting combinations of syllables, the same pattern known in Europe as Pascal's triangle. Related counting problems in Indian prosody also produced the sequence we call the Fibonacci numbers, described by Indian scholars such as Virahanka and Hemachandra before Fibonacci.

Zero and the place-value system

The greatest gift was the decimal place-value system with zero. Writing numbers with just ten digits, where a digit's position gives its value, and with a symbol for "nothing in this place", made arithmetic vastly easier.

This system developed in India in the early centuries of the common era. The Bakhshali manuscript uses a dot for zero. In 628 CE, the astronomer Brahmagupta gave rules for calculating with zero as a number in its own right, such as a number minus itself is zero. Through Persian and Arab mathematicians like al-Khwarizmi, the system travelled to Europe, where it was called "Arabic numerals".

Strictly speaking, these developments came centuries after the Vedic period. But they grew within the same culture of learning that began with the Vedic altar-builders.

Astronomy and the Kerala school

In 499 CE, Aryabhata gave a value for pi of 3.1416 and described it as approximate. He also suggested that the earth rotates on its axis. Much later, from the fourteenth century, mathematicians of the Kerala school, beginning with Madhava of Sangamagrama, discovered infinite series for pi and for trigonometric functions, centuries before similar results in Europe.

So what is "Vedic Maths"?

Many students today learn Vedic Maths: quick mental tricks for multiplication, division and squaring, based on sixteen short sutras such as "vertically and crosswise".

These come from a book by Bharati Krishna Tirtha, a Shankaracharya of Puri, published in 1965. He said he had reconstructed them from the Vedas. However, scholars have not found these sutras in any known Vedic text, and many mathematicians and historians, Indian and foreign, have said so clearly.

That does not make the methods useless. They are clever and genuinely helpful for mental arithmetic. But it is more accurate to call them a modern system inspired by Indian tradition than ancient Vedic mathematics. Honesty here protects the real achievements, which are remarkable enough.

What the Gita says about number and order

The Bhagavad Gita is not a mathematics book, but it reflects a world that saw deep order in nature. Krishna says, among measurers I am time (10.30), and among letters I am the letter A (10.33). He also calls the person who sees the one reality in all the many beings truly wise (13.30).

For many in the Indian tradition, mathematics was not separate from the sacred. Measuring an altar correctly, tracking the stars or counting syllables of a hymn were all ways of honouring the order of the universe.

Why this history matters

Knowing this history accurately gives pride without exaggeration. It reminds us that mathematics is a human story, with discoveries in Babylon, Egypt, Greece, China, India, the Islamic world and Europe, each building on others. India's place in that story is real and important, and it needs no myths.

Keep reading

Explore the Gita and Vedic cosmology, discover how a physicist read the Gita in Oppenheimer and the Bhagavad Gita, or read Chapter 10 of the Gita, where Krishna names his presence in the wonders of the world. You can also ask Krishna your own questions.

Frequently asked questions

Did the Vedas contain mathematics?

Yes. The Shulba Sutras, appendices to Vedic ritual texts, contain geometry for building fire altars, including a statement of the Pythagorean theorem and an accurate approximation of the square root of two.

Who invented zero?

The use of zero as a number and the decimal place-value system developed in India. Brahmagupta gave rules for calculating with zero in 628 CE.

Is Vedic Maths really from the Vedas?

Vedic Maths comes from a 1965 book by Bharati Krishna Tirtha. Its sixteen sutras have not been found in any known Vedic text, so historians regard it as a modern system inspired by Indian tradition.

Did ancient India know the Pythagorean theorem?

Yes. Baudhayana's Shulba Sutra, probably composed between about 800 and 500 BCE, clearly states the theorem and lists number triples such as 3, 4, 5.

What did Pingala discover?

Pingala, a scholar of Sanskrit metre, developed a way of listing and counting syllable patterns that works much like binary numbers, and his tradition led to Pascal's triangle and Fibonacci-like sequences.

Keep reading

Ask Krishna your own questionTalk Now by voice

Have a story idea or a correction? Write to us. Learn more about Talk to Krishna.