The Baudhāyana theorem is the rule, written in the Baudhāyana Śulba Sūtra, that the diagonal cord of a rectangle "produces" both areas that its two sides produce separately — in modern notation a2 + b2 = c2. The text is an Indian manual for building fire altars, usually dated somewhere around 800–500 BCE, and it contains one of the oldest known general statements of the Pythagorean theorem.
The same text gives practical constructions, a list of whole-number right triangles and an excellent value for √2 — but no proof and no firm date, two facts that matter when people ask whether India knew the theorem "before Pythagoras".
What the Śulba Sūtras are
Śulba (also spelled śulva) means a cord or measuring rope, and a sūtra is a short rule meant to be memorized. The Śulba Sūtras are the geometry sections of larger ritual manuals attached to the Vedas. They tell priests how to lay out the platforms and brick altars used in Vedic fire sacrifices, using nothing more than a cord, a few pegs and careful rules.
Four main texts survive, each named after the teacher of the ritual school that preserved it: Baudhāyana, Āpastamba, Kātyāyana and Mānava. The Baudhāyana Śulba Sūtra belongs to the Taittirīya branch of the Black Yajurveda tradition. Nothing is known about Baudhāyana as a person beyond his name; we cannot even be sure that one individual wrote the whole text.
How old are they?
No early manuscripts exist. The texts were passed down orally for centuries, so historians date them indirectly, from their language and from which text seems to borrow from which. The results are ranges, not dates:
| Text | Commonly proposed date | Notes |
|---|---|---|
| Baudhāyana | c. 800–500 BCE | Generally considered the oldest of the four |
| Mānava | c. 750 BCE to several centuries later | Plofker puts it near Baudhāyana; David Pingree placed it later |
| Āpastamba | c. 600 BCE or somewhat later | Pingree thought it the next oldest after Baudhāyana |
| Kātyāyana | c. 350–200 BCE | Plofker places it after the grammarian Pāṇini, probably mid-4th century BCE |
Some historians stretch the overall span much further — Carl Boyer gave the eighth century BCE to the second century CE. A fair summary is that the Śulba Sūtras were composed somewhere between about 800 and 200 BCE, with Baudhāyana's text near the early end of that range.
Baudhāyana's statement of the theorem
The key rule is a single line of Sanskrit. One common transliteration (spellings vary slightly between editions) reads:
dīrghacaturasrasyākṣṇayā rajjuḥ pārśvamānī tiryagmānī ca yat pṛthagbhūte kurutas tad ubhayaṃ karoti
George Thibaut, whose English translations in the 1870s introduced the Śulba Sūtras to Western scholars, rendered it as: "The diagonal of an oblong produces by itself both the areas which the two sides of the oblong produce separately." Word by word, it runs roughly like this:
| Sanskrit | Meaning |
|---|---|
| dīrghacaturasra | a "long four-cornered figure": an oblong, i.e. a rectangle |
| akṣṇayā rajjuḥ | the cord stretched diagonally |
| pārśvamānī, tiryagmānī | the cords measuring the side and the cross-width |
| yat pṛthagbhūte kurutaḥ | what those two produce separately |
| tad ubhayaṃ karoti | [the diagonal] produces both of these |
"Produces" means "produces as a square": the area of the square built on a cord. So the rule says that the square on the diagonal equals the square on the length plus the square on the width. Because the diagonal cuts a rectangle into two right triangles, this is exactly the theorem for a right triangle with legs a and b and hypotenuse c.
Shortly before this, the text gives the special case for a square: the diagonal cord of a square produces twice its area. That is the rule a priest needs to double an altar while keeping its shape, and it is the same fact Plato would later dramatize in the Meno.
Two points deserve emphasis. First, the rule is stated for every rectangle, not just for a lucky set of numbers like 3, 4, 5, which is what makes it a general theorem rather than a recipe. Second, like the rest of the Śulba Sūtras, it is stated without a proof. The texts give rules to follow, not arguments for why they work; later Indian mathematicians, such as Bhāskara II in the twelfth century, supplied demonstrations.
Why altar builders needed it
Vedic ritual specified altars by shape and by area, and some rites required the same area to be produced in a different shape — a square turned into a circle, or an altar enlarged without changing its outline. You cannot do that with a cord and pegs unless you can build right angles reliably and add or subtract areas exactly. The diagonal rule does both jobs.
The most famous structure is the falcon-shaped altar (śyenaciti). In its standard form it was built from 1,000 fired bricks in five layers of 200, with a total area of 7½ square puruṣa (a puruṣa is the height of a man with raised arms, 120 aṅgula or "finger-breadths"). Each layer had to cover exactly that area with bricks of a few prescribed shapes, so the geometry had to be exact.
A simpler example shows the theorem at work. The great altar ground (mahāvedi) of the soma ritual is an isosceles trapezoid 30 units wide at the west, 24 units wide at the east and 36 units long from west to east (the unit is a pada or prakrama, a step).
To lay this out, the priests first fixed the east–west spine and then needed true right angles at both ends. Āpastamba's text does this with cords whose lengths are the three sides of a whole-number right triangle: peg the ends of one side, pull the cord taut at the marked point, and the corner is square. That technique relies on the converse of the Pythagorean theorem — the same principle behind the builder's 3-4-5 rule, and the one often (but without solid evidence) credited to the Egyptian rope stretchers.
Adding and subtracting squares
The Śulba Sūtras use the diagonal rule most often to combine areas. To make one square equal to two given squares, Baudhāyana's method is:
- Mark a strip. From the larger square, cut off a rectangle whose width is the side of the smaller square.
- Stretch the diagonal. The diagonal cord of that strip has, as its square, the large square plus the small one.
- Build the new square on that cord. Its area is the sum of the two original areas.
Subtraction works the same way in reverse. To remove a small square from a large one, the text again cuts off a strip as wide as the small square, then swings a cord as long as the large square's side across the strip until it touches the far edge. The distance cut off along that edge is the side of the remaining square, because it is a leg of a right triangle whose hypotenuse is the large side: √b2 − a2. It is the same calculation you use to find a missing leg.
The texts also turn a rectangle into a square of equal area (exactly) and a square into a circle of nearly equal area. Baudhāyana's circle has a radius of half the side plus one third of the amount by which half the diagonal exceeds half the side; by modern arithmetic it is about 1.7% too large. The texts state such approximations as plainly as their exact rules, and historians disagree about whether the authors knew which was which.
The √2 rule: 1 + 1/3 + 1/(3·4) − 1/(3·4·34)
To double a square you need its diagonal, and to give the diagonal as a number you need √2. The Śulba Sūtras (the rule appears in Baudhāyana, Āpastamba and Kātyāyana) give it in words. In paraphrase: increase the measure by its third, increase that third by its own fourth, and take away the thirty-fourth part of that fourth. In symbols:
√2 ≈ 1 + 1 over 3 + 1 over 3 · 4 − 1 over 3 · 4 · 34 = 577 over 408 ≈ 1.4142157The true value is √2 = 1.4142136 (to seven decimal places), so the error is about 0.0000021 — roughly two millionths, correct to five decimal places. Each term of the rule improves on the one before:
| Terms used | Fraction | Decimal | Error |
|---|---|---|---|
| 1 + 1 over 3 | 4/3 | 1.3333333 | −0.0808802 |
| 1 + 1 over 3 + 1 over 12 | 17/12 | 1.4166667 | +0.0024531 |
| 1 + 1 over 3 + 1 over 12 − 1 over 408 | 577/408 | 1.4142157 | +0.0000021 |
Notice how the last correction works. The error of 17/12 is about 0.0024531, and the subtracted term 1 over 408 is about 0.0024510 — almost exactly the same size. The fractions also have a neat property: 172 = 289 is one more than 2 × 122 = 288, and 5772 = 332,929 is one more than 2 × 4082 = 332,928. Squares that are "twice a square, plus one" are what make these fractions such good approximations.
How the rule was found is not recorded. Bibhutibhushan Datta (1932) proposed a geometric reconstruction that cuts and rearranges pieces around a square; R. C. Gupta later suggested a method of successive corrections. Some historians have suggested a link with Mesopotamia, where the Old Babylonian tablet YBC 7289 (c. 1800–1600 BCE) gives √2 in base 60 as about 1.4142130 — even closer than 577/408. There is no direct evidence either way. For the reason no fraction can ever be exactly right, see why √2 is irrational.
Pythagorean triples in the texts
Right after the diagonal rule, Baudhāyana notes that it can be seen in rectangles with particular whole-number sides. His list, with the diagonals that the rule implies:
| Side | Side | Sum of squares | Diagonal | Type |
|---|---|---|---|---|
| 3 | 4 | 25 | 5 | primitive |
| 12 | 5 | 169 | 13 | primitive |
| 15 | 8 | 289 | 17 | primitive |
| 7 | 24 | 625 | 25 | primitive |
| 12 | 35 | 1,369 | 37 | primitive |
| 15 | 36 | 1,521 | 39 | 3 × (5, 12, 13) |
Āpastamba's text works with (3, 4, 5), (5, 12, 13), (8, 15, 17) and (12, 35, 37). Five of Baudhāyana's six are primitive triples, whose three numbers share no common factor; the sixth is the 5-12-13 triangle scaled by 3, which is the triangle hidden in the mahāvedi. The texts give no general formula for producing triples, unlike Euclid's formula, and no list as long as the Babylonian tablet Plimpton 322. To see where these fit among all the triples, browse the list of Pythagorean triples.
Was India first? Weighing the priority claims
In India the result is often called the Baudhāyana theorem (or Baudhayana theorem), and there is a solid case for that credit. The rule is general, clearly stated and, on most estimates, older than Pythagoras (c. 570–c. 495 BCE), who left no writings of his own; the stories linking him to the theorem come from authors writing centuries after his death. It is certainly older than Euclid's proof (c. 300 BCE).
Other evidence complicates any claim to be the first:
- Babylon is older. Old Babylonian tablets from about 1800–1600 BCE use the relationship in calculations and list large triples, roughly a thousand years before the usual dates for Baudhāyana.
- The dates are soft. With Baudhāyana placed anywhere from about 800 to 500 BCE, the text could be two centuries older than Pythagoras or roughly his contemporary.
- A rule is not a proof. The Śulba Sūtras state the theorem; the oldest surviving deductive proof is Greek (Euclid's), and an independent Chinese demonstration comes from the gougu tradition.
Historians also disagree about whether these traditions were connected. Abraham Seidenberg argued that geometry had a ritual origin and that either Babylon learned the theorem from India or both inherited it from an older common source; B. L. van der Waerden also favored a common source. David Pingree warned against treating the altar builders as "the unique origin of geometry," and Kim Plofker suggests that existing geometric knowledge may have been absorbed into ritual practice. No surviving evidence shows transmission in any direction.
Key ideaThe fairest summary: the Śulba Sūtras contain one of the earliest known general statements of the theorem, discovered and used in India independently of Greece as far as anyone can show. Babylonian scribes used the relationship earlier, and no ancient tradition owns it outright. The history of the Pythagorean theorem is a story of several discoveries, not one.
Frequently asked questions
What is the Baudhayana theorem?
It is the name used in India for the Pythagorean theorem as stated in the Baudhāyana Śulba Sūtra: the square on the diagonal of a rectangle equals the squares on its two sides together. Since a diagonal splits a rectangle into two right triangles, it is the same statement as a2 + b2 = c2.
When was the Baudhayana Sulba Sutra written?
Nobody knows exactly. Most estimates place it roughly between 800 and 500 BCE, making it the oldest of the four main Śulba Sūtras. The texts were transmitted orally, so all dates come from indirect evidence such as language and ritual history.
Did Baudhāyana prove the Pythagorean theorem?
No proof appears in the text. The Śulba Sūtras give rules and constructions to follow, not justifications. Modern historians can show how the rules might have been checked with cut-and-rearrange arguments, but those reconstructions are not in the sources.
Is the Baudhāyana theorem older than Pythagoras?
Probably, on most estimates, though the dates overlap enough that it cannot be certain. Either way, Old Babylonian mathematicians were using the relationship more than a thousand years before both.
What value of √2 is in the Śulba Sūtras?
The rule 1 + 1 over 3 + 1 over 3 · 4 − 1 over 3 · 4 · 34, which equals 577 over 408 ≈ 1.4142157. That is within about two millionths of the true value 1.4142136, accurate to five decimal places.
Sources and further reading
- S. N. Sen and A. K. Bag, The Śulbasūtras of Baudhāyana, Āpastamba, Kātyāyana and Mānava, with text, English translation and commentary. New Delhi: Indian National Science Academy, 1983.
- Kim Plofker, Mathematics in India. Princeton University Press, 2009. Includes the Śulba Sūtras and the arguments about their dating.
- G. Thibaut, "On the Śulvasūtras", Journal of the Asiatic Society of Bengal 44 (1875). An early study by the translator quoted above.
- Bibhutibhushan Datta, The Science of the Śulba. University of Calcutta, 1932.
- A. Seidenberg, "The ritual origin of geometry", Archive for History of Exact Sciences 1 (1962).
- George Gheverghese Joseph, The Crest of the Peacock: Non-European Roots of Mathematics, 3rd ed. Princeton University Press, 2011.
- MacTutor History of Mathematics, The Indian Sulbasutras and Baudhayana.
- Wikipedia, Shulba Sutras (overview with dating estimates and further references).
Keep exploring
- HistoryHistory of the Pythagorean TheoremThe history of the Pythagorean theorem from Babylon (1800 BCE) to a 2023 proof: who discovered it, who proved it first, and why it bears Pythagoras' name.
- HistoryThe Gougu Theorem: the Pythagorean Theorem in Ancient ChinaThe gougu theorem of ancient China: the Zhoubi Suanjing dialogue, what gou, gu and xian mean, Nine Chapters problems solved step by step, and Liu Hui's work.
- HistoryPlimpton 322 and Babylonian Pythagorean TriplesPlimpton 322 is a Babylonian clay tablet from about 1800 BCE listing Pythagorean triples in base 60. Learn to read it, see all 15 rows and weigh the theories.
- HistoryWho Was Pythagoras?Who was Pythagoras of Samos? What we really know about his life, his community at Croton, the music ratios, the ox legend, and whether he proved the theorem.
- LearnWhy the Square Root of 2 Is IrrationalWhy the square root of 2 is irrational: the classic even-odd proof, Tennenbaum's picture proof, the Hippasus legend, the YBC 7289 tablet and √2's continued fraction.
- TriplesPythagorean TriplesWhat Pythagorean triples are, the common ones to know (3-4-5, 5-12-13, 8-15-17…), how to generate and recognize them, and the patterns every triple shares.