There is no consensus on its chronology or specific origin other than that yoga developed in ancient India. Suggested origins are the Indus Valley Civilization (3300–1900 BCE) and pre-Vedic Eastern states of India, the Vedic period (1500–500 BCE), and the śramaṇa movement. According to Gavin Flood, continuities may exist between those various traditions:
Core: Yes. There are yoga poses to target just about every core muscle. Want to tighten those love handles? Then prop yourself up on one arm and do a side plank. To really burn out the middle of your abs, you can do boat pose, in which you balance on your "sit bones" (the bony prominences at the base of your pelvic bones) and hold your legs up in the air.
Ascetic practices, concentration and bodily postures described in the Vedas may have been precursors to yoga. According to Geoffrey Samuel, "Our best evidence to date suggests that [yogic] practices developed in the same ascetic circles as the early sramana movements (Buddhists, Jainas and Ajivikas), probably in around the sixth and fifth centuries BCE."
The spiritual sense of the word yoga first arises in Epic Sanskrit, in the second half of the 1st millennium BCE, and is associated with the philosophical system presented in the Yoga Sutras of Patanjali, with the chief aim of "uniting" the human spirit with the Divine. The term kriyāyoga has a technical meaning in the Yoga Sutras (2.1), designating the "practical" aspects of the philosophy, i.e. the "union with the supreme" due to performance of duties in everyday life.
Description of an early form of yoga called nirodhayoga (yoga of cessation) is contained in the Mokshadharma section of the 12th chapter (Shanti Parva) of the Mahabharata (third century BCE). Nirodhayoga emphasizes progressive withdrawal from the contents of empirical consciousness such as thoughts, sensations etc. until purusha (Self) is realized. Terms like vichara (subtle reflection), viveka (discrimination) and others which are similar to Patanjali's terminology are mentioned, but not described. There is no uniform goal of yoga mentioned in the Mahabharata. Separation of self from matter, perceiving Brahman everywhere, entering into Brahman etc. are all described as goals of yoga. Samkhya and yoga are conflated together and some verses describe them as being identical. Mokshadharma also describes an early practice of elemental meditation. Mahabharata defines the purpose of yoga as the experience of uniting the individual ātman with the universal Brahman that pervades all things.
The Bhakti movement was a development in medieval Hinduism which advocated the concept of a personal God (or "Supreme Personality of Godhead"). The movement was initiated by the Alvars of South India in the 6th to 9th centuries, and it started gaining influence throughout India by the 12th to 15th centuries. Shaiva and Vaishnava bhakti traditions integrated aspects of Yoga Sutras, such as the practical meditative exercises, with devotion. Bhagavata Purana elucidates the practice of a form of yoga called viraha (separation) bhakti. Viraha bhakti emphasizes one pointed concentration on Krishna.
Yoga may have pre-Vedic elements. Some state yoga originated in the Indus Valley Civilization. Marshall, Eliade and other scholars note that the Pashupati seal discovered in an Indus Valley Civilization site depicts a figure in a position resembling an asana used for meditation, Mulabandhasana. This interpretation is considered speculative and uncertain by more recent analysis of Srinivasan and may be a case of projecting "later practices into archeological findings".
Tantra is a range of esoteric traditions that began to arise in India no later than the 5th century CE.[note 17] George Samuel states, "Tantra" is a contested term, but may be considered as a school whose practices appeared in mostly complete form in Buddhist and Hindu texts by about 10th century CE. Tantric yoga developed complex visualizations which included meditation on the body as a microcosm of the cosmos. They included also the use of mantras, pranayama, and the manipulation of the subtle body, including its nadis and cakras. These teachings on cakras and Kundalini would become central to later forms of Indian Yoga.
"...[T]here is the cultivation of meditative and contemplative techniques aimed at producing what might, for the lack of a suitable technical term in English, be referred to as 'altered states of consciousness'. In the technical vocabulary of Indian religious texts such states come to be termed 'meditations' ([Skt.:] dhyāna / [Pali:] jhāna) or 'concentrations' (samādhi); the attainment of such states of consciousness was generally regarded as bringing the practitioner to deeper knowledge and experience of the nature of the world." (Gethin, 1998, p. 10.)