A group of students meditating on rocks by the Ganges in Rishikesh, with a suspension bridge and the town on the far bank

Yamas and niyamas: the ethical principles of yoga

The yamas and niyamas are the first two of yoga's eight limbs. Patanjali's 5 yamas and 5 niyamas, what each means in practice, and sutra 2.33 for hard days.

The yamas (yama) and niyamas (niyama) are the ethical foundation of yoga, the first two of the eight limbs. Look at where Patanjali placed them: before posture and breathing. In his system yoga begins with how a person lives.

The reasoning is practical rather than moral. Patanjali’s goal is to still the movements of the mind, and a mind stirred up by resentment, lies or greed cannot be calmed by any breathing technique; it keeps returning to whatever has hold of it. Ethics is therefore the condition under which the other limbs work at all.

The yamas are five principles of conduct towards the world. The niyamas are five principles of self-discipline.

The five yamas

They are listed in Yoga Sutra 2.30.

Ahimsa (ahiṃsā), non-harming. Causing no harm in action, word or thought, to others or to yourself. It is the main principle, and the others follow from it. On the mat it also means not forcing your body into the shape of a pose.

Satya (satya), truthfulness. Honesty with yourself and others, always in agreement with ahimsa: a truth told in order to wound is no longer practice.

Asteya (asteya), not stealing. Not taking what belongs to others, whether objects, ideas, credit, or other people’s time and attention.

Brahmacharya (brahmacarya), moderation. Literally “moving towards Brahman”. For a monk it means celibacy. For a lay practitioner it means using sexual energy and attention wisely, neither indulging nor forcing yourself.

Aparigraha (aparigraha), non-possessiveness. Not accumulating more than you need and not clinging, to things or to the results of practice.

The next sutra, 2.31, calls the yamas the maha vrata, the great vow, which holds regardless of place, time, circumstance or birth. Ahimsa is not suspended because a situation feels special.

The five niyamas

They are listed in Yoga Sutra 2.32.

Shaucha (śauca), cleanliness of body, surroundings, food and mind. The shatkarmas, the cleansing practices of hatha yoga, grow out of this principle.

Santosha (santoṣa), contentment. Being satisfied with what you have. Effort stays; the nagging background dissatisfaction goes.

Tapas (tapas), discipline, literally “heat”. Willingness to make an effort: to get up before dawn, to finish the practice on a day you would rather not.

Svadhyaya (svādhyāya), self-study: observing yourself, and reading the texts as a mirror.

Ishvara pranidhana (īśvara-praṇidhāna), dedication or surrender to something greater than your own ego. Letting go of the idea that everything depends on your control.

What to do when it does not work

This is the most practical passage of the section and it is usually left out. Patanjali does not stop at a list. Sutra 2.33 gives a method called pratipaksha bhavana, “cultivating the opposite”.

When thoughts contrary to the yamas and niyamas arise, they are not suppressed. Attention is turned deliberately to the opposite state: goodwill in place of irritation, gladness for another person in place of envy, generosity in place of greed.

The difference matters. Suppressed irritation does not go anywhere and surfaces later, while redirected attention changes the state itself. It is a technique for working with the mind.

The following sutra, 2.34, adds an observation: a harmful act carries the same weight if you commit it yourself, push someone else into it or simply approve of it, and its cause is always one of three: greed, anger or delusion.

What the principles bring

Patanjali describes the result of each principle separately (sutras 2.35–2.45), and the wording is surprisingly concrete:

PrincipleWhat follows, according to Patanjali
Ahimsahostility ceases in the presence of one established in it
Satyawords come true
Asteyawealth comes
Brahmacharyavigour, virya, is gained
Aparigrahaunderstanding of why one’s life is as it is
Shauchaclarity of mind and fitness for concentration
Santoshathe highest happiness
Tapasperfection of body and senses
Svadhyayaconnection with one’s chosen ideal
Ishvara pranidhanasamadhi

These lines read better as descriptions of side effects than as promised rewards: a steady mind changes how life around it unfolds.

Are there always five?

In Patanjali, yes, five of each. His list is not the only one, though.

Hatha yoga texts and the Yoga Upanishads give longer lists of ten yamas and ten niyamas. The additions include kshama (patience), dhriti (steadfastness), daya (compassion), arjava (straightforwardness) and mitahara (moderation in eating), and among the niyamas japa (repetition of a mantra), dana (generosity) and hri (modesty).

The lists do not contradict each other; they divide the same ground differently. Mitahara, for example, can be read as a special case of both ahimsa and shaucha.

Ahimsa and food

This is the question people ask most. The Yoga Sutras contain no explicit ban on meat. They contain ahimsa, and the tradition derives vegetarianism from it.

In practice, ashrams and yoga schools in India serve vegetarian food, and in Rishikesh, a holy town, meat and alcohol are not sold in the main areas visitors stay in. Diet is still a consequence of the principle. A vegetarian who lies and envies is no closer to the yamas than anyone else.

What it looks like day to day

The yamas and niyamas are not a rulebook with penalties. They are a practice of attention: noticing where you cause harm, where you shade the truth, where you cling, and gently correcting course.

For a practitioner this means that yoga continues off the mat, in how you eat, speak and treat people and things. It works in both directions: meditation comes more easily when the day has left nothing you would rather not remember.

On yoga teacher training courses in Rishikesh the yamas and niyamas are studied in the philosophy block together with the eight limbs, and applied to teaching: a teacher’s ethics start here.

Frequently asked questions

What are the yamas and niyamas?

The first two of Patanjali's eight limbs of yoga and its ethical foundation. The yamas are five principles of conduct towards the world and other people; the niyamas are five principles of self-discipline. In the Yoga Sutras these ten come before posture and breathing.

What are the five yamas?

Ahimsa, non-harming; satya, truthfulness; asteya, not stealing; brahmacharya, moderation in the use of energy; and aparigraha, non-possessiveness. They are listed in Yoga Sutra 2.30.

What are the five niyamas?

Shaucha, cleanliness of body and mind; santosha, contentment; tapas, discipline and effort; svadhyaya, self-study and study of the texts; and ishvara pranidhana, surrender to something greater than the ego. They are listed in Yoga Sutra 2.32.

What if I cannot keep the yamas and niyamas?

Patanjali gives a specific method for this, pratipaksha bhavana (sutra 2.33). When thoughts contrary to the yamas and niyamas arise, you deliberately cultivate the opposite state. Irritation is not suppressed; attention is turned towards goodwill. It is a technique for the mind, not an appeal to be good.

Do you have to be vegetarian to practise yoga?

The Yoga Sutras contain no explicit ban on meat. They contain ahimsa, non-harming, and the tradition derives vegetarianism from it. Ashrams and yoga schools in India serve vegetarian food, but diet is a consequence of the principle and does not replace practice.

Does brahmacharya mean celibacy?

For a monk, yes. For a lay practitioner the tradition reads it more broadly, as wise use of sexual energy and attention, without indulgence and without forcing oneself. The word literally means moving towards Brahman.