Slokas

What Is a Sloka? Meaning, Structure, and How It Differs from a Mantra and Stotra

By Slokas Team · Last updated:

Quick answerA sloka is a Sanskrit verse — classically two lines of sixteen syllables each in the anustubh meter — used across Hindu scriptures like the Bhagavad Gita and Ramayana to carry teachings in a memorable, chantable rhythm.

Who this guide is for

  • Beginners meeting Sanskrit verses for the first time
  • Parents who want to explain to children what the family chants
  • Tamil, Hindi, Telugu, and Malayalam speakers who want explanations in their own language
  • Curious readers comparing slokas, mantras, and stotras

A sloka (Sanskrit: श्लोक, IAST śloka) is a verse of Sanskrit poetry — classically two lines of sixteen syllables each, composed in the anustubh meter. The sloka is the dominant verse form of Hindu scripture: the Bhagavad Gita, the Valmiki Ramayana, and most of the Mahabharata are written in slokas. A mantra, by contrast, is a sacred sound formula; a sloka is poetry's building block.

What does the word "sloka" mean and where does it come from?

The word śloka means a verse of praise or song, and Sanskrit dictionaries connect it with sound, call, and fame — something composed to be heard and remembered. According to the Monier-Williams Sanskrit-English Dictionary, śloka covers "sound, noise, fame" as well as "a stanza," which is a compact history of the form: to answer "what is a sloka" is to describe oral literature, verse shaped so the ear can carry it.

Tradition gives the word a more moving origin. In the Valmiki Ramayana, Bala Kanda, sarga 2, the sage Valmiki watches a hunter kill one of a pair of krauncha birds, and his grief (śoka) bursts out in perfectly metered speech — the first sloka:

मा निषाद प्रतिष्ठां त्वमगमः शाश्वतीः समाः । यत्क्रौञ्चमिथुनादेकमवधीः काममोहितम् ॥

mā niṣāda pratiṣṭhāṁ tvam agamaḥ śāśvatīḥ samāḥ | yat krauñcamithunād ekam avadhīḥ kāmamohitam ||

"O hunter, may you never find rest for endless years, for you killed one of this pair of krauncha birds while it was lost in love."

Did you know? The Sanskrit tradition treats grief as the mother of poetry: the Ramayana derives the word śloka (verse) from śoka (sorrow), because the first verse in history was born as a cry of grief that happened to scan perfectly.

How is a sloka structured?

A classical sloka has exactly 32 syllables, arranged in four padas (quarters) of eight syllables each, and printed as two lines of sixteen. A pada is one quarter of a Sanskrit verse — the basic unit a chanter breathes by.

PartSyllablesRole in the verse
Pada 18Opens the thought
Pada 28Completes the first line
Pada 38Develops or turns the idea
Pada 48Resolves the verse

In writing, the first two padas end with a single vertical bar called a danda (।) and the verse closes with a double danda (॥) — the punctuation you see at the end of every verse in a printed Gita. The danda system is explained in detail in Devanagari Danda Explained.

The sloka's meter is called anustubh — the most common meter in classical Sanskrit poetry, defined by its 32-syllable structure. In the common form called pathya, the fifth syllable of each pada stays light and the sixth heavy, which gives chanted slokas their characteristic swing. Epic poets bent these rules freely, so you will meet slokas that scan a little differently; the study of such verse forms is the traditional science of chandas (Sanskrit prosody).

Did you know? Sanskrit traditionally uses no commas, periods, or question marks. The danda (।) and double danda (॥) are the script's only classical punctuation — which is why they matter so much for knowing where to pause when chanting.

What is a sloka example with word-by-word meaning?

The most quoted sloka in the world is Bhagavad Gita 2.47, the verse on action without attachment. Here it is in the standard three-part presentation — Devanagari, IAST transliteration, translation:

कर्मण्येवाधिकारस्ते मा फलेषु कदाचन । मा कर्मफलहेतुर्भूर्मा ते सङ्गोऽस्त्वकर्मणि ॥

karmaṇy evādhikāras te mā phaleṣu kadācana | mā karmaphalahetur bhūr mā te saṅgo 'stv akarmaṇi ||

"Your right is to action alone, never to its fruits; do not let the fruit of action be your motive, nor let your attachment be to inaction."

Notice how the opening phrase karmaṇy evādhikāras te is actually four words — karmaṇi, eva, adhikāraḥ, te — fused by Sanskrit's sound-joining rules, called sandhi. Sandhi, codified in Panini's grammar, is the single biggest obstacle for beginners, and it is why a word-by-word view matters (What Is Sandhi in Sanskrit? covers it fully):

WordIASTMeaningGrammar note
कर्मणिkarmaṇiin action, in worklocative of karman, from the root kṛ, "to do"
एवevaonly, aloneemphatic particle
अधिकारःadhikāraḥright, entitlementsubject of the first line
तेteyourgenitive of tvam, "you"
माnever, notprohibitive particle
फलेषुphaleṣuin the fruits, in the resultslocative plural of phala, "fruit"
कदाचनkadācanaat any timeindefinite adverb

The full verse — including its second line on never making results your motive — has its own word-by-word explainer. Word roots like kṛ ("to do") repeat across thousands of verses, which is why learning Sanskrit root words pays off quickly.

What does a sloka mean, layer by layer?

Traditional teachers read every sloka at three depths, because 32 syllables compress several kinds of meaning at once. In the commentarial tradition following Shankara, a verse is unpacked word by word before its philosophy is discussed.

  1. Literal meaning — what the words say, one by one. In Bhagavad Gita 2.47: your entitlement is to the action, never to its fruits.
  2. Contextual meaning — what the verse asks of you in life. Do your work with full attention, and stop negotiating with outcomes you don't control.
  3. Philosophical meaning — what the verse teaches about reality. Acting without clinging to results is karma yoga, the Bhagavad Gita's discipline of unattached action.

Slokas Assistant presents every analyzed verse in exactly these three layers — literal, contextual, and philosophical — as three tabs, in English, Tamil, Hindi, Telugu, or Malayalam.

Sloka vs mantra vs stotra: what is the difference?

A sloka teaches through meaning, a mantra works through sound, and a stotra praises through devotion. The three words are often used loosely, but they name different things:

FeatureSlokaMantraStotra
What it isA 32-syllable verse formA sacred sound formulaA hymn of praise
Where the power sitsIn the meaning of the wordsIn the sound and its repetitionIn devotion to the deity addressed
Typical meterAnustubh (32 syllables)Varies; many are not metrical versesA series of slokas or other verses
Needs understanding?Yes — it exists to teach or narrateTraditionally no — recitation itself is the practiceHelpful, but devotion is primary
Typical length2 linesOne syllable to a few linesDozens to hundreds of verses
ExampleBhagavad Gita 2.47Om Namah ShivayaVishnu Sahasranama
OriginClassical epic and scriptural poetryVedic and Tantric recitation traditionsDevotional literature

The boundaries can overlap: a stotra is typically built from slokas, and a few mantras are metrically slokas. But the rule of thumb holds — slokas explain, mantras resonate, stotras praise. The full comparison, with more examples, is in Sloka vs Shloka vs Mantra vs Stotra.

Which scriptures are written in slokas?

The sloka is the workhorse of Sanskrit literature — the meter in which India's epics, law books, and science were composed. The traditional counts are themselves famous:

TextTraditional sloka countNote
Bhagavad Gita700 verses18 chapters; nearly all anustubh (chapter-by-chapter summary)
Valmiki Ramayanaapproximately 24,000 slokasAcross 7 kandas (books)
Mahabharatatraditionally counted at 100,000 slokasOften described as the longest epic poem in the world

Did you know? The Mahabharata's traditional count of 100,000 slokas makes it roughly ten times the length of the Iliad and Odyssey combined — and the sloka meter is what made a poem that size memorizable before writing was common.

Beyond scripture, ethical sayings (subhashitas), law codes, astronomy, and medicine were all versified in slokas — the meter was simply how knowledge traveled.

Did you know? The astronomer-mathematician Aryabhata wrote his treatise the Aryabhatiya (499 CE) — including place-value arithmetic and approximations of π — as 121 metrical verses, because verse was easier to memorize than prose tables.

Not everything sacred is a sloka, though. Much of the Upanishads is prose, and the oldest Vedic hymns use other meters entirely:

MeterSyllablesStructureFamous example
Anustubh (sloka)324 padas × 8Bhagavad Gita 2.47
Gayatri243 padas × 8The Gayatri mantra
Trishtubh444 padas × 11Much of the Rigveda

How do you start reading or chanting a sloka?

Start with a translation, then chant along with slow audio one pada at a time — no Sanskrit grammar needed. A workable first method:

  1. Read a plain translation first, so the verse is never just noise.
  2. Follow the transliteration in your own scriptIAST, Devanagari, Tamil, Telugu, or Malayalam — rather than guessing at the original.
  3. Listen to a slow recitation and follow along word by word.
  4. Chant one pada (eight syllables) at a time, pausing at the danda marks.
  5. Look up two or three words per sitting, starting with the ones that repeat across verses.
  6. Return to the same verse for a week before adding a new one — depth beats volume. A structured approach is in How to Memorize Slokas Fast.

Pronunciation has its own small set of rules — long and short vowels, aspirated consonants, where to breathe — covered step by step in How to Pronounce Sanskrit Slokas Correctly. Families teaching children can start with the short verses in 10 Easy Slokas for Kids.

Common questions about slokas

Can a mantra also be a sloka?

Occasionally, yes. A few mantras are composed in the anustubh meter, so they qualify as slokas by form while functioning as mantras in practice. The two categories describe function — meaning versus sound — rather than mutually exclusive sets of texts.

Why do most Bhagavad Gita verses use the sloka form?

The anustubh sloka was the standard narrative meter of epic Sanskrit, and the Bhagavad Gita sits inside the Mahabharata, an epic. The form's short, symmetrical lines made 700 verses of philosophy chantable and memorizable — the Gita was designed to be carried in memory, not on paper.

Why does a sloka have two lines?

The two printed lines are really four padas of eight syllables, grouped two per line. The grouping gives chanters a natural breath point: a single danda (।) marks the halfway pause, and the double danda (॥) marks the full stop.

Why is the meter called anustubh?

Anustubh is the traditional name given in Sanskrit prosody (chandas) to the 32-syllable form; the word is connected with following or praising in sequence. The name appears already in Vedic literature, where an early form of the meter precedes the classical sloka.

Are all Sanskrit verses slokas?

No — strictly, only verses in the anustubh meter are classical slokas. The Gayatri mantra (24 syllables, gayatri meter) and most Rigvedic hymns (often trishtubh, 44 syllables) are Sanskrit verses that are not slokas, even though everyday speech often calls any devotional verse a "sloka."

Do slokas rhyme?

No. Sanskrit prosody is built on syllable count and the pattern of light and heavy syllables, not on end-rhyme. The music of a sloka comes from rhythm and sound repetition inside the line, which is why hearing one chanted teaches more than reading it silently.

What do people commonly get wrong about slokas?

Common beliefWhat's actually the case
"Sloka" and "shloka" are different thingsThey are the same word, श्लोक (śloka); only the romanization differs
Every Sanskrit verse is a slokaOnly anustubh-meter verses are classical slokas; the Gayatri mantra is not one
Slokas are only religiousLaw, medicine, astronomy, and worldly advice were all written in slokas — the form is a meter, not a genre
You must memorize slokas for them to countTradition equally values hearing and reflecting on a verse; one sloka understood well is worth more than ten recited unexamined
A sloka must be chanted in DevanagariThe verse is sound, not script — chanting from Tamil, Telugu, Malayalam, or Latin transliteration is equally valid

Sources

  • Monier-Williams, A Sanskrit-English Dictionary, entry śloka (sound, fame, verse).
  • Valmiki Ramayana, Bala Kanda, sarga 2 (the śoka-to-śloka episode and the first sloka).
  • Bhagavad Gita 2.47, text as printed in the Gita Press (Gorakhpur) edition; translations here are plain-language renderings informed by standard published translations.
  • Aryabhata, Aryabhatiya (499 CE), for the verse-form scientific treatise example.

Key terms defined

Sloka
A sloka is the most common form of classical Sanskrit verse, composed in the anustubh meter with 32 syllables arranged into four padas of eight syllables each.
Anustubh
Anustubh is the most common meter in classical Sanskrit poetry, consisting of 32 syllables divided into four quarters of eight syllables.
Pada
A pada is one quarter of a Sanskrit verse, containing eight syllables in the classical sloka form.
Danda (।)
A danda is the vertical-bar punctuation mark in Devanagari script: a single danda (।) ends a half-verse and a double danda (॥) closes the full verse.
Sandhi
Sandhi is the system of sound-joining rules in Sanskrit that fuses adjacent words into longer compounds in both speech and writing.
Mantra
A mantra is a sacred Sanskrit sound formula valued primarily for its vibration and effect in repetition, rather than for its narrative meaning.
Stotra
A stotra is a Sanskrit hymn of praise addressed to a deity, usually composed of a series of slokas.
IAST
IAST (International Alphabet of Sanskrit Transliteration) is the standard scheme for writing Sanskrit in Latin letters with diacritics, such as ā, ś, and ṛ.
Devanagari
Devanagari is the script used to write Sanskrit and Hindi, recognizable by the horizontal bar running along the top of its letters.
Chandas
Chandas is the traditional Sanskrit science of poetic meters, which classifies verse forms such as anustubh, gayatri, and trishtubh by syllable count and rhythm.
Karma yoga
Karma yoga is the Bhagavad Gita's discipline of acting without attachment to the results of action, taught most famously in Bhagavad Gita 2.47.
Subhashita
A subhashita is a short Sanskrit saying of worldly wisdom or ethics, typically composed as a single free-standing sloka.
Gayatri meter
The gayatri meter is a Vedic verse form of 24 syllables in three lines of eight, older and shorter than the 32-syllable anustubh sloka.
Shloka
Shloka is an alternative English spelling of sloka; both spell the same Sanskrit word श्लोक (śloka) and there is no difference in meaning.

How Slokas helps

The problemThe featureWhat you get
Sanskrit words in a sloka merge together, so you can't tell where one word ends and the next beginsWord-by-word breakdown that automatically splits merged compound wordsSee every word of any pasted verse separately, with its meaning and grammar
A single-sentence translation hides what the verse actually saysThree meaning layers per verse — literal, contextual, and philosophicalUnderstand what the words say, how to apply them, and what they mean spiritually
You can read the verse but don't know how it should soundVoice narration that highlights each word as it's narrated, at 0.5×–1.5× speedListen, follow along word by word, and chant at your own pace

Everything above works free in guest mode — no sign-up needed. Try it now.

Frequently asked questions

Is a sloka the same as a mantra?
No. A sloka is a verse form that carries meaning and teaching, while a mantra is a sacred sound formula valued for its vibration and effect in recitation. Some mantras happen to be in sloka form, but most slokas are not mantras.
How many syllables does a sloka have?
A classical sloka has 32 syllables: four quarters (padas) of eight syllables each, usually printed as two lines of sixteen.
Is it spelled sloka or shloka?
Both spellings refer to the same word, श्लोक (śloka). 'Shloka' is closer to the Sanskrit sound, while 'sloka' is the more common simplified English spelling.
Is the Gayatri mantra a sloka?
No — the Gayatri mantra is composed in the gayatri meter of 24 syllables, not the 32-syllable anustubh meter of a sloka. It is one of the most famous examples of a Vedic verse that is not a sloka.
What is the most famous sloka?
Bhagavad Gita 2.47 — karmaṇy evādhikāras te — is probably the most quoted sloka in the world. It teaches that your right is to your action alone, never to its results.
Who wrote the first sloka?
Tradition credits the sage Valmiki, author of the Ramayana. According to the Valmiki Ramayana, his grief (śoka) at seeing a bird killed burst out in perfectly metered speech, becoming the first sloka.
How many slokas are in the Bhagavad Gita?
The Bhagavad Gita contains 700 verses in its standard editions, spread across 18 chapters. Nearly all of them are in the anustubh sloka meter.
Do slokas rhyme?
No. Sanskrit slokas are built on syllable count and rhythm (light and heavy syllables), not on end-rhyme like much English poetry.
Can a mantra also be a sloka?
Occasionally, yes. A few mantras are metrically anustubh verses, so they qualify as slokas by form. The categories describe different functions — meaning versus sound — rather than mutually exclusive texts.
Why does a sloka have two lines?
The two printed lines are actually four padas of eight syllables, paired two per line. The pairing gives chanters a natural breath point at the single danda (।) that ends the first line.
Are all Sanskrit verses slokas?
No. Strictly speaking, only verses in the 32-syllable anustubh meter are classical slokas. Vedic hymns use other meters such as gayatri (24 syllables) and trishtubh (44 syllables).
Are slokas only religious?
No. Sanskrit authors composed law, medicine, astronomy, mathematics, and worldly advice (subhashitas) in slokas. The sloka is a meter — a container — not a genre.
Can I learn slokas without knowing Sanskrit?
Yes. Transliteration lets you chant from your own script, and word-by-word meanings let you understand without reading Devanagari. Most people who chant slokas today learned them this way.
How long does it take to memorize a sloka?
A single 32-syllable sloka usually takes a few days of short daily repetition to memorize comfortably. Listening to a slow recitation and chanting one pada at a time speeds this up considerably.
How do I pronounce slokas correctly?
Focus on three things first: long versus short vowels, aspirated consonants like kha and gha, and pausing at the danda marks. Following a slow audio recitation word by word is the fastest way to build accuracy.
Which app explains sloka meanings word by word?
Slokas Assistant breaks any pasted sloka into individual words with transliteration, grammar, and three layers of meaning, in English, Tamil, Hindi, Telugu, or Malayalam. The core features work free in guest mode.

Slokas is an AI-powered Sanskrit learning app that gives word-by-word sloka meanings, voice narration, and spiritual guidance in English, Tamil, Hindi, Telugu, and Malayalam — free to use, no sign-up required.

Open Slokas →