How Many Rakats in Each Prayer?
The five daily prayers have 17 fard rakats in total: Fajr 2, Dhuhr 4, Asr 4, Maghrib 3 and Isha 4.
Last updated:
Rakat at a Glance
A quick-reference guide to fard and sunnah rakat for all five daily prayers, plus Witr, Taraweeh, Duha and Tahajjud. The table shows fard (obligatory) rakat and the confirmed (mu’akkadah) sunnah rakat prayed before and after each fard. Items marked * are recommended in some madhhabs but not universally confirmed — see the notes and the per-prayer sections below.
| Prayer | Fard | Sunnah before | Sunnah after | Witr | Total |
|---|---|---|---|---|---|
| Fajr | 2 | 2 | — | — | 4 |
| Dhuhr | 4 | 4 | 2 | — | 10 |
| Asr | 4 | —* | — | — | 4 |
| Maghrib | 3 | — | 2 | — | 5 |
| Isha | 4 | —* | 2 | 3 | 9 |
* The Hanafi school additionally recommends 4 rakat (ghayr mu’akkadah, not confirmed sunnah) before Asr and before Isha. Other schools don’t treat these as established sunnah in the same way. “Total” counts the fard, the confirmed sunnah and Witr: 17 fard + 12 confirmed sunnah + 3 Witr = 32 rakat a day.
Other Prayers: Jumu’ah, Eid, Witr, Taraweeh, Duha, Tahajjud
| Prayer | Rakat | Note |
|---|---|---|
| Jumu'ah (Friday) | 2 fard (in place of Dhuhr) | Sunnah after: commonly 4, or 2 at home; the Hanafi school adds 4 before and prays 4 after. |
| Eid | 2 | With extra takbirat; no adhan or iqamah. |
| Witr | 1, 3, 5, 7, 9 or 11 | 3 is the most common; Wajib in the Hanafi school, confirmed sunnah in the others. |
| Taraweeh | 8 or 20 | Prayed in sets of 2, then Witr. Both counts are practised. |
| Duha | 2 minimum, commonly 4, up to 8 | Voluntary (nafl), after sunrise until just before Dhuhr. |
| Tahajjud / Qiyam | Sets of 2, no fixed limit | The Prophet's own night prayer is described as 11 rakat. |
How to Avoid Losing Count
Knowing the number is the easy part; holding it while you pray is harder. Prayer Memory keeps the count for you: a silent haptic pulse on Apple Watch, or a simple tap counter on your phone. It works offline and needs no account. Download it on the App Store or Google Play.
Fajr: How Many Rakats?
Fajr has 2 fard rakat, prayed out loud (jahriyyah). Before the fard, 2 confirmed sunnah rakat are prayed — a hadith describes these two rakat as better than the world and everything in it, so they’re rarely skipped even when short on time.
Dhuhr: How Many Rakats?
Dhuhr has 4 fard rakat, prayed silently. The widely-known sunnah pattern is 4 confirmed rakat before the fard and 2 confirmed rakat after — part of the 12-rakat daily sunnah mentioned in hadith.
Asr: How Many Rakats?
Asr has 4 fard rakat, prayed silently, with no confirmed sunnah attached to it in most schools. The Hanafi school is the main exception: it recommends (but does not treat as confirmed) 4 rakat before the Asr fard.
Maghrib: How Many Rakats?
Maghrib has 3 fard rakat — the only obligatory prayer with an odd number of fard rakat, prayed out loud for the first two. It’s followed by 2 confirmed sunnah rakat.
Isha: How Many Rakats?
Isha has 4 fard rakat, prayed out loud, followed by 2 confirmed sunnah rakat, and then Witr (see below).
Witr: How Many Rakats and How to Pray It
Witr is prayed after Isha, in an odd number of rakat — most commonly 3, though scholars also describe 1, 5, 7, 9 or 11.
How you pray those 3 rakat differs by madhhab. The Hanafi school treats Witr as wajib and prays all 3 rakat joined together in one unit, with a tashahhud after the second rakah (like Maghrib) before standing for the third, then a final tashahhud and salam — with qunut recited in the third rakah. The Shafi’i, Maliki and Hanbali schools consider Witr a strongly confirmed sunnah (not obligatory), and more commonly pray it as 2 rakat followed by a separate single rakah, rather than joining all three together.
Taraweeh: 8 or 20 Rakats?
This is one of the most-asked questions about Ramadan prayer, and both numbers are legitimately practiced today.
8 rakat (plus 3 Witr, totalling 11) is based on a hadith of Aisha (Sahih al-Bukhari and Sahih Muslim) describing the Prophet ﷺ’s night prayer, in Ramadan and outside it, as not exceeding 11 rakat — though each rakah was prayed at length. 20 rakat reflects the practice later established under Umar ibn al-Khattab, when the congregation was gathered behind a single imam, and this became the more widespread congregational practice across much of the Muslim world, especially in the Hanafi and Shafi’i traditions.
Neither number is “more valid” than the other — they reflect different, well-established strands of practice. Many people simply follow what their local mosque or madhhab observes.
Duha: How Many Rakats?
Duha (also called Ishraq) is prayed after sunrise, once the sun has fully risen, until just before the sun reaches its zenith. The minimum is generally said to be 2 rakat, most commonly prayed as 4, and some narrations mention higher counts such as 8 — a narration mentioning 12 rakat is also cited by some, though many scholars grade it as weak. It’s a flexible, recommended (nafl) prayer rather than a fixed obligation.
Tahajjud / Qiyam al-Layl: How Many Rakats?
Tahajjud (night prayer) has no fixed count — it’s prayed in sets of 2 rakat, for as long as you’re able, then closed with Witr if you haven’t already prayed it. As noted above, the Prophet ﷺ’s own night prayer is described as not exceeding 11 rakat total, though this reflects his personal practice rather than an upper limit for everyone.
Frequently Asked Questions
There are 17 fard rakats across the five daily prayers (Fajr 2, Dhuhr 4, Asr 4, Maghrib 3, Isha 4). Adding the 12 confirmed sunnah rakats from the well-known hadith makes 29, and 3 rakats of Witr bring it to 32. Witr is wajib in the Hanafi school and a confirmed sunnah in the others.
Fajr is 2 fard rakat, usually preceded by 2 confirmed (mu'akkadah) sunnah rakat — widely described in hadith as better than the world and everything in it.
This differs by madhhab: the Hanafi school holds Witr to be wajib (obligatory, though a lesser obligation than fard), while the Shafi'i, Maliki and Hanbali schools consider it a strongly confirmed sunnah rather than obligatory.
Both are legitimate practices with scholarly support. 8 rakats (plus 3 Witr, 11 in total) follows the hadith of Aisha describing the Prophet’s ﷺ night prayer as not exceeding 11 rakats; 20 rakats reflects the practice established under Umar ibn al-Khattab and is common in Hanafi and Shafi’i communities. Either is valid, and many people simply follow their local mosque or madhhab.
The minimum is usually said to be 2 rakats, most commonly prayed as 4, with some narrations mentioning 8 or more. It is a flexible, recommended (nafl) prayer rather than a fixed count.
Yes, in a few places — most notably whether there's a recommended (but not confirmed) sunnah before Asr and before Isha, which the Hanafi school includes and others treat differently. The table in this guide marks these with an asterisk.
It happens to almost everyone at some point — you build on your certainty (the lower number), complete the prayer, and perform sajdah sahw. See our full guide to sajdah sahw for the details.
Never lose count again
From 2 rakat of Duha to 20 of Taraweeh, Prayer Memory keeps the count so you don’t have to.
Praying Taraweeh at home this Ramadan? Here’s how to keep count without an imam. Lost track mid-prayer? See what sajdah sahw fixes. Choosing an app? Compare rakat counter apps.