What Is a Shloka?
Quick answer: A shloka is a Sanskrit couplet of thirty two syllables, the metre of the Ramayana and Bhagavad Gita. Learn its structure, origin legend and famous examples.
A shloka is a Sanskrit verse form: a couplet of thirty two syllables, arranged as two sixteen syllable lines, each of which divides into two quarter lines, called padas, of eight syllables. It is the workhorse metre of Sanskrit literature, carrying most of the Ramayana, the Mahabharata and the Bhagavad Gita. Because those texts are chanted daily across India and far beyond, the word has drifted into looser use, and many people now call almost any Sanskrit devotional verse a shloka. Strictly speaking, it names one particular metrical shape, known to prosodists as the anushtubh.
That drift in meaning is worth respecting rather than correcting too hard. Ask a temple priest, a Sanskrit professor and a yoga teacher what a shloka is and you will get three overlapping answers, all of them defensible in their own context. This page gives you the precise answer first, then the origin legend, the mechanics of the metre, and the reasons a verse form older than most alphabets currently in use is still being composed, chanted and memorised today.
The grief that became a verse
Sanskrit tradition tells a famous story about where the shloka came from. The sage Valmiki was walking by the river Tamasa when he saw a hunter shoot one of a pair of krauncha birds in the middle of their courtship. The surviving bird cried over its mate, and Valmiki, overcome, cursed the hunter aloud. Then he stopped, startled: his curse had come out as a perfectly measured couplet. His grief, shoka in Sanskrit, had shaped itself into shloka, and the pun is built into the legend on purpose.
In the story, the god Brahma then appears and tells Valmiki to compose the life of Rama in this new metre, which is why tradition calls Valmiki the adikavi, the first poet, and the Ramayana the first poem. Whatever you make of the legend historically, it teaches something poets recognise everywhere: strong feeling looks for a container, and the container was already latent in the language. The first poem, in this telling, was not a hymn of praise but a cry of protest at cruelty, which is a rather good founding myth for the whole art.
How the metre actually works
Sanskrit prosody does not count stress the way English metre does. It counts syllable weight: a syllable is laghu, light, or guru, heavy, depending on its vowel length and what follows it. A shloka consists of four padas of eight syllables each, thirty two syllables in total, usually printed as two lines with a natural pause in the middle of each.
Unlike stricter Sanskrit metres, which fix the weight of every single syllable, the shloka regulates only key positions. In the common form, the rules cluster around the fifth, sixth and seventh syllables of each pada, and the odd and even quarters follow slightly different cadences, so the two halves of each line answer one another. Everywhere else the poet has freedom. That looseness is the secret of the form's stamina: you can tell a story for twenty four thousand verses in a metre that guides the voice without strangling it.
A rough English analogy is ballad metre, the four beat, three beat alternation behind hundreds of folk songs and hymns. Both forms are tight enough to be memorable and loose enough to talk in. Both were built for the ear before the page.
Where you have already heard shlokas
If you have ever attended a Hindu wedding, sat through an arati at a temple, or stayed for the closing chant of a yoga class, you have almost certainly heard shlokas, whether or not anyone named the form. The Bhagavad Gita, around seven hundred verses long, is composed mostly in this metre, and its verses are recited from memory by millions of people. The Ramayana is traditionally described as a poem of twenty four thousand shlokas.
Listen for the shape rather than the words: a chanted shloka tends to fall into four even breath units, two per line, with a small lift at the midpoint and a settling at the end. That sing-song symmetry is not laziness on the reciter's part. It is the metre itself surfacing, the same way iambic pentameter surfaces when an actor relaxes into Shakespeare.
Shloka, mantra, sutra: three words people mix up
These three terms get used interchangeably in casual speech, and they should not be. A mantra is a sound formula whose power is held to live in the act of recitation itself; it need not be a couplet or even a sentence, and the single syllable Om is the obvious example. A sutra is the opposite extreme: maximally compressed prose, a rule or aphorism designed to be unpacked by teachers and commentaries, as in the Yoga Sutras of Patanjali. A shloka is neither of these things. It is metrical verse, a specific poetic form with a syllable count you can check.
The confusion arises because the categories overlap in practice. A shloka from the Gita, chanted devotionally every morning, starts to function as a mantra for the person chanting it. The form is poetry; the use is prayer. Poets will recognise this two-sided life, since the same thing happens when a poem is read at every funeral in a family until the words stop being literature and become ritual.
Why a verse form this old refuses to die
The shloka predates cheap writing material in India by many centuries, and that fact explains its design. The epics were preserved by memory and voice, passed between generations of reciters, and a metre with even eight syllable quarters is a memory technology of genius. Each pada fits comfortably in a single breath. The regulated cadence at the fifth, sixth and seventh syllables acts like a checksum: if a reciter garbles a word, the line stops scanning and the error announces itself.
The form is not a museum piece, either. Sanskrit scholars and pandits still compose fresh shlokas for weddings, felicitations, temple inaugurations and scholarly games, and Sanskrit poetry competitions in India regularly require them. Very few verse forms on earth can claim an unbroken compositional tradition on this scale.
Writing a shloka-inspired poem in English
You cannot transplant the shloka directly into English, because English metre runs on stress rather than syllable weight. What you can borrow is the architecture: four units of eight syllables, a pause after the second unit, and one complete thought per couplet. The Gita's most quoted verses tend to state a situation in the first half and turn it in the second, the way a good aphorism pivots, and that two-part motion translates beautifully.
Here is an original example of the shape in English, eight syllables to a line: 'The lamp does not ask who lit it; / it spends itself on the dark room. / Give what you carry the same way, / and let the giving be the light.' Notice the pivot after line two, where description becomes instruction. Write a few of these and you will start to feel why the form suited scripture: it makes almost anything sound both calm and final.
What poets can take from this
- When counting a shloka's structure, think four quarters of eight syllables rather than two long lines.
- Listen to a chanted Gita recording and tap the four breath units; the form teaches itself faster by ear than by chart.
- Do not call every Sanskrit chant a shloka; check whether it is a metrical couplet before using the word.
- For English imitations, syllable count plus a mid-poem pivot gets you closer than trying to copy light and heavy syllables.
- Study how Gita verses state a case in the first half and resolve it in the second; that hinge is the craft lesson.
- If you memorise one shloka a week aloud, the cadence will start correcting your own flabby lines.
Try it yourself
Write a four line poem of exactly eight syllables per line, addressed to someone who will read it after you are gone. Observe one household object in the first two lines, then let the last two lines turn that object into your advice.
Questions
Is the Bhagavad Gita written in shlokas?
Mostly, yes. The great majority of the Gita's roughly seven hundred verses are in the anushtubh shloka metre, which is why its verses are so widely memorised and chanted. A minority of verses use longer metres, especially at moments of heightened intensity, such as parts of the eleventh chapter.
What is the difference between a shloka and a mantra?
A shloka is a metrical verse form, a couplet of thirty two syllables, while a mantra is a sound formula valued for the act of recitation itself and need not be metrical at all. A shloka can be used as a mantra when it is chanted devotionally, which is why the two words blur in everyday speech.
How many shlokas are in the Ramayana?
Tradition describes Valmiki's Ramayana as a poem of twenty four thousand shlokas, divided across seven books. Surviving manuscripts vary somewhat in length, as they do for most ancient epics, but the traditional figure gives you the right order of magnitude.
By the Writory editorial team, reviewed by working poets. Updated September 2026.
Enter a Writory poetry contest
Enter the September contest and have your own poem read and scored. That first entry makes you a Writorian.