How many rak‘ahs in each prayer

All schools agree on 17 obligatory (fard) rak‘ahs a day. The voluntary prayers around them differ by school.

PrayerFardSunnah (Hanafi)Sunnah (Shafi‘i, Hanbali)Nafilah (Jafari)
Fajr22 before2 before2 before
Dhuhr44 before, 2 after2 before, 2 after8 before
Asr44 before (optional)4 before (optional)8 before
Maghrib32 after2 after4 after
Isha42 after, then 3 witr2 after, then witr2 after, sitting (count as 1)

Night prayer: Witr is 3 rak‘ahs and wajib in the Hanafi school; at least 1 rak‘ah and sunnah in the Shafi‘i, Maliki and Hanbali schools. In the Jafari school the night prayer is 11 rak‘ahs: 8, then 2 (shaf‘), then 1 (witr). The Maliki school holds similar sunnah prayers and stresses the 2 before Fajr.

References

How one rak‘ah is prayed

The Prophet ﷺ said, “Pray as you have seen me pray.” When a man prayed too fast, he taught him the steps below.

  1. Stand facing the Qibla and say Allahu Akbar.
  2. Recite al-Fatiha and a part of the Quran.
  3. Bow (ruku) until you are at ease.
  4. Stand up straight again.
  5. Prostrate (sujud) until you are at ease, sit up calmly, then prostrate a second time. That completes one rak‘ah.
  6. Stand for the next rak‘ah and repeat.
  7. Sit for the tashahhud at the end of the prayer, and also after the second rak‘ah in prayers of three or four rak‘ahs. Finish with the salam.

The five daily prayers are obligatory

Shortening the prayer when travelling

A traveller prays the four-rak‘ah prayers (Dhuhr, Asr and Isha) as two rak‘ahs. Fajr and Maghrib stay as they are. The distance that counts as a journey and the other conditions differ by school.

A missed prayer

If you forgot a prayer or slept through it, pray it as soon as you remember. The hadith says there is no expiation for it except to pray it.

Last updated: Saturday, 21 November 2026

Settings