Skip to content
India in Nutshell
Sign in

Pingala and the binary system

AI-drafted · awaiting admin review

Pingala's Chandahshastra listed poetic metres as patterns of short and long syllables in an order that matches binary counting, long before Leibniz described binary arithmetic in 1679–1703.

Indian contribution, later developed elsewhereMathematics & astronomy

Indian claim

Pingala invented the binary number system that computers use.

Evidence for the Indian claim

  • Pingala's Chandahshastra (dates given range roughly from the 3rd to 2nd century BCE) classifies metres by short (laghu) and long (guru) syllables.
  • Its systematic listing (prastara) puts the metres in an order equivalent to binary numbers, and its procedures find a metre's position from its pattern and back, like binary conversion.
  • B. van Nooten's paper 'Binary numbers in Indian antiquity' (1993) studied these procedures.

Commonly credited to

Gottfried Leibniz invented binary arithmetic, written up in 1679 and published in 1703.

Evidence for the other claim

  • Pingala used syllables, not 0 and 1, and did not do binary addition or multiplication.
  • Leibniz's manuscript 'De progressione dyadica' is dated 15 March 1679; his paper on binary arithmetic appeared in the Paris Academy's Mémoires for 1703.
  • Leibniz linked binary to the Chinese I Ching through his letters with the Jesuit Joachim Bouvet; there is no sign he knew Pingala.

What historians and scientists say

Pingala had a binary-style enumeration more than 1,800 years before Leibniz. Binary arithmetic as a number system for calculation was developed by Leibniz. Both deserve credit for different things.