How Many Rakats in Each Prayer? (Fard, Sunnah, Witr Table)
There are 17 obligatory (fard) rak’ahs a day: Fajr 2, Dhuhr 4, Asr 4, Maghrib 3 and Isha 4. All five schools agree on this count for a resident. Sunnah rak’ahs before and after several prayers bring the usual daily total to between about 28 and 51, depending on the school, plus Witr. Travellers shorten the four-rak’ah prayers to two.
A rak’ah is one cycle of the prayer: standing and reciting, bowing, rising, and two prostrations. If you are still learning that cycle, start with our step-by-step guide to salah. This page is the quick reference: the numbers for every prayer, what is obligatory and what is voluntary, and where the schools count differently.
Rakats in each prayer: the full table
This table shows the most common Sunni practice. “Emphasised” means sunnah mu’akkadah, the voluntary prayers the Prophet ﷺ kept up regularly.
| Prayer | Sunnah before | Fard | Sunnah after | Notes |
|---|---|---|---|---|
| Fajr | 2 (emphasised) | 2 | – | Fard recited aloud |
| Dhuhr | 4 or 2 (emphasised) | 4 | 2 (emphasised) | Silent; on Friday, Jumu’ah replaces it |
| Asr | 4 (optional) | 4 | – | Silent; no voluntary prayer after Asr |
| Maghrib | 2 (optional, brief) | 3 | 2 (emphasised) | First two aloud |
| Isha | 4 (optional) | 4 | 2 (emphasised) | First two aloud; Witr follows |
| Witr | – | – | 1, 3 or more | Wajib for Hanafis, sunnah for the others |
Each prayer has its own guide covering times and details: Fajr, Dhuhr, Asr, Maghrib and Isha and Witr.
Where the fard numbers come from
The obligatory counts are not in a single verse; they come from the Prophet’s ﷺ practice, transmitted by every Muslim community and agreed by all the schools. ‘A’isha described how they developed: “Allah enjoined the prayer when He enjoined it, it was two rak’at only (in every prayer) both when in residence or on journey. Then the prayers offered on journey remained the same, but (the rak’at of) the prayers for non-travelers were increased” (Sahih al-Bukhari 350).
That report also explains the travel rule. Ibn ‘Umar said of travelling with the Prophet ﷺ: “he never offered more than two rak’at during the journey. Abu Bakr, ‘Umar and ‘Uthman used to do the same” (Sahih al-Bukhari 1102). Ayatollah Sistani’s Islamic Laws states the same principle for Ja’fari followers: a traveller performs the four-rak’ah prayers as two (Ruling 716). Fajr and Maghrib are never shortened. The schools differ on the distance and length of stay that make someone a traveller, so check with a scholar before relying on it.
The sunnah rak’ahs, school by school
The voluntary prayers attached to the fard are called rawatib. Two reports set the core:
- Umm Habiba narrated that whoever prays twelve rak’ahs in a day and night will have a house built in Paradise: “Four Rak’ah before Zuhr, two Rak’ah after it, two Rak’ah after Maghrib, two Rak’ah after Isha, and two Rak’ah before Fajr” (Jami’ at-Tirmidhi 415, graded sahih by Darussalam; the shorter version is Sahih Muslim 728a).
- Ibn ‘Umar remembered ten: two before Dhuhr and two after, two after Maghrib, two after Isha and two before Fajr (Sahih al-Bukhari 1180).
The schools build on these differently:
Hanafi. Twelve emphasised rak’ahs, following Umm Habiba’s list, with four before Dhuhr prayed as one unit. Four before Asr and four before Isha are recommended but not emphasised. Witr is three rak’ahs and wajib.
Shafi’i. Ten emphasised rak’ahs (Ibn ‘Umar’s list), with four before Dhuhr, four before Asr, and two before Maghrib and Isha recommended on top. Witr is at least one rak’ah.
Hanbali. Ten emphasised rak’ahs, as in Bukhari 1180, with the two before Fajr the most important. Witr is a strong sunnah, at least one rak’ah.
Maliki. The school does not fix a list of emphasised rawatib in the same way. The two rak’ahs before Fajr (raghibah) and Witr are the most stressed; voluntary prayer before and after Dhuhr, before Asr and after Maghrib is recommended without a set number.
Ja’fari. Ayatollah Sistani’s rulings list 34 daily nafilah rak’ahs on days other than Friday: “eight rakʿahs are the nāfilah of ẓuhr, eight of ʿaṣr, four of maghrib, two of ʿishāʾ, eleven of the night, and two of ṣubḥ”, with the two of Isha prayed sitting and counted as one (Islamic Laws, Ruling 751). Added to the 17 obligatory rak’ahs, that makes 51.
Two narrations support the optional prayers before Asr and Maghrib. Ibn ‘Umar reported: “May Allah have mercy upon a man who prays four before Al-Asr” (Jami’ at-Tirmidhi 430, graded hasan by Darussalam). And of the prayer before Maghrib, the Prophet ﷺ said the third time, “Whoever wants to offer it can do so” (Sahih al-Bukhari 1183).
Daily totals at a glance
| Practice | Fard | Emphasised sunnah | Witr | Typical daily total |
|---|---|---|---|---|
| Fard only | 17 | – | – | 17 |
| Shafi’i or Hanbali core | 17 | 10 | 1 or 3 | 28 to 30 |
| Hanafi core | 17 | 12 | 3 (wajib) | 32 |
| Hanafi with optional 4 before Asr and Isha | 17 | 12 + 8 | 3 | 40 |
| Ja’fari full nawafil | 17 | 34 (Isha nafilah counted as 1) | included in the 11 of the night | 51 |
The fard 17 are what make the day’s prayer complete. The rest are voluntary, and nobody is sinful for leaving them, but they are how the Prophet ﷺ prayed and they make up for shortfalls in the obligatory ones.
Fridays, Eid and other special cases
Jumu’ah. On Friday, those who attend Jumu’ah pray two fard rak’ahs after the khutbah instead of the four of Dhuhr. Abu Huraira reported: “When any one of you observes the Jumu’a prayer (two obligatory rak’ahs in congregation), he should observe four (rak’ahs) afterwards” (Sahih Muslim 881a). Hanafis also pray four before. More in our complete guide to Jumu’ah and why going early matters. In Ja’fari practice, four extra nafilah rak’ahs are added on Friday to the sixteen of Dhuhr and Asr (Ruling 751).
Combining. When prayers are combined (for example Dhuhr with Asr when travelling), each keeps its own number of rak’ahs; only the timing changes. Who counts as a traveller is covered in our Qasr guide.
Eid, Tarawih and funeral prayers have their own counts and are covered in separate guides.
Counting tips
- Use the sittings as markers. You sit for tashahhud after every second rak’ah and at the end. In a four-rak’ah prayer, the first sitting is your halfway point.
- Recite aloud as a check. In Fajr, Maghrib and Isha, only the first two rak’ahs are aloud. If you find yourself about to recite aloud, you are still in the first half.
- If you lose count, Sunni schools generally say to build on the number you are sure of and add the prostrations of forgetfulness. Ja’fari rulings on doubt are more detailed; check your marja’s rulings or ask your local imam.
Whichever counts you follow, the timing matters as much as the number. Check today’s times in your city, for example Karachi, New York, Jakarta or Birmingham.
Frequently asked questions
How many rak’ahs are in the five daily prayers?
Seventeen obligatory rak’ahs: Fajr 2, Dhuhr 4, Asr 4, Maghrib 3 and Isha 4. All five schools, Sunni and Shia, agree on this. Voluntary sunnah rak’ahs and Witr are added on top, so many people pray 29 to 40 rak’ahs a day, and the full Ja’fari nawafil make 51.
How many rak’ahs is Isha with Witr?
In common Hanafi practice: 4 optional sunnah, 4 fard, 2 sunnah and 3 Witr, which is 13, or 9 without the optional four. In Shafi’i and Hanbali practice, often 4 fard, 2 sunnah and 1 or 3 Witr.
Are sunnah rak’ahs compulsory?
No. Only the 17 fard rak’ahs are obligatory. The emphasised sunnah prayers are strongly recommended because the Prophet ﷺ prayed them regularly, and Sahih Muslim 728a promises a house in Paradise for twelve rak’ahs a day. Hanafis treat Witr as wajib, a level above sunnah.
How many rak’ahs do you pray when travelling?
Dhuhr, Asr and Isha are shortened from four to two rak’ahs; Fajr stays at two and Maghrib at three (Sahih al-Bukhari 1102; Sistani, Ruling 716). Many travellers also drop the sunnah prayers except Fajr’s sunnah and Witr. The schools differ on the distance and duration that count as travel.
How many rak’ahs is Jumu’ah?
Jumu’ah has two obligatory rak’ahs after the khutbah, replacing Dhuhr’s four. Sahih Muslim 881a recommends four rak’ahs afterwards, and Hanafis also pray four before. Someone who misses Jumu’ah prays four rak’ahs of Dhuhr.
Why is Maghrib three rak’ahs?
The count comes from the Prophet’s ﷺ practice, not from a stated reason. ‘A’isha reported that the prayers were first two rak’ahs and were later increased for residents (Sahih al-Bukhari 350). Maghrib is three, and even when travelling the Prophet ﷺ prayed it as three (Sahih al-Bukhari 1091).
Related guides
- How to Pray Salah: Step-by-Step Guide for Beginners
- Isha Prayer: Time, Rakats, Witr and When Isha Ends
- Fajr Prayer: Time, Rakats, and When It Ends
- Dhuhr Prayer: Time, Rakats and Meaning
- Maghrib Prayer: Time, Rakats and How Long It Lasts
- How to Perform Wudu Step by Step
- Travel Prayer (Qasr): Distance, Days and Combining
Published · Updated