Guide
Mahabharata and Ramayana Compared
The Ramayana is a shorter, tighter poem about an ideal man doing the right thing at terrible cost; the Mahabharata is four times longer and is about people who cannot work out what the right thing is. Both are Sanskrit epics, and the Mahabharata even retells the Ramayana inside itself.
What is the basic difference?
The Ramayana, attributed to Valmiki, follows one hero. Rama is exiled, his wife Sita is abducted by Ravana of Lanka, he allies with the vanara king Sugriva and with Hanuman, kills Ravana, and returns to rule Ayodhya. The moral frame is mostly clear: Rama is the standard against which everyone else is measured.
The Mahabharata follows a family. The Kaurava and Pandava cousins quarrel over the Kuru throne, the Pandavas lose everything at a rigged dice game, spend thirteen years in exile, and win a war that leaves almost nobody alive. There is no unambiguous standard. Krishna advises deception, the most honourable warriors fight for the wrong side, and the epic spends a hundred thousand verses arguing about what dharma even requires.
How do the two epics compare point by point?
On almost every measure the Mahabharata is the larger and looser work and the Ramayana the tighter one: four times the length, eighteen books to seven, a cast of hundreds against a single hero, and a moral world in which nobody is entirely right.
| Mahabharata | Ramayana | |
|---|---|---|
| Attributed to | Vyasa | Valmiki |
| Length | About 100,000 verses in the vulgate | About 24,000 verses |
| Divisions | 18 parvas (books), plus the Harivamsa | 7 kandas (books) |
| Genre name | Itihasa, "thus it was" | Adikavya, "the first poem" |
| Yuga of the story | End of the Dvapara, start of the Kali | Treta Yuga |
| Central figure | Five brothers and their cousin Krishna | One prince, Rama |
| Heartland | Upper Ganga-Yamuna plain, Kurukshetra, Dwaraka | Ayodhya south to Lanka |
| Moral temper | Dharma is contested and often impossible | Dharma is costly but knowable |
| Contains | The Bhagavad Gita | The Hanuman Chalisa is later and separate |
| Ending | Victory that feels like defeat | Restoration, then a painful coda |
The verse counts are traditional. The Mahabharata's Critical Edition is roughly a quarter shorter than the vulgate figure, and Ramayana manuscripts vary too. The seventh book of the Ramayana, the Uttara Kanda, in which Rama banishes the pregnant Sita, is widely regarded as a later addition, much as several sections of the Mahabharata are.
Which one is older?
This is genuinely disputed and worth stating carefully. Many scholars place the composition of the Ramayana's core somewhat earlier than the Mahabharata's, in roughly the fifth to fourth century BCE, with growth continuing into the early centuries CE. Others argue the Mahabharata's core narrative is older material even if the text reached its shape later. Both works were still being added to at the same time, so "which is older" depends on whether you mean the story, the core poem or the finished text.
Traditional chronology reverses the question and is not in dispute within the tradition: the Ramayana happens in the Treta Yuga, long before the Mahabharata, which happens at the close of the Dvapara Yuga. That is a statement about the story-world, not about composition.
How do the heroes differ?
Rama is defined by keeping his word. He accepts fourteen years of exile because his father gave a promise; he abandons his throne without argument; his flaws, when the text admits them, are the cost of that rigidity. He is the maryada purushottama, the best of men within limits.
The Pandavas are defined by failing. Yudhishthira, who cannot tell a lie, gambles his wife away and later tells the half-truth that kills Drona. Arjuna, the greatest archer alive, refuses to fight and has to be argued into it. Bhima keeps vows by breaking the rules of combat. Karna, the most generous man in the poem, fights for the side that strips a woman in open court. Even Krishna, who is God in this text, wins the war by advising one dishonourable act after another and is cursed for it.
The result is two very different reading experiences. The Ramayana asks you to admire; the Mahabharata asks you to judge, and then keeps taking the ground away from under your judgement.
Is the Ramayana told inside the Mahabharata?
Yes. In the Vana Parva, while the Pandavas are in exile and Jayadratha has just abducted Draupadi, the sage Markandeya consoles Yudhishthira by telling him about a king who also lost his wife to an abductor and got her back. This retelling, the Ramopakhyana, runs to a few hundred verses and compresses the whole Ramayana.
The Mahabharata also carries the Savitri story, Nala and Damayanti, and a great deal of other narrative material told to the same purpose: someone is suffering, so someone else tells them a story about suffering. That structure is one of the epic's signatures, and the Ramayana does not have it.
Which should you read first?
Read the Ramayana first if you want a story you can finish, follow without a chart of names, and keep in your head. It is roughly a quarter of the length and the plot is linear.
Read the Mahabharata first if what draws you is the argument rather than the plot - if you want the Bhagavad Gita in its setting, or you are interested in how a culture thinks about duty, war, inheritance and grief. Start with an abridgement, then go to a full translation for the books you care about.
Key facts
- Mahabharata length
- About 100,000 verses, 18 parvas
- Ramayana length
- About 24,000 verses, 7 kandas
- Ratio
- The Mahabharata is roughly four times longer
- Ramayana inside the epic
- Ramopakhyana, Vana Parva
- Story-world order
- Ramayana in the Treta, Mahabharata in the Dvapara
Related guides
Sources
- Robert P. Goldman et al., The Ramayana of Valmiki: An Epic of Ancient India, 7 vols. (Princeton University Press, 1984-2017).
- John Brockington, The Sanskrit Epics (Brill, 1998).
- The Ramopakhyana, Mahabharata 3.257-275 in the Critical Edition numbering.
- https://en.wikipedia.org/wiki/Ramayana
Where the guides summarise a disputed point, they say so. How this site is put together.