यम नियमyama · niyama · restraint, observance
Yamas and niyamas, the ethics of yoga
6 min read · Updated October 20, 2026 · sources checked October 18, 2026 · Editorial: The Yogide team

In short
The yamas and niyamas are the first two of the eight limbs of yoga in Patañjali's Yoga Sutras. The five yamas, or restraints, are non-harming, truthfulness, not stealing, brahmacarya and non-grasping (2.30); the five niyamas, or observances, are purity, contentment, discipline, study and surrender to the Lord (2.32). Sutras 2.35 to 2.45 name the fruit of each.
Ethics first
Patañjali lists the eight limbs of yoga in Yoga Sutra 2.29: yama, niyama, āsana, prāṇāyāma, pratyāhāra, dhāraṇā, dhyāna, samādhi. Ethics comes before posture and breath. The eight limbs page follows the whole ladder; this one stays on its first two rungs, sutras 2.30 to 2.45 of the Sādhana Pāda.
The five yamas, restraints
अहिंसासत्यास्तेयब्रह्मचर्यापरिग्रहा यमाः ॥
ahiṃsā-satyāsteya-brahmacaryāparigrahā yamāḥ ||
Non-harming, truthfulness, not stealing, continence and non-grasping are the restraints.
Vyāsa, the oldest commentator, defines ahiṃsā as "not injuring any being, in any way, at any time" (sarvathā sarvadā sarvabhūtānām anabhidrohaḥ) and adds that the other yamas and niyamas are rooted in it: they are taught to make non-harming complete. On truthfulness he is just as demanding: speech that is accurate but meant to hurt is not satya; "one should speak the truth after examining it, for the good of all beings". Asteya for him is not only not taking, but not even coveting; brahmacarya is the restraint of sexuality; aparigraha is not appropriating things once one has seen the trouble of acquiring, guarding and losing them.
The great vow (2.31)
जातिदेशकालसमयानवच्छिन्नाः सार्वभौमा महाव्रतम् ॥
jāti-deśa-kāla-samayānavacchinnāḥ sārvabhaumā mahāvratam ||
Not limited by birth, place, time or circumstance, valid on every ground, they are the great vow.
Vyāsa explains with examples. A fisherman's non-harming is limited by kind: he harms fish and nothing else. "I will not kill at a holy ford" is limited by place; "not on the fourteenth day of the fortnight" by time; "only for the gods and the brahmins" by circumstance, like the warrior who harms only in battle. When none of these limits remains, the yamas become a mahāvrata, a great vow. Most practitioners live them as a direction rather than a finished state; the sutra tells you where the direction leads.

The five niyamas, observances
शौचसंतोषतपःस्वाध्यायेश्वरप्रणिधानानि नियमाः ॥
śauca-saṃtoṣa-tapaḥ-svādhyāyeśvara-praṇidhānāni niyamāḥ ||
Purity, contentment, discipline, study and surrender to the Lord are the observances.
Vyāsa again gives precise meanings. Purity is outer (washing, clean food) and inner (washing away the stains of the mind). Contentment is "not wanting more than what is at hand". Tapas is enduring the pairs of opposites: hunger and thirst, cold and heat, standing and sitting, silence. Svādhyāya is the study of texts on liberation or the repetition of Om. Īśvara-praṇidhāna is "the offering of all actions to that supreme teacher". The last three also form the kriyā yoga of 2.1.
When the opposite thought comes (2.33-2.34)
वितर्कबाधने प्रतिपक्षभावनम् ॥
vitarka-bādhane pratipakṣa-bhāvanam ||
When harmful thoughts press, cultivate their opposite.
The next sutra says how:
वितर्का हिंसादयः कृतकारितानुमोदिता लोभक्रोधमोहपूर्वका मृदुमध्याधिमात्रा दुःखाज्ञानानन्तफला इति प्रतिपक्षभावनम् ॥
vitarkā hiṃsādayaḥ kṛta-kāritānumoditā lobha-krodha-moha-pūrvakā mṛdu-madhyādhimātrā duḥkhājñānānanta-phalā iti pratipakṣa-bhāvanam ||
Harmful thoughts, violence and the rest, whether done, caused to be done or approved, born of greed, anger or delusion, mild, middling or intense, bear endless fruit in suffering and ignorance: to reflect so is cultivating the opposite.
Pratipakṣa-bhāvana is not forcing a pleasant thought over an unpleasant one. It is seeing where the harmful thought leads. Vyāsa counts the shapes of violence: done, caused or approved; out of greed, anger or delusion; each mild, middling or intense, and each of those again in three degrees, which gives eighty-one kinds before one even counts the beings harmed. The point is practical: approving someone else's harshness, or being "a little" dishonest, already belongs to the list.
What each one yields (2.35-2.45)
Patañjali gives the fruit of each restraint and observance once it is firmly established. These are the claims of the text, which we translate as they are; whether one reads them literally or as descriptions of inner change is left to you.
| Sutra | Sanskrit | When it is established (our translation) |
|---|---|---|
| 2.35 | ahiṃsā-pratiṣṭhāyāṃ tat-saṃnidhau vaira-tyāgaḥ | In the presence of one grounded in non-harming, hostility is given up |
| 2.36 | satya-pratiṣṭhāyāṃ kriyā-phalāśrayatvam | Grounded in truth, actions and their fruits rest on his word |
| 2.37 | asteya-pratiṣṭhāyāṃ sarva-ratnopasthānam | Grounded in not stealing, all jewels come to him |
| 2.38 | brahmacarya-pratiṣṭhāyāṃ vīrya-lābhaḥ | Grounded in continence, vigour is gained |
| 2.39 | aparigraha-sthairye janma-kathaṃtā-saṃbodhaḥ | Steady in non-grasping, one understands the how of one's births |
| 2.40-41 | śaucāt svāṅga-jugupsā parair asaṃsargaḥ … | From purity, a distaste for one's own body and no contact with others; then clarity, cheerfulness, one-pointedness, mastery of the senses and fitness to see the Self |
| 2.42 | saṃtoṣād anuttamaḥ sukha-lābhaḥ | From contentment, unsurpassed happiness |
| 2.43 | kāyendriya-siddhir aśuddhi-kṣayāt tapasaḥ | From discipline, as impurity wanes, perfection of body and senses |
| 2.44 | svādhyāyād iṣṭa-devatā-saṃprayogaḥ | From study, union with one's chosen deity |
| 2.45 | samādhi-siddhir īśvara-praṇidhānāt | From surrender to the Lord, the perfection of samādhi |
Vyāsa's gloss on 2.35 is three words: hostility is given up "by all creatures". On 2.36 he says that the word of such a person is never in vain.
One practice a day, for each
These are our suggestions, small enough to keep for a week each:
| Principle | A practice for today |
|---|---|
| Ahiṃsā | On the mat, stop one breath before strain. Off it, notice one harsh sentence before you say it. See ahiṃsā. |
| Satya | Say "I don't know" once when it is true. Vyāsa's test: is it accurate, and is it for someone's good? |
| Asteya | Arrive on time: lateness takes other people's time. Credit an idea to the person who had it. |
| Brahmacarya | Choose one sense to rest: no screen in the hour before sleep. |
| Aparigraha | Give away one thing you keep "just in case". |
| Śauca | A clean place to practise, a clean stomach before practice, and one thought you let go of. |
| Saṃtoṣa | Practise with the body you have today, not the one you had. See santoṣa. |
| Tapas | The same short practice at the same time, even when you don't feel like it. |
| Svādhyāya | Read one sutra aloud and write one line about it. See svādhyāya. |
| Īśvara-praṇidhāna | End your practice by offering it, in your own words, and leave the result. See īśvara-praṇidhāna. |
A simple way to begin: one principle a week for ten weeks, with an evening line in a notebook: where did I keep it, where did I miss it, what was the opposite thought?
Good to know
Later texts give longer lists. The Haṭha Yoga Pradīpikā (1.17) names ten yamas: Patañjali's first four, then patience (kṣamā), steadfastness (dhṛti), compassion (dayā), straightforwardness (ārjava), moderate diet (mitāhāra) and purity; its ten niyamas (1.18) include faith, giving and worship of the Lord. When a teacher says "the yamas", ask which list.
Questions people ask
What are the 5 yamas?
Ahiṃsā (non-harming), satya (truthfulness), asteya (not stealing), brahmacarya (continence, conduct in brahman) and aparigraha (non-grasping). Patañjali lists them in Yoga Sutra 2.30.
What are the niyamas?
The five observances of Yoga Sutra 2.32: śauca (purity), saṃtoṣa (contentment), tapas (discipline), svādhyāya (study) and īśvara-praṇidhāna (surrender to the Lord). The yamas are what you refrain from; the niyamas are what you cultivate.
How many yamas are there?
Five in the Yoga Sutras. The Haṭha Yoga Pradīpikā (1.17-1.18) gives a longer list of ten yamas and ten niyamas; when people say 'the yamas', they usually mean Patañjali's five.
Where can I find the yamas and niyamas in a free PDF?
The Sanskrit text of the Yoga Sutras is free on GRETIL (University of Göttingen), and Charles Johnston's 1912 English translation is in the public domain on Project Gutenberg. Our book adds the word-by-word reading of 2.28-2.45 and ten weeks of practice.
Sources
- Patañjali, Yogasūtra, Sanskrit text, ed. Āgāśe 1904 (GRETIL, University of Göttingen) checked October 18, 2026
- Patañjali, Yogasūtra with Vyāsa's Yogabhāṣya, Sanskrit text (GRETIL) checked October 18, 2026
- Svātmārāma, Haṭhayogapradīpikā, Sanskrit text (GRETIL), verses 1.17-1.18 checked October 18, 2026
- The Yoga Sutras of Patanjali, translated by Charles Johnston (1912), Project Gutenberg checked October 18, 2026