Learn / Sanskrit and scripts

Sanskrit and scripts

Sanskrit grammar basics: sandhi, nouns, verbs and Panini

Sanskrit grammar rests on three ideas: sandhi, the regular sound changes where words and parts of words meet; declension, in which nouns take endings for eight cases and three numbers; and conjugation, in which verbs mark person, number, tense and mood. Panini's Ashtadhyayi, about 4,000 rules from around the 5th or 4th century BCE, describes the whole system.

A 1663 birch-bark manuscript from Kashmir of the Rupavatara, a Sanskrit grammar textbook based on Panini.
Photo: Wellcome Collection, CC BY 4.0, via Wikimedia Commons

Talaash Heritage runs a lecture on India's linguistic heritage, including Panini's place in it, and introductory Prakrit and Pali courses for groups, online or in person.

On this page
  1. Panini and the Ashtadhyayi
  2. What is sandhi in Sanskrit?
  3. Noun declension: eight cases, three numbers
  4. Verb conjugation: persons, tenses and moods
  5. Compounds (samasa)
  6. How to study Sanskrit grammar
  7. Programmes
  8. Questions

Panini and the Ashtadhyayi

Pāṇini, traditionally said to come from Shalatura near the Indus in the north-west of the subcontinent, composed the Aṣṭādhyāyī ('eight chapters') around the 5th or 4th century BCE. It contains close to 4,000 sūtras, very short rules, arranged in eight chapters of four sections each. It is preceded by the fourteen Śiva Sūtras, a list of sounds arranged so that Panini could name whole groups of them with short labels, and supported by lists of verb roots (Dhātupāṭha) and word groups (Gaṇapāṭha).

The rules are extremely compressed. Rule 6.1.87, ād guṇaḥ, says in three syllables that a or ā followed by a vowel of the i or u type combines into the 'guṇa' vowel e or o. Later scholars explained and extended the system: Kātyāyana added supplementary notes (vārttikas), and Patañjali's Mahābhāṣya, usually placed in the 2nd century BCE, is a great commentary on both.

Modern linguists still study the Ashtadhyayi as one of the earliest generative grammars: a finite set of rules that produces every correct form of a language. That is why Panini's influence reaches well beyond India, a point the linguistic heritage lecture explores.

What is sandhi in Sanskrit?

Sandhi ('joining') is the set of regular sound changes that happen when sounds meet, either inside a word or between words. Spoken languages do this naturally (English 'don't you' often sounds like 'donchu'), but Sanskrit writes the changes down. That is why a printed line can look like one long word: neighbouring words fuse.

There are three main kinds: vowel sandhi, consonant sandhi and visarga sandhi. Beginners should learn the vowel rules first, because they appear in almost every sentence.

Meeting soundsResultExample
a or ā + a or āāna + asti = nāsti (is not)
a or ā + i or īedeva + indra = devendra
a or ā + u or ūosūrya + udaya = sūryodaya (sunrise)
a or ā + e or aiaisadā + eva = sadaiva (always)
i + unlike vowely + voweliti + api = ity api
u + unlike vowelv + vowelsu + āgatam = svāgatam (welcome)
aḥ + voiced consonantorāmaḥ + gacchati = rāmo gacchati

Noun declension: eight cases, three numbers

A Sanskrit noun changes its ending to show its job in the sentence. There are eight cases (vibhakti), three numbers (singular, dual for exactly two, and plural) and three genders. Because the ending carries the meaning, word order is free: rāmaḥ phalaṃ khādati and phalaṃ rāmaḥ khādati both mean 'Rama eats the fruit'.

The table shows deva ('god'), a masculine noun ending in -a, the most common pattern. Other stem types (-ā, -i, -u, consonant stems) follow related but different patterns.

CaseRoleSingularDualPlural
Nominativesubjectdevaḥdevaudevāḥ
Accusativeobjectdevamdevaudevān
Instrumentalby, withdevenadevābhyāmdevaiḥ
Dativeto, fordevāyadevābhyāmdevebhyaḥ
Ablativefromdevātdevābhyāmdevebhyaḥ
Genitiveofdevasyadevayoḥdevānām
Locativein, ondevedevayoḥdeveṣu
VocativeO!devadevaudevāḥ

Verb conjugation: persons, tenses and moods

Sanskrit verbs are built from roots (dhātu), such as bhū 'be, become', gam 'go' and kṛ 'do, make'. Each root belongs to one of ten classes that shape its present stem. Verbs mark three persons and three numbers, and use two sets of endings: parasmaipada (often called active) and ātmanepada (often called middle, originally 'for oneself').

Note that Sanskrit grammar counts persons the other way round from English: the 'first person' (prathama puruṣa) is 'he, she, it, they'. The forms below are the present tense of bhū.

  • Tenses and moods include present, imperfect, perfect, aorist, future, imperative and optative.
  • Participles and the absolutive (gatvā, 'having gone') do much of the work that clauses do in English.
  • Prefixes change meaning: gacchati 'goes', āgacchati 'comes'.
PersonSingularDualPlural
Third (he, she, they)bhavatibhavataḥbhavanti
Second (you)bhavasibhavathaḥbhavatha
First (I, we)bhavāmibhavāvaḥbhavāmaḥ

Compounds (samasa)

Sanskrit joins words into compounds very freely, sometimes many words long. Only the last member takes case endings. The main types are tatpuruṣa, where one word qualifies another (rājapuruṣa, 'king's man'), dvandva, a list of equals (rāmalakṣmaṇau, 'Rama and Lakshmana'), bahuvrīhi, which describes something else (mahābāhu, 'one whose arms are great'), and avyayībhāva, adverbial compounds (yathāśakti, 'as far as one is able'). Reading long compounds in inscriptions and court poetry is a skill of its own.

How to study Sanskrit grammar

Most learners do not start with the Ashtadhyayi. They use a modern textbook that teaches the same grammar in a graded order, and return to Panini later. Learn the script first using our Sanskrit alphabet tables, then follow the stages in learn Sanskrit for beginners.

The Prakrits and Pali are simplified, regionally varied relatives of Sanskrit: fewer cases in practice, consonant clusters smoothed out. Studying one of them after some Sanskrit is a quick way to see how the grammar loosened in everyday speech. Talaash Heritage runs short introductory courses in Prakrit and Pali that do exactly this.

How we run this

  • Colleges: a lecture on Panini and India's linguistic heritage for language and history departments.
  • Adult learners: introductory Prakrit or Pali courses online in small groups.
  • Schools: a lecture on how Indian languages and scripts developed.

Everything is arranged on request: dates, length, level and language are agreed with you, and no payment is taken until you approve the plan. Write to us or use the programme finder.

Do this with Talaash Heritage

Everything we offer

Questions people ask

How many cases are there in Sanskrit?

Eight: nominative, accusative, instrumental, dative, ablative, genitive, locative and vocative. Indian grammar counts seven vibhaktis and treats the vocative as a form of the nominative. Each case has singular, dual and plural forms.

How many sutras are in Panini's Ashtadhyayi?

Close to 4,000; the commonly cited figure is 3,959, with slight variation between traditions. They are arranged in eight chapters (adhyāya) of four sections (pāda) each, which is what the name Aṣṭādhyāyī, 'eight chapters', refers to.

Is sandhi compulsory in Sanskrit?

Inside words and compounds, yes. Between separate words in a sentence, classical writers apply it consistently in verse and formal prose, though grammarians allow some optionality. Beginners' readers often print words with sandhi undone to make reading easier.

What is the dual number in Sanskrit?

A form used for exactly two of something, between singular and plural. Devaḥ is one god, devau two, devāḥ three or more. Verbs have dual forms too, such as bhavataḥ, 'the two of them are'.

Do I need to learn Panini to learn Sanskrit?

No. Modern textbooks teach the same grammar step by step. Students who continue to advanced levels, or who study traditional commentaries, usually read Panini's system with a teacher later.

Want this as a walk, lecture or trip for your group? Tell us who it is for and when. We reply with a plan and a quotation.

Ask on WhatsApp