The five daily prayers contain seventeen rak'ahs in total: Fajr two, Dhuhr four, Asr four, Maghrib three, and Isha four. This number is not a matter of scholarly disagreement — Ibn al-Mundhir records that the scholars are agreed on it, and it has been transmitted from the Prophet ﷺ in practice by a transmission so widespread that it is beyond doubt.
The count at a glance
| Prayer | Rak'ahs |
|---|---|
| Fajr (dawn) | 2 |
| Dhuhr (midday) | 4 |
| Asr (afternoon) | 4 |
| Maghrib (sunset) | 3 |
| Isha (night) | 4 |
| Total | 17 |
The Hanbali manual Wabl al-Ghamamah, explaining Ibn Qudamah's Umdat al-Fiqh, states it plainly: Fajr is two rak'ahs, Dhuhr and Asr are four each, Maghrib is three, and Isha is four — these are the obligatory prayers of the day and night. Al-Kasani, in Badai' al-Sanai', gives the same total of seventeen for the resident, arranged as "two, and four and four, and three, and four."
Where the number comes from
The Qur'an commands the prayers but does not specify their rak'ahs; the details were established by the Prophet's ﷺ own practice. Al-Kasani explains that the texts of the Qur'an are general on the amount, and the generality was removed by the Prophet's ﷺ statement and action — just as with the details of zakat, the tithe and Hajj.
"Pray as you have seen me pray."— Sahih al-Bukhari, from Malik ibn al-Huwayrith
Ibn al-Mundhir, in al-Awsat fi al-Sunan wa al-Ijma', reports the consensus of the scholars that the number of rak'ahs in each prayer is exactly as Muslims know it today: Dhuhr, Asr and Isha four; Fajr two; Maghrib three.
How the prayers began
The five prayers were not always at these lengths. Aisha رضي الله عنها narrated that prayer was first prescribed as two rak'ahs in both residence and travel, and that the travel prayer was left as it was while the resident prayer was increased.
"The prayer was prescribed as two rak'ahs, two rak'ahs, both in residence and on journey; then the prayer of the traveller was confirmed and the prayer of the resident was increased."— Sahih al-Bukhari 350, from Aisha
A report from al-Bayhaqi adds the detail that when the Prophet ﷺ came to Madinah and settled, two rak'ahs were added — except for Maghrib, because it is the odd-numbered prayer (witr) of the day, and Fajr, because of the length of its recitation.
The times these prayers belong to
The count is tied to the prayer, and each prayer has its own window. Al-Tuwayjri's Mukhtasar al-Fiqh al-Islami sets them out:
- Dhuhr begins when the sun passes its zenith and lasts until an object's shadow equals its own length, excluding the shadow at zenith — four rak'ahs.
- Asr begins when Dhuhr's time ends and runs until the sun yellows, with necessity extending to sunset — four rak'ahs.
- Maghrib begins at sunset and lasts until the red twilight disappears — three rak'ahs.
- Isha begins when the red twilight goes and lasts until midnight, with necessity extending to the second dawn — four rak'ahs.
- Fajr begins at the second dawn and lasts until sunrise — two rak'ahs.
If you are travelling
The four-rak'ah prayers — Dhuhr, Asr and Isha — are shortened to two while travelling, while Fajr and Maghrib are not shortened: Fajr stays at two and Maghrib at three. This is why the traveller's total is eleven rather than seventeen. The sources here describe the resident's seventeen as the baseline; the shortening is a separate concession with its own conditions.
Key takeaways
- The five daily prayers total seventeen rak'ahs: two, four, four, three, four.
- This count is agreed upon, not disputed — Ibn al-Mundhir records the consensus, and it is established by the Prophet's ﷺ practice and his command to pray as he prayed.
- The Qur'an commands the prayers; the Prophet ﷺ fixed the rak'ahs in word and deed, which is why the number is known by transmission rather than by independent reasoning.
- The prayers were originally two rak'ahs each and were increased for the resident, while Maghrib and Fajr were kept as they were for the reasons the narrations give.
- A traveller shortens the four-rak'ah prayers to two, bringing the total to eleven.
And Allah knows best.
This is a guide to what the scholars have said, not a fatwa. For your own situation, ask a qualified scholar who can hear the details.