Long ago, Vedic priests laid out their fire altars on open ground with nothing but a cord and a handful of pegs. The rules they followed, the Śulba Sūtras, are some of the oldest geometry written down in India. Stretch the cord with them.
A cord and a peg रज्जु · शङ्कु
A great sacrifice needed its altars in exactly the right shape and size. The priests could not buy a set square or a ruler. They had a cord, the rajju, with a loop at each end, and wooden pegs, śaṅku. Two pegs and a cord between them give a straight line. A mark on the cord, pulled out to one side, gives a corner.
The Śulba Sūtras, the ‘cord-rules’, are the books that say how. They belong to the Kalpa, the part of Vedic learning about rites, and the main ones carry the names of Baudhāyana, Mānava, Āpastamba and Kātyāyana. They give their rules in a few words each, to be learnt by heart, and the rules work for any size of altar.3
The cord across अक्ष्णयारज्जु
Take an oblong, a long four-sided shape with square corners. The cord along its long side makes a square of a certain size. The cord along its short side makes another. Now stretch a cord across the oblong, from corner to corner. Āpastamba and Baudhāyana say the same thing about it: the square it makes is as big as the other two together.1
दीर्घस्याक्ष्णयारज्जुः पार्श्वमानी तिर्यङ्मानी च यत्पृथग्भूते कुरुतस्तदुभयं करोति ॥
dīrghasyākṣṇayārajjuḥ pārśvamānī tiryaṅmānī ca yat pṛthagbhūte kurutas tad ubhayaṃ karoti ||
The cord stretched across an oblong makes both of what the side cord and the cross cord make, each on its own.
The builders also knew oblongs whose cord across comes out a whole number of units, so a single knotted cord could do the work. Āpastamba lists four of them, and Baudhāyana six.4
Stretch the cord yourself
Drag the gold peg to make any oblong. The gold cord runs across it, corner to corner. Below, each cord makes a square of its own, counted in small squares.
Side cord · pārśvamānī
3
Cross cord · tiryaṅmānī
4
The cord across · akṣṇayā-rajju
5
9 + 16 = 25 small squares
Āpastamba 5.3 · Baudhāyana 1.13trikacatuṣkayoḥ pañcikākṣṇayārajjuḥ “Of a three and a four, the cord across is a five.”
The sūtras' own oblongs:
Share your oblong and its cord
Double the square द्विकरणी
Some rites needed an altar twice the size of another. You cannot simply make each side twice as long: that gives four times the ground. The sūtras have a neater answer, and it needs no numbers at all. Step through it.
Step 1 of 5
Here is a square, laid out with the cord and four pegs. Its side is the measure, the pramāṇa.
So the cord across a square got a name of its own, dvikaraṇī, ‘the maker of two’. Āpastamba goes on: an oblong one measure wide and a dvikaraṇī long has a cord across that makes three times the ground, the trikaraṇī. He also shows how to join two squares of different sizes into one, how to take one square away from another, and how to turn an oblong into a square of the same ground.
How long is the cord across? सविशेष
The cord across a square is a little longer than the side, and a good deal shorter than two sides. But how long, exactly, if you have to cut and knot a real cord? The sūtras give a recipe in one line, made of nothing but parts of the side: a third, a fourth of that, and a thirty-fourth of that.
Increase the measure by its third, and that third by its own fourth, less the thirty-fourth part of that fourth. This is the measure ‘with its excess’.
The commentators on Āpastamba work it with a side of 12 aṅgulas, finger-breadths, and an aṅgula of 34 tilas, sesame seeds. Build the cord piece by piece and lay it along the square.5
Step 1 of 4 · The measure
Start with the side of the square, the measure (pramāṇa): a cord of 12 aṅgulas.
1
1 · 12 aṅgulas · 408 tilas
Near the corner, made much larger: each tick is one tila, a sesame seed
How close the recipe comes, in today's numbers, is in the notes.2
The Great Altar with one cord महावेदि
The Great Altar of the soma sacrifice, the mahāvedi, is a four-sided ground wider at the west than at the east. Āpastamba gives its measures in padas, foot-lengths:
Thirty padas, or prakramas, is the breadth at the west; thirty-six the length to the east; twenty-four the breadth at the east. So it is taught of the altar of the soma rite.
For the greatest rite, the agnicayana, the fire altar was not just marked on the ground but built up from bricks, layer on layer. Its shape followed the wish of the one who offered the sacrifice. A falcon, śyena, was for reaching heaven; other wishes asked for a rhombus, a trough, a chariot wheel or other forms. One text says the fire is like a living creature, and the bricks are its bones.8
The bricks came in set shapes and sizes, and the bird, wings and tail, had to come out to the ground the rite asked for. This is where the cord-rules earned their keep: turning one shape into another of the same size, doubling, adding and taking away squares. The altars were built for the rite and taken apart afterwards.
Still built
In April 1975, in Kerala, Nambudiri Brahmins performed a 12-day Agnicayana with seventeen priests, and built a bird-shaped altar of a thousand bricks. Frits Staal filmed it as Altar of Fire. Another was performed at Panjal, Kerala, in 2011, with an altar of 1,005 bricks.9
Share this
Try it with a string
Ages 10 and up · you need string, a ruler, cardboard and two pushpins
Tie about 30 cm of string into a loop. Mark it with knots so that its three parts are 5, 12 and 13 cm long.
Lay the three parts on the cardboard as a triangle, and pin the corners. (An adult pushes the pins in; hold them only by the head.)
Fit the corner of a book into the corner where the 5 and the 12 meet. Is it a true square corner?
This is Āpastamba's twelve-and-five oblong, cut in half along its cord across.
Words of the cord
The altar builders' words, as the sūtras use them.
śulbaशुल्ब
a string, a cord, a rope
The rules are named after the cord itself. A Śulba Sūtra is a book of cord-rules: how to stretch, mark and peg a cord to lay out an altar on the ground.
Share this word
rajjuरज्जु
the cord
The word the sūtras use, line after line, for the measuring cord. A cord with a loop (pāśa) at each end slips over the pegs.
Share this word
śaṅkuशङ्कु
a peg
A wooden peg driven into the ground. Two pegs and a cord between them make a straight line; a third peg, found by pulling the cord at a mark, makes a corner.
Share this word
akṣṇayā-rajjuअक्ष्णयारज्जु
the cord across, the diagonal
The cord stretched from one corner to the opposite one. Beside it are the pārśvamānī, the side cord, and the tiryaṅmānī, the cross cord.
Share this word
dvikaraṇīद्विकरणी
the maker of two
The name for the cord across a square, because the square made on it is twice the first. There is also a trikaraṇī, a ‘maker of three’.
Share this word
vediवेदि
the altar ground
The marked-out ground of the sacrifice. The mahāvedi, the Great Altar of the soma rite, is laid out with a single cord on this page.
Share this word
agnicayanaअग्निचयन
the piling of the fire altar
The great rite in which the fire altar is built up from layers of bricks, here in the shape of a bird.
✦ In April 1975 Nambudiri Brahmins in Kerala performed a 12-day Agnicayana, with seventeen priests and a bird-shaped altar of a thousand bricks. Another was performed at Panjal in Kerala in 2011, with 1,005 bricks.
Share this word
The people who stretched the cord
Baudhāyana बौधायन
about 800–500 BCE (dates disputed)
The named author of what may be the oldest Śulba Sūtra. His text gives the units of the cord, the rule of the cord across, a list of whole-number rectangles and the recipe for the square's diagonal.
His Śulba Sūtra has results like Baudhāyana's, and adds ways to join two squares into one, take one square from another, and turn an oblong into a square of the same ground. The verses on this page are his.
Their work was carried on by commentators. Kapardin, Karavinda and Sundararāja wrote on Āpastamba, Sundararāja in the late 15th century; Dvārakānātha Yajvan wrote the Śulbadīpikā on Baudhāyana, and Rāma Vājapeyin the Śulba-Vārtika in 1434. It is their worked examples, in aṅgulas and sesame seeds, that this page follows.
Notes
The rule of the cord across is what schools today call Pythagoras's theorem. Pythagoras lived about 570–495 BCE. On the dates Plofker gives (about 800–500 BCE), the oldest Śulba texts are as old or older, but every date for them is disputed, and Babylonian tablets with whole-number triples, such as Plimpton 322 (about 1790–1750 BCE), are older still. Kichenassamy warns against reading the sūtras as if they were modern theorems: they give rules in words, with no stated proof.
In today's terms the cord across a square with side 1 is √2. The recipe gives 1 + 1/3 + 1/(3·4) − 1/(3·4·34) = 577/408 = 1.414215…, against √2 = 1.414213…; the MAA puts the error at under 0.0003 per cent. Rodet (1879) compared the steps with Newton's method. Whether the makers of the recipe knew that no fraction is ever exactly right is an open question: Bürk thought so, Heath did not.
The Codex dates the Śulba Sūtras from about 800 to 200 BCE, with Baudhāyana, Mānava and Āpastamba possibly the oldest. Every one of these dates is disputed; the Codex page gives each view with its scholar.
Numbering differs between editions. The Codex cites Baudhāyana's rule for the oblong as 1.48, the square's diagonal as 1.9, the whole-number rectangles as 1.13 and the diagonal recipe as 2.12. Āpastamba's numbers here follow Bürk's edition, as GRETIL gives it.
How the recipe was found is not stated in the texts. Datta (1932) reads it from a figure of unit squares, with a thin L-shaped strip trimmed away for the last correction; Kichenassamy (2006) rebuilds it with a measuring cord alone. Both are modern reconstructions, and the MAA authors caution that fractions as we write them were probably unknown to the altar builders.
Āpastamba's commentators do this sum in tilas. In the commentary printed with the GRETIL text, a side of 12 aṅgulas is 408 tilas, and its square is 166,464 little squares of a tila; the cord of 17 aṅgulas less a tila is 577 tilas, and its square is 332,929. Twice 166,464 is 332,928, so the cord's square is one tila-square too large: the ‘excess’, viśeṣa, that gives the cord its name.
The cord tells the builders where the right angle is: 15 × 15 + 36 × 36 = 39 × 39 (225 + 1,296 = 1,521), so a cord of 54 bent at the 15 mark makes a true corner. The MAA treats this use of the rule backwards, from lengths to a right angle, as implicit in the Great Altar. Its ground is (30 + 24) ÷ 2 × 36 = 972 square padas, the ‘thousand less twenty-eight’ of 5.7.
A falcon-shaped brick altar of the 2nd century BCE was excavated at Kauśāmbī in 1957–59, but its measures do not match the Śulba rules. Baudhāyana's falcon altar for the wish for heaven (8.1) and the bricks as the fire's bones (6.3) are from a Sanskrit text hosted on a blog, whose edition is not stated.
Whether the Kerala rite is an unbroken line from Vedic times or a later revival is an open question (Plofker). Staal's 1975 film calls that performance possibly the last, while Staal (1999) also describes the ritual as still practised in parts of southern India. The sources do not reconcile the two.
References
The verses are from the Āpastamba Śulbasūtra as given by GRETIL, whose sūtra text is checked against Bürk's edition; we print it in Devanagari, and correct three slips of typing in the e-text (pṛthagbhūte, dvistāvatīṃ, tiraścī). The English renderings are our own. See also Measure Yourself the Old Way, for the aṅgula and the other old units of length.