What the mantra says
Read literally, the phrase means simply: "Salutation to Śiva." It is counted as five syllables (na-maḥ-śi-vā-ya) when Oṃ is treated as separate and prior to the count — Oṃ itself being the praṇava common to nearly all mantras, discussed on its own page.
How it is used
The Pañcākṣarī is used extensively in personal devotional practice, temple worship, and japa (repeated recitation, often on a rudrākṣa mālā of 108 beads). Each of the five syllables (excluding Oṃ) is also given elaborate symbolic correspondences in Śaiva Siddhānta theology, associated with the five elements and other fivefold cosmological schemes.
Word-by-word grammar
| ॐ | oṃ | sacred syllable | The praṇava, prefixed — see the Oṃ mantra page. |
| नमः | namaḥ | indeclinable / nominative neuter | "Salutation, obeisance, bowing down to." |
| शिवाय | śivāya | dative singular | "To Śiva" — the one to whom salutation is offered. Dative case is standard in namaḥ-formulas. |
Roots in the Śrī Rudram
The phrase namaḥ śivāya ca śivatarāya ca ("salutation to Śiva, and to the more auspicious one") appears within the Śrī Rudram (also called the Rudra Praśna or Namakam), a hymn embedded in the Yajur Veda (Taittirīya Saṃhitā 4.5), consisting largely of a long litany of salutations to Rudra in his many forms and associations. The standalone five-syllable devotional formula in its familiar present form is a development of later Śaiva liturgical practice building on this Vedic material, rather than a verse quoted in that exact five-syllable form directly from the Yajur Veda.
In Śaiva Siddhānta
Śaiva Siddhānta theology treats the five syllables as corresponding to Śiva's five faces (Sadyojāta, Vāmadeva, Aghora, Tatpuruṣa, Īśāna) and to the five elements (earth, water, fire, air, ether), giving the mantra an elaborate cosmological significance beyond its simple grammatical meaning. Some traditions also read Śiva as, at root, a name meaning "auspiciousness" or "that which is" itself — pointing toward the absolute rather than only a personal deity — connecting the Pañcākṣarī to non-dual Śaiva philosophy such as Kashmir Shaivism.