Vanaprastha (Sanskrit: ) literally meaning "retiring to the forest", is the third stage in the varnashrama system of Hinduism. It represents the third of the four ashramas (stages) of human life, the other three being Brahmacharya (bachelor student, 1st stage), Grihastha (married householder, 2nd stage) and Sannyasa (renunciation ascetic, 4th stage).
Vanaprastha is part of the Vedic ashram system, which starts when a person hands over household responsibilities to the next generation, takes an advisory role, and gradually withdraws from the world. This stage typically follows Grihastha (householder), but a man or woman may choose to skip householder stage, and enter Vanaprastha directly after Brahmacharya (student) stage, as a prelude to Sannyasa (ascetic) and spiritual pursuits.
Vanaprastha stage is considered as a transition phase from a householder's life with greater emphasis on Artha and Kama (wealth, security, pleasure and sexual pursuits) to one with greater emphasis on Moksha (spiritual liberation).
Vanaprastha () is a composite word with the roots vana () meaning "forest, distant land", and prastha () meaning "going to, abiding in, journey to". The composite word literally means "retiring to forest".
Vanaprastha is part of the ancient Indian concept called Chaturashrama, which identified four stages of a human life, with distinct differences based on natural human needs and drives. The first stage of life was Brahmacharya (bachelor student) lasting through about 25 years of life, the second stage was Grihastha (married householder) and lasted through about 50 year age. Vanaprastha represented the third stage and typically marked with birth of grandchildren, gradual transition of householder responsibilities to the next generation, increasingly hermit-like lifestyle, and greater emphasis on community services and spiritual pursuit. The Vanaprastha stage ultimately transitioned into Sannyasa, a stage of complete renunciation and dedication to spiritual questions.
Vanaprastha, according to Vedic ashram system, lasted between the ages of 50 and 74.
Nugteren states that Vanaprastha was, in practice, a metaphor and guideline. It encouraged gradual transition of social responsibility, economic roles, personal focus towards spirituality, from being center of the action to a more advisory peripheral role, without actually requiring someone to actually moving into a forest with or without one's partner. While some literally gave up their property and possessions to move into distant lands, most stayed with their families and communities but assumed a transitioning role and gracefully accept an evolving role with age. Dhavamony identifies Vanaprastha stage as one of "detachment and increasing seclusion" but usually serving as a counselor, peace-maker, judge, teacher to young and advisor to the middle-aged.
While Grihastha and Vanaprastha stages of life were recommended, they were not a requirement. Any Brahmacharya may, if he or she wants, skip householder and retirement stage, go straight to Sannyasa stage of life, thereby renouncing worldly and materialistic pursuits and dedicating their lives to spiritual pursuits.
Jamison and Witzel state early Vedic texts make no mention of life in retirement, or Vanaprastha, or Ashrama system, unlike the concepts of Brahmacharin and Grihasthi which can be distinguished. The earliest mention of a related concept in Rig Veda is of Antigriha (, like a neighbor) in hymn 10.95.4, where the context and content suggests the elders did not go into forest, but continued to live as part of extended family, with outwardly role, in ancient India. In later Vedic era and over time, Vanaprastha and other new concepts emerged, while older ideas evolved and expanded. The concept of Vanaprastha, and Sannyasa, emerged about or after 7th Century BC, when sages such as Y?jñavalkya left their homes and roamed around as spiritual recluses and pursued their Pravrajika (homeless) lifestyle.
The Dharmas?tras and Dharmastras, composed about mid 1st millennium BC and later, place increasing emphasis on all four stages of Ashrama system, including Vanaprastha. The Baudhayana Dharmas?tra, in verses 2.11.9 to 2.11.12, describes the four Ashramas including Vanaprastha as "a fourfold division of Dharma". The older Dharmas?tras, however, are significantly different in their treatment of Ashramas system from the more modern Dharmastras, because they do not limit some of their Ashrama rituals to the three varnas - Brahmins, Kshatriyas and Vaishyas. The newer Dharmastra vary widely in their discussion of Ashrama system including Vanaprastha in the context of classes (castes), with some mentioning it for three, while others such as Vaikh?nasa Dharmas?tra including all four.
Olivelle posits that the older Dharmas?tras present the Ashramas as four alternative ways of life and options available, but not as sequential stage that any individual must follow. Olivelle also states that Vanaprastha along with the Ashrama system gained mainstream scholarly acceptance about 2nd century BC.
Numerous ancient and medieval texts of India discuss the four stages of a human being. Each offers different perspective. Some are strict and literal, while others discuss the concept in contextual and metaphorical terms. For example, Manusmriti offers elaborate prescriptions for drastic kind of renunciation, describing in verse 6.21 what the retiree in the forest should eat. In contrast, the Mahabharata suggests Vanaprastha is a symbolic metaphor and declares that a king may achieve the "object of Vanaprastha" by certain actions, without retiring into the forest. For example, Shanti Parva (the Book of Peace) of the Hindu Epic, states,
That king, O Yudhishthira, who rescues from distress, to the best of his power, his kinsmen and relatives and friends, attains to the object of the Vanaprashtha mode of life. That king who on every occasion honours those that are foremost among men attains the object of the Vanaprashtha mode of life. That king, O Partha, who daily makes offerings unto all living creatures including men, attains to the object of the same mode of life. That king, who grinds the kingdoms of others for protecting the righteous, attains to the object of the Vanaprashtha mode of life. That king who engages in battle with the resolve of protecting his kingdom or meeting with death, attains to the object of the Vanaprastha mode of life.-- The Mahabharata, Shanti Parva, Section LXVI 
Markandeya Purana suggests that a householder, after he has taken care of his progeny, his parents, his traditions and cleansed his mind is ready to enter the third stage of life, or Vanaprastha. He must lead a frugal life during this stage, sleeping on floor, eating only fruits and bulbs. The more he gives up the worldly delights, the closer he gets to the knowledge of his spirit, and more ready he is for the last stage - the Sanyas Ashram, where he renounces everything and focuses entirely on spiritual pursuits.
Vanaprastha appears in many major literary works from ancient India. For example, many chapters of the Hindu Epic Ramayana, just like the Mahabharata, build around hermit-style life in a forest (Vanaprastha). Similarly, the Abhijñ?nakuntalam (Shakuntala play by Kalidasa) revolves around hermit lifestyle in a forest. Many of the legendary forest hermitages, mentioned in various Sanskrit works, later became sites for major temples and Hindu pilgrimage.
Narada Parivrajaka Upanishad identifies four characteristics of a Vanaprastha stage of life as Audumbara (threshold of house, woods), Vaikhanasa (anchorite), Samprakshali (cleansing rituals) and Purnamanasa (contented mind).
Nigal states Vanaprastha stage to be a gradual evolution of a "family man" to a "society man", from one seeking "personal gain" to one seeking a "better world, welfare of his community, agapistic altruism".