Short answer
The grammar of classical Sanskrit was codified by Pāṇini (पाणिनि) in a work called the Aṣṭādhyāyī (अष्टाध्यायी, “eight chapters”). It is a set of just under 4,000 short rules (sūtras) that together describe Sanskrit, from its sounds to how words are formed and how sentences are built. Pāṇini didn’t invent the language. He described the educated Sanskrit of his time, drawing on earlier grammarians whose works mostly do not survive. Later scholars, above all Kātyāyana and Patañjali, refined and explained his work, and the Pāṇinian system has remained the standard ever since.
Who was Pāṇini?
Very little is known about Pāṇini’s life. Scholars usually place him around the 5th to 4th century BCE, though estimates vary and some argue for earlier dates. Tradition links him with Śalātura, a place in the old region of Gandhāra, generally identified as being near Attock in present-day Pakistan. Later writers sometimes call him Śālāturīya (“the man from Śalātura”) and Dākṣīputra (after his mother, Dākṣī).
Beyond this, the stories about his life are legendary. A well-known one says he received the fourteen Śiva Sūtras from the sound of Śiva’s drum. That legend is the source of their other name, Māheśvara Sūtras.
The Aṣṭādhyāyī: what it contains
- Eight adhyāyas (chapters), each in four pādas (quarters), so 32 sections in all.
- About 3,900–4,000 sūtras. Counts vary slightly between editions, and “nearly 4,000” is the usual round figure.
- Rules covering technical definitions, sandhi, the formation of nouns and verbs, compounds, suffixes, accent and more.
It is accompanied by several supporting texts that are traditionally associated with Pāṇini’s system:
- Śiva Sūtras (Māheśvara Sūtras): 14 lines that arrange the sounds of Sanskrit in a special order.
- Dhātupāṭha: the list of verb roots, arranged in ten classes. See the ten dhatu ganas.
- Gaṇapāṭha: lists of words that a sūtra refers to by naming the first item, such as “sarva and the rest”.
- Liṅgānuśāsana: rules on grammatical gender, traditionally attributed to Pāṇini, though some scholars question this.
How Pāṇini’s system works
The Aṣṭādhyāyī is extremely compressed. A few of its devices:
1. The Śiva Sūtras and pratyāhāras. The sounds are arranged in 14 groups, each ending in a marker consonant:
अइउण्। ऋऌक्। एओङ्। ऐऔच्। हयवरट्। लण्। ञमङणनम्। झभञ्। घढधष्। जबगडदश्। खफछठथचटतव्। कपय्। शषसर्। हल्।
By taking a starting sound and a later marker, Pāṇini can name any class of sounds in two syllables. अच् (from अ to the marker च्) means “all vowels”, and हल् (from ह to the final ल्) means “all consonants”. That’s why vowel sandhi is also called ac-sandhi and consonant sandhi hal-sandhi.
2. Short rules that rely on context. Words stated in one rule carry forward into the following rules (anuvṛtti), so each sūtra can be only a few words long. Some well-known sūtras are:
- वृद्धिरादैच् (1.1.1): ā, ai and au are called vṛddhi.
- अकः सवर्णे दीर्घः (6.1.101): similar vowels merge into a long vowel. विद्या + आलयः = विद्यालयः.
- इको यणचि (6.1.77): i, u, ṛ and ḷ become y, v, r and l before a vowel. इति + आदि = इत्यादि.
These are the rules behind swar sandhi.
3. Ordered, interacting rules. The grammar works by applying rules in sequence to a root and suffixes until a correct final word results. Rules have priorities, and some override others in specific conditions.
Grammarians before Pāṇini
Pāṇini was not the first Sanskrit grammarian. The Aṣṭādhyāyī itself names about ten earlier authorities, including Āpiśali, Śākaṭāyana, Gārgya, Śākalya and Kāśyapa, usually to note where their views differed. Their works are lost or survive only in fragments. Yāska’s Nirukta, a work on etymology, is also generally regarded as earlier than or roughly contemporary with Pāṇini. Studies of Vedic recitation (the Prātiśākhyas) had already analysed sounds in detail.
So Pāṇini is best seen as the person who produced the definitive synthesis of a well-developed tradition. His work was so successful that it largely replaced the grammars before it.
The three sages: Pāṇini, Kātyāyana and Patañjali
The tradition honours three grammarians as the munitraya (मुनित्रय, “three sages”):
| Sage | Work | Rough date | Contribution |
|---|---|---|---|
| Pāṇini | Aṣṭādhyāyī | c. 5th–4th century BCE | the core rule system |
| Kātyāyana | Vārttikas | c. 3rd century BCE | short notes correcting and supplementing Pāṇini’s rules |
| Patañjali | Mahābhāṣya (“Great Commentary”) | c. 2nd century BCE | a detailed discussion of Pāṇini and Kātyāyana |
A traditional principle holds that where they differ, the later sage’s view generally prevails. The dates above are approximate and debated.
Later grammarians and textbooks
| Work | Author | Approximate date | Notes |
|---|---|---|---|
| Vākyapadīya | Bhartṛhari | c. 5th century CE | philosophy of language and meaning |
| Kāśikā Vṛtti | Jayāditya and Vāmana | c. 7th century CE | a running commentary on every sūtra |
| Siddhānta Kaumudī | Bhaṭṭoji Dīkṣita | 17th century CE | rearranged Pāṇini’s rules by topic |
| Laghu Siddhānta Kaumudī | Varadarāja | 17th century CE | a shorter version of the above, widely used by students |
| Works on Pāṇinian grammar | Nāgeśa Bhaṭṭa | c. 17th–18th century CE | influential later commentator |
Topic-based works like the Siddhānta Kaumudī are how most traditional students still learn Pāṇini today.
Other Sanskrit grammar traditions
Pāṇini’s was not the only system. Other grammars, often simpler or written for particular communities, include:
- Kātantra, a shorter grammar that was popular in some regions and in Buddhist circles
- Cāndra vyākaraṇa, by Candragomin
- Jainendra vyākaraṇa, in the Jain tradition
- Siddhahemaśabdānuśāsana, by the Jain scholar Hemacandra (12th century)
- Mugdhabodha, by Vopadeva (13th century)
- Sārasvata vyākaraṇa
These generally describe the same language. They differ in arrangement, terminology and level of detail.
Why Pāṇini still matters
- Standardisation. Classical Sanskrit literature, from Kālidāsa onwards, broadly follows Pāṇinian norms. That’s one reason the language stayed relatively stable over many centuries.
- Modern linguistics. Western scholars who studied Sanskrit grammar in the 19th and 20th centuries admired Pāṇini’s descriptive precision, and some modern linguists have compared his rule system to formal grammars. Such comparisons are best taken as analogies.
- Everyday learning. School terms like sandhi, samāsa, kāraka, lakāra and vibhakti all come from this tradition. See the Sanskrit grammar guide for how they fit together.
FAQ
Did Pāṇini invent Sanskrit?
No. Sanskrit, in its Vedic form, was in use long before him. Pāṇini described and codified the language. He also recorded features of Vedic usage alongside the everyday educated speech of his time.
Who wrote the first Sanskrit grammar?
Nobody knows. Pāṇini names earlier grammarians, but their works haven’t survived in full, so the Aṣṭādhyāyī is the earliest complete grammar we have.
Should a beginner read the Aṣṭādhyāyī?
Usually not first. Most learners start with a modern textbook or a school grammar and later move on to the Laghu Siddhānta Kaumudī, if they want the traditional method. The vocabulary of that tradition, words like vibhakti and lakāra, becomes familiar long before you open Pāṇini himself.